订单逻辑修改
This commit is contained in:
@@ -227,7 +227,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="placedOrderTip" @click="placedOrder" v-if="tableCode&&shopInfo.shopTableInfo.orderId&&shopInfo.storeInfo.registerType == 'restaurant'"><u-avatar :src="src" shape="circle"></u-avatar><view style="margin-left: 8rpx;">已下单菜品</view></view>
|
||||
<view class="placedOrderTip" @click="placedOrder" v-if="tableCode&&shopInfo.shopTableInfo&&shopInfo.shopTableInfo.orderId&&shopInfo.storeInfo.registerType == 'restaurant'"><u-avatar :src="src" shape="circle"></u-avatar><view style="margin-left: 8rpx;">已下单菜品</view></view>
|
||||
|
||||
<!-- 购物车 -->
|
||||
<u-popup :show="showCart" :round="20" :safeAreaInsetBottom="false" :zIndex="98" :overlayStyle="{ zIndex: 98 }"
|
||||
@@ -275,7 +275,7 @@
|
||||
<u--input
|
||||
placeholder="商品备注(选填)"
|
||||
border="none"
|
||||
v-model="item.remark"
|
||||
v-model="item.note"
|
||||
></u--input>
|
||||
</view>
|
||||
</view>
|
||||
@@ -593,14 +593,15 @@
|
||||
* 通过桌码获取店铺信息
|
||||
*/
|
||||
async productqueryShop() {
|
||||
let res = await this.api.productqueryShop({
|
||||
code: this.tableCode,
|
||||
shopId: this.shopId,
|
||||
let params = {
|
||||
lng: uni.cache.get('getLocationstorage').lng ? uni.cache.get('getLocationstorage').lng :
|
||||
'',
|
||||
lat: uni.cache.get('getLocationstorage').lat ? uni.cache.get('getLocationstorage').lat :
|
||||
'',
|
||||
})
|
||||
}
|
||||
if (this.tableCode) {params.code = this.tableCode}
|
||||
if (this.shopId) {params.shopId = this.shopId}
|
||||
let res = await this.api.productqueryShop(params)
|
||||
if (res.code == 0) {
|
||||
let expireTime = uni.utils.timestamp() + 30 * 60; // 有效期
|
||||
uni.cache.set('shopId', res.data.storeInfo.id, expireTime)
|
||||
|
||||
Reference in New Issue
Block a user