|
|
|
@ -27,7 +27,7 @@ |
|
|
|
|
<radio :checked="paytype=='3'" @click="changeRiado()" color="#0083f5" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view class="row" @tap="paytype='oilcard'"> |
|
|
|
|
<view class="row" @tap="paytype='6'" v-if="item == 6"> |
|
|
|
|
<view class="left"> |
|
|
|
|
<image :src="imagewxUrl+imgadres1"></image> |
|
|
|
|
</view> |
|
|
|
@ -35,9 +35,9 @@ |
|
|
|
|
油卡支付(余额:{{oilPirce}}元) |
|
|
|
|
</view> |
|
|
|
|
<view class="right"> |
|
|
|
|
<radio :checked="paytype=='oilcard'" @click="changeRiado1()" color="#0083f5" /> |
|
|
|
|
<radio :checked="paytype=='6'" @click="changeRiado1()" color="#0083f5" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> --> |
|
|
|
|
<view class="row" @tap="paytype='4'" v-if="item == 4"> |
|
|
|
|
<view class="left"> |
|
|
|
|
<image src="../../static/img/unionpay.png"></image> |
|
|
|
@ -68,10 +68,9 @@ |
|
|
|
|
<script> |
|
|
|
|
import { |
|
|
|
|
getHuiLianTongCardBalance, |
|
|
|
|
oilCardPay, |
|
|
|
|
findUser, |
|
|
|
|
qianzhuorderToUnionPay, |
|
|
|
|
czhltUnionCardPay, |
|
|
|
|
unionPay, |
|
|
|
|
cardPay, |
|
|
|
|
getThirdPartyByDetail |
|
|
|
|
} from '../../Utils/Api.js' |
|
|
|
|
import ssPaymentPassword from '@/components/sanshui-payment-password/index.vue'; |
|
|
|
@ -95,7 +94,7 @@ |
|
|
|
|
oilPirce: 0, //油卡金额 |
|
|
|
|
showType: 3, //支付方式 |
|
|
|
|
paytypeList: [], //支付选择 |
|
|
|
|
productType: '' //分类 星巴克 ,肯德基 |
|
|
|
|
productType: '' ,//分类 星巴克 ,肯德基 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
onLoad(e) { |
|
|
|
@ -119,8 +118,9 @@ |
|
|
|
|
|
|
|
|
|
let datas = { |
|
|
|
|
platformId: this.showType, |
|
|
|
|
regionId: app.globalData.cityId, |
|
|
|
|
productType: this.productType |
|
|
|
|
"companyId": app.globalData.companyId, |
|
|
|
|
productType: this.productType, |
|
|
|
|
productId: this.goodsid, |
|
|
|
|
} |
|
|
|
|
getThirdPartyByDetail(datas).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
@ -203,9 +203,9 @@ |
|
|
|
|
let that = this; |
|
|
|
|
if (that.paytype == '4') { |
|
|
|
|
let params = { |
|
|
|
|
"orderId": that.orderNo |
|
|
|
|
"orderNo": that.orderNo |
|
|
|
|
} |
|
|
|
|
qianzhuorderToUnionPay(params).then(res => { |
|
|
|
|
unionPay(params).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
that.uniontopay(res.return_data.prepayid); |
|
|
|
|
} else { |
|
|
|
@ -247,7 +247,7 @@ |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
that.$refs.paymentPassword.modalFun('show'); |
|
|
|
|
} else if (that.paytype == 'oilcard') { |
|
|
|
|
} else if (that.paytype == '6') { |
|
|
|
|
if (!that.user.isSetPayPwd) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/login/updatePas/updatePas' |
|
|
|
@ -288,9 +288,15 @@ |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '支付成功' |
|
|
|
|
}) |
|
|
|
|
if (that.productType == 1 || that.productType == 2 || that.productType == 3) { |
|
|
|
|
uni.reLaunch({ |
|
|
|
|
url: '/qianzhu-KFC/order-details/order-details?id=' + that.orderNo |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
uni.reLaunch({ |
|
|
|
|
url: '/pages/user/order_details/order_details?id=' + that.orderNo |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
fail: function(err) { |
|
|
|
|
uni.showToast({ |
|
|
|
@ -308,51 +314,35 @@ |
|
|
|
|
uni.showLoading({ |
|
|
|
|
title: '支付中...' |
|
|
|
|
}) |
|
|
|
|
if (this.paytype == '3') { |
|
|
|
|
let params = { |
|
|
|
|
"orderId": this.orderNo, |
|
|
|
|
"cardNo": this.user.hltCardNo.cardNo, |
|
|
|
|
"password": this.PaymentPassword |
|
|
|
|
} |
|
|
|
|
czhltUnionCardPay(params).then(res => { |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '支付成功' |
|
|
|
|
}) |
|
|
|
|
uni.reLaunch({ |
|
|
|
|
url: '/qianzhu-KFC/order-details/order-details?id=' + this.orderNo |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (res.return_code == '102130') { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/login/updatePas/updatePas' |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
if (this.paytype == '3' || this.paytype == '6') { |
|
|
|
|
let cardNo; |
|
|
|
|
if (this.paytype == 3) { |
|
|
|
|
cardNo = this.user.hltCardNo.cardNo; |
|
|
|
|
} |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: res.return_msg, |
|
|
|
|
icon: 'none' |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
if (this.paytype == 6) { |
|
|
|
|
cardNo = this.user.oilCard.cardNo; |
|
|
|
|
} |
|
|
|
|
if (this.paytype == 'oilcard') { |
|
|
|
|
let params = { |
|
|
|
|
"orderId": this.orderNo, |
|
|
|
|
"cardNo": this.user.oilCard.cardNo, |
|
|
|
|
"password": this.PaymentPassword |
|
|
|
|
"orderNo": this.orderNo, |
|
|
|
|
"cardNo": cardNo, |
|
|
|
|
"password": this.PaymentPassword, |
|
|
|
|
"carLicensePlate": this.cardNoNumber |
|
|
|
|
} |
|
|
|
|
oilCardPay(params).then(res => { |
|
|
|
|
cardPay(params).then(res => { |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '支付成功' |
|
|
|
|
}) |
|
|
|
|
if (this.productType == 1 || this.productType == 2 || this.productType == 3) { |
|
|
|
|
uni.reLaunch({ |
|
|
|
|
url: '/qianzhu-KFC/order-details/order-details?id=' + this.orderNo |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
uni.reLaunch({ |
|
|
|
|
url: '/pages/user/order_details/order_details?id=' + this.orderNo |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (res.return_code == '102130') { |
|
|
|
|