|
|
|
@ -78,10 +78,11 @@ |
|
|
|
|
</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 class="width100 backcorfff mart10"> |
|
|
|
|
<view class="width96 alijusstart height50 font14 fcor666"> |
|
|
|
|
<view class="width40 fcor333 fontwig6 font16">邀请码</view> |
|
|
|
|
<input class="width60 fotrt font15" style="padding-right: 6%;" v-model="identificationCode" |
|
|
|
|
placeholder="请输入邀请码" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
@ -150,37 +151,37 @@ |
|
|
|
|
<!-- //支付方式 --> |
|
|
|
|
<view class="mart10 heightl60 paddleft10 fcor333 fontwig6 font18 width100 backcorfff">支付方式:</view> |
|
|
|
|
<view class="line1"></view> |
|
|
|
|
<view class="width100 backcorfff"> |
|
|
|
|
<view class="width100 backcorfff" v-for="(item,index) in paytypeList" :key="index"> |
|
|
|
|
|
|
|
|
|
<view class="line1"></view> |
|
|
|
|
<view class="heightl60 paddleft10 fcor666 width100 backcorfff" @tap="paytype='weixin'"> |
|
|
|
|
<view class="line1" v-if="item == 4"></view> |
|
|
|
|
<view class="heightl60 paddleft10 fcor666 width100 backcorfff" v-if="item == 4" @tap="paytype='4'"> |
|
|
|
|
<view class="width60 flleft font14"> |
|
|
|
|
银联支付 |
|
|
|
|
</view> |
|
|
|
|
<view class="flright width30 fotct" v-if="isUse"> |
|
|
|
|
<radio :checked="paytype=='weixin'" color="#0083f5" /> |
|
|
|
|
<radio :checked="paytype=='4'" color="#0083f5" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="line1"></view> |
|
|
|
|
<view class="heightl60 paddleft10 fcor666 width100 backcorfff" @tap="paytype='oilcard'"> |
|
|
|
|
<view class="line1" v-if="item == 6"></view> |
|
|
|
|
<view class="heightl60 paddleft10 fcor666 width100 backcorfff" v-if="item == 6" @tap="paytype='6'"> |
|
|
|
|
<view class="width60 flleft font14"> |
|
|
|
|
油卡支付<text class="font14 fcor666 margle">余额: {{oilPirce}}元</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="flright width30 fotct" v-if="isUse"> |
|
|
|
|
<radio :checked="paytype=='oilcard'" @click="changeRiado()" color="#0083f5" /> |
|
|
|
|
<radio :checked="paytype=='6'" color="#0083f5" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<!-- <view class="line1"></view> |
|
|
|
|
<view class="heightl60 paddleft10 fcor666 width100 backcorfff" @tap="paytype='gonghuika'"> |
|
|
|
|
<view class="width60 flleft fontwig6"> |
|
|
|
|
<view class="line1" v-if="item == 3"></view> |
|
|
|
|
<view class="heightl60 paddleft10 fcor666 width100 backcorfff" v-if="item == 3" @tap="paytype='3'"> |
|
|
|
|
<view class="width60 flleft font14"> |
|
|
|
|
汇联通工会卡<text class="font14 fcor666 margle">余额: {{tongCardPrice}}元</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="flright width30 fotct"> |
|
|
|
|
<radio :checked="paytype=='gonghuika'" @click="changeRiado()" color="#0083f5" /> |
|
|
|
|
<view class="flright width30 fotct" v-if="isUse"> |
|
|
|
|
<radio :checked="paytype=='3'" @click="changeRiado()" color="#0083f5" /> |
|
|
|
|
</view> |
|
|
|
|
</view> --> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="width100 mart15 fcor333 font16 fontwig6 paddleft10">重要说明</view> |
|
|
|
@ -202,25 +203,23 @@ |
|
|
|
|
<wybPopup ref="popup" type="bottom" width="500" :scrollY="true" radius="6" :showCloseIcon="true"> |
|
|
|
|
<view class="fotct font18 fontwig6 fcor333 mart10 height30">优惠券选择</view> |
|
|
|
|
<view class="width92 height110 tccs mart10 alijus" v-for="(items, index) in OrderPreList" :key="index" |
|
|
|
|
@click="radioChanges(items.highDiscount,items)"> |
|
|
|
|
<image mode="widthFix" :src="imageUrl+items.highDiscount.discountImg"></image> |
|
|
|
|
@click="radioChanges(items,items)"> |
|
|
|
|
<image mode="widthFix" :src="imageUrl+items.discountImg"></image> |
|
|
|
|
<view class="alijus width60 margle10"> |
|
|
|
|
<view class="width80p"> |
|
|
|
|
<view class="font16 fontwig6 fcor333 text1">{{items.highDiscount.discountName}}</view> |
|
|
|
|
<view class="font16 fontwig6 fcor333 text1">{{items.discountName}}</view> |
|
|
|
|
<view class="font13 fcor999 mart5"> |
|
|
|
|
有效期:{{items.highDiscount.salesEndTime | timeFormat('yyyy-mm-dd hh:mm:ss')}} |
|
|
|
|
有效期:{{items.useEndTime | timeFormat('yyyy-mm-dd hh:mm:ss')}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width20 fotrt"> |
|
|
|
|
<view> |
|
|
|
|
<radio |
|
|
|
|
v-if="items.highDiscount.discountCondition && orderPrice >= items.highDiscount.discountCondition" |
|
|
|
|
<radio v-if="items.discountCondition && orderPrice >= items.discountCondition" |
|
|
|
|
color="#c72a20" :checked="items.id == memDiscountId" /> |
|
|
|
|
<radio |
|
|
|
|
v-if="items.highDiscount.discountCondition && orderPrice < items.highDiscount.discountCondition" |
|
|
|
|
<radio v-if="items.discountCondition && orderPrice < items.discountCondition" |
|
|
|
|
color="#c72a20" disabled="true" :checked="items.id == memDiscountId" /> |
|
|
|
|
|
|
|
|
|
<radio v-if="!items.highDiscount.discountCondition" color="#c72a20" |
|
|
|
|
<radio v-if="!items.discountCondition" color="#c72a20" |
|
|
|
|
:checked="items.id == memDiscountId" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -234,19 +233,17 @@ |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { |
|
|
|
|
orderToPay, |
|
|
|
|
getHuiLianTongCardBalance, |
|
|
|
|
hltUnionCardPay, |
|
|
|
|
orderToGoldPay, |
|
|
|
|
cardPay, |
|
|
|
|
findUser, |
|
|
|
|
oilCardPay, |
|
|
|
|
getUserOrderPreList, |
|
|
|
|
canUseDiscount, |
|
|
|
|
addOrder, |
|
|
|
|
cancelOrder, |
|
|
|
|
create, |
|
|
|
|
cancel, |
|
|
|
|
unionPay, |
|
|
|
|
oilPriceDiscountCompute, |
|
|
|
|
getRebateIntegral |
|
|
|
|
getRebateIntegral, |
|
|
|
|
getThirdPartyByDetail |
|
|
|
|
} from '../../../Utils/Api.js'; |
|
|
|
|
import ssPaymentPassword from '../../../components/sanshui-payment-password/index.vue'; |
|
|
|
|
import wybPopup from '../../../components/wyb-popup/wyb-popup.vue'; |
|
|
|
@ -267,10 +264,8 @@ |
|
|
|
|
imageUrl: app.globalData.imgUrl, |
|
|
|
|
oilPirce: 0, //油卡余额 |
|
|
|
|
user: '', |
|
|
|
|
paytype: 'weixin', |
|
|
|
|
paytype: '4', |
|
|
|
|
PaymentPassword: '', |
|
|
|
|
// timedeductionPrice: '0', //本次优惠金额 |
|
|
|
|
|
|
|
|
|
orderPrice: '', //原价 |
|
|
|
|
deductionPrice: '0.00', //优惠金额 |
|
|
|
|
OrderPreList: [], //优惠券数据 |
|
|
|
@ -282,8 +277,9 @@ |
|
|
|
|
availIntegal: 0, // 可用积分 |
|
|
|
|
gasOrderList: '', //存的订单信息 |
|
|
|
|
rebateIntegral: '', //返回积分 |
|
|
|
|
Integrastu: 1 ,//返积分状态 |
|
|
|
|
Integrastu: 1, //返积分状态 |
|
|
|
|
identificationCode: '', //渠道商 |
|
|
|
|
paytypeList: [], //支付方式 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad(e) { |
|
|
|
@ -298,10 +294,34 @@ |
|
|
|
|
}, |
|
|
|
|
onShow() { |
|
|
|
|
let that = this; |
|
|
|
|
// that.paytype = ''; |
|
|
|
|
that.findUser(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
//查询支付方式 |
|
|
|
|
getThirdPartyByDetail() { |
|
|
|
|
let datas = { |
|
|
|
|
platformId: 3, |
|
|
|
|
"companyId": app.globalData.companyId, |
|
|
|
|
productType: 6 |
|
|
|
|
} |
|
|
|
|
getThirdPartyByDetail(datas).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
this.rechargeDes = res.return_data; |
|
|
|
|
this.paytypeList = res.return_data.productPayType.split(','); |
|
|
|
|
this.paytypeList = this.paytypeList.slice(0, this.paytypeList.length - 1); |
|
|
|
|
let zkprice = parseFloat(res.return_data.integralDiscount / 100).toFixed(2); |
|
|
|
|
let pprice = parseFloat(this.payPrice * 100).toFixed(0) |
|
|
|
|
let payprice = parseFloat(this.payPrice * 100 * zkprice).toFixed( |
|
|
|
|
0); |
|
|
|
|
if (payprice > this.user.gold) { |
|
|
|
|
this.availIntegal = this.user.gold; |
|
|
|
|
} else { |
|
|
|
|
this.availIntegal = payprice; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
//查询我的资料 |
|
|
|
|
findUser() { |
|
|
|
|
let params; |
|
|
|
|
findUser(params).then(res => { |
|
|
|
@ -312,6 +332,9 @@ |
|
|
|
|
this.oilPirce = res.return_data.oilCard.amount; |
|
|
|
|
} |
|
|
|
|
this.canUseDiscount(); |
|
|
|
|
if (this.user.isSetHltCard) { |
|
|
|
|
this.getHuiLianTongCardBalance(); |
|
|
|
|
} |
|
|
|
|
this.oilPriceDiscountCompute(); |
|
|
|
|
uni.setStorage({ |
|
|
|
|
key: "user", |
|
|
|
@ -363,14 +386,9 @@ |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
this.orderList = res.return_data; |
|
|
|
|
this.payPrice = res.return_data.payPrice; |
|
|
|
|
let payprice = parseFloat(this.payPrice * 100).toFixed( |
|
|
|
|
0); |
|
|
|
|
if (payprice > this.user.gold) { |
|
|
|
|
this.availIntegal = this.user.gold; |
|
|
|
|
} else { |
|
|
|
|
this.availIntegal = payprice; |
|
|
|
|
} |
|
|
|
|
this.getRebateIntegral(); |
|
|
|
|
this.getThirdPartyByDetail(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
@ -502,24 +520,20 @@ |
|
|
|
|
}) |
|
|
|
|
if (this.payPrice == 0 && !this.orderNo) { |
|
|
|
|
let goods = { |
|
|
|
|
"identificationCode": this.gasOrderList.identificationCode, |
|
|
|
|
"promoteCode":this.identificationCode, |
|
|
|
|
"payGold": this.priceValue[1], |
|
|
|
|
"memDiscountId": this.memDiscountId, |
|
|
|
|
"payPwd": this.PaymentPassword, |
|
|
|
|
"highChildOrderList": [{ |
|
|
|
|
"goodsType": this.gasOrderList.highChildOrderList[0].goodsType, |
|
|
|
|
"goodsId": this.gasOrderList.highChildOrderList[0].goodsId, |
|
|
|
|
"saleCount": 1, |
|
|
|
|
"goodsPrice": this.gasOrderList.highChildOrderList[0].goodsPrice, |
|
|
|
|
"childOrderList": [{ |
|
|
|
|
"gasGunNo": this.gasOrderList.highChildOrderList[0].gasGunNo, |
|
|
|
|
"gasOilNo": this.gasOrderList.highChildOrderList[0].gasOilNo, |
|
|
|
|
"gasOilType": this.gasOrderList.highChildOrderList[0].gasOilType, |
|
|
|
|
"gasPriceGun": this.gasOrderList.highChildOrderList[0].gasPriceGun, |
|
|
|
|
"gasPriceVip": this.gasOrderList.highChildOrderList[0].gasPriceVip, |
|
|
|
|
}] |
|
|
|
|
"isTyAgent": this.gasOrderList.isTyAgent, |
|
|
|
|
"goodsId": this.gasOrderList.highChildOrderList[0].goodsId, |
|
|
|
|
"goodsPrice": this.gasOrderList.highChildOrderList[0].goodsPrice, |
|
|
|
|
"goodsType": 3, |
|
|
|
|
"saleCount": 1, |
|
|
|
|
}], |
|
|
|
|
"payGold": this.priceValue[1], |
|
|
|
|
"promoteCode": this.identificationCode, |
|
|
|
|
"payPwd": this.PaymentPassword |
|
|
|
|
} |
|
|
|
|
addOrder(goods).then(res => { |
|
|
|
|
create(goods).then(res => { |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
if (app.globalData.gasKey) { |
|
|
|
@ -533,36 +547,11 @@ |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
this.orderNo = res.return_data.id; |
|
|
|
|
this.orderNo = res.return_data.orderNo; |
|
|
|
|
uni.reLaunch({ |
|
|
|
|
url: '/pages/goods/refuel-succes/refuel-succes?id=' + |
|
|
|
|
url: '/pages/user/order_details/order_details?id=' + |
|
|
|
|
this.orderNo |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: res.return_msg, |
|
|
|
|
icon: 'none', |
|
|
|
|
duration: 2000 |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (this.paytype == 'jifen') { |
|
|
|
|
let params = { |
|
|
|
|
"orderId": this.orderNo, |
|
|
|
|
"password": this.PaymentPassword |
|
|
|
|
} |
|
|
|
|
orderToGoldPay(params).then(res => { |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '支付成功' |
|
|
|
|
}) |
|
|
|
|
uni.reLaunch({ |
|
|
|
|
url: '/pages/goods/refuel-succes/refuel-succes?id=' + this.orderNo |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (res.return_code == '102130') { |
|
|
|
|
uni.navigateTo({ |
|
|
|
@ -570,102 +559,72 @@ |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: res.return_msg, |
|
|
|
|
icon: 'none' |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (this.paytype == 'gonghuika') { |
|
|
|
|
let params = { |
|
|
|
|
"orderId": this.orderNo, |
|
|
|
|
"cardNo": this.user.hltCardNo.cardNo, |
|
|
|
|
"password": this.PaymentPassword |
|
|
|
|
} |
|
|
|
|
hltUnionCardPay(params).then(res => { |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '支付成功' |
|
|
|
|
}) |
|
|
|
|
uni.reLaunch({ |
|
|
|
|
url: '/pages/goods/refuel-succes/refuel-succes?id=' + this.orderNo |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (res.return_code == '102130') { |
|
|
|
|
this.cancelOrder(); |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../login/updatePas/updatePas' |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (res.return_code == '102132') { |
|
|
|
|
this.cancelOrder(); |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: res.return_msg, |
|
|
|
|
icon: 'none' |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
uni.navigateBack({}) |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: res.return_msg, |
|
|
|
|
icon: 'none' |
|
|
|
|
}) |
|
|
|
|
icon: 'none', |
|
|
|
|
duration: 2000 |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (this.paytype == 'oilcard') { |
|
|
|
|
if (this.paytype == '3' || this.paytype == '6') { |
|
|
|
|
let cardNo; |
|
|
|
|
if (this.paytype == 3) { |
|
|
|
|
cardNo = this.user.hltCardNo.cardNo; |
|
|
|
|
} |
|
|
|
|
if (this.paytype == 6) { |
|
|
|
|
cardNo = this.user.oilCard.cardNo; |
|
|
|
|
} |
|
|
|
|
let params = { |
|
|
|
|
"orderId": this.orderNo, |
|
|
|
|
"cardNo": this.user.oilCard.cardNo, |
|
|
|
|
"orderNo": this.orderNo, |
|
|
|
|
"cardNo": cardNo, |
|
|
|
|
"password": this.PaymentPassword |
|
|
|
|
} |
|
|
|
|
oilCardPay(params).then(res => { |
|
|
|
|
cardPay(params).then(res => { |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '支付成功' |
|
|
|
|
}) |
|
|
|
|
uni.reLaunch({ |
|
|
|
|
url: '/pages/goods/refuel-succes/refuel-succes?id=' + this.orderNo |
|
|
|
|
url: '/pages/user/order_details/order_details?id=' + |
|
|
|
|
this.orderNo |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (res.return_code == '102130') { |
|
|
|
|
this.cancelOrder(); |
|
|
|
|
this.cancel(); |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../login/updatePas/updatePas' |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (res.return_code == '102132') { |
|
|
|
|
this.cancelOrder(); |
|
|
|
|
this.cancel(); |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: res.return_msg, |
|
|
|
|
icon: 'none' |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
uni.navigateBack({}) |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: res.return_msg, |
|
|
|
|
icon: 'none' |
|
|
|
|
}) |
|
|
|
|
uni.navigateBack({}) |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
//取消订单 |
|
|
|
|
cancelOrder() { |
|
|
|
|
cancel() { |
|
|
|
|
let params = { |
|
|
|
|
orderId: this.orderNo |
|
|
|
|
orderNo: this.orderNo |
|
|
|
|
} |
|
|
|
|
cancelOrder(params).then(res => { |
|
|
|
|
cancel(params).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
this.orderNo = ''; |
|
|
|
|
} |
|
|
|
@ -674,23 +633,7 @@ |
|
|
|
|
}, |
|
|
|
|
//获取选择支付方式 |
|
|
|
|
changeRiado() { |
|
|
|
|
// if (!this.user.isSetHltCard && this.paytype == 'gonghuika') { |
|
|
|
|
// uni.showToast({ |
|
|
|
|
// icon: 'none', |
|
|
|
|
// title: '当前账号还未绑定,前往绑定', |
|
|
|
|
// duration: 2000, |
|
|
|
|
// success() { |
|
|
|
|
// setTimeout(() => { |
|
|
|
|
// uni.navigateTo({ |
|
|
|
|
// url: '../../user/bindingCard/bindingCard' |
|
|
|
|
// }) |
|
|
|
|
// }, 1000) |
|
|
|
|
// } |
|
|
|
|
// }); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
if (!this.user.isSetOilCard) { |
|
|
|
|
if (!this.user.setHltCard) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
icon: 'none', |
|
|
|
|
title: '当前账号还未绑定,前往绑定', |
|
|
|
@ -719,7 +662,7 @@ |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
//下单 |
|
|
|
|
addOrder() { |
|
|
|
|
create() { |
|
|
|
|
if (this.payPrice == 0) { |
|
|
|
|
this.$refs.paymentPassword.modalFun('show'); |
|
|
|
|
return; |
|
|
|
@ -741,26 +684,23 @@ |
|
|
|
|
title: '提交订单中...' |
|
|
|
|
}) |
|
|
|
|
let goods = { |
|
|
|
|
"identificationCode": this.gasOrderList.identificationCode, |
|
|
|
|
"promoteCode":this.identificationCode, |
|
|
|
|
"payGold": this.priceValue[1], |
|
|
|
|
"memDiscountId": this.memDiscountId, |
|
|
|
|
"highChildOrderList": [{ |
|
|
|
|
"goodsType": this.gasOrderList.highChildOrderList[0].goodsType, |
|
|
|
|
"goodsId": this.gasOrderList.highChildOrderList[0].goodsId, |
|
|
|
|
"saleCount": 1, |
|
|
|
|
"goodsPrice": this.gasOrderList.highChildOrderList[0].goodsPrice, |
|
|
|
|
"childOrderList": [{ |
|
|
|
|
"gasGunNo": this.gasOrderList.highChildOrderList[0].gasGunNo, |
|
|
|
|
"gasOilNo": this.gasOrderList.highChildOrderList[0].gasOilNo, |
|
|
|
|
"gasOilType": this.gasOrderList.highChildOrderList[0].gasOilType, |
|
|
|
|
"gasPriceGun": this.gasOrderList.highChildOrderList[0].gasPriceGun, |
|
|
|
|
"gasPriceVip": this.gasOrderList.highChildOrderList[0].gasPriceVip, |
|
|
|
|
}] |
|
|
|
|
"goodsId": this.gasOrderList.highChildOrderList[0].goodsId, |
|
|
|
|
"goodsPrice": this.gasOrderList.highChildOrderList[0].goodsPrice, |
|
|
|
|
"goodsType": 3, |
|
|
|
|
"saleCount": 1, |
|
|
|
|
}], |
|
|
|
|
"payGold": this.priceValue[1], |
|
|
|
|
"promoteCode": this.identificationCode, |
|
|
|
|
"payPwd": this.PaymentPassword, |
|
|
|
|
"memDiscountId": this.memDiscountId |
|
|
|
|
} |
|
|
|
|
addOrder(goods).then(res => { |
|
|
|
|
create(goods).then(res => { |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
this.orderNo = res.return_data.id; |
|
|
|
|
this.orderNo = res.return_data.orderNo; |
|
|
|
|
this.orderToPay(); |
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
@ -782,11 +722,11 @@ |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (that.paytype == 'weixin') { |
|
|
|
|
if (that.paytype == '4') { |
|
|
|
|
that.unionPay(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (that.paytype == 'gonghuika') { |
|
|
|
|
if (that.paytype == '6') { |
|
|
|
|
if (!that.user.isSetPayPwd) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../login/updatePas/updatePas' |
|
|
|
@ -811,7 +751,7 @@ |
|
|
|
|
that.$refs.paymentPassword.modalFun('show'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (that.paytype == 'oilcard') { |
|
|
|
|
if (that.paytype == '3') { |
|
|
|
|
if (!that.user.isSetPayPwd) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../login/updatePas/updatePas' |
|
|
|
@ -836,21 +776,11 @@ |
|
|
|
|
that.$refs.paymentPassword.modalFun('show'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (that.paytype == 'jifen') { |
|
|
|
|
if (!that.user.isSetPayPwd) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../login/updatePas/updatePas' |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
that.$refs.paymentPassword.modalFun('show'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
//银联获取信息 |
|
|
|
|
unionPay() { |
|
|
|
|
let goods = { |
|
|
|
|
"orderId": this.orderNo |
|
|
|
|
"orderNo": this.orderNo |
|
|
|
|
} |
|
|
|
|
unionPay(goods).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
@ -875,8 +805,8 @@ |
|
|
|
|
title: '支付成功' |
|
|
|
|
}) |
|
|
|
|
uni.reLaunch({ |
|
|
|
|
url: '/pages/goods/refuel-succes/refuel-succes?id=' + that |
|
|
|
|
.orderNo |
|
|
|
|
url: '/pages/user/order_details/order_details?id=' + |
|
|
|
|
that.orderNo |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
fail: function(err) { |
|
|
|
@ -898,6 +828,8 @@ |
|
|
|
|
<style lang="less"> |
|
|
|
|
page { |
|
|
|
|
background-color: #f7f7f7; |
|
|
|
|
overflow: hidden; |
|
|
|
|
overflow-y: auto; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.conImg { |
|
|
|
|