|
@@ -54,7 +54,7 @@
|
|
<u-image mode="scaleToFill" width="40rpx" height="40rpx" src="/static/ledou.png"></u-image>
|
|
<u-image mode="scaleToFill" width="40rpx" height="40rpx" src="/static/ledou.png"></u-image>
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>
|
|
- <u-button size="mini" :loading="btnLoading" :custom-style="toOrderButton" type="error" @click="toSaveOrder">确认支付</u-button>
|
|
|
|
|
|
+ <u-button size="mini" :loading="btnLoading" :custom-style="toOrderButton" type="success" @click="toSaveOrder">确认支付</u-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 提示用户设置支付密码 -->
|
|
<!-- 提示用户设置支付密码 -->
|
|
@@ -85,15 +85,17 @@
|
|
<u-image mode="scaleToFill" width="40rpx" height="40rpx" src="/static/ledou.png"></u-image>
|
|
<u-image mode="scaleToFill" width="40rpx" height="40rpx" src="/static/ledou.png"></u-image>
|
|
</view>
|
|
</view>
|
|
<view class="footer">
|
|
<view class="footer">
|
|
- <input v-model="password"
|
|
|
|
|
|
+ <input
|
|
|
|
+ v-model="password"
|
|
maxlength="30"
|
|
maxlength="30"
|
|
|
|
+ :focus="focus"
|
|
style="text-align: center;"
|
|
style="text-align: center;"
|
|
type="password"
|
|
type="password"
|
|
@confirm="toPay"
|
|
@confirm="toPay"
|
|
placeholder="请输入支付密码" />
|
|
placeholder="请输入支付密码" />
|
|
</view>
|
|
</view>
|
|
<view class="fot-btn">
|
|
<view class="fot-btn">
|
|
- <u-button :loading="payBtn" @click="toPay" type="error" >确认支付</u-button>
|
|
|
|
|
|
+ <u-button :loading="payBtn" @click="toPay" type="success" >确认支付</u-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</u-popup>
|
|
</u-popup>
|
|
@@ -124,7 +126,8 @@
|
|
showInputPsw: false, // 打开输入密码弹窗
|
|
showInputPsw: false, // 打开输入密码弹窗
|
|
showLeavePsw: false, // 打开确定放弃弹窗
|
|
showLeavePsw: false, // 打开确定放弃弹窗
|
|
payBtn: false,
|
|
payBtn: false,
|
|
- orderForm: '' // 商品下单来源,商品详情或购物车
|
|
|
|
|
|
+ orderForm: '', // 商品下单来源,商品详情或购物车
|
|
|
|
+ focus: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
@@ -182,6 +185,9 @@
|
|
setPsw (e) {
|
|
setPsw (e) {
|
|
if (e.success) {
|
|
if (e.success) {
|
|
this.showInputPsw = true
|
|
this.showInputPsw = true
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ this.focus = true
|
|
|
|
+ },300)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//确认放弃
|
|
//确认放弃
|
|
@@ -198,6 +204,9 @@
|
|
payAgain () {
|
|
payAgain () {
|
|
this.showLeavePsw = false
|
|
this.showLeavePsw = false
|
|
this.showInputPsw = true
|
|
this.showInputPsw = true
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ this.focus = true
|
|
|
|
+ },300)
|
|
},
|
|
},
|
|
// 支付 校验用户是否设置过支付密码
|
|
// 支付 校验用户是否设置过支付密码
|
|
toCheckPwd(){
|
|
toCheckPwd(){
|
|
@@ -208,6 +217,9 @@
|
|
// 设置过支付密码,输入密码
|
|
// 设置过支付密码,输入密码
|
|
if(res.data) {
|
|
if(res.data) {
|
|
this.showInputPsw = true
|
|
this.showInputPsw = true
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ this.focus = true
|
|
|
|
+ },300)
|
|
} else {
|
|
} else {
|
|
// 没设置过支付密码,提示设置密码
|
|
// 没设置过支付密码,提示设置密码
|
|
this.showSetPswModal = true
|
|
this.showSetPswModal = true
|
|
@@ -243,7 +255,8 @@
|
|
receiverName: this.userInfo.receiverName,
|
|
receiverName: this.userInfo.receiverName,
|
|
receiverPhone: this.userInfo.receiverPhone,
|
|
receiverPhone: this.userInfo.receiverPhone,
|
|
orderGoodsList: orderGoodsList,
|
|
orderGoodsList: orderGoodsList,
|
|
- orderForm: this.orderForm
|
|
|
|
|
|
+ orderForm: this.orderForm,
|
|
|
|
+ payGold: this.totalPrice
|
|
}
|
|
}
|
|
saveOrder(params).then(res=>{
|
|
saveOrder(params).then(res=>{
|
|
console.log(res,'rrrrrrr')
|
|
console.log(res,'rrrrrrr')
|