7.25(优化

This commit is contained in:
Hong
2024-07-25 18:43:48 +08:00
parent 9cf191e82e
commit fcb47bc7b8
2 changed files with 11 additions and 7 deletions

View File

@@ -77,6 +77,8 @@
videoImage:'',
//视频宽高
videoInfo:{},
latitude:null,
longitude:null
};
},
methods: {
@@ -99,6 +101,8 @@
cover:this.videoImage,
wide:this.videoInfo.width,
high:this.videoInfo.height,
latitude:this.latitude,
longitude:this.longitude
}).then(res => {
console.log(res.data);
res.data.shareNum = formatNumber(res.data.shareNum)
@@ -165,6 +169,7 @@
this.categoryId = options.type
// console.log(options.issueType == 0 ? '视频' : '图片');
this.issueType = options.issueType
}
}
</script>

View File

@@ -186,9 +186,9 @@
...mapGetters(['goorderinfo', 'cardmoney'])
},
onShow() {
},
methods: {
// 合计
showPrice() {
@@ -201,7 +201,7 @@
},
// 取优惠券个数
getCouponList() {
this.couponData.money=this.goorderinfo.price
this.couponData.money = this.goorderinfo.price
getCouponListAPI(this.couponData).then(res => {
console.log(res.data);
this.usableNum = res.data.total
@@ -253,11 +253,11 @@
paycardAPI(this.orderInfo).then(res => {
this.topUpTypeShow = false
let jsConfig = res.data.jsConfig
wxpayPaymentFn(jsConfig).then(wxpayRes=>{
wxpayPaymentFn(jsConfig).then(wxpayRes => {
uni.navigateTo({
url: `/pages/serve/coupons/payresult?resultType=res`
})
}).catch(wxpayErr=>{
}).catch(wxpayErr => {
uni.navigateTo({
url: `/pages/serve/coupons/payresult?resultType=err`
})
@@ -286,8 +286,7 @@
},
mounted() {
console.log('mounted');
this.getCouponList()
this.getCouponList()
},
}
</script>