1.修改精度

2.修改券视频
yj-dev
杨杰 3 years ago
parent 4ae82dd51c
commit 9fccb65e10
  1. 4
      pages/order/confirmation.vue
  2. 36
      pages/user/mineCouponsDestails/mineCouponsDestails.vue

@ -322,11 +322,11 @@
if (item.highDiscount.discountType == 1) { if (item.highDiscount.discountType == 1) {
// //
this.deductionPrice = item.highDiscount.discountPrice; this.deductionPrice = item.highDiscount.discountPrice;
this.paytheprice = this.couponList.salesPrice - this.deductionPrice; this.paytheprice = parseFloat(this.couponList.salesPrice - this.deductionPrice).toFixed(2);
} else if (item.highDiscount.discountType == 2) { } else if (item.highDiscount.discountType == 2) {
// //
this.deductionPrice = item.highDiscount.discountPrice; this.deductionPrice = item.highDiscount.discountPrice;
this.paytheprice = this.couponList.salesPrice - this.deductionPrice; this.paytheprice = parseFloat(this.couponList.salesPrice - this.deductionPrice).toFixed(2);
} else if (item.highDiscount.discountType == 3) { } else if (item.highDiscount.discountType == 3) {
// //
this.deductionPrice = parseFloat(this.couponList.salesPrice - (this.couponList.salesPrice * this.deductionPrice = parseFloat(this.couponList.salesPrice - (this.couponList.salesPrice *

@ -33,40 +33,51 @@
</view> </view>
<view class="info" v-else> <view class="info" v-else>
<view class="price"> <view class="price">
<image style="width: 15px;height: 15px;vertical-align: sub;" <image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfx.png">
src="../../../static/img/jfx.png">
</image>{{ product.highCoupon.discountPrice*100}} </image>{{ product.highCoupon.discountPrice*100}}
</view> </view>
<view class="slogan" v-if="product.highCoupon.discountPrice !== product.highCoupon.salesPrice"> <view class="slogan" v-if="product.highCoupon.discountPrice !== product.highCoupon.salesPrice">
<image style="width: 15px;height: 15px;vertical-align: sub;" <image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfh.png">
src="../../../static/img/jfh.png">
</image>{{ product.highCoupon.salesPrice*100}} </image>{{ product.highCoupon.salesPrice*100}}
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="width90 mart10 fcor666" v-if="videourl != ''">视频教程</view>
<view class="width80 mart10 marb30" v-if="videourl != ''">
<yy-video-player :auto-play="false" :url="imageUrl+imagedess1" :poster="poster" :show-back-btn="true">
</yy-video-player>
</view>
</view> </view>
</template> </template>
<script> <script>
import { import {
getCouponByDiscount, getCouponByDiscount,
getDiscountByUserDiscountId getDiscountByUserDiscountId,
getCmsContent
} from '../../../Utils/Api.js'; } from '../../../Utils/Api.js';
import xiaoVideoElement from '../../../components/yy-video-player/yy-video-player.nvue'
let app = getApp(); let app = getApp();
export default { export default {
components: {
xiaoVideoElement
},
data() { data() {
return { return {
minecoupones: [], minecoupones: [],
imageUrl: app.globalData.imgUrl, imageUrl: app.globalData.imgUrl,
imagewxUrl: app.globalData.imageWxImg, imagewxUrl: app.globalData.imageWxImg,
imgadres: 'noorder.png', imgadres: 'noorder.png',
imagedess1: '/CMS/html/11641540903873.mp4',
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
isNoMoreData: false, isNoMoreData: false,
couponsDetails: '', couponsDetails: '',
salesEndTime: '', salesEndTime: '',
couponId: '' couponId: '',
videourl: '' //
} }
}, },
filters: { filters: {
@ -90,8 +101,21 @@
onLoad(option) { onLoad(option) {
this.couponId = option.id; this.couponId = option.id;
this.getDiscountByUserDiscountId(); this.getDiscountByUserDiscountId();
this.getCmsContentvideo();
}, },
methods: { methods: {
//
getCmsContentvideo() {
let params = {
regionId: app.globalData.cityId,
categoryCode: 'CMS_H5_VIDEO'
}
getCmsContent(params).then(res => {
if (res.return_code == '000000') {
this.videourl = res.return_data;
}
});
},
// //
getDiscountByUserDiscountId() { getDiscountByUserDiscountId() {
let params = { let params = {

Loading…
Cancel
Save