7.25(优化
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user