1.新增待支付 已完成 数量

2.修改肯德基 星巴克问题
yj-dev
杨杰 2 years ago
parent d219029607
commit 13c94b00c6
  1. 16
      App.vue
  2. 5
      Utils/Api.js
  3. 6
      components/shopcart.vue
  4. 5
      pages/goods/refuel-details/refuel-details.vue
  5. 9
      pages/tabBar/user/user.vue
  6. 40
      pages/user/order_list/order_list.vue
  7. 8
      qianzhu-KFC/buffet-order/buffet-order.vue
  8. 29
      qianzhu-KFC/confirmOrder/confirmOrder.vue
  9. 7
      qianzhu-KFC/kfc-menu-list/kfc-menu-list.vue
  10. 9
      subPages/scancodeCoupons/scancodeCoupons.vue

@ -5,15 +5,15 @@
// brestUrl: 'http://192.168.3.4:9302/brest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/',
//
// url: 'https://hsg.dctpay.com/crest',
// imgUrl: 'https://hsg.dctpay.com/filesystem/',
// brestUrl : 'https://hsg.dctpay.com/brest',
// imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/',
url: 'https://hsg.dctpay.com/crest',
imgUrl: 'https://hsg.dctpay.com/filesystem/',
brestUrl : 'https://hsg.dctpay.com/brest',
imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/',
//
url: 'https://hsgcs.dctpay.com/crest',
brestUrl : 'https://hsgcs.dctpay.com/brest',
imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/',
// url: 'https://hsgcs.dctpay.com/crest',
// brestUrl : 'https://hsgcs.dctpay.com/brest',
// imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
// imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/',
userInfo: "",
brestUserInfo : '',
bresthighAgent:'',

@ -132,6 +132,11 @@ export const cancelOrder = params => {
export const getOrderById = params => {
return POST('GET', `${base}/highOrder/getOrderById`, params).then(res => res.data);
}
//已完成未查看
export const orderCheck = params => {
return POST('GET', `${base}/highOrder/orderCheck`, params).then(res => res.data);
}
//获取商户列表
export const getMerchantList = params => {
return POST('GET', `${base}/highMerchantStore/getMerchantList`, params).then(res => res.data);

@ -163,7 +163,11 @@
}
},
buyList() {
if (this.goods.length == 0) {
let nums = 0;
this.goods.forEach((food) => {
nums += food.num
})
if (nums == 0) {
uni.showToast({
title: '请选择购买的商品',
duration: 2000,

@ -219,6 +219,8 @@
if(app.globalData.gasKey){
this.store_key = app.globalData.gasKey;
}else{
app.globalData.staffCode = '';
}
// #ifdef H5
if (app.globalData.accountType && app.globalData.accountType == '000000#/') {
@ -371,10 +373,11 @@
changeValue(item) {
this.gunnumber = [];
this.oilNo = item.oilNoName;
this.gunNo = '';
for (var i = 0; i < this.gasGunList.length; i++) {
if (this.oilNo == this.gasGunList[i].oilNoName) {
this.gunnumber.push(this.gasGunList[i])
this.gunNo = this.gasGunList[i].gunNo;
// this.gunNo = this.gasGunList[i].gunNo;
this.gasOilNo = this.gasGunList[i].oilNo;
}
}

@ -52,6 +52,11 @@
<view class="box" v-for="(row,index) in orderList" :key="index" @tap="toOrderList(index)">
<uni-badge style="width: 20px;position: absolute; left: 15%;" v-if="row.text == '待支付' && therrNum "
:text="therrNum" type="error" size="normal"></uni-badge>
<uni-badge style="width: 20px;position: absolute; left: 52%;" v-if="row.text == '已完成' && whetherCheckNum " :text="whetherCheckNum"
type="error" size="normal"></uni-badge>
<uni-badge style="width: 20px;position: absolute; left: 33%;" v-if="row.text == '已支付' && orderPayNum " :text="orderPayNum"
type="error" size="normal"></uni-badge>
<view class="img">
<view class="icon" :class="row.icon"></view>
</view>
@ -162,6 +167,8 @@
textSend: '',
therrNum: '',
rechargeOrderNum: '', //
whetherCheckNum: '', //
orderPayNum:'', //
headerTop: null,
statusTop: null,
showHeader: true,
@ -365,6 +372,8 @@
this.textnum = res.return_data.unusedCouponNum;
this.textSend = res.return_data.unusedDiscount;
this.therrNum = res.return_data.unpaid;
this.whetherCheckNum = res.return_data.whetherCheckNum;
this.orderPayNum = res.return_data.orderPayNum;
this.rechargeOrderNum = res.return_data.rechargeOrderNum;
uni.setStorage({
key: "user",

@ -18,55 +18,55 @@
v-if="row.highChildOrderList[0].goodsType == 1">
<image src="../../../static/img/order2.png" class="marglerig"
style="width: 50rpx;height: 50rpx;"></image>
卡券订单
卡券订单 <view class="unread" v-if="row.orderStatus == 3 && !row.whetherCheck"></view>
</view>
<view class="width50 flleft aliitem fotlt font16"
v-if="row.highChildOrderList[0].goodsType == 2">
<image src="../../../static/img/order2.png" class="marglerig"
style="width: 50rpx;height: 50rpx;"></image>
积分充值
积分充值<view class="unread" v-if="row.orderStatus == 3 && !row.whetherCheck"></view>
</view>
<view class="width50 flleft aliitem fotlt font16"
v-if="row.highChildOrderList[0].goodsType == 7">
<image src="../../../static/img/order9.png" class="marglerig"
style="width: 50rpx;height: 50rpx;"></image>
优惠券包
优惠券包<view class="unread" v-if="row.orderStatus == 3 && !row.whetherCheck"></view>
</view>
<view class="width50 flleft aliitem fotlt font16"
v-if="row.highChildOrderList[0].goodsType == 3">
<image src="../../../static/img/order4.png" class="marglerig"
style="width: 50rpx;height: 50rpx;"></image>
团油订单
团油订单<view class="unread" v-if="row.orderStatus == 3 && !row.whetherCheck"></view>
</view>
<view class="width50 flleft aliitem fotlt font16"
v-if="row.highChildOrderList[0].goodsType == 5">
<image src="../../../static/img/order5.png" class="marglerig"
style="width: 50rpx;height: 50rpx;"></image>
电影票
电影票<view class="unread" v-if="row.orderStatus == 3 && !row.whetherCheck"></view>
</view>
<view class="width50 flleft aliitem fotlt font16"
v-if="row.highChildOrderList[0].goodsType == 4">
<image src="../../../static/img/order3.png" class="marglerig"
style="width: 50rpx;height: 50rpx;"></image>
KFC
KFC<view class="unread" v-if="row.orderStatus == 3 && !row.whetherCheck"></view>
</view>
<view class="width50 flleft aliitem fotlt font16"
v-if="row.highChildOrderList[0].goodsType == 9">
<image src="../../../static/img/xbk.png" class="marglerig"
style="width: 50rpx;height: 50rpx;"></image>
星巴克
星巴克<view class="unread" v-if="row.orderStatus == 3 && !row.whetherCheck"></view>
</view>
<view class="width50 flleft aliitem fotlt font16"
v-if="row.highChildOrderList[0].goodsType == 10">
<image src="../../../static/img/Vip.png" class="marglerig"
style="width: 50rpx;height: 50rpx;"></image>
会员充值
会员充值<view class="unread" v-if="row.orderStatus == 3 && !row.whetherCheck"></view>
</view>
<view class="width50 flleft aliitem fotlt font16"
v-if="row.highChildOrderList[0].goodsType == 8">
<image src="../../../static/img/ghkpay.png" class="marglerig"
style="width: 50rpx;height: 50rpx;"></image>
工会卡充值
工会卡充值<view class="unread" v-if="row.orderStatus == 3 && !row.whetherCheck"></view>
</view>
<view class="width50 flright fotrt fcor666 font15">
{{row.createTime | formatDate('-')}}
@ -116,7 +116,8 @@
import {
getUserOrderList,
cancelOrder,
thirdCancelOrder
thirdCancelOrder,
orderCheck
} from '../../../Utils/Api.js';
let app = getApp()
export default {
@ -245,6 +246,7 @@
},
//
jumpDetails(item, e) {
this.orderCheck(e);
if (item == 4 || item == 9 || item == 10) {
uni.navigateTo({
url: '/qianzhu-KFC/order-details/order-details?id=' + e
@ -254,6 +256,16 @@
uni.navigateTo({
url: '../order_details/order_details?id=' + e
})
},
//
orderCheck(item) {
let datas = {
orderId: item
}
orderCheck(datas).then(res => {
});
},
showType(tbIndex) {
this.tabbarIndex = tbIndex;
@ -475,6 +487,14 @@
background-color: #fff;
margin-bottom: 20upx;
.unread {
width: 10px;
height: 10px;
background-color: #e75e58;
border-radius: 50%;
margin-top: -20px;
}
.type {
font-size: 26upx;
color: #0083f5;

@ -126,7 +126,9 @@
lon: app.globalData.longitude
}
getStarbucksStore(datas).then(res => {
uni.hideLoading();
setTimeout(() => {
uni.hideLoading();
}, 1000);
if (res.return_code == '000000') {
this.kcfShopList = res.return_data;
}
@ -144,7 +146,9 @@
lon: app.globalData.longitude
}
getKfcStoresList(datas).then(res => {
uni.hideLoading();
setTimeout(() => {
uni.hideLoading();
}, 1000);
if (res.return_code == '000000') {
this.kcfShopList = res.return_data;
}

@ -45,7 +45,8 @@
<view class="width20">
<view class="width100 fcor333 font12">¥<text class="fontwig6 font16">{{item.price}}</text>
</view>
<view class="width100 fcor999 font12" v-if="item.price != item.oldprice" style="text-decoration: line-through;">¥{{item.oldprice}}
<view class="width100 fcor999 font12" v-if="item.price != item.oldprice"
style="text-decoration: line-through;">¥{{item.oldprice}}
</view>
</view>
</view>
@ -57,7 +58,10 @@
</view>
</view>
<view class="width94 concont mart10 backcorfff">
<view class="width92 alijusstart paddtop20">
<view class="Bubble alijusstart font14 fcor999">
选取: <text class="tests fotct font14 fcor089 paddleft5 paddtright5">{{priceValue[1]}}</text>
</view>
<view class="width92 alijusstart paddtop10">
<view class="width30 fcor333 fontwig6 font16">
积分抵扣
</view>
@ -224,7 +228,7 @@
showType: '', //
memDiscountId: '', //id
PaymentPassword: '', //
orderId:'' //id
orderId: '' //id
}
},
onLoad() {
@ -482,7 +486,7 @@
xbkaddOrder(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000') {
this.orderId = res.return_data.id;
this.orderId = res.return_data.id;
let params = {
"orderId": res.return_data.id,
"openId": app.globalData.openId,
@ -515,7 +519,8 @@
title: '支付成功'
})
uni.reLaunch({
url: '/qianzhu-KFC/order-details/order-details?id=' + that.orderId
url: '/qianzhu-KFC/order-details/order-details?id=' +
that.orderId
})
},
fail: function(err) {
@ -717,7 +722,8 @@
title: '支付成功'
})
uni.reLaunch({
url: '/qianzhu-KFC/order-details/order-details?id=' + that.orderId
url: '/qianzhu-KFC/order-details/order-details?id=' + that
.orderId
})
},
cancel: function(r) {
@ -754,6 +760,17 @@
border-radius: 12px;
}
.Bubble {
margin-left: 50%;
padding-top: 15px;
}
.tests {
border-radius: 15px;
height: 22px;
line-height: 22px;
}
.jfrecharge {
padding: 3px 20rpx;
color: #fff;

@ -89,7 +89,7 @@
{{item.productName}}
</view>
</view>
<view class="height30"></view>
<view class="height20"></view>
<view class="wybfot width100">
<view class="height50 pricefot alijusstart ">
<view class="width60 margle10">
@ -191,7 +191,7 @@
this.currentId = item.name;
let index = this.slist.findIndex(sitem => sitem.name == item.name);
this.tabScrollTop = this.slist[index].top;
}, 500);
}, 1000);
},
//
asideScroll(e) {
@ -277,6 +277,7 @@
good.num = 0
}
})
app.globalData.qianzhulist = '';
},
//
showPopups(item) {
@ -489,7 +490,7 @@
align-items: center;
display: flex;
height: 70upx;
padding-top: 8upx;
// padding-top: 8upx;
font-size: 28upx;
color: #333333;

@ -82,11 +82,16 @@
return `${year}${spe}${month}${spe}${day}`;
}
},
onShow() {
},
onShow() {},
onLoad() {
this.getDiscountByCode();
},
onUnload() {
uni.removeStorage({
key: 'accountType'
})
app.globalData.accountType = '';
},
methods: {
//
getDiscountByCode() {

Loading…
Cancel
Save