1.优化2.0 合并问题 修改问题

master
杨杰 2 years ago
parent 766cf84c5f
commit a328ef6454
  1. 18
      high-unionPay/member-Recharge/rec-confirmation/rec-confirmation.vue
  2. 8
      high-unionPay/pages/goods/goods-list/goods-list.vue
  3. 8
      high-unionPay/pages/goods/refuel-confirm/refuel-confirm.vue
  4. 4
      high-unionPay/pages/order/confirmation.vue
  5. 2
      high-unionPay/pages/pay/success/success.vue
  6. 2
      high-unionPay/pages/tabBar/category/category.vue
  7. 45
      high-unionPay/pages/tabBar/home/home.vue
  8. 39
      high-unionPay/pages/tabBar/user/user.vue
  9. 2
      high-unionPay/pages/unionPay/recharge-centre/recharge-centre.vue
  10. 5
      high-unionPay/pages/unionPay/recharge/recharge.vue
  11. 43
      high-unionPay/pages/user/deposit/deposit.vue
  12. 82
      high-unionPay/pages/user/order_details/order_details.vue
  13. 36
      high-unionPay/pages/user/order_list/order_list.vue
  14. 2
      high-unionPay/qianzhu-KFC/confirmOrder/confirmOrder.vue
  15. BIN
      high-unionPay/static/img/Vip.png
  16. BIN
      high-unionPay/static/img/ghk.png
  17. BIN
      high-unionPay/static/img/home/home3.png
  18. BIN
      high-unionPay/static/img/home/home4.png
  19. BIN
      high-unionPay/static/img/home/home5.png
  20. BIN
      high-unionPay/static/img/home/home6.png
  21. BIN
      high-unionPay/static/img/home/home7.png
  22. BIN
      high-unionPay/static/img/order2.png
  23. BIN
      high-unionPay/static/img/order3.png
  24. BIN
      high-unionPay/static/img/order4.png
  25. BIN
      high-unionPay/static/img/order5.png
  26. BIN
      high-unionPay/static/img/order6.png
  27. BIN
      high-unionPay/static/img/order7.png
  28. BIN
      high-unionPay/static/img/order8.png
  29. BIN
      high-unionPay/static/img/order9.png
  30. BIN
      high-unionPay/static/img/unioncard.png
  31. BIN
      high-unionPay/static/img/xbk.png
  32. 44
      high-unionPay/subPages/coupon-comfirmation/coupon-comfirmation.vue
  33. 6
      high-unionPay/subPages/coupon-package/coupon-package.vue

@ -174,6 +174,7 @@
unionPay, unionPay,
cardPay, cardPay,
getUserOrderPreList, getUserOrderPreList,
cancel,
getRebateIntegral getRebateIntegral
} from '../../Utils/Api.js'; } from '../../Utils/Api.js';
let app = getApp(); let app = getApp();
@ -234,7 +235,7 @@
let datas = { let datas = {
platformId: this.showType, platformId: this.showType,
regionId: app.globalData.cityId, "companyId": app.globalData.companyId,
productType: 3 productType: 3
} }
getThirdPartyByDetail(datas).then(res => { getThirdPartyByDetail(datas).then(res => {
@ -532,12 +533,14 @@
title: '工会卡余额不足', title: '工会卡余额不足',
duration: 2000, duration: 2000,
}); });
that.cancel();
return; return;
} }
if (!that.user.isSetPayPwd) { if (!that.user.isSetPayPwd) {
uni.navigateTo({ uni.navigateTo({
url: '../../pages/login/updatePas/updatePas' url: '../../pages/login/updatePas/updatePas'
}) })
that.cancel();
return; return;
} }
if (!that.user.isSetHltCard) { if (!that.user.isSetHltCard) {
@ -553,6 +556,7 @@
}, 1000) }, 1000)
} }
}); });
that.cancel();
return; return;
} }
that.$refs.paymentPassword.modalFun('show'); that.$refs.paymentPassword.modalFun('show');
@ -590,6 +594,17 @@
}); });
}); });
}, },
//
cancel() {
let params = {
orderNo: this.orderId,
}
cancel(params).then(res => {
if (res.return_code == '000000') {
this.orderId = '';
}
})
},
submitHandle(e) { submitHandle(e) {
uni.showLoading({ uni.showLoading({
title: '支付中...' title: '支付中...'
@ -641,6 +656,7 @@
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}); });
that.cancel();
}) })
return; return;
} }

@ -99,14 +99,14 @@
title: '商品列表' title: '商品列表'
}); });
this.getCouponListArea(); this.getCouponListArea();
this.getCmsContent('CMS_WX_APPLETS_GOODS_LIST'); this.getCmsContent('CMS_BANNER_COUPON');
} }
if (option.id == 2) { if (option.id == 2) {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: '积分列表' title: '积分列表'
}); });
this.getCouponListArea(); this.getCouponListArea();
this.getCmsContent('CMS_WX_APPLETS_GOODS_LIST'); this.getCmsContent('CMS_BANNER_COUPON');
} }
if (option.id == 3) { if (option.id == 3) {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
@ -124,7 +124,7 @@
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: '优选商品' title: '优选商品'
}); });
this.getCmsContent('CMS_PRE_LIST'); this.getCmsContent('CMS_DISCOUNT_PACKAGE_BANNER');
this.getBrandCouponList(); this.getBrandCouponList();
} }
}, },
@ -176,7 +176,7 @@
} }
getCmsContent(params).then(res => { getCmsContent(params).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
this.swiperList = res.return_data; this.swiperList = res.return_data.childCategory;
} }
}); });
}, },

@ -155,7 +155,7 @@
<view class="line1" v-if="item == 4"></view> <view class="line1" v-if="item == 4"></view>
<view class="heightl60 paddleft10 fcor666 width100 backcorfff" v-if="item == 4" @tap="paytype='4'"> <view class="heightl60 paddleft10 fcor666 width100 backcorfff" v-if="item == 4" @tap="paytype='4'">
<view class="width60 flleft font14"> <view class="width60 flleft font16">
银联支付 银联支付
</view> </view>
<view class="flright width30 fotct" v-if="isUse"> <view class="flright width30 fotct" v-if="isUse">
@ -165,7 +165,7 @@
<view class="line1" v-if="item == 6"></view> <view class="line1" v-if="item == 6"></view>
<view class="heightl60 paddleft10 fcor666 width100 backcorfff" v-if="item == 6" @tap="paytype='6'"> <view class="heightl60 paddleft10 fcor666 width100 backcorfff" v-if="item == 6" @tap="paytype='6'">
<view class="width60 flleft font14"> <view class="width60 flleft font16">
油卡支付<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">
@ -175,7 +175,7 @@
<view class="line1" v-if="item == 3"></view> <view class="line1" v-if="item == 3"></view>
<view class="heightl60 paddleft10 fcor666 width100 backcorfff" v-if="item == 3" @tap="paytype='3'"> <view class="heightl60 paddleft10 fcor666 width100 backcorfff" v-if="item == 3" @tap="paytype='3'">
<view class="width60 flleft font14"> <view class="width60 flleft font16">
汇联通工会卡<text class="font14 fcor666 margle">余额: {{tongCardPrice}}</text> 汇联通工会卡<text class="font14 fcor666 margle">余额: {{tongCardPrice}}</text>
</view> </view>
<view class="flright width30 fotct" v-if="isUse"> <view class="flright width30 fotct" v-if="isUse">
@ -531,6 +531,7 @@
}], }],
"payGold": this.priceValue[1], "payGold": this.priceValue[1],
"promoteCode": this.identificationCode, "promoteCode": this.identificationCode,
"companyId": app.globalData.companyId,
"payPwd": this.PaymentPassword "payPwd": this.PaymentPassword
} }
create(goods).then(res => { create(goods).then(res => {
@ -695,6 +696,7 @@
"payGold": this.priceValue[1], "payGold": this.priceValue[1],
"promoteCode": this.identificationCode, "promoteCode": this.identificationCode,
"payPwd": this.PaymentPassword, "payPwd": this.PaymentPassword,
"companyId": app.globalData.companyId,
"memDiscountId": this.memDiscountId "memDiscountId": this.memDiscountId
} }
create(goods).then(res => { create(goods).then(res => {

@ -161,7 +161,7 @@
</view> </view>
<view class="width100 height60"></view> <view class="width100 height110"></view>
<view class="footer"> <view class="footer">
<view class="settlement"> <view class="settlement">
<view class="sum">实付:<view class="money">{{paytheprice}}</view> <view class="sum">实付:<view class="money">{{paytheprice}}</view>
@ -527,6 +527,7 @@
"promoteCode": this.identificationCode, "promoteCode": this.identificationCode,
memDiscountId: this.memDiscountId, memDiscountId: this.memDiscountId,
"storeId": this.storeId, "storeId": this.storeId,
"companyId": app.globalData.companyId,
"postData": { "postData": {
"address": this.contactAddress, "address": this.contactAddress,
"user": this.contactPepole, "user": this.contactPepole,
@ -688,6 +689,7 @@
"payGold": this.priceValue[1], "payGold": this.priceValue[1],
"promoteCode": this.identificationCode, "promoteCode": this.identificationCode,
"payPwd": this.PaymentPassword, "payPwd": this.PaymentPassword,
"companyId": app.globalData.companyId,
memDiscountId: this.memDiscountId memDiscountId: this.memDiscountId
} }
create(goods).then(res => { create(goods).then(res => {

@ -57,7 +57,7 @@
<view class="mart20 fotct fcorred font15 marb20" <view class="mart20 fotct fcorred font15 marb20"
v-if="!couponDesInfo.couponInfo.reserveStatus && coupstus != 0 && couponDesInfo.couponInfo.couponSource != 3 && couponDesInfo.couponInfo.couponSource != 5"> v-if="!couponDesInfo.couponInfo.reserveStatus && coupstus != 0 && couponDesInfo.couponInfo.couponSource != 3 && couponDesInfo.couponInfo.couponSource != 5">
请告知加油员用码商支付</view> 请告知加油员用码商支付</view>
<view class="width90 mart20 fotct" v-if="couponDesInfo.couponInfo.reserveStatus"> <view class="width90 mart20 fotct" v-if="couponDesInfo.highUserCoupon.qrCodeImg">
<image class="coupon-qr" :src="imageUrl+'couponCode/'+couponDesInfo.highUserCoupon.qrCodeImg"> <image class="coupon-qr" :src="imageUrl+'couponCode/'+couponDesInfo.highUserCoupon.qrCodeImg">
</image> </image>
</view> </view>

@ -272,7 +272,7 @@
}, },
// //
playPhone() { playPhone() {
let cont = "本服务由惠兑礼品提供\n400-678-738"; let cont = "本服务由惠兑礼品提供\n400-678-0738";
let content = cont.replace(/<br>/g,"\n"); let content = cont.replace(/<br>/g,"\n");
uni.showModal({ uni.showModal({
title: '客服', title: '客服',

@ -6,6 +6,9 @@
@animCreated="handleAnimation" /> @animCreated="handleAnimation" />
</view> --> </view> -->
<!-- <view class="status"></view> --> <!-- <view class="status"></view> -->
<view v-if="isdisplay">
<image :src="imagewxUrl+imgadres5" class="widthw30 mart110" mode="widthFix"></image>
</view>
<view v-for="(item,index) in homeCateList" :key="index"> <view v-for="(item,index) in homeCateList" :key="index">
<view class="height90 backcorltop" v-if="item.type == 1"> <view class="height90 backcorltop" v-if="item.type == 1">
<view class="category-list"> <view class="category-list">
@ -22,7 +25,7 @@
<image class="width100" mode="widthFix" :src="imagewxUrl+imgadres" v-if="item.type == 8"></image> <image class="width100" mode="widthFix" :src="imagewxUrl+imgadres" v-if="item.type == 8"></image>
<!-- 顶部菜单 --> <!-- 顶部菜单 -->
<view class="category-list backcorfff" style="margin-top: -5px;" v-if="item.type == 7"> <view class="category-list backcorfff" style="margin-top: -7px;" v-if="item.type == 7">
<view class="category" style="width: 20%;" v-for="(row, indexc) in item.childCategory" :key="indexc" <view class="category" style="width: 20%;" v-for="(row, indexc) in item.childCategory" :key="indexc"
@click="toCategory(row)"> @click="toCategory(row)">
<view class="img"> <view class="img">
@ -42,7 +45,7 @@
<view class="paddleft10 font14 fcor666 text1 width70"> <view class="paddleft10 font14 fcor666 text1 width70">
{{item.childDate[0].title}} {{item.childDate[0].title}}
</view> </view>
<view class="width25 font13 fcor999">{{swipers.timeData}}</view> <view class="width25 font13 fcor999">{{item.childDate[0].timeData}}</view>
</view> </view>
<view class="width20 alijus"> <view class="width20 alijus">
<image class="icon15" mode="widthFix" src="../../../static/img/jt.png"></image> <image class="icon15" mode="widthFix" src="../../../static/img/jt.png"></image>
@ -84,22 +87,26 @@
</view> </view>
<view class="width30 font14 fotrt fcor666">更多</view> <view class="width30 font14 fotrt fcor666">更多</view>
</view> </view>
<view class="width94 alijus mart20" v-if="item.type == 6 "> <view class="width94 alijusnostart mart20" v-if="item.type == 6 ">
<view class="backcorfff spcarea" v-for="(goods,index) in item.childDate" :key="index"> <view class="backcorfff spcarea border-r" v-for="(goods,index1) in item.childDate" :key="index1"
<image mode="widthFix" class="width100" :src="imageUrl+goods.couponImg"></image> @click="toGoods(item.detailJumpUrl,goods.id)">
<image mode="widthFix" class="width100" style="border-radius: 5px; 5px 0 0"
:src="imageUrl+goods.couponImg"></image>
<view class="width96 fcor333 font15 fontwig6">{{goods.couponName}}</view> <view class="width96 fcor333 font15 fontwig6">{{goods.couponName}}</view>
<view class="width96 fcor999 font11">{{goods.salesEndTime | timeFormat('yyyy-mm-dd hh:mm:ss')}} <!-- <view class="width96 fcor999 font11">{{goods.salesEndTime | timeFormat('yyyy-mm-dd hh:mm:ss')}}
</view> </view> -->
<view class="width94 fcoreb5 font15 fontwig6">¥{{goods.salesPrice}}</view> <view class="width94 fcoreb5 font15 fontwig6">¥{{goods.salesPrice}}</view>
</view> </view>
</view> </view>
<view class="width94 alijus mart20" v-if="item.type == 9 "> <view class="width94 alijusnostart mart20" v-if="item.type == 9 ">
<view class="backcorfff spcarea" v-for="(goods,index) in item.childDate" :key="index"> <view class="backcorfff spcarea border-r" v-for="(goods,index2) in item.childDate" :key="index2"
<image mode="widthFix" class="width100" :src="imageUrl+goods.listImg"></image> @click="toGoods(item.detailJumpUrl,goods.id)">
<image mode="widthFix" class="width100" style="border-radius: 5px; 5px 0 0"
:src="imageUrl+goods.listImg"></image>
<view class="width96 fcor333 font15 fontwig6">{{goods.title}}</view> <view class="width96 fcor333 font15 fontwig6">{{goods.title}}</view>
<view class="width96 fcor999 font11" v-if="goods.effectiveTiem"> <!-- <view class="width96 fcor999 font11" v-if="goods.effectiveTiem">
{{goods.effectiveTiem | timeFormat('yyyy-mm-dd hh:mm:ss')}} {{goods.effectiveTiem | timeFormat('yyyy-mm-dd hh:mm:ss')}}
</view> </view> -->
<view class="width94 fcoreb5 font15 fontwig6">¥{{goods.price}}</view> <view class="width94 fcoreb5 font15 fontwig6">¥{{goods.price}}</view>
</view> </view>
</view> </view>
@ -156,7 +163,8 @@
imgadres: '/home/home1.png', imgadres: '/home/home1.png',
imgadres1: '/home/home2.png', imgadres1: '/home/home2.png',
imgadres2: 'jt.png', imgadres2: 'jt.png',
imgadres5: 'unionarea.png', // imgadres5: 'unionarea.png',
imgadres5: 'loading.gif',
imgadres3: '', imgadres3: '',
imgadres4: 'cusservice.png', imgadres4: 'cusservice.png',
webUrl: '', webUrl: '',
@ -170,7 +178,6 @@
pageSize: 6, pageSize: 6,
homeCateList: [], homeCateList: [],
// //
cpStuats: 1,
jumpType: '', jumpType: '',
isdisplay: true // isdisplay: true //
}; };
@ -285,8 +292,8 @@
app.globalData.cityId = res.return_data.regionId; app.globalData.cityId = res.return_data.regionId;
// app.globalData.cityId = '520000'; // app.globalData.cityId = '520000';
app.globalData.companyId = res.return_data.companyId; app.globalData.companyId = res.return_data.companyId;
this.getCmsAactibity();
this.getCmsContentcmsContent(); this.getCmsContentcmsContent();
this.getCmsAactibity();
} }
}); });
}, },
@ -295,7 +302,7 @@
let params = { let params = {
companyId: app.globalData.companyId, companyId: app.globalData.companyId,
platform: 3, platform: 3,
categoryCode: 'CMS_HOME' categoryCode: 'CMS_HOME_POPOVER'
} }
getCmsContent(params).then(res => { getCmsContent(params).then(res => {
this.isdisplay = false; this.isdisplay = false;
@ -312,7 +319,7 @@
let params = { let params = {
companyId: app.globalData.companyId, companyId: app.globalData.companyId,
platform: 3, platform: 3,
categoryCode: 'CMS_UNIONPAY_ALERT' categoryCode: 'CMS_HOME_POPOVER'
} }
getCmsContent(params).then(res => { getCmsContent(params).then(res => {
uni.hideLoading(); uni.hideLoading();
@ -368,9 +375,9 @@
}) })
}, },
// //
toGoods(e) { toGoods(e, id) {
uni.navigateTo({ uni.navigateTo({
url: '../../goods/goods?id=' + e url: e + id
}); });
}, },
// //

@ -1,7 +1,7 @@
<template> <template>
<view> <view>
<!-- #ifdef H5 --> <!-- #ifdef H5 -->
<view class="status"></view> <view class="status"></view>
<!-- #endif --> <!-- #endif -->
<view class="user"> <view class="user">
<!-- 头像 --> <!-- 头像 -->
@ -59,13 +59,31 @@
</view> </view>
<view class="width90 mart10 height60" v-if="nopaylist != ''"> <view class="width90 mart10 height60" v-if="nopaylist != ''">
<swiper circular="true" interval="3000" autoplay="true" @change="swiperChange"> <swiper circular="true" interval="3000" autoplay="true" @change="swiperChange">
<swiper-item v-for="(swiper,index) in nopaylist" :key="index" @click="jumpDetails(swiper.orderNo,swiper.productType)"> <swiper-item v-for="(swiper,index) in nopaylist" :key="index"
@click="jumpDetails(swiper.orderNo,swiper.productType)">
<view class="alijusstart border-8r backcor9 height60 "> <view class="alijusstart border-8r backcor9 height60 ">
<image mode="widthFix" class="icon40 margle10" src="../../../static/img/user/user5.png"> <image mode="widthFix" class="icon40 margle10" src="../../../static/img/order7.png"
v-if="swiper.productType== 1"></image>
<image mode="widthFix" class="icon40 margle10" src="../../../static/img/order9.png"
v-if="swiper.productType== 2"></image>
<image mode="widthFix" class="icon40 margle10" src="../../../static/img/order3.png"
v-if="swiper.productType== 3"></image>
<image mode="widthFix" class="icon40 margle10" src="../../../static/img/order2.png"
v-if="swiper.productType== 4"></image>
<image mode="widthFix" class="icon40 margle10" src="../../../static/img/order5.png"
v-if="swiper.productType== 5"></image>
<image mode="widthFix" class="icon40 margle10" src="../../../static/img/order4.png"
v-if="swiper.productType== 6"></image>
<image mode="widthFix" class="icon40 margle10" src="../../../static/img/order8.png"
v-if="swiper.productType== 7"></image>
<image mode="widthFix" class="icon40 margle10" src="../../../static/img/unioncard.png"
v-if="swiper.productType== 8"></image>
<image mode="widthFix" class="icon40 margle10" src="../../../static/img/order6.png"
v-if="swiper.productType== 9">
</image> </image>
<view class="width50 margle10"> <view class="width50 margle10">
<view class="font15 fcor333 fontspec">等待付款</view> <view class="font15 fcor333 fontspec">等待付款</view>
<view class="font12 fcor666 fontspec mart5">剩余时间: {{countdownm}}:{{countdowns}}</view> <view class="font12 fcor666 fontspec mart5">剩余时间: {{countdownm}}分钟</view>
</view> </view>
<view class="topay"> <view class="topay">
去支付 去支付
@ -174,7 +192,7 @@
textnum: '', textnum: '',
textSend: '', textSend: '',
therrNum: '', therrNum: '',
rechargeOrderNum:'', // rechargeOrderNum: '', //
whetherCheckNum: '', // whetherCheckNum: '', //
orderPayNum: '', // orderPayNum: '', //
//, //,
@ -200,7 +218,7 @@
czList: '', czList: '',
nopaylist: [], // nopaylist: [], //
assetsstu: 2, assetsstu: 2,
userphone:'' ,// userphone: '', //
userAccount: '', //, userAccount: '', //,
countdownm: '', // countdownm: '', //
countdowns: '', // countdowns: '', //
@ -240,7 +258,7 @@
url: '../../login/updatePas/updatePas', url: '../../login/updatePas/updatePas',
text: '支付密码', text: '支付密码',
img: '../../../static/img/user/user11.png' img: '../../../static/img/user/user11.png'
}, { }, {
url: '', url: '',
text: '客服', text: '客服',
img: '../../../static/img/user/user13.png' img: '../../../static/img/user/user13.png'
@ -346,7 +364,7 @@
lefth = Math.floor((lefttime / (1000 * 60 * 60) % 24) + leftd * 24) < 10 ? "0" + Math.floor((lefttime / lefth = Math.floor((lefttime / (1000 * 60 * 60) % 24) + leftd * 24) < 10 ? "0" + Math.floor((lefttime /
(1000 * 60 * 60) % 24) + leftd * 24) : Math.floor((lefttime / (1000 * 60 * 60) % 24) + leftd * (1000 * 60 * 60) % 24) + leftd * 24) : Math.floor((lefttime / (1000 * 60 * 60) % 24) + leftd *
24), // 24), //
leftm = Math.floor(lefttime / (1000 * 60) % 60) < 10 ? "0" + Math.floor(lefttime / (1000 * 60) % 60) : leftm = Math.floor(lefttime / (1000 * 60) % 60) < 10 ? +Math.floor(lefttime / (1000 * 60) % 60) :
Math.floor(lefttime / (1000 * 60) % 60), // Math.floor(lefttime / (1000 * 60) % 60), //
lefts = Math.floor(lefttime / 1000 % 60) < 10 ? "0" + Math.floor(lefttime / 1000 % 60) : Math.floor( lefts = Math.floor(lefttime / 1000 % 60) < 10 ? "0" + Math.floor(lefttime / 1000 % 60) : Math.floor(
lefttime / 1000 % 60); // lefttime / 1000 % 60); //
@ -488,8 +506,8 @@
}, },
// //
playPhone() { playPhone() {
let cont = "本服务由惠兑礼品提供\n400-678-738"; let cont = "本服务由惠兑礼品提供\n400-678-0738";
let content = cont.replace(/<br>/g,"\n"); let content = cont.replace(/<br>/g, "\n");
uni.showModal({ uni.showModal({
title: '客服', title: '客服',
content: content, content: content,
@ -516,6 +534,7 @@
page { page {
background-color: #f5f5f5; background-color: #f5f5f5;
} }
.status { .status {
width: 100%; width: 100%;
height: 44px; height: 44px;

@ -131,7 +131,7 @@
}) })
let params = { let params = {
operatorType: item, operatorType: item,
regionId: app.globalData.cityId, "companyId": app.globalData.companyId,
platformId: 3 platformId: 3
// rechargeType: this.swiperCurrent // rechargeType: this.swiperCurrent
} }

@ -42,8 +42,9 @@
// //
getCmsAactibity() { getCmsAactibity() {
let params = { let params = {
regionId: app.globalData.cityId, companyId: app.globalData.companyId,
categoryCode: 'CMS_TELEPHONE_POP_UP' platform: 3,
categoryCode: 'CMS_RECHARGE_POPOVER'
} }
getCmsContent(params).then(res => { getCmsContent(params).then(res => {
if (res.return_code == '000000' && res.return_data != '') { if (res.return_code == '000000' && res.return_data != '') {

@ -36,8 +36,8 @@
选择支付方式 选择支付方式
</view> </view>
<view class="content"> <view class="content">
<view class="pay-list"> <view class="pay-list" v-for="(item,index) in paytypeList" :key="index">
<view class="row" @tap="paytype='wxpay'"> <view class="row" @tap="paytype='4'" v-if="item == 4">
<view class="left"> <view class="left">
<image mode="widthFix" style="border-radius: 50%;" src="../../../static/img/unionpay.png"> <image mode="widthFix" style="border-radius: 50%;" src="../../../static/img/unionpay.png">
</image> </image>
@ -46,7 +46,7 @@
银联支付 银联支付
</view> </view>
<view class="right"> <view class="right">
<radio :checked="paytype=='wxpay'" color="#0083f5" /> <radio :checked="paytype=='4'" color="#0083f5" />
</view> </view>
</view> </view>
</view> </view>
@ -66,26 +66,43 @@
<script> <script>
let app = getApp() let app = getApp()
import { import {
addOrder, create,
orderToPay, unionPay,
unionPay getThirdPartyByDetail
} from "../../../Utils/Api.js"; } from "../../../Utils/Api.js";
export default { export default {
data() { data() {
return { return {
inputAmount: '', // inputAmount: '', //
amountList: [100, 200, 300, 500, 800, 1000], //3 amountList: [100, 200, 300, 500, 800, 1000], //3
paytype: 'wxpay', // paytype: '4', //
user: "", user: "",
imagewxUrl: app.globalData.imageWxImg, imagewxUrl: app.globalData.imageWxImg,
imgadres: 'wxpay.png' imgadres: 'wxpay.png',
paytypeList: [] //
}; };
}, },
onLoad() { onLoad() {
this.user = app.globalData.userInfo this.user = app.globalData.userInfo
}, },
onShow() {
this.getThirdPartyByDetail();
},
methods: { methods: {
//
getThirdPartyByDetail() {
let datas = {
platformId: 3,
"companyId": app.globalData.companyId,
productType: 4
}
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);
}
});
},
select(amount) { select(amount) {
this.inputAmount = amount; this.inputAmount = amount;
}, },
@ -116,6 +133,7 @@
}) })
let goods = { let goods = {
"identificationCode": app.globalData.identificationCode, "identificationCode": app.globalData.identificationCode,
"companyId": app.globalData.companyId,
"highChildOrderList": [{ "highChildOrderList": [{
"goodsType": 2, "goodsType": 2,
"goodsId": app.globalData.userInfo.id, "goodsId": app.globalData.userInfo.id,
@ -123,11 +141,11 @@
"goodsPrice": this.inputAmount "goodsPrice": this.inputAmount
}] }]
} }
addOrder(goods).then(res => { create(goods).then(res => {
uni.hideLoading(); uni.hideLoading();
if (res.return_code == '000000') { if (res.return_code == '000000') {
/// ///
this.unionPay(res.return_data.id); this.unionPay(res.return_data.orderNo);
} else { } else {
uni.showToast({ uni.showToast({
title: res.return_msg title: res.return_msg
@ -138,7 +156,7 @@
// //
unionPay(item) { unionPay(item) {
let goods = { let goods = {
"orderId": item "orderNo": item
} }
unionPay(goods).then(res => { unionPay(goods).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
@ -227,6 +245,7 @@
font-size: 36upx; font-size: 36upx;
color: #089bf5; color: #089bf5;
background-color: #f1f1f1; background-color: #f1f1f1;
&.on { &.on {
background-color: #089bf5; background-color: #089bf5;
color: #ffffff; color: #ffffff;

@ -7,7 +7,7 @@
{{countdownm}}:{{countdowns}} {{countdownm}}:{{countdowns}}
</view> </view>
<view class="width100 font13 fcor666 mart10">若超时未支付,订单将自动取消</view> <view class="width100 font13 fcor666 mart10">若超时未支付,订单将自动取消</view>
<view class="stubtn mart15" style="background-color: #0F8FE8;" @click="jumppay()">立即支付 <view class="stubtn mart15" style="background-color: #0F8FE8;" @click="toPay()">立即支付
</view> </view>
</view> </view>
<view class="width100 headsbg paddbotm15" v-if="recinfo.orderStatus != 1"> <view class="width100 headsbg paddbotm15" v-if="recinfo.orderStatus != 1">
@ -51,8 +51,11 @@
<view class="mart15 alijusstart font14 width94" v-if="recinfo.payType"> <view class="mart15 alijusstart font14 width94" v-if="recinfo.payType">
<view class="width20 fcor777">支付方式</view> <view class="width20 fcor777">支付方式</view>
<view class="width80p fotrt fcor333" v-if="recinfo.payType == 1">支付宝</view> <view class="width80p fotrt fcor333" v-if="recinfo.payType == 1">支付宝</view>
<view class="width80p fotrt fcor333" v-if="recinfo.payType == 2">微信</view> <view class="width80p fotrt fcor333" v-if="recinfo.payType == 2">微信支付</view>
<view class="width80p fotrt fcor333" v-if="recinfo.payType == 3">积分兑换</view>
<view class="width80p fotrt fcor333" v-if="recinfo.payType == 4">汇联通工会卡</view> <view class="width80p fotrt fcor333" v-if="recinfo.payType == 4">汇联通工会卡</view>
<view class="width80p fotrt fcor333" v-if="recinfo.payType == 7">嗨森逛个人油卡</view>
<view class="width80p fotrt fcor333" v-if="recinfo.payType == 8">嗨森逛车队油卡</view>
</view> </view>
<view class="mart15 alijusstart font14 width94" v-if="recinfo.productType == 6"> <view class="mart15 alijusstart font14 width94" v-if="recinfo.productType == 6">
<view class="width20 fcor777">地址</view> <view class="width20 fcor777">地址</view>
@ -95,10 +98,22 @@
<view class="width50 fcor777">加油金额</view> <view class="width50 fcor777">加油金额</view>
<view class="width50 fotrt fcor333">¥{{oilList.gasRefuelPrice}}</view> <view class="width50 fotrt fcor333">¥{{oilList.gasRefuelPrice}}</view>
</view> </view>
<view class="mart15 alijusstart font14 width94" v-if="materialData">
<view class="width50 fcor777">联系人</view>
<view class="width50 fotrt fcor333">¥{{materialData.user}}</view>
</view>
<view class="mart15 alijusstart font14 width94" v-if="materialData">
<view class="width50 fcor777">联系电话</view>
<view class="width50 fotrt fcor333">¥{{materialData.phone}}</view>
</view>
<view class="mart15 alijusstart font14 width94" v-if="materialData">
<view class="width50 fcor777">联系地址</view>
<view class="width50 fotrt fcor333">¥{{materialData.address}}</view>
</view>
</view> </view>
<!-- 支付信息 --> <!-- 支付信息 -->
<view class="width90 backcorfff mart10 concont"> <view class="width90 backcorfff mart10">
<view class="paddtop20 font22 width94 fcor333">优惠信息</view> <view class="paddtop20 font22 width94 fcor333">优惠信息</view>
<view class="mart15 alijusstart font14 width94"> <view class="mart15 alijusstart font14 width94">
<view class="width50 fcor777">商品优惠</view> <view class="width50 fcor777">商品优惠</view>
@ -112,21 +127,31 @@
<view class="width50 fcor777">积分抵扣</view> <view class="width50 fcor777">积分抵扣</view>
<view class="width50 fotrt fcoreb5">-¥{{recinfo.payGold / 100}}</view> <view class="width50 fotrt fcoreb5">-¥{{recinfo.payGold / 100}}</view>
</view> </view>
<view class="width95 height20 borderleft alijusnostart"> <view class="width95 height20 alijusnostart">
<view style="width: 5%;"></view> <view style="width: 5%;"></view>
<view class="width95" style="border-bottom: 1px dashed #bebcbc;"></view> <view class="width95" style="border-bottom: 1px dashed #bebcbc;"></view>
</view> </view>
</view> </view>
<view class="gooddes width90 backcorfff marb20"> <view class="width95 alijusnostart">
<view class="width90w height20 bordertopleft alijusnostart"> <view style="width: 9%;"></view>
<view style="border-bottom: 1px dashed #bebcbc;width: 88%;"></view>
</view>
<view class="width90 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="width90 height50 fotrt fcor777 font16 paddbotm10" v-if="!recinfo.payRealPrice"> <view class="width90 height50 fotrt fcor777 font16 paddbotm10" v-if="!recinfo.payRealPrice">
</view> </view>
<view class="width90 height50 fotrt fcor777 font16 paddbotm10" v-else> <view class="width90 height50 fotrt fcor777 font16 paddbotm10"
v-if="recinfo.productType == 6 && recinfo.payRealPrice">
加油实付 <text class="font24 fcor333 margle">{{recinfo.payRealPrice}}</text> 加油实付 <text class="font24 fcor333 margle">{{recinfo.payRealPrice}}</text>
</view> </view>
<view class="width90 height50 fotrt fcor777 font16 paddbotm10"
v-if="recinfo.productType != 6 && recinfo.payRealPrice">
实付 <text class="font24 fcor333 margle">{{recinfo.payRealPrice}}</text>
</view>
</view> </view>
@ -459,7 +484,7 @@
<view class="height50 width100"></view> <view class="height50 width100"></view>
<view class="bottomstu backcorfff width100 height50 alijusend"> <view class="bottomstu backcorfff width100 height50 alijusend">
<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>
</template> </template>
@ -718,11 +743,16 @@
} else { } else {
payTypes = 2; payTypes = 2;
} }
// uni.redirectTo({
// url: "/pages/pay/payment/payment?amount=" + this.recinfo.payPrice +
// '&paytype=' + payTypes + '&orderId=' + this.recinfo.id + '&couponId=' + this.recinfo
// .highChildOrderList[0].goodsId + '&typeaout=' + this.recinfo.highChildOrderList[0].ext1 +
// '&goodsType=' + this.recinfo.highChildOrderList[0].goodsType
// })
uni.redirectTo({ uni.redirectTo({
url: "/pages/pay/payment/payment?amount=" + this.recinfo.payPrice + url: '/qianzhu-KFC/payment-method/payment-method?orderId=' + this.recinfo.orderNo +
'&paytype=' + payTypes + '&orderId=' + this.recinfo.id + '&couponId=' + this.recinfo '&amount=' + this.recinfo
.highChildOrderList[0].goodsId + '&typeaout=' + this.recinfo.highChildOrderList[0].ext1 + .payPrice + '&productType=' + this.recinfo.productType
'&goodsType=' + this.recinfo.highChildOrderList[0].goodsType
}) })
}, },
} }
@ -1032,22 +1062,28 @@
border-radius: 25px; border-radius: 25px;
} }
.cro_left_top,
.cro_right_top,
.cro_left_bottom,
.cro_right_bottom {
width: 20rpx;
height: 20rpx;
background: #f0f0f0;
}
.borderleft { .cro_left_top {
background-image: radial-gradient(10px at bottom left, #f0f0f0 10px, #ffffff); border-radius: 0px 0px 20rpx 0px;
} }
.bordertopleft { .cro_right_top {
background-image: radial-gradient(10px at top left, #f0f0f0 10px, #ffffff); border-radius: 0px 0px 0px 20rpx;
} }
.concont { .cro_left_bottom {
border-radius: 8px 8px 0 0; border-radius: 0px 20rpx 0px 0px;
background-image: radial-gradient(10px at bottom right, #f0f0f0 10px, #ffffff);
} }
.gooddes { .cro_right_bottom {
border-radius: 0 0 8px 8px; border-radius: 20rpx 0px 0px 0px;
background-image: radial-gradient(10px at top right, #f0f0f0 10px, #ffffff);
} }
</style> </style>

@ -46,8 +46,24 @@
<view class="width96 height22 mart10"> <view class="width96 height22 mart10">
<view class="width70 flleft fotlt "> <view class="width70 flleft fotlt ">
<view class="font16 fontwig6 fcor333 alijusstart"> <view class="font16 fontwig6 fcor333 alijusstart">
<image src="../../../static/img/order5.png" class="marglerig" <image mode="widthFix" src="../../../static/img/order2.png" v-if="row.productType == 4"
style="width: 50rpx;height: 50rpx;"></image> class="marglerig" style="width: 50rpx;height: 50rpx;"></image>
<image mode="widthFix" src="../../../static/img/order3.png" v-if="row.productType == 3"
class="marglerig" style="width: 50rpx;height: 50rpx;"></image>
<image mode="widthFix" src="../../../static/img/order4.png" v-if="row.productType == 6"
class="marglerig" style="width: 50rpx;height: 50rpx;"></image>
<image mode="widthFix" src="../../../static/img/order5.png" v-if="row.productType == 5"
class="marglerig" style="width: 50rpx;height: 50rpx;"></image>
<image mode="widthFix" src="../../../static/img/order6.png" v-if="row.productType == 9"
class="marglerig" style="width: 50rpx;height: 50rpx;"></image>
<image mode="widthFix" src="../../../static/img/order8.png" v-if="row.productType == 7"
class="marglerig" style="width: 50rpx;height: 50rpx;"></image>
<image mode="widthFix" src="../../../static/img/order7.png" v-if="row.productType == 1"
class="marglerig" style="width: 50rpx;height: 50rpx;"></image>
<image mode="widthFix" src="../../../static/img/unioncard.png" v-if="row.productType == 8"
class="marglerig" style="width: 50rpx;height: 50rpx;"></image>
<image mode="widthFix" src="../../../static/img/order9.png" v-if="row.productType == 2"
class="marglerig" style="width: 50rpx;height: 50rpx;"></image>
<view class="width100 text1">{{row.title}}</view> <view class="width100 text1">{{row.title}}</view>
</view> </view>
</view> </view>
@ -106,12 +122,12 @@
headerswper: '120px', headerswper: '120px',
typeText: { typeText: {
1: '等待付款', 1: '等待付款',
2: '订单已支付', 2: '已支付',
3: '订单已完成', 3: '已完成',
4: '订单已退款', 4: '已退款',
5: '订单已取消', 5: '已取消',
6: '订单退款中', 6: '退款中',
7: '订单退款失败' 7: '退款失败'
}, },
// 退 // 退
orderType: ['全部', '待支付', '已支付', '已完成', '已退款'], orderType: ['全部', '待支付', '已支付', '已完成', '已退款'],
@ -340,7 +356,7 @@
payTypes = 2; payTypes = 2;
} }
uni.redirectTo({ uni.redirectTo({
url: '/qianzhu-KFC/payment-method/payment-method?orderId=' + row.id + '&amount=' + row url: '/qianzhu-KFC/payment-method/payment-method?orderId=' + row.orderNo + '&amount=' + row
.payPrice + '&productType=' + row.productType .payPrice + '&productType=' + row.productType
}) })
} }
@ -623,7 +639,7 @@
} }
.orderlabel { .orderlabel {
width: 50px; width: 60px;
border-radius: 5px; border-radius: 5px;
height: 22px; height: 22px;
line-height: 22px; line-height: 22px;

@ -358,7 +358,7 @@
} }
let datas = { let datas = {
platformId: this.showType, platformId: this.showType,
regionId: app.globalData.cityId, "companyId": app.globalData.companyId,
productType: this.productType productType: this.productType
} }
getThirdPartyByDetail(datas).then(res => { getThirdPartyByDetail(datas).then(res => {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

@ -37,14 +37,16 @@
支付方式 支付方式
</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='unionPay'"> <view class="width94 line1 mart5 marb5" v-if="item == 4"></view>
<view class="width50 flleft fcor333 fontwig6 font16" style="padding-left: 4%;"> <view class="height50 width100 backcorfff" @tap="paytype='4'" v-if="item == 4">
银联支付 <view class="width50 flleft fcor333 fontwig6 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=='unionPay'" color="#0083f5" /> style="align-items: center;">
<radio :checked="paytype=='4'" color="#0083f5" />
</view>
</view> </view>
</view> </view>
</view> </view>
@ -69,7 +71,8 @@
unionPay, unionPay,
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();
@ -101,9 +104,8 @@
jumpType: '', jumpType: '',
tongCardPrice: 0, tongCardPrice: 0,
storeId: '', storeId: '',
isDiscont: false, identificationCode: '', //
identificationCode: '' // paytypeList: [] //
}; };
}, },
onLoad(option) { onLoad(option) {
@ -115,6 +117,7 @@
that.paytype = ''; that.paytype = '';
that.user = app.globalData.userInfo; that.user = app.globalData.userInfo;
that.findUser(); that.findUser();
that.getThirdPartyByDetail();
}, },
onHide() { onHide() {
@ -144,6 +147,20 @@
} }
}, },
methods: { methods: {
//
getThirdPartyByDetail() {
let datas = {
platformId: 3,
"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;
@ -258,7 +275,8 @@
"goodsType": 7, "goodsType": 7,
"saleCount": 1, "saleCount": 1,
}], }],
"promoteCode": this.identificationCode "promoteCode": this.identificationCode,
"companyId": app.globalData.companyId
} }
create(goods).then(res => { create(goods).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {

@ -79,7 +79,7 @@
title: '优惠券包列表' title: '优惠券包列表'
}); });
this.getDiscountPackageList(); this.getDiscountPackageList();
this.getCmsContent('CMS_DISCOUNT_BANNER'); this.getCmsContent('CMS_DISCOUNT_PACKAGE_BANNER');
}, },
onPageScroll(e) { onPageScroll(e) {
@ -92,12 +92,12 @@
// //
getCmsContent(item) { getCmsContent(item) {
let params = { let params = {
regionId: app.globalData.cityId, companyId: app.globalData.companyId,
categoryCode: item categoryCode: item
} }
getCmsContent(params).then(res => { getCmsContent(params).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
this.swiperList = res.return_data; this.swiperList = res.return_data.childCategory;
} }
}); });
}, },

Loading…
Cancel
Save