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) {
//
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) {
//
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) {
//
this.deductionPrice = parseFloat(this.couponList.salesPrice - (this.couponList.salesPrice *

@ -33,40 +33,51 @@
</view>
<view class="info" v-else>
<view class="price">
<image style="width: 15px;height: 15px;vertical-align: sub;"
src="../../../static/img/jfx.png">
<image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfx.png">
</image>{{ product.highCoupon.discountPrice*100}}
</view>
<view class="slogan" v-if="product.highCoupon.discountPrice !== product.highCoupon.salesPrice">
<image style="width: 15px;height: 15px;vertical-align: sub;"
src="../../../static/img/jfh.png">
<image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfh.png">
</image>{{ product.highCoupon.salesPrice*100}}
</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>
</template>
<script>
import {
getCouponByDiscount,
getDiscountByUserDiscountId
getDiscountByUserDiscountId,
getCmsContent
} from '../../../Utils/Api.js';
import xiaoVideoElement from '../../../components/yy-video-player/yy-video-player.nvue'
let app = getApp();
export default {
components: {
xiaoVideoElement
},
data() {
return {
minecoupones: [],
imageUrl: app.globalData.imgUrl,
imagewxUrl: app.globalData.imageWxImg,
imgadres: 'noorder.png',
imagedess1: '/CMS/html/11641540903873.mp4',
pageNum: 1,
pageSize: 10,
isNoMoreData: false,
couponsDetails: '',
salesEndTime: '',
couponId: ''
couponId: '',
videourl: '' //
}
},
filters: {
@ -90,8 +101,21 @@
onLoad(option) {
this.couponId = option.id;
this.getDiscountByUserDiscountId();
this.getCmsContentvideo();
},
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() {
let params = {

Loading…
Cancel
Save