|
|
@@ -176,7 +176,7 @@
|
|
|
consigneeIdNo: '',
|
|
|
IDCardDialog: false,
|
|
|
IDCardWebsite: 'http://t.taoplus.com.my/Home/UploadIDCard',
|
|
|
- flag:this.isPC()
|
|
|
+ flag:this.isPC(),
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
@@ -212,45 +212,43 @@
|
|
|
async pay(info) {
|
|
|
if (this.flag === 'website') {
|
|
|
//pc
|
|
|
- let payTypeText = this.payType === 'WECHAT' ? '微信' : '支付宝'
|
|
|
- let url = await QRCode.toDataURL(info.qrCode);
|
|
|
- await this.$alert(`<img src=${url} alt="" >`, `请使用${payTypeText}扫码支付`, {
|
|
|
- showClose: false,
|
|
|
- showCancelButton: true,
|
|
|
- showConfirmButton: true,
|
|
|
- confirmButtonText: '支付成功',
|
|
|
- cancelButtonText: '取消支付',
|
|
|
- dangerouslyUseHTMLString: true,
|
|
|
- center: true,
|
|
|
- callback: action => {
|
|
|
- if(action === 'confirm'){
|
|
|
- this.$router.push({path: `/shop/order-list`})
|
|
|
- }else{
|
|
|
- this.$router.push({path: `/shop/index`})
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- if (this.payType === 'WECHAT') {
|
|
|
+ if (this.payType === 'WAPWECHAT') {
|
|
|
//微信
|
|
|
+ let payTypeText = this.payType === 'WECHAT' ? '微信' : '支付宝'
|
|
|
+ let url = await QRCode.toDataURL(info.qrCode);
|
|
|
+ await this.$alert(`<img src=${url} alt="" >`, `请使用${payTypeText}扫码支付`, {
|
|
|
+ showClose: false,
|
|
|
+ showCancelButton: true,
|
|
|
+ showConfirmButton: true,
|
|
|
+ confirmButtonText: '支付成功',
|
|
|
+ cancelButtonText: '取消支付',
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ center: true,
|
|
|
+ callback: action => {
|
|
|
+ if(action === 'confirm'){
|
|
|
+ this.$router.push({path: `/shop/order-list`})
|
|
|
+ }else{
|
|
|
+ this.$router.push({path: `/shop/index`})
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
} else {
|
|
|
//支付宝
|
|
|
}
|
|
|
} else {
|
|
|
//移动端
|
|
|
- // let origin = window.location.origin + '/#/shop/order-list'
|
|
|
- window.location.replace("https://fele.ncshop.elken.com/wechat.html?mweb_url=" + info.mweb_url)
|
|
|
-
|
|
|
- // let origin = window.location.origin + '/#/shop/order-list'
|
|
|
- // console.log('tyler', info.mweb_url + '&redirect_url=' + encodeURIComponent(origin))
|
|
|
- // window.location.replace(info.mweb_url + '&redirect_url=' + encodeURIComponent(origin))
|
|
|
-
|
|
|
- if (this.payType === 'WECHAT') {
|
|
|
+ if (this.payType === 'WAPWECHAT') {
|
|
|
//微信
|
|
|
+ window.location.replace("https://fele.ncshop.elken.com/wechat.html?mweb_url=" + info.mweb_url)
|
|
|
} else {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ is_weixn(){
|
|
|
+ const ua = navigator.userAgent.toLowerCase();
|
|
|
+ return ua.indexOf('micromessenger') !== -1;
|
|
|
+ },
|
|
|
getSummaries(param) {
|
|
|
const { columns, data } = param;
|
|
|
const sums = [];
|