1.修改精度问题

master
杨杰 3 years ago
parent 87ea64fcad
commit a585a6714e
  1. 4
      high-unionPay/pages/order/confirmation.vue
  2. 29
      high-unionPay/pages/user/mineCouponsDestails/mineCouponsDestails.vue

@ -309,11 +309,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 *

@ -45,28 +45,40 @@
</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 +102,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