Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
user
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
mp
user
Commits
e1a512ac
Commit
e1a512ac
authored
Jul 06, 2022
by
songbingqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复部分bug
parent
55317e68
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
10 deletions
+15
-10
components/OrderQrCode/index.vue
+1
-1
components/menuAssembly/index.vue
+3
-2
orderSubPackage/pages/orderInfo/index.vue
+3
-2
pages/menu/menu.vue
+4
-2
pages/mine/mine.vue
+4
-2
pages/order/order.vue
+0
-1
static/imgs/shouyezhanweitu.png
+0
-0
static/imgs/wodezhanweitu.png
+0
-0
No files found.
components/OrderQrCode/index.vue
View file @
e1a512ac
<
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"
>
...
...
components/menuAssembly/index.vue
View file @
e1a512ac
...
...
@@ -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'
})
...
...
orderSubPackage/pages/orderInfo/index.vue
View file @
e1a512ac
...
...
@@ -116,7 +116,7 @@ export default {
onLoad
(
option
)
{
this
.
initData
(
option
)
},
on
Unload
(){
on
Hide
(){
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
...
...
pages/menu/menu.vue
View file @
e1a512ac
<
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
({
...
...
pages/mine/mine.vue
View file @
e1a512ac
...
...
@@ -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
:
{
...
...
pages/order/order.vue
View file @
e1a512ac
...
...
@@ -94,7 +94,6 @@ export default {
}
},
onShow
()
{
console
.
log
(
1
)
this
.
getList
()
},
mounted
()
{
...
...
static/imgs/shouyezhanweitu.png
0 → 100644
View file @
e1a512ac
154 KB
static/imgs/wodezhanweitu.png
0 → 100644
View file @
e1a512ac
91.1 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment