|
|
@ -23,13 +23,13 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="width94 backcorfff mart10"> |
|
|
|
<view class="width94 backcorfff mart10"> |
|
|
|
<view class="width94 alijusstart height50 font14 fcor666"> |
|
|
|
<view class="width94 alijusstart height50 font14 fcor666"> |
|
|
|
<view class="width40 fcor333 fontwig6 font16" style="padding-left: 2%;">邀请码</view> |
|
|
|
<view class="width40 fcor333 fontwig6 font16" style="padding-left: 2%;">邀请码</view> |
|
|
|
<input class="width60 fotrt font15" v-model="identificationCode" placeholder="请输入邀请码" /> |
|
|
|
<input class="width60 fotrt font15" v-model="identificationCode" placeholder="请输入邀请码" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="width94 comorder mart10"> |
|
|
|
<view class="width94 comorder mart10"> |
|
|
|
<view class="height50 width100 backcorfff"> |
|
|
|
<view class="height50 width100 backcorfff"> |
|
|
@ -47,24 +47,26 @@ |
|
|
|
<radio :checked="paytype=='jinbi'" color="#0083f5" /> |
|
|
|
<radio :checked="paytype=='jinbi'" color="#0083f5" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> --> |
|
|
|
<view class="width94 line1 mart5 marb5"></view> |
|
|
|
<view class="width100" v-for="(item,index) in paytypeList" :key="index"> |
|
|
|
<view class="height50 width100 backcorfff" @tap="paytype='weixin'"> |
|
|
|
<view class="width94 line1 mart5 marb5" v-if="item == 2"></view> |
|
|
|
<view class="width50 flleft fcor333 font16" style="padding-left: 4%;"> |
|
|
|
<view class="height50 width100 backcorfff" @tap="paytype='2'" v-if="item == 2"> |
|
|
|
微信支付 |
|
|
|
<view class="width50 flleft fcor333 font16" style="padding-left: 4%;"> |
|
|
|
</view> |
|
|
|
微信支付 |
|
|
|
<view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun" |
|
|
|
</view> |
|
|
|
style="align-items: center;"> |
|
|
|
<view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun" |
|
|
|
<radio :checked="paytype=='weixin'" color="#0083f5" /> |
|
|
|
style="align-items: center;"> |
|
|
|
</view> |
|
|
|
<radio :checked="paytype=='2'" color="#0083f5" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width94 line1 mart5 marb5"></view> |
|
|
|
|
|
|
|
<view class="height50 width100 backcorfff" @tap="paytype='gonghuika'"> |
|
|
|
|
|
|
|
<view class="width70 flleft fcor333 font16 text1" style="padding-left: 4%;"> |
|
|
|
|
|
|
|
汇联通工会卡<text class="font14 fcor666 margle">可用余额: {{tongCardPrice}}元</text> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width20 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun" |
|
|
|
<view class="width94 line1 mart5 marb5" v-if="item == 3"></view> |
|
|
|
style="align-items: center;"> |
|
|
|
<view class="height50 width100 backcorfff" @tap="paytype='3'" v-if="item == 3"> |
|
|
|
<radio :checked="paytype=='gonghuika'" @click="changeRiado()" color="#0083f5" /> |
|
|
|
<view class="width70 flleft fcor333 font16 text1" style="padding-left: 4%;"> |
|
|
|
|
|
|
|
汇联通工会卡<text class="font14 fcor666 margle">可用余额: {{tongCardPrice}}元</text> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="width20 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun" |
|
|
|
|
|
|
|
style="align-items: center;"> |
|
|
|
|
|
|
|
<radio :checked="paytype=='3'" @click="changeRiado()" color="#0083f5" /> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -102,7 +104,8 @@ |
|
|
|
orderToGoldPay, |
|
|
|
orderToGoldPay, |
|
|
|
findUser, |
|
|
|
findUser, |
|
|
|
cardPay, |
|
|
|
cardPay, |
|
|
|
getHuiLianTongCardBalance |
|
|
|
getHuiLianTongCardBalance, |
|
|
|
|
|
|
|
getThirdPartyByDetail |
|
|
|
} from '../../Utils/Api.js'; |
|
|
|
} from '../../Utils/Api.js'; |
|
|
|
import ssPaymentPassword from '../../components/sanshui-payment-password' |
|
|
|
import ssPaymentPassword from '../../components/sanshui-payment-password' |
|
|
|
let app = getApp(); |
|
|
|
let app = getApp(); |
|
|
@ -125,23 +128,24 @@ |
|
|
|
radioStatus: true, |
|
|
|
radioStatus: true, |
|
|
|
memDiscountId: '', |
|
|
|
memDiscountId: '', |
|
|
|
user: '', |
|
|
|
user: '', |
|
|
|
paytype: '', |
|
|
|
paytype: '2', |
|
|
|
PaymentPassword: '', |
|
|
|
PaymentPassword: '', |
|
|
|
orderId: '', |
|
|
|
orderId: '', |
|
|
|
tongCardPrice: 0, |
|
|
|
tongCardPrice: 0, |
|
|
|
storeId: '', |
|
|
|
storeId: '', |
|
|
|
isDiscont: false, |
|
|
|
isDiscont: false, |
|
|
|
identificationCode: '' //渠道商 |
|
|
|
identificationCode: '', //渠道商 |
|
|
|
|
|
|
|
paytypeList: [] //支付方式 |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
onLoad(option) { |
|
|
|
this.couponId = option.id; |
|
|
|
this.couponId = option.id; |
|
|
|
// #ifdef H5 |
|
|
|
// #ifdef H5 |
|
|
|
this.identificationCode = app.globalData.staffCode; |
|
|
|
this.identificationCode = app.globalData.staffCode; |
|
|
|
// #endif |
|
|
|
// #endif |
|
|
|
// #ifdef MP |
|
|
|
// #ifdef MP |
|
|
|
this.identificationCode = app.globalData.identificationCode; |
|
|
|
this.identificationCode = app.globalData.identificationCode; |
|
|
|
// #endif |
|
|
|
// #endif |
|
|
|
this.getDiscountPackageDetail(); |
|
|
|
this.getDiscountPackageDetail(); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -149,7 +153,8 @@ |
|
|
|
let that = this; |
|
|
|
let that = this; |
|
|
|
that.paytype = ''; |
|
|
|
that.paytype = ''; |
|
|
|
that.user = app.globalData.userInfo; |
|
|
|
that.user = app.globalData.userInfo; |
|
|
|
that.findUser(); |
|
|
|
that.findUser(); |
|
|
|
|
|
|
|
that.getThirdPartyByDetail(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
onHide() { |
|
|
|
onHide() { |
|
|
|
|
|
|
|
|
|
|
@ -179,15 +184,35 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
//查询支付方式 |
|
|
|
|
|
|
|
getThirdPartyByDetail() { |
|
|
|
|
|
|
|
// #ifdef H5 |
|
|
|
|
|
|
|
this.showType = 2; |
|
|
|
|
|
|
|
// #endif |
|
|
|
|
|
|
|
// #ifdef MP |
|
|
|
|
|
|
|
this.showType = 1; |
|
|
|
|
|
|
|
// #endif |
|
|
|
|
|
|
|
let datas = { |
|
|
|
|
|
|
|
platformId: this.showType, |
|
|
|
|
|
|
|
"companyId": app.globalData.companyId, |
|
|
|
|
|
|
|
productType: 7 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
getThirdPartyByDetail(datas).then(res => { |
|
|
|
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
|
|
|
this.paytypeList = res.return_data.productPayType.split(','); |
|
|
|
|
|
|
|
this.paytypeList = this.paytypeList.slice(0, this.paytypeList.length - 1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
//查询积分 |
|
|
|
//查询积分 |
|
|
|
findUser() { |
|
|
|
findUser() { |
|
|
|
let params; |
|
|
|
let params; |
|
|
|
findUser(params).then(res => { |
|
|
|
findUser(params).then(res => { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
app.globalData.userInfo = res.return_data; |
|
|
|
app.globalData.userInfo = res.return_data; |
|
|
|
this.user = res.return_data; |
|
|
|
this.user = res.return_data; |
|
|
|
if(res.return_data.hltCardNo != undefined){ |
|
|
|
if (res.return_data.hltCardNo != undefined) { |
|
|
|
this.getHuiLianTongCardBalance(); |
|
|
|
this.getHuiLianTongCardBalance(); |
|
|
|
} |
|
|
|
} |
|
|
|
uni.setStorage({ |
|
|
|
uni.setStorage({ |
|
|
|
key: "user", |
|
|
|
key: "user", |
|
|
@ -333,7 +358,7 @@ |
|
|
|
//获取订单数据 |
|
|
|
//获取订单数据 |
|
|
|
wechatPay(item) { |
|
|
|
wechatPay(item) { |
|
|
|
let that = this; |
|
|
|
let that = this; |
|
|
|
if (that.paytype == 'weixin') { |
|
|
|
if (that.paytype == '2') { |
|
|
|
// #ifdef H5 |
|
|
|
// #ifdef H5 |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
"orderNo": item.orderNo, |
|
|
|
"orderNo": item.orderNo, |
|
|
@ -392,7 +417,7 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else if (that.paytype == 'gonghuika') { |
|
|
|
} else if (that.paytype == '3') { |
|
|
|
if (that.tongCardPrice < that.paytheprice) { |
|
|
|
if (that.tongCardPrice < that.paytheprice) { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
icon: 'none', |
|
|
|
icon: 'none', |
|
|
@ -444,7 +469,7 @@ |
|
|
|
uni.showLoading({ |
|
|
|
uni.showLoading({ |
|
|
|
title: '支付中...' |
|
|
|
title: '支付中...' |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
"orderNo": this.orderId, |
|
|
|
"orderNo": this.orderId, |
|
|
|
"cardNo": this.user.hltCardNo.cardNo, |
|
|
|
"cardNo": this.user.hltCardNo.cardNo, |
|
|
|