Commit e1a512ac by songbingqi

修复部分bug

parent 55317e68
<template>
<div>
<u-popup :show="show" :round="10" mode="bottom" @close="close" :safeAreaInsetBottom="false" zIndex="10078" :customStyle="popupStyle">
<u-popup :show="show" :round="10" mode="bottom" @close="close" zIndex="10078" :customStyle="popupStyle">
<view class="bigBox" :style="{'margin-top':'-20rpx'}" @touchstart="start" @touchmove.stop.prevent="move" @touchend="end" ref="op">
<scroll-view class="scroll-view" :scroll-y="true">
<div class="order_flow" >
......
......@@ -188,14 +188,15 @@ export default {
async cart(item, category){
console.log(item,category)
const skuStatus = item.skus.filter(item=>{return Number(item.state)===1})
const {data} = await Order.checkSku({skuId:item.skus[0].skuId})
const {goods} = data.data
if(skuStatus.length===0){
this.showToast({
title: '该商品已售罄',
icon: 'none',
})
}else{
const {data} = await Order.checkSku({skuId:item.skus[0].skuId})
const {goods} = data.data
console.log(goods)
uni.setStorageSync('goodsInfo', JSON.stringify({ ...goods, category }));
uni.navigateTo({ url: '/menuSubPackage/pages/goodsDetail/goodsDetail' })
......
......@@ -116,7 +116,7 @@ export default {
onLoad(option) {
this.initData(option)
},
onUnload(){
onHide(){
this.goBack()
},
data() {
......@@ -176,13 +176,14 @@ export default {
async initData(option){
this.getSystemInfo()
let oId = uni.getStorageSync('orderId');
console.log(option,'option')
// 从订阅消息进入
if(JSON.stringify(option)!=='{}'&&option){
this.option = JSON.stringify(option)
const { orderId = '' } = option
let Authorization = uni.getStorageSync('Authorization')
console.log(Authorization)
if(orderId){
console.log(!Authorization,Authorization)
if(!Authorization){
this.goBack()
return
......
<template>
<view class="menu-box">
<view class="menu-banner" :style="{'height':buied?'360rpx':'450rpx'}">
<image :src="'https://s3.bmp.ovh/imgs/2022/07/02/2cfab823b35322e3.gif'"/>
<image :src="img?img:'../../static/imgs/shouyezhanweitu.png'"/>
<!-- <video autoplay muted loop :controls="false" :enable-progress-gesture="false" objectFit='cover' src="http://songclound.oss-cn-hongkong.aliyuncs.com/2022/06/27/71d36be0ed966.mp4" /> -->
<view class="shop-info" :style="'top:100rpx'">
<view class="shop-box">
......@@ -81,7 +81,8 @@ export default {
orderInfo: {},//即将取餐的订单信息
classifyData: [],
customerName: '',
loginInfo:""
loginInfo:"",
img:''
};
},
computed: {
......@@ -93,6 +94,7 @@ export default {
},
},
created() {
this.img = 'https://s3.bmp.ovh/imgs/2022/07/02/2cfab823b35322e3.gif'
},
onLoad: async function () {
uni.getSetting({
......
......@@ -5,7 +5,7 @@
<!-- <image class="logImg" src="/static/imgs/hooloo.png"></image> -->
<!-- <view class="logText">未 来 咖 啡</view> -->
</view>
<image :src="'https://s3.bmp.ovh/imgs/2022/07/05/1768111c5c7f5300.gif'"/>
<image :src="img?img:'../../static/imgs/wodezhanweitu.png'"/>
<!-- <video class="video" autoplay muted loop :controls="false" :enable-progress-gesture="false" objectFit='cover' src="http://songclound.oss-cn-hongkong.aliyuncs.com/2022/06/27/e6582afb60924.mp4"></video> -->
<view class="mod11">
<view class="avatar">
......@@ -100,10 +100,12 @@ export default {
this.loginInfo = loginInfo
})
}
this.img = 'https://s3.bmp.ovh/imgs/2022/07/05/1768111c5c7f5300.gif'
},
data() {
return {
loginInfo:""
loginInfo:"",
img:''
}
},
computed: {
......
......@@ -94,7 +94,6 @@ export default {
}
},
onShow() {
console.log(1)
this.getList()
},
mounted() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment