增加积分兑换与余额支付密码

This commit is contained in:
yangtao 2024-04-12 10:38:56 +08:00
parent 6166f3aacd
commit cd3ab2e645
4 changed files with 15 additions and 7 deletions

View File

@ -23,6 +23,7 @@
store_user_min_recharge: 0, // store_user_min_recharge: 0, //
yue_pay_status: 0, // yue_pay_status: 0, //
alipay_open: 0, // alipay_open: 0, //
integration_pay_open:0,//
routine_logo: '', //logo routine_logo: '', //logo
share_pic: '', share_pic: '',
site_logo: '', site_logo: '',
@ -180,6 +181,7 @@
this.globalData.site_name = res.data.site_name this.globalData.site_name = res.data.site_name
this.globalData.store_user_min_recharge = res.data.store_user_min_recharge this.globalData.store_user_min_recharge = res.data.store_user_min_recharge
this.globalData.yue_pay_status = res.data.yue_pay_status this.globalData.yue_pay_status = res.data.yue_pay_status
this.globalData.integration_pay_open=res.data.integration_pay_open
this.globalData.sys_intention_agree = res.data.sys_intention_agree this.globalData.sys_intention_agree = res.data.sys_intention_agree
this.globalData.mer_intention_open = res.data.mer_intention_open this.globalData.mer_intention_open = res.data.mer_intention_open
this.globalData.alipay_open = res.data.alipay_open this.globalData.alipay_open = res.data.alipay_open

View File

@ -79,7 +79,7 @@
this.password += num; this.password += num;
} }
if (this.password.length == 6) { if (this.password.length == 6) {
this.$emit('pay',{password:this.password}) this.$emit('payFunc',{password:this.password})
this.password = ""; this.password = "";
// uni.showModal({ // uni.showModal({
// title:'', // title:'',

View File

@ -460,7 +460,7 @@
<checkDelivery :deliveryName="deliveryName" :isShowBox="isShowBox" :activeObj="activeObj" :radioList="radioList" @close="boxClose" @confirmBtn="getData"> <checkDelivery :deliveryName="deliveryName" :isShowBox="isShowBox" :activeObj="activeObj" :radioList="radioList" @close="boxClose" @confirmBtn="getData">
</checkDelivery> </checkDelivery>
</block> </block>
<pay :show_key="payShow" :price="299" :show_subTitle="true" :mix="true" @payFunc="pay"></pay> <pay :show_key="payShow" :price="totalPrice" :show_subTitle="true" :mix="true" @payFunc="payFunc"></pay>
<!--优惠明细弹窗--> <!--优惠明细弹窗-->
<discountDetails :isShowDiscount="isShowDiscount" @close="closeDiscount" :couponData="couponData"></discountDetails> <discountDetails :isShowDiscount="isShowDiscount" @close="closeDiscount" :couponData="couponData"></discountDetails>
<timeranges :isShow='isShow' :time='timeranges' @confrim="confrim" @cancel="cancels"></timeranges> <timeranges :isShow='isShow' :time='timeranges' @confrim="confrim" @cancel="cancels"></timeranges>
@ -567,7 +567,7 @@
"icon": "haiyuefont haiyue-jifenduihuan", "icon": "haiyuefont haiyue-jifenduihuan",
value: 'integral', value: 'integral',
title: '可用积分:', title: '可用积分:',
payStatus: this.$store.getters.globalData.yue_pay_status, payStatus: this.$store.getters.globalData.integration_pay_open,
}, },
{ {
"name": "线下支付", "name": "线下支付",
@ -768,10 +768,12 @@
that.invoice.invoice = false that.invoice.invoice = false
}, },
methods: { methods: {
pay(val){ payFunc(val){
let data1=this.payInfo; let data1=this.payInfo;
if(data1.balance_vert){
this.$delete(data1,'balance_vert')
}
data1.password=val.password; data1.password=val.password;
console.log('val.password: ',val.password);
this.payment(data1); this.payment(data1);
}, },
/*预售协议*/ /*预售协议*/
@ -1275,6 +1277,7 @@
let that = this; let that = this;
if(!data.password){ if(!data.password){
data.balance_vert=1; data.balance_vert=1;
this.payInfo=data;
} }
createOrder(data).then(res => { createOrder(data).then(res => {
let status = res.data.status, let status = res.data.status,
@ -1285,7 +1288,6 @@
that.orderPay = true; that.orderPay = true;
uni.hideLoading(); uni.hideLoading();
console.log('status: ',status);
switch (status) { switch (status) {
case 'ORDER_EXIST': case 'ORDER_EXIST':
case 'EXTEND_ORDER': case 'EXTEND_ORDER':
@ -1299,6 +1301,7 @@
}); });
break; break;
case 'success': case 'success':
that.payShow=false;
return that.$util.Tips({ return that.$util.Tips({
title: res.message, title: res.message,
icon: 'success' icon: 'success'
@ -1307,6 +1310,9 @@
url: goPages url: goPages
}); });
break; break;
case 'continue':
that.payShow=true;
break;
case 'alipay': case 'alipay':
case "alipayQr": case "alipayQr":
uni.navigateTo({ uni.navigateTo({

View File

@ -76,7 +76,7 @@
</view> </view>
</view> </view>
</view> </view>
<pay :show_key="payShow" :show_subTitle="false" :mix="true" @pay="payFunc" @closeFuc="closeFunc"></pay> <pay :show_key="payShow" :show_subTitle="false" :mix="true" @payFunc="payFunc" @closeFuc="closeFunc"></pay>
</view> </view>
</template> </template>