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