调整版本更新,修复鉴权显示bug,调整商品认证页面样式错误

This commit is contained in:
唐明明
2021-11-10 11:50:51 +08:00
parent 273386e99f
commit ea94e54d2b
6 changed files with 47 additions and 110 deletions

12
App.vue
View File

@@ -26,16 +26,16 @@
// 获取系统版本号 // 获取系统版本号
getVersions({ getVersions({
platform: plus.os.name, platform: plus.os.name,
version: plus.runtime.versionCode version : plus.runtime.versionCode
}).then(res => { }).then(res => {
if(res.update){ if(res.update){
uni.showModal({ uni.showModal({
title: "更新提示", title: "更新提示",
content: res.note || '版本更新信息', content: res.note || '版本更新信息',
confirmText: "更新", confirmText: "更新",
success: (res) => { success: modalRes => {
if (res.confirm) { if (modalRes.confirm) {
if (plus.os.name=="Android") { if (plus.os.name == "Android") {
plus.runtime.openURL(res.info.download); plus.runtime.openURL(res.info.download);
} else{ } else{
uni.showToast({ uni.showToast({
@@ -43,8 +43,8 @@
icon : 'none' icon : 'none'
}) })
} }
} }
} }
}) })
} }
}).catch(err => { }).catch(err => {

View File

@@ -2,8 +2,8 @@
"name" : "链商星球", "name" : "链商星球",
"appid" : "__UNI__1F65101", "appid" : "__UNI__1F65101",
"description" : "安徽星煌,链商星球商家工具", "description" : "安徽星煌,链商星球商家工具",
"versionName" : "1.1.3", "versionName" : "1.1.4",
"versionCode" : 113, "versionCode" : 114,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@@ -226,7 +226,7 @@
}, },
computed:{ computed:{
percentTotal(){ percentTotal(){
return this.percent * this.skus_price return (this.percent * this.skus_price).toFixed(2)
} }
}, },
beforeRouteLeave(to, from, next){ beforeRouteLeave(to, from, next){

View File

@@ -122,7 +122,7 @@
params: {}, // 上个页面携带过来的参数 params: {}, // 上个页面携带过来的参数
remark: '', // 备注 remark: '', // 备注
order_no: '', // 下单成功的id order_no: '', // 下单成功的id
selectTypeId: '2', // 微信支付2 E币支付1 selectTypeId: '2', // 微信支付2 支付宝支付3
coupon_price: '' // 代驾券显示金额,提货券显示什么呢 coupon_price: '' // 代驾券显示金额,提货券显示什么呢
}; };
}, },
@@ -192,105 +192,45 @@
apiUrl(data).then(res => { apiUrl(data).then(res => {
// 微信支付 // 微信支付
if (this.selectTypeId === '2') { if (this.selectTypeId === '2') {
if (typeof res === 'string') { let payInfo = JSON.parse(res)
let payInfo = JSON.parse(res) uni.requestPayment({
uni.requestPayment({ provider: "wxpay",
provider: "wxpay", orderInfo: payInfo,
orderInfo: payInfo, success: res => {
success: res => {
uni.showToast({
title: '支付成功',
duration: 3000,
mask: true,
icon: 'none'
})
setTimeout(() => {
uni.reLaunch({
url: '/pages/goods/payStatus?success=true'
})
this.canPay = true
}, 3000);
},
fail: (err) => {
console.log(err.errMsg)
uni.showToast({
title: '支付被取消',
duration: 3000,
mask: true,
icon: 'none'
})
// setTimeout(() => {
// uni.navigateTo({
// url: '/pages/goods/payStatus?success=false'
// })
// this.canPay = true
// }, 3000);
}
})
} else {
uni.showToast({
title: '创建订单成功',
duration: 3000,
mask: true,
icon: 'none'
})
setTimeout(() => {
this.canPay = true
uni.reLaunch({ uni.reLaunch({
url: '/pages/goods/payStatus?success=true' url: '/pages/goods/payStatus?success=true'
}) })
}, 3000); this.canPay = true
} },
fail: (err) => {
uni.showToast({
title: '支付被取消',
mask: true,
icon: 'none'
})
}
})
} }
// 支付宝支付 // 支付宝支付
else if (this.selectTypeId === '3') { else if (this.selectTypeId === '3') {
if (typeof res === 'string') { uni.requestPayment({
uni.requestPayment({ provider: "alipay",
provider: "alipay", orderInfo: res,
orderInfo: res, success: res => {
success: res => { uni.reLaunch({
uni.showToast({
title: '支付成功',
duration: 3000,
mask: true,
icon: 'none'
})
setTimeout(() => {
uni.reLaunch({
url: '/pages/goods/payStatus?success=true'
})
this.canPay = true
}, 3000);
},
fail: (err) => {
uni.showToast({
title: '支付被取消',
duration: 3000,
mask: true,
icon: 'none'
})
setTimeout(() => {
uni.navigateTo({
url: '/pages/goods/payStatus?success=false'
})
this.canPay = true
}, 3000);
}
})
} else {
uni.showToast({
title: '创建订单成功',
duration: 3000,
mask: true,
icon: 'none'
})
setTimeout(() => {
this.canPay = true
uni.navigateTo({
url: '/pages/goods/payStatus?success=true' url: '/pages/goods/payStatus?success=true'
}) })
}, 3000); this.canPay = true
} },
fail: (err) => {
uni.showToast({
title: '支付被取消',
duration: 3000,
mask: true,
icon: 'none'
})
}
})
} }
}).catch(err => { }).catch(err => {
uni.showToast({ uni.showToast({

View File

@@ -10,7 +10,6 @@
<!-- <view class="frozen" @click="withdrawDetail">提现记录</view> --> <!-- <view class="frozen" @click="withdrawDetail">提现记录</view> -->
</view> </view>
</view> </view>
<view class="withdrawing-content"> <view class="withdrawing-content">
<view class="item"> <view class="item">
<view style="flex: 1;"> <view style="flex: 1;">
@@ -24,7 +23,6 @@
</view> </view>
<view class="total" v-if="total"> {{total.toFixed(2)}} </view> <view class="total" v-if="total"> {{total.toFixed(2)}} </view>
<view class="btn" @click="actions">提现至现金红包</view> <view class="btn" @click="actions">提现至现金红包</view>
<view class="des">提现至红包可在红包中提现到银行卡 手续费: </view>
</view> </view>
</template> </template>

File diff suppressed because one or more lines are too long