增加app下载,支付失败优化
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
// APP
|
// APP
|
||||||
// const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg/"; //
|
const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg/"; //
|
||||||
// const ROOTPATH = "https://dj-api.hnsiyao.cn/czg/"; //后台服务域名
|
const ROOTPATH = "https://dj-api.hnsiyao.cn/czg/"; //后台服务域名
|
||||||
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
// const ROOTPATH1 = "https://video.hnsiyao.cn/czg/"; //
|
// const ROOTPATH1 = "https://video.hnsiyao.cn/czg/"; //
|
||||||
// const ROOTPATH = "https://video.hnsiyao.cn/czg/"; //后台服务域名
|
// const ROOTPATH = "https://video.hnsiyao.cn/czg/"; //后台服务域名
|
||||||
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
// h5
|
// h5
|
||||||
const ROOTPATH1 = "https://web.hnsiyao.cn/czg/"; //
|
// const ROOTPATH1 = "https://web.hnsiyao.cn/czg/"; //
|
||||||
const ROOTPATH = "https://web.hnsiyao.cn/czg/"; //后台服务域名
|
// const ROOTPATH = "https://web.hnsiyao.cn/czg/"; //后台服务域名
|
||||||
const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
// const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg/"; //
|
// const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg/"; //
|
||||||
// const ROOTPATH = "https://web-api.hnsiyao.cn/czg/"; //后台服务域名
|
// const ROOTPATH = "https://web-api.hnsiyao.cn/czg/"; //后台服务域名
|
||||||
|
|||||||
@@ -810,10 +810,19 @@
|
|||||||
console.log('nvue payType=' + paytype);
|
console.log('nvue payType=' + paytype);
|
||||||
httpsRequest.getT("/app/wuyou/payOrder/" + this.ordersId + '?payType=' + paytype, {}).then(ret => {
|
httpsRequest.getT("/app/wuyou/payOrder/" + this.ordersId + '?payType=' + paytype, {}).then(ret => {
|
||||||
// plus.runtime.openURL(ret.data.h5Url)
|
// plus.runtime.openURL(ret.data.h5Url)
|
||||||
|
if(ret.code == 0 ) {
|
||||||
|
uni.hideLoading()
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/pays/pays?ordersId=' + this.ordersId + '&url=' + ret.data.h5Url
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
uni.hideLoading()
|
||||||
|
uni.showToast({
|
||||||
|
icon: res.msg,
|
||||||
|
title: '支付失败!'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/pays/pays?ordersId=' + this.ordersId + '&url=' + ret.data.h5Url
|
|
||||||
});
|
|
||||||
|
|
||||||
// uni.navigateTo({
|
// uni.navigateTo({
|
||||||
// url: '/pages/index/webView?ordersId='+this.ordersId+'url=' + ret.data.h5Url
|
// url: '/pages/index/webView?ordersId='+this.ordersId+'url=' + ret.data.h5Url
|
||||||
|
|||||||
@@ -194,6 +194,16 @@
|
|||||||
我的团队
|
我的团队
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view v-if="isAndroid"
|
||||||
|
class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||||
|
@click="goNav('/pages/login/appEq')">
|
||||||
|
<view class="tool-box-content-item-img" style="display: flex;align-items: center;justify-content: center;">
|
||||||
|
<image src="../../static/images/me/xiazai.png" mode="" style="height: 45rpx;width: 45rpx;"></image>
|
||||||
|
</view>
|
||||||
|
<view class="tool-box-content-item-txt">
|
||||||
|
APP下载
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="tool-box-content-item flex align-center justify-center flex-wrap" @click="goMsg()">
|
<view class="tool-box-content-item flex align-center justify-center flex-wrap" @click="goMsg()">
|
||||||
<view class="tool-box-content-item-img">
|
<view class="tool-box-content-item-img">
|
||||||
<image src="../../static/images/me/vkf.png" mode=""></image>
|
<image src="../../static/images/me/vkf.png" mode=""></image>
|
||||||
@@ -302,6 +312,7 @@
|
|||||||
isWxIosPay: true, //微信下是否显示支付功能
|
isWxIosPay: true, //微信下是否显示支付功能
|
||||||
userInfo:$cache_user.userInfo|| {},
|
userInfo:$cache_user.userInfo|| {},
|
||||||
isShowMoneyPay: true,
|
isShowMoneyPay: true,
|
||||||
|
isAndroid: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@@ -315,10 +326,10 @@
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
||||||
const systemInfo = uni.getSystemInfoSync();
|
if ( uni.getSystemInfoSync().platform == 'android' ) {
|
||||||
const isIOS = /iOS/.test(systemInfo.platform);
|
// #ifdef H5
|
||||||
if (isIOS) {
|
this.isAndroid= true
|
||||||
this.isBack = true
|
// #endif
|
||||||
}
|
}
|
||||||
this.isWxIosPay = uni.getStorageSync('isWxIosPay')
|
this.isWxIosPay = uni.getStorageSync('isWxIosPay')
|
||||||
this.kmPaySel = this.$queue.getData('kmPaySel');
|
this.kmPaySel = this.$queue.getData('kmPaySel');
|
||||||
|
|||||||
BIN
static/images/me/dd795d6bae0782ada7fafc8ee4b748e.png
Normal file
BIN
static/images/me/dd795d6bae0782ada7fafc8ee4b748e.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
BIN
static/images/me/xiazai.png
Normal file
BIN
static/images/me/xiazai.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
Reference in New Issue
Block a user