Compare commits
3 Commits
427f32ded7
...
5c2aa2b617
| Author | SHA1 | Date | |
|---|---|---|---|
| 5c2aa2b617 | |||
| 3f6b39f413 | |||
| 036f557c9a |
@@ -123,3 +123,5 @@ export const cancelRefund = (data) => {
|
|||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const exchange=()=>{}
|
||||||
@@ -130,9 +130,19 @@
|
|||||||
</up-button>
|
</up-button>
|
||||||
</template>
|
</template>
|
||||||
</view>
|
</view>
|
||||||
|
<template v-if="!loading">
|
||||||
|
<template v-if="cartStore.shopInfo.isUserPay">
|
||||||
<view class="fixedview_tow" @tap="$u.debounce(istoricalorders, 1000)">
|
<view class="fixedview_tow" @tap="$u.debounce(istoricalorders, 1000)">
|
||||||
{{ paymentmethod ? paymentmethod.name : "" }}
|
{{ paymentmethod ? paymentmethod.name : "" }}
|
||||||
</view>
|
</view>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<view class="fixedview_tow disabled">
|
||||||
|
请前往吧台支付
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
|
||||||
<!-- <view class="fixedview_tows" @tap="$u.debounce(APIputuserorderclick,1000)">
|
<!-- <view class="fixedview_tows" @tap="$u.debounce(APIputuserorderclick,1000)">
|
||||||
取消订单
|
取消订单
|
||||||
</view> -->
|
</view> -->
|
||||||
@@ -1112,6 +1122,8 @@
|
|||||||
|
|
||||||
const limitTimeDiscountRes = ref(null)
|
const limitTimeDiscountRes = ref(null)
|
||||||
const rechargeConfig = ref(null)
|
const rechargeConfig = ref(null)
|
||||||
|
|
||||||
|
const loading=ref(true)
|
||||||
async function init(opt) {
|
async function init(opt) {
|
||||||
const res1 = await storeuser.actionsproductqueryProduct();
|
const res1 = await storeuser.actionsproductqueryProduct();
|
||||||
orderVIP.value = res1
|
orderVIP.value = res1
|
||||||
@@ -1158,7 +1170,9 @@
|
|||||||
shopId: options.shopId,
|
shopId: options.shopId,
|
||||||
});
|
});
|
||||||
//智慧充值
|
//智慧充值
|
||||||
const rechargeConfigRes=await rechargeApi.config({shopId: options.shopId})
|
const rechargeConfigRes = await rechargeApi.config({
|
||||||
|
shopId: options.shopId
|
||||||
|
})
|
||||||
if (rechargeConfigRes && typeof rechargeConfigRes === 'object') {
|
if (rechargeConfigRes && typeof rechargeConfigRes === 'object') {
|
||||||
rechargeConfig.value = rechargeConfigRes
|
rechargeConfig.value = rechargeConfigRes
|
||||||
}
|
}
|
||||||
@@ -1179,6 +1193,7 @@
|
|||||||
if (shopInfoRes) {
|
if (shopInfoRes) {
|
||||||
cartStore.shopInfo = shopInfoRes.shopInfo;
|
cartStore.shopInfo = shopInfoRes.shopInfo;
|
||||||
}
|
}
|
||||||
|
loading.value=false
|
||||||
await cartStore.goodsInit();
|
await cartStore.goodsInit();
|
||||||
// * 获取会员信息
|
// * 获取会员信息
|
||||||
await nextTick();
|
await nextTick();
|
||||||
@@ -1813,7 +1828,16 @@
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
padding: 14rpx 44rpx;
|
padding: 0 44rpx;
|
||||||
|
min-height: 72rpx;
|
||||||
|
line-height: 72rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
&.disabled {
|
||||||
|
background-color: #eee;
|
||||||
|
color: #999;
|
||||||
|
font-size: 24rpx;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.fixedview_tows {
|
.fixedview_tows {
|
||||||
|
|||||||
@@ -68,8 +68,7 @@
|
|||||||
|
|
||||||
<u-image width="56" height="56" radius="10"
|
<u-image width="56" height="56" radius="10"
|
||||||
v-else-if="item1.isTemporary &&item1.productName=='签子'"
|
v-else-if="item1.isTemporary &&item1.productName=='签子'"
|
||||||
src="https://cashier-oss.oss-cn-beijing.aliyuncs.com/upload/5/b97054debd83486ab7ad8e20ca6a360a.png"
|
src="https://cashier-oss.oss-cn-beijing.aliyuncs.com/upload/5/b97054debd83486ab7ad8e20ca6a360a.png"></u-image>
|
||||||
></u-image>
|
|
||||||
<u-image width="56" height="56" radius="10"
|
<u-image width="56" height="56" radius="10"
|
||||||
:src="'https://czg-qr-order.oss-cn-beijing.aliyuncs.com/confirmOrder/table.png'"
|
:src="'https://czg-qr-order.oss-cn-beijing.aliyuncs.com/confirmOrder/table.png'"
|
||||||
mode="heightFix" v-else></u-image>
|
mode="heightFix" v-else></u-image>
|
||||||
@@ -91,8 +90,27 @@
|
|||||||
<view class="footer-wrap">
|
<view class="footer-wrap">
|
||||||
<view class="btn" @click.stop="$u.debounce(isRemoveOrder(item,index),1000)"
|
<view class="btn" @click.stop="$u.debounce(isRemoveOrder(item,index),1000)"
|
||||||
v-if="item.status == 'done' || item.status == 'cancelled'"> 删除订单 </view>
|
v-if="item.status == 'done' || item.status == 'cancelled'"> 删除订单 </view>
|
||||||
|
<template v-if="shopInfo&&shopInfo.id">
|
||||||
|
<template v-if="shopInfo.id==item.shopId">
|
||||||
|
<template v-if="shopInfo.isUserPay">
|
||||||
<view class="btn s" @click.stop="$u.debounce(orderinfo(item),1000)"
|
<view class="btn s" @click.stop="$u.debounce(orderinfo(item),1000)"
|
||||||
v-if="item.status == 'unpaid' || item.status == 'paying'"> 去付款 </view>
|
v-if="item.status == 'unpaid' || item.status == 'paying'"> 去付款 </view>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<view class="btn s disabled" @click.stop="()=>{}"
|
||||||
|
v-if="item.status == 'unpaid' || item.status == 'paying'"> 请前往吧台支付 </view>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<view class="btn s" @click.stop="$u.debounce(orderinfo(item),1000)"
|
||||||
|
v-if="item.status == 'unpaid' || item.status == 'paying'"> 去付款 </view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<view class="btn s" @click.stop="$u.debounce(orderinfo(item),1000)"
|
||||||
|
v-if="item.status == 'unpaid' || item.status == 'paying'"> 去付款 </view>
|
||||||
|
</template>
|
||||||
|
|
||||||
<view class="btn s" @click.stop="agignOrder(item)" v-if="item.status != 'unpaid'"> 再来一单 </view>
|
<view class="btn s" @click.stop="agignOrder(item)" v-if="item.status != 'unpaid'"> 再来一单 </view>
|
||||||
</view>
|
</view>
|
||||||
@@ -167,6 +185,8 @@
|
|||||||
}, 0)
|
}, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const shopInfo = uni.cache.get('shopInfo')
|
||||||
|
|
||||||
function isRemoveOrder(item) {
|
function isRemoveOrder(item) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
@@ -523,6 +543,12 @@
|
|||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
margin-left: 32rpx;
|
margin-left: 32rpx;
|
||||||
|
|
||||||
|
&.disabled {
|
||||||
|
background-color: #eee;
|
||||||
|
color: #999;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.s {
|
.s {
|
||||||
|
|||||||
@@ -776,6 +776,7 @@
|
|||||||
} from '@/stores/order.js';
|
} from '@/stores/order.js';
|
||||||
import {
|
import {
|
||||||
computed,
|
computed,
|
||||||
|
nextTick,
|
||||||
provide,
|
provide,
|
||||||
reactive
|
reactive
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
@@ -933,6 +934,9 @@
|
|||||||
|
|
||||||
//左侧导航点击
|
//左侧导航点击
|
||||||
const leftTap = (index) => {
|
const leftTap = (index) => {
|
||||||
|
console.log('topArr.value[index] ',topArr.value[index] );
|
||||||
|
console.log('store.height',store.height);
|
||||||
|
console.log('scrollTop',topArr.value[index] - store.height);
|
||||||
uni.pageScrollTo({
|
uni.pageScrollTo({
|
||||||
scrollTop: topArr.value[index] - store.height,
|
scrollTop: topArr.value[index] - store.height,
|
||||||
duration: 0
|
duration: 0
|
||||||
@@ -947,6 +951,7 @@
|
|||||||
|
|
||||||
/* 获取元素顶部信息 */
|
/* 获取元素顶部信息 */
|
||||||
const getElementTop = () => {
|
const getElementTop = () => {
|
||||||
|
console.log('getElementTop');
|
||||||
new Promise((resolve, reject) => {
|
new Promise((resolve, reject) => {
|
||||||
let view = uni.createSelectorQuery().selectAll('.main-item');
|
let view = uni.createSelectorQuery().selectAll('.main-item');
|
||||||
view.boundingClientRect(async (data) => {
|
view.boundingClientRect(async (data) => {
|
||||||
@@ -2723,14 +2728,17 @@
|
|||||||
tableCode: uni.cache.get('tableCode')
|
tableCode: uni.cache.get('tableCode')
|
||||||
});
|
});
|
||||||
oldOrder.value = res;
|
oldOrder.value = res;
|
||||||
|
nextTick(()=>{
|
||||||
|
getElementTop();
|
||||||
|
})
|
||||||
if (res && res.id && shopInfo.registerType == 'after' && !e.noJump) {
|
if (res && res.id && shopInfo.registerType == 'after' && !e.noJump) {
|
||||||
toHistory();
|
toHistory();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// 启动网络监听
|
// 启动网络监听
|
||||||
useSocket.initNetworkListener();
|
useSocket.initNetworkListener();
|
||||||
getElementTop();
|
|
||||||
}, 500);
|
}, 500);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -2811,6 +2819,9 @@
|
|||||||
id: ''
|
id: ''
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
// if(!topArr.value.length){
|
||||||
|
// getElementTop()
|
||||||
|
// }
|
||||||
});
|
});
|
||||||
|
|
||||||
//是否自动关闭socket
|
//是否自动关闭socket
|
||||||
|
|||||||
@@ -118,7 +118,6 @@
|
|||||||
onMounted,
|
onMounted,
|
||||||
getCurrentInstance,
|
getCurrentInstance,
|
||||||
nextTick,
|
nextTick,
|
||||||
onShow
|
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
//接口引入
|
//接口引入
|
||||||
|
|||||||
Reference in New Issue
Block a user