1.优化2.0 代码修改问题

master
杨杰 2 years ago
parent af09090aed
commit 766cf84c5f
  1. 4
      high-unionPay/Utils/Api.js
  2. 12
      high-unionPay/pages.json
  3. 310
      high-unionPay/pages/goods/refuel-confirm/refuel-confirm.vue
  4. 21
      high-unionPay/pages/order/confirmation.vue
  5. 43
      high-unionPay/pages/unionPay/unionComfirmation/unionComfirmation.vue
  6. 68
      high-unionPay/pages/user/news/news.vue
  7. 38
      high-unionPay/qianzhu-KFC/confirmOrder/confirmOrder.vue
  8. 22
      high-unionPay/qianzhu-KFC/kfc-details/kfc-details.vue
  9. 6
      high-unionPay/qianzhu-KFC/kfc-menu-list/kfc-menu-list.vue
  10. 76
      high-unionPay/qianzhu-KFC/order-details/order-details.vue
  11. BIN
      high-unionPay/qianzhu-KFC/static/imgs/desloca.png

@ -496,8 +496,8 @@ export const getRebateIntegral = params => {
return POST('POST', `${base}/common/getRebateIntegral`, params).then(res => res.data); return POST('POST', `${base}/common/getRebateIntegral`, params).then(res => res.data);
} }
//站内信列表 //站内信列表
export const queryMsgByList = params => { export const getMsgByList = params => {
return POST('GET', `${base}/bsMsg/queryMsgByList`, params).then(res => res.data); return POST('GET', `${base}/bsMsg/getMsgByList`, params).then(res => res.data);
} }

@ -942,17 +942,7 @@
} }
} }
}, { },{
"path": "kfc-details/kfc-details",
"style": {
"navigationBarTitleText": "详情",
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false //
}
}
}, {
"path": "kfc-menu-list/kfc-menu-list", "path": "kfc-menu-list/kfc-menu-list",
"style": { "style": {
"navigationBarTitleText": "菜单", "navigationBarTitleText": "菜单",

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

@ -150,7 +150,7 @@
<view class="width94 line1 mart5 marb5" v-if="item == 3"></view> <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="height50 width100 backcorfff" @tap="paytype='3'" v-if="item == 3">
<view class="width70 flleft fcor333 fontwig6 font16" style="padding-left: 4%;"> <view class="width70 flleft fcor333 fontwig6 font16" style="padding-left: 4%;">
工会卡支付<text class="font14 fcor666 margle">可用余额: {{tongCardPrice}}</text> 汇联通工会卡<text class="font14 fcor666 margle">可用余额: {{tongCardPrice}}</text>
</view> </view>
<view class="width20 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun" <view class="width20 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun"
style="align-items: center;" v-if="isUse"> style="align-items: center;" v-if="isUse">
@ -245,7 +245,6 @@
rechargeDes: '', // rechargeDes: '', //
rebateIntegral: '', // rebateIntegral: '', //
Integrastu: 1, // Integrastu: 1, //
typeId: '',
contactPepole: '', // contactPepole: '', //
contactPhone: '', // contactPhone: '', //
contactAddress: '' // contactAddress: '' //
@ -258,7 +257,6 @@
}, },
onShow() { onShow() {
let that = this; let that = this;
that.paytype = '';
that.user = app.globalData.userInfo; that.user = app.globalData.userInfo;
that.findUser(); that.findUser();
}, },
@ -294,8 +292,8 @@
getThirdPartyByDetail() { getThirdPartyByDetail() {
let datas = { let datas = {
platformId: 3, platformId: 3,
regionId: app.globalData.cityId, "companyId": app.globalData.companyId,
productType: 4, productType: 5,
productId: this.couponList.couponSource productId: this.couponList.couponSource
} }
getThirdPartyByDetail(datas).then(res => { getThirdPartyByDetail(datas).then(res => {
@ -580,6 +578,12 @@
url: '../tabBar/order/stagesUrl/stagesUrl?orderid=' + that.orderId url: '../tabBar/order/stagesUrl/stagesUrl?orderid=' + that.orderId
}) })
} else if (that.paytype == '3') { } else if (that.paytype == '3') {
if (!that.user.isSetPayPwd) {
uni.navigateTo({
url: '../login/updatePas/updatePas'
})
return;
}
if (that.tongCardPrice < that.paytheprice) { if (that.tongCardPrice < that.paytheprice) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
@ -588,12 +592,7 @@
}); });
return; return;
} }
if (!that.user.isSetPayPwd) {
uni.navigateTo({
url: '../login/updatePas/updatePas'
})
return;
}
if (!that.user.isSetHltCard) { if (!that.user.isSetHltCard) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',

@ -1,6 +1,7 @@
<template> <template>
<view> <view>
<view class="width94 comorder">
<view class="width94 comorder mart10">
<view class="height100p width94 goodsimg"> <view class="height100p width94 goodsimg">
<image class="flleft" mode="widthFix" v-if="rechargeModel == 3" src="../../../static/img/cz1.jpg"> <image class="flleft" mode="widthFix" v-if="rechargeModel == 3" src="../../../static/img/cz1.jpg">
</image> </image>
@ -132,7 +133,7 @@
</view> </view>
</view> </view>
<image :src="imagewxUrl+imgadres1" class="width100 mart20 marb30" mode="widthFix"></image> <image :src="imagewxUrl+imgadres1" class="width100 mart20 marb30" mode="widthFix"></image>
<view class="width100 height60"></view> <view class="width100 height110"></view>
<view class="footer"> <view class="footer">
<view class="settlement"> <view class="settlement">
<!-- v-if="paytype == '2' || paytype == '3' " --> <!-- v-if="paytype == '2' || paytype == '3' " -->
@ -286,7 +287,9 @@
app.globalData.userInfo = res.return_data; app.globalData.userInfo = res.return_data;
this.user = res.return_data; this.user = res.return_data;
this.findById(); this.findById();
this.getHuiLianTongCardBalance(); if (this.user.hltCardNo) {
this.getHuiLianTongCardBalance();
}
this.getRebateIntegral(); this.getRebateIntegral();
uni.setStorage({ uni.setStorage({
key: "user", key: "user",
@ -331,9 +334,6 @@
// //
// //
getHuiLianTongCardBalance() { getHuiLianTongCardBalance() {
if (!this.user.hltCardNo) {
return;
}
let params = { let params = {
cardNo: this.user.hltCardNo.cardNo cardNo: this.user.hltCardNo.cardNo
} }
@ -512,11 +512,18 @@
orderToPayByWx(item) { orderToPayByWx(item) {
let that = this; let that = this;
if (that.paytype == '3') { if (that.paytype == '3') {
if (that.tongCardPrice < that.payPrice) { if (!that.user.isSetHltCard) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '工会卡余额不足', title: '当前账号还未绑定,前往绑定',
duration: 2000, duration: 2000,
success() {
setTimeout(() => {
uni.navigateTo({
url: '../../pages/user/bindingCard/bindingCard'
})
}, 1000)
}
}); });
return; return;
} }
@ -526,21 +533,16 @@
}) })
return; return;
} }
if (!that.user.isSetHltCard) { if (that.tongCardPrice < that.payPrice) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '当前账号还未绑定,前往绑定', title: '工会卡余额不足',
duration: 2000, duration: 2000,
success() {
setTimeout(() => {
uni.navigateTo({
url: '../../pages/user/bindingCard/bindingCard'
})
}, 1000)
}
}); });
return; return;
} }
that.$refs.paymentPassword.modalFun('show'); that.$refs.paymentPassword.modalFun('show');
return; return;
} }
@ -564,7 +566,7 @@
title: '支付成功' title: '支付成功'
}) })
uni.reLaunch({ uni.reLaunch({
url: '../Phone-recharge-details/Phone-recharge-details?id=' + url: '/pages/user/order_details/order_details?id=' +
item1 item1
}) })
}, },
@ -611,7 +613,7 @@
if (res.return_code == '000000') { if (res.return_code == '000000') {
this.orderId = res.return_data.orderNo; this.orderId = res.return_data.orderNo;
uni.reLaunch({ uni.reLaunch({
url: '../Phone-recharge-details/Phone-recharge-details?id=' + url: '/pages/user/order_details/order_details?id=' +
this.orderId this.orderId
}) })
return; return;
@ -642,8 +644,7 @@
title: '支付成功' title: '支付成功'
}) })
uni.reLaunch({ uni.reLaunch({
url: '../Phone-recharge-details/Phone-recharge-details?id=' + url: '/pages/user/order_details/order_details?id=' + this.orderId
this.orderId
}) })
return; return;
} }

@ -3,17 +3,17 @@
<!-- 顶部类型 --> <!-- 顶部类型 -->
<scroll-view scroll-x='true' class="srollview width100" :style="{top:headerTop}" scroll-with-animation> <scroll-view scroll-x='true' class="srollview width100" :style="{top:headerTop}" scroll-with-animation>
<view class="conent" :class="[newstypeid == item.codeValue ? 'activeconent' : 'frontconent']" <view class="conent" :class="[newstypeid == item.codeValue ? 'activeconent' : 'frontconent']"
v-for="(item,index) in newsTyplist" :key="index" @click="queryMsgByList(item.codeValue)"> v-for="(item,index) in newsTyplist" :key="index" @click="changeValue(item.codeValue)">
{{item.codeName}}</view> {{item.codeName}}
</view>
</scroll-view> </scroll-view>
<view class="mart10 height70"></view> <view class="mart10 height70"></view>
<!-- 内容 --> <!-- 内容 -->
<view v-if="newsList == ''" <view v-if="newsList == ''" class="mart60 fotct font14 fcor666">
class="mart60 fotct font14 fcor666">
<image mode="widthFix" style="width: 70vw;" :src="imagewxUrl+imgadres"></image> <image mode="widthFix" style="width: 70vw;" :src="imagewxUrl+imgadres"></image>
</view> </view>
<view class="newscont width90 border-8r backcorfff mart20" v-for="(item,index) in newsList" :key="index"> <view class="newscont width90 border-8r backcorfff mart20" v-for="(item,index) in newsList" :key="index" @click="jumporther(item)">
<view class="alijusstart mart10 margle10" v-if="item.type == 1"> <view class="alijusstart mart10 margle10" v-if="item.type == 1">
<image src="../../../static/img/user/notive.png" mode="widthFix" class="icon30"></image> <image src="../../../static/img/user/notive.png" mode="widthFix" class="icon30"></image>
<text class="font18 margle" style="color: #0B1D83;">服务通知</text> <text class="font18 margle" style="color: #0B1D83;">服务通知</text>
@ -35,8 +35,8 @@
<!-- 交易信息 --> <!-- 交易信息 -->
<view class="width90 mart20" v-if="item.type == 2"> <view class="width90 mart20" v-if="item.type == 2">
<view class="font18 fcor333" >{{item.title}}</view> <view class="font18 fcor333">{{item.title}}</view>
<view class="mart10 border-r backcor9"> <view class="mart15 border-r backcor9">
<view class="font20 colore95 fontwig6 paddtop10 fotct">¥{{item.content | msgFormat('price')}}</view> <view class="font20 colore95 fontwig6 paddtop10 fotct">¥{{item.content | msgFormat('price')}}</view>
<view class="width94 mart10 alijusstart font14"> <view class="width94 mart10 alijusstart font14">
<view class="fontwig6 fcor333 width30">交易对象</view> <view class="fontwig6 fcor333 width30">交易对象</view>
@ -47,8 +47,8 @@
<view class="fontwig6 fcor333 width30">交易时间</view> <view class="fontwig6 fcor333 width30">交易时间</view>
<view class="width70 fcor666 fotrt">{{item.content | msgFormat('time') }}</view> <view class="width70 fcor666 fotrt">{{item.content | msgFormat('time') }}</view>
</view> </view>
<view class="font16 fcor666 alijus mart10 fotct paddbotm20">查看详情<image <view class="font16 fcor666 alijus mart15 fotct paddbotm20" @click="jumpDetails(item.content)">查看详情
src="../../../static/img/jt.png" mode="widthFix" class="icon15 margle"></image> <image src="../../../static/img/jt.png" mode="widthFix" class="icon15 margle"></image>
</view> </view>
</view> </view>
</view> </view>
@ -73,7 +73,7 @@
<script> <script>
import { import {
queryMsgByList, getMsgByList,
getDictionaryByCodeType getDictionaryByCodeType
} from '../../../Utils/Api.js'; } from '../../../Utils/Api.js';
let app = getApp(); let app = getApp();
@ -91,14 +91,17 @@
}, },
filters: { filters: {
// //
msgFormat: function(value,value1) { msgFormat: function(value, value1) {
let a = JSON.parse(value); let a = JSON.parse(value);
return a[value1]; return a[value1];
} }
}, },
onLoad() { onLoad() {
this.getDictionaryByCodeType(); this.getDictionaryByCodeType();
}, },
// onShow() {
// this.getDictionaryByCodeType();
// },
methods: { methods: {
// //
getDictionaryByCodeType() { getDictionaryByCodeType() {
@ -109,24 +112,55 @@
if (res.return_code == '000000') { if (res.return_code == '000000') {
this.newsTyplist = res.return_data; this.newsTyplist = res.return_data;
this.newstypeid = res.return_data[0].codeValue; this.newstypeid = res.return_data[0].codeValue;
this.queryMsgByList(res.return_data[0].codeValue); this.getMsgByList(res.return_data[0].codeValue);
} }
}) })
}, },
//
changeValue(item) {
this.newsList = [];
this.getMsgByList(item);
},
// //
queryMsgByList(item) { getMsgByList(item) {
this.newstypeid = item; this.newstypeid = item;
let datas = { let datas = {
companyId: app.globalData.companyId, companyId: app.globalData.companyId,
type: item type: item
} }
queryMsgByList(datas).then(res => { getMsgByList(datas).then(res => {
if (res.return_code == '000000' && res.return_data) { if (res.return_code == '000000' && res.return_data != '') {
this.newsList = res.return_data; this.newsList = res.return_data;
}else{ } else {
this.newsList = []; this.newsList = [];
} }
}) })
},
//
jumpDetails(item1) {
let lists = JSON.parse(item1);
if (lists.productType == 1 || lists.productType == 2 || lists.productType == 3) {
uni.navigateTo({
url: '/qianzhu-KFC/order-details/order-details?id=' + lists.orderNo
})
} else {
uni.navigateTo({
url: '/pages/user/order_details/order_details?id=' + lists.orderNo
})
}
},
//
jumporther(item){
if(item.jumpType == 2){
uni.navigateTo({
url: '/pages/tabBar/order/webUrl/webUrl?url=' + item.content
})
}
if(item.jumpType == 3){
uni.navigateTo({
url:item.content
})
}
} }
} }
} }

@ -70,6 +70,14 @@
</view> </view>
</view> </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 concont mart10 backcorfff"> <view class="width94 concont mart10 backcorfff">
<view class="height50 width100 paddtop5 backcorfff" @click="showPopup()"> <view class="height50 width100 paddtop5 backcorfff" @click="showPopup()">
<view class="width50 flleft fcor333 fontwig6 font16" style="padding-left: 4%;"> <view class="width50 flleft fcor333 fontwig6 font16" style="padding-left: 4%;">
@ -115,6 +123,7 @@
</view> </view>
</view> </view>
<view class="width94 line1 marb5"></view> <view class="width94 line1 marb5"></view>
<view class="height40 width100 backcorfff"> <view class="height40 width100 backcorfff">
<view class="width40 flleft fcor666 font15 text1 alijusstart" style="padding-left: 2%;"> <view class="width40 flleft fcor666 font15 text1 alijusstart" style="padding-left: 2%;">
<image src="../../static/img/rebate.png" mode="widthFix" style="width: 25px;"></image> <image src="../../static/img/rebate.png" mode="widthFix" style="width: 25px;"></image>
@ -427,10 +436,11 @@
result = result1.toFixed(2); result = result1.toFixed(2);
}) })
// let resul2 = 0; let resul2 = 0;
let result3 = 0; let result3 = 0;
this.orderList.forEach((good) => { this.orderList.forEach((good) => {
result3 += this.accMul(good.num, good.oldprice) resul2 += this.accMul(good.num, good.oldprice);
result3 = resul2.toFixed(2);
this.disconutprice = (result3 - result).toFixed(2); this.disconutprice = (result3 - result).toFixed(2);
}) })
@ -741,11 +751,18 @@
} }
}) })
} else if (that.paytype == '3') { } else if (that.paytype == '3') {
if (that.tongCardPrice < that.payPrice) { if (!that.user.isSetHltCard) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '工会卡余额不足', title: '当前账号还未绑定,前往绑定',
duration: 2000, duration: 2000,
success() {
setTimeout(() => {
uni.navigateTo({
url: '../../pages/user/bindingCard/bindingCard'
})
}, 1000)
}
}); });
return; return;
} }
@ -755,21 +772,16 @@
}) })
return; return;
} }
if (!that.user.isSetHltCard) { if (that.tongCardPrice < that.payPrice) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '当前账号还未绑定,前往绑定', title: '工会卡余额不足',
duration: 2000, duration: 2000,
success() {
setTimeout(() => {
uni.navigateTo({
url: '../../pages/user/bindingCard/bindingCard'
})
}, 1000)
}
}); });
return; return;
} }
that.$refs.paymentPassword.modalFun('show'); that.$refs.paymentPassword.modalFun('show');
} else { } else {
uni.showToast({ uni.showToast({

@ -1,22 +0,0 @@
<template>
<view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style>
</style>

@ -499,12 +499,6 @@
return true; return true;
},
//
navToList() {
uni.navigateTo({
url: '../kfc-details/kfc-details'
})
} }
} }
} }

@ -11,10 +11,10 @@
</view> </view>
<view class=" paddtop10 paddbotm10 headsbg backcorfff fotct" v-if="orderList.orderStatus != 1 && typeid != 10"> <view class=" paddtop10 paddbotm10 headsbg backcorfff fotct" v-if="orderList.orderStatus != 1 && typeid != 10">
<view class="headotherstu alijus font18 fontwig6" <!-- <view class="headotherstu alijus font18 fontwig6"
v-if="orderList.orderStatus != 2 && orderList.orderStatus != 3"> v-if="orderList.orderStatus != 2 && orderList.orderStatus != 3">
<image mode="widthFix" class="width50" src="../static/imgs/otherstu.png"></image> <image mode="widthFix" class="width50" src="../static/imgs/otherstu.png"></image>
</view> </view> -->
<view class="width100 font18 fcorfff mart15" <view class="width100 font18 fcorfff mart15"
v-if=" orderList.orderStatus != 2 && orderList.orderStatus != 3"> v-if=" orderList.orderStatus != 2 && orderList.orderStatus != 3">
{{typeText[orderList.orderStatus]}} {{typeText[orderList.orderStatus]}}
@ -38,9 +38,9 @@
</view> </view>
</view> </view>
<view class="font12 width90 fcor666 mart10 marb10 fotlt">订单已准备完毕喜欢您再来</view> <view class="font12 width90 fcor666 mart10 marb10 fotlt" v-if="recinfo.list">订单已准备完毕喜欢您再来</view>
<view class="width90 height70 backcorfff border-r alijusstart paddbotm10"> <view class="width90 height70 backcorfff border-r alijusstart paddbotm10" v-if="recinfo.list">
<view class="width70 fotlt"> <view class="width70 fotlt">
<view class="width94 fcor333 font14">请至柜台凭取餐码取餐</view> <view class="width94 fcor333 font14">请至柜台凭取餐码取餐</view>
<view class="width94 fcor666 font12 mart5">如有询问手机尾号请点击右侧按钮查看</view> <view class="width94 fcor666 font12 mart5">如有询问手机尾号请点击右侧按钮查看</view>
@ -64,19 +64,21 @@
v-for="(item,index) in recinfo.object.orderItems" :key='index'>{{item.code}}</view> v-for="(item,index) in recinfo.object.orderItems" :key='index'>{{item.code}}</view>
</view> </view>
<view class="fotct font20 width100 mart10 colorc3" v-if="typeid == 4 && !recinfo.list"> <view class="fotct font20 width100 mart10 colorc3" v-if="typeid == 4 && !recinfo.list">
{{recinfo.statusDesc}} <!-- {{recinfo.statusDesc}} -->
{{typeText[orderList.orderStatus]}}
</view> </view>
<view class="fotct font20 width100 mart10 color2f6f43" <view class="fotct font20 width100 mart10 color2f6f43"
v-if="typeid == 9 && !recinfo.object.orderItems[0].code">{{recinfo.statusDesc}}</view> v-if="typeid == 9 && !recinfo.object.orderItems[0].code">{{recinfo.statusDesc}}</view>
</view> </view>
</view> </view>
<view class="concont width94 mart10 backcorfff"> <view class="width94 mart10 backcorfff">
<view class="width94 paddtop15 font16 fontwig6" v-if="typeid == 10"> <view class="width94 paddtop15 font16 fontwig6" v-if="typeid == 10">
充值明细 充值明细
</view> </view>
<view class="width94 paddtop15 font16 fontwig6 alijusstart" v-else> <view class="width94 paddtop15 font16 fontwig6 alijusstart" v-else>
<image src="../static/imgs/desloca.png" mode="widthFix" class="icon20 marglerig"></image> {{orderList.highChildOrderList[0].storeName}} <image src="../static/imgs/desloca.png" mode="widthFix" class="icon20 marglerig"></image>
{{orderList.highChildOrderList[0].storeName}}
</view> </view>
<view class="width100 mart5"> <view class="width100 mart5">
<view class="width90 alijusstart mart15" v-for="(item,index) in orderList.highChildOrderList" <view class="width90 alijusstart mart15" v-for="(item,index) in orderList.highChildOrderList"
@ -99,15 +101,20 @@
</view> </view>
</view> </view>
</view> </view>
<view class="width95 height20 borderleft alijusnostart">
<view style="width: 5%;"></view> <view class="width100" style="height: 10px;">
<view class="width95" style="border-bottom: 1px dashed #bebcbc;"></view> <view class="cro_left_bottom flleft"></view>
<view class="cro_right_bottom flright"></view>
</view> </view>
<!-- <view class="width96" style="border:1px dashed #f4f4f4;"></view> -->
</view> </view>
<view class="gooddes width94 backcorfff marb20"> <view class="width95 alijusnostart">
<view class="width90w height20 bordertopleft alijusnostart"> <view style="width: 6%;"></view>
<view class="width10"></view> <view style="border-bottom: 1px dashed #bebcbc;width: 93%;"></view>
</view>
<view class="width94 backcorfff marb20">
<view class="width100" style="height: 10px;">
<view class="cro_left_top flleft"></view>
<view class="cro_right_top flright"></view>
</view> </view>
<view class="width94 alijusstart paddtop10 "> <view class="width94 alijusstart paddtop10 ">
<view class="font15 fcor333 fontwig6 width50">商品小计</view> <view class="font15 fcor333 fontwig6 width50">商品小计</view>
@ -161,9 +168,9 @@
</view> </view>
<view class="width94 alijusstart mart20 font14 fcor666" v-if="orderList.payType"> <view class="width94 alijusstart mart20 font14 fcor666" v-if="orderList.payType">
<view class="width30">支付方式</view> <view class="width30">支付方式</view>
<view class="width70 fcor333 fotrt" v-if="orderList.payType == 2">微信</view> <view class="width70 fcor333 fotrt" v-if="orderList.payType == 2">微信支付</view>
<view class="width70 fcor333 fotrt" v-if="orderList.payType == 3">积分</view> <view class="width70 fcor333 fotrt" v-if="orderList.payType == 3">积分兑换</view>
<view class="width70 fcor333 fotrt" v-if="orderList.payType == 4">工会卡</view> <view class="width70 fcor333 fotrt" v-if="orderList.payType == 4">汇联通工会卡</view>
<view class="width70 fcor333 fotrt" v-if="orderList.payType == 5">银联支付</view> <view class="width70 fcor333 fotrt" v-if="orderList.payType == 5">银联支付</view>
</view> </view>
<view class="width94 alijusstart mart20 font14 fcor666" v-if="typeid == 10"> <view class="width94 alijusstart mart20 font14 fcor666" v-if="typeid == 10">
@ -182,7 +189,7 @@
<view class="height50 width100"></view> <view class="height50 width100"></view>
<view class="bottomstu backcorfff width100 height50 alijusend" v-if="orderList.orderStatus == 3"> <view class="bottomstu backcorfff width100 height50 alijusend" v-if="orderList.orderStatus == 3">
<button open-type="contact" class="cusservice font12 fcor666">联系客服</button> <button open-type="contact" class="cusservice font12 fcor666">联系客服</button>
<view class="buybtn font12 fcorfff">再来一单</view> <!-- <view class="buybtn font12 fcorfff">再来一单</view> -->
</view> </view>
</view> </view>
@ -217,7 +224,7 @@
6: '退款中', 6: '退款中',
7: '退款失败' 7: '退款失败'
}, },
phonestu: 1 ,// phonestu: 1, //
recinfo: [], // recinfo: [], //
} }
}, },
@ -342,7 +349,8 @@
// //
jumppay() { jumppay() {
uni.redirectTo({ uni.redirectTo({
url: '/qianzhu-KFC/payment-method/payment-method?orderId=' + this.orderList.id + '&amount=' + url: '/qianzhu-KFC/payment-method/payment-method?orderId=' + this.orderList.orderNo +
'&amount=' +
this.orderList.payPrice + '&productType=' + this.orderList.productType this.orderList.payPrice + '&productType=' + this.orderList.productType
}) })
}, },
@ -447,24 +455,32 @@
background: linear-gradient(to bottom, #3da7e7, #e8eff4); background: linear-gradient(to bottom, #3da7e7, #e8eff4);
} }
.borderleft { .cro_left_top,
background-image: radial-gradient(10px at bottom left, #f0f0f0 10px, #ffffff); .cro_right_top,
.cro_left_bottom,
.cro_right_bottom {
width: 20rpx;
height: 20rpx;
background: #f0f0f0;
} }
.bordertopleft { .cro_left_top {
background-image: radial-gradient(10px at top left, #f0f0f0 10px, #ffffff); border-radius: 0px 0px 20rpx 0px;
} }
.concont { .cro_right_top {
border-radius: 12px 12px 0 0; border-radius: 0px 0px 0px 20rpx;
background-image: radial-gradient(10px at bottom right, #f0f0f0 10px, #ffffff);
} }
.gooddes { .cro_left_bottom {
border-radius: 0 0 12px 12px; border-radius: 0px 20rpx 0px 0px;
background-image: radial-gradient(10px at top right, #f0f0f0 10px, #ffffff);
} }
.cro_right_bottom {
border-radius: 20rpx 0px 0px 0px;
}
.footbtn { .footbtn {
bottom: 0px; bottom: 0px;
position: fixed; position: fixed;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 904 B

After

Width:  |  Height:  |  Size: 6.3 KiB

Loading…
Cancel
Save