调整版本更新,修复鉴权显示bug,调整商品认证页面样式错误
This commit is contained in:
4
App.vue
4
App.vue
@@ -33,8 +33,8 @@
|
||||
title: "更新提示",
|
||||
content: res.note || '版本更新信息',
|
||||
confirmText: "更新",
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
success: modalRes => {
|
||||
if (modalRes.confirm) {
|
||||
if (plus.os.name == "Android") {
|
||||
plus.runtime.openURL(res.info.download);
|
||||
} else{
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"name" : "链商星球",
|
||||
"appid" : "__UNI__1F65101",
|
||||
"description" : "安徽星煌,链商星球商家工具",
|
||||
"versionName" : "1.1.3",
|
||||
"versionCode" : 113,
|
||||
"versionName" : "1.1.4",
|
||||
"versionCode" : 114,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
|
||||
@@ -226,7 +226,7 @@
|
||||
},
|
||||
computed:{
|
||||
percentTotal(){
|
||||
return this.percent * this.skus_price
|
||||
return (this.percent * this.skus_price).toFixed(2)
|
||||
}
|
||||
},
|
||||
beforeRouteLeave(to, from, next){
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
params: {}, // 上个页面携带过来的参数
|
||||
remark: '', // 备注
|
||||
order_no: '', // 下单成功的id
|
||||
selectTypeId: '2', // 微信支付2 E币支付1
|
||||
selectTypeId: '2', // 微信支付2 支付宝支付3
|
||||
coupon_price: '' // 代驾券显示金额,提货券显示什么呢
|
||||
};
|
||||
},
|
||||
@@ -192,75 +192,35 @@
|
||||
apiUrl(data).then(res => {
|
||||
// 微信支付
|
||||
if (this.selectTypeId === '2') {
|
||||
if (typeof res === 'string') {
|
||||
let payInfo = JSON.parse(res)
|
||||
uni.requestPayment({
|
||||
provider: "wxpay",
|
||||
orderInfo: payInfo,
|
||||
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({
|
||||
url: '/pages/goods/payStatus?success=true'
|
||||
})
|
||||
}, 3000);
|
||||
}
|
||||
}
|
||||
// 支付宝支付
|
||||
else if (this.selectTypeId === '3') {
|
||||
if (typeof res === 'string') {
|
||||
uni.requestPayment({
|
||||
provider: "alipay",
|
||||
orderInfo: 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) => {
|
||||
uni.showToast({
|
||||
@@ -269,28 +229,8 @@
|
||||
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'
|
||||
})
|
||||
}, 3000);
|
||||
}
|
||||
}
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
<!-- <view class="frozen" @click="withdrawDetail">提现记录</view> -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="withdrawing-content">
|
||||
<view class="item">
|
||||
<view style="flex: 1;">
|
||||
@@ -24,7 +23,6 @@
|
||||
</view>
|
||||
<view class="total" v-if="total">≈ ¥{{total.toFixed(2)}} </view>
|
||||
<view class="btn" @click="actions">提现至现金红包</view>
|
||||
<view class="des">提现至红包,可在红包中提现到银行卡 手续费: 无</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
13
unpackage/dist/dev/app-plus/app-service.js
vendored
13
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user