|
@@ -247,7 +247,16 @@
|
|
|
}
|
|
}
|
|
|
self.$api.order(data).then(res => {
|
|
self.$api.order(data).then(res => {
|
|
|
if(res.data.code === 200){
|
|
if(res.data.code === 200){
|
|
|
- let objarr = res.data.data
|
|
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ content: '兑换成功',
|
|
|
|
|
+ showCancel: false,
|
|
|
|
|
+ success: function(resst) {
|
|
|
|
|
+ self.showPricePop = false;
|
|
|
|
|
+ self.getHaveThis();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ /* let objarr = res.data.data
|
|
|
wx.requestPayment({
|
|
wx.requestPayment({
|
|
|
timeStamp: objarr.timeStamp,
|
|
timeStamp: objarr.timeStamp,
|
|
|
nonceStr: objarr.nonceStr,
|
|
nonceStr: objarr.nonceStr,
|
|
@@ -278,7 +287,13 @@
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
|
|
+ })*/
|
|
|
|
|
+ }else {
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: res.data.msg,
|
|
|
|
|
+ icon: 'none',
|
|
|
|
|
+ duration: 2000
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -333,15 +348,16 @@
|
|
|
this.current = index;
|
|
this.current = index;
|
|
|
},
|
|
},
|
|
|
jumpPay(){
|
|
jumpPay(){
|
|
|
- this.$navTo.togo('/pages2/payment/payment', {})
|
|
|
|
|
|
|
+ let url = 'https://m.xyyxt.net/'+this.detail.fileUrls
|
|
|
|
|
+ this.$navTo.togo('/pages2/course/read', {url:url})
|
|
|
},
|
|
},
|
|
|
jumpRead(){
|
|
jumpRead(){
|
|
|
if(!this.$method.isLogin()){
|
|
if(!this.$method.isLogin()){
|
|
|
this.$navTo.togo('/pages/login/login');
|
|
this.$navTo.togo('/pages/login/login');
|
|
|
}else{
|
|
}else{
|
|
|
- let url = this.$method.splitImgHost(this.detail.fileUrls)
|
|
|
|
|
- console.log(url)
|
|
|
|
|
- uni.downloadFile({
|
|
|
|
|
|
|
+ let url = 'https://m.xyyxt.net/'+(this.detail.fileUrls)
|
|
|
|
|
+ // console.log(url)
|
|
|
|
|
+ /* uni.downloadFile({
|
|
|
url:url,
|
|
url:url,
|
|
|
success(res){
|
|
success(res){
|
|
|
console.log(res)
|
|
console.log(res)
|
|
@@ -351,9 +367,9 @@
|
|
|
fileType:'pdf'
|
|
fileType:'pdf'
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
|
|
+ })*/
|
|
|
// this.$navTo.togo('/pages2/payment/payment', {})
|
|
// this.$navTo.togo('/pages2/payment/payment', {})
|
|
|
- // this.$navTo.togo('/pages2/course/read', {})
|
|
|
|
|
|
|
+ this.$navTo.togo('/pages2/course/read', {url:url})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|