更新优化
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
<template>
|
||||
<view id="wrapper">
|
||||
<view v-if="fixedtrue"
|
||||
style="height: 100vh; width: 100%; position: fixed; z-index: 999; top: 0; left: 0; background-color: #fff; display: flex; justify-content: center; align-items: center;">
|
||||
<u-loadmore status="loading" fontSize="50" iconSize="30"/>
|
||||
</view>
|
||||
<view class="nav-wrap" :class="{ 'is-fixed': isFixed }"
|
||||
:style="{ paddingTop: `${menuInfo.top}px`, paddingBottom: `${paddingBtmSize}px` }">
|
||||
<view class="content" :style="{ height: `${menuInfo.height}px`, paddingLeft: `${paddingBtmSize}px` }">
|
||||
@@ -103,7 +107,7 @@
|
||||
mode="aspectFit" @click="showCart = !showCart">
|
||||
</image>
|
||||
<text class="i">¥</text>
|
||||
<text class="num">{{cartLists.amount}}</text>
|
||||
<text class="num">{{cartLists.amount||'0.00'}}</text>
|
||||
</view>
|
||||
<view class="btn" @tap="$u.debounce(orderdetail, 500)">
|
||||
<text class="t">提交订单</text>
|
||||
@@ -254,7 +258,8 @@
|
||||
socketTicket: null,
|
||||
amountcartNumber: 0,
|
||||
skuidsearch: '', //
|
||||
salePrice: '' //钱数
|
||||
salePrice: '' ,//钱数
|
||||
fixedtrue:true
|
||||
};
|
||||
},
|
||||
onPageScroll(e) {
|
||||
@@ -312,8 +317,6 @@
|
||||
code: uni.cache.get('tableCode')
|
||||
})
|
||||
if (res.code == 0) {
|
||||
let time = new Date
|
||||
console.log(time, '时间戳')
|
||||
uni.cache.set('shopUser', res.data)
|
||||
this.handlemessage()
|
||||
this.productqueryProduct() //list 数据
|
||||
@@ -372,10 +375,6 @@
|
||||
});
|
||||
break;
|
||||
case 'queryCart': //待提交
|
||||
// let queryCart = JSON.stringify(msg.data)
|
||||
// uni.pro.navigateTo('order_detail/order_detail', {
|
||||
// tableId: JSON.stringify(msg.data)
|
||||
// })
|
||||
uni.redirectTo({
|
||||
url: '/pages/order_detail/order_detail?tableId=' + JSON.stringify(msg.data) +
|
||||
'&amount=' + msg.amount
|
||||
@@ -389,9 +388,6 @@
|
||||
if (item.skuId == this.skuidsearch) {
|
||||
nums = item.number
|
||||
}
|
||||
// else {
|
||||
// this.$set(this, 'amountcartNumber', 0)
|
||||
// }
|
||||
})
|
||||
this.$set(this, 'amountcartNumber', nums)
|
||||
} else {
|
||||
@@ -500,6 +496,7 @@
|
||||
})
|
||||
if (res.code == 0) {
|
||||
this.shopList = res.data
|
||||
this.fixedtrue = false
|
||||
this.$nextTick(() => {
|
||||
this.countTitleTopNum();
|
||||
});
|
||||
@@ -606,7 +603,6 @@
|
||||
"shopId": uni.cache.get('shopUser'),
|
||||
"userId": uni.cache.get('userInfo').id,
|
||||
}
|
||||
this.$store.dispatch("set_shopid"); //获取shapid
|
||||
uni.$u.debounce(this.socketSendMsg(data), 500)
|
||||
},
|
||||
orderfoodindex() {
|
||||
|
||||
Reference in New Issue
Block a user