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
36814f71
Commit
36814f71
authored
Jun 14, 2022
by
weijiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改状态名称
parent
0c4a9a85
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
69 additions
and
75 deletions
+69
-75
components/OrderQrCode/index.vue
+1
-1
components/menuAssembly/index.vue
+16
-4
menuSubPackage/pages/goodsDetail/goodsDetail.vue
+0
-1
orderSubPackage/pages/settlement/index.vue
+4
-3
pages/mine/mine.vue
+47
-64
pages/order/order.vue
+1
-2
No files found.
components/OrderQrCode/index.vue
View file @
36814f71
...
...
@@ -58,7 +58,7 @@ export default {
orderStatusText
()
{
switch
(
this
.
orderInfo
.
state
)
{
case
'2'
:
return
'
已支付
'
return
'
待制作
'
case
'3'
:
return
'制作中'
default
:
...
...
components/menuAssembly/index.vue
View file @
36814f71
...
...
@@ -10,9 +10,9 @@
<scroll-view
class=
"nav-right"
scroll-y
:scroll-top=
"scrollTop"
@
scroll=
"scroll"
@
touchstart=
"openScroll"
scroll-with-animation
>
<view
v-for=
"category in classifyData"
:id=
"category.id"
:key=
"category.id"
class=
"box"
>
<view
v-if=
"category.goods && category.goods.length>0"
:style=
"loads"
class=
"right-title"
>
{{
category
.
name
}}
</view>
<view
:style=
"loads"
class=
"right-title"
>
{{
category
.
name
}}
</view>
<view
class=
"nav-right-item"
v-for=
"item in category.goods"
:key=
"item.goodsId"
>
<image
src=
"
../..
/static/imgs/isRecommend.png"
v-if=
"item.isRecommend == 1"
class=
"isRecommend"
/>
<image
src=
"/static/imgs/isRecommend.png"
v-if=
"item.isRecommend == 1"
class=
"isRecommend"
/>
<image
@
click=
"cart(item, category)"
class=
"thumbnail"
v-if=
"item.pics.thumbnailApplet"
:src=
"item.pics.thumbnailApplet"
/>
<image
@
click=
"cart(item, category)"
class=
"thumbnail"
v-else
:src=
"item.pics.thumbnail"
/>
<view
@
click=
"cart(item, category)"
class=
"info"
>
...
...
@@ -48,7 +48,6 @@ export default {
scrollLeftTop
:
0
,
scrollTop
:
0
,
scrolled
:
true
}
},
methods
:
{
...
...
@@ -65,7 +64,20 @@ export default {
},
createList
(
data
)
{
this
.
classifyData
=
data
;
// console.log(this.classifyData)
console
.
log
(
this
.
classifyData
);
// 删除没有商品的分类
if
(
this
.
classifyData
)
{
for
(
var
i
=
this
.
classifyData
.
length
-
1
;
i
>=
0
;
i
--
)
{
var
category
=
this
.
classifyData
[
i
];
if
(
!
category
.
goods
||
category
.
goods
.
length
<=
0
)
{
this
.
classifyData
.
splice
(
i
,
1
);
}
}
if
(
this
.
classifyData
.
length
>
0
){
this
.
categoryId
=
this
.
classifyData
[
0
].
id
;
}
}
this
.
$nextTick
(()
=>
{
const
query
=
uni
.
createSelectorQuery
().
in
(
this
);
query
.
selectAll
(
'.box'
).
boundingClientRect
(
data
=>
{
...
...
menuSubPackage/pages/goodsDetail/goodsDetail.vue
View file @
36814f71
...
...
@@ -368,7 +368,6 @@ export default {
padding
:
0
;
line-height
:
50
rpx
;
&.active
{
background
:
#006ECF
;
color
:
#fff
;
...
...
orderSubPackage/pages/settlement/index.vue
View file @
36814f71
...
...
@@ -74,7 +74,7 @@
<div
class=
"price"
>
总优惠¥
{{
reduction
}}
</div>
</div>
-->
</div>
<view
class=
"payment"
@
click=
"messageAndSave"
v-if=
"userms
"
>
付款
</view>
<view
v-if=
"userms"
class=
"payment"
@
click=
"messageAndSave
"
>
付款
</view>
<button
v-if=
"!userms"
class=
"payment"
style=
"border-radius: 0;"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
付款
</button>
</div>
</view>
...
...
@@ -112,12 +112,13 @@ export default {
// 微信扫码进入
this
.
option
=
JSON
.
stringify
(
option
)
const
{
q
}
=
option
;
console
.
log
(
q
);
if
(
q
)
{
User
.
getLocation
((
state
,
params
)
=>
{
uni
.
removeStorageSync
(
'shopCarInfo'
);
$EventBus
.
$emit
(
'updateCar'
);
//
this.buyType = '1'
;
let
id
=
decodeURIComponent
(
q
).
split
(
'?'
)[
1
].
split
(
'='
)[
1
]
;
//
let id = decodeURIComponent(q).split('?')[1].split('=')[1]
;
let
id
=
q
;
Menu
.
getScreenShopCar
(
id
,
params
).
then
(
res
=>
{
const
data
=
JSON
.
parse
(
res
.
data
.
data
);
console
.
log
(
data
);
...
...
pages/mine/mine.vue
View file @
36814f71
...
...
@@ -5,7 +5,7 @@
<image
class=
"logImg"
src=
"/static/imgs/hooloo.png"
></image>
<view
class=
"logText"
>
未 来 咖 啡
</view>
</view>
<image
src=
"
../..
/static/imgs/banner.png"
></image>
<image
src=
"/static/imgs/banner.png"
></image>
</view>
<view
v-if=
"userms"
class=
"mod11 flex-col"
>
<view
class=
"box16 flex-col"
></view>
...
...
@@ -17,47 +17,47 @@
<button
class=
"mod11 flex-col"
v-else
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
立刻登录
</button>
<view
class=
"contents"
v-if=
"userms"
>
<view
class=
"myOrder"
@
click=
"goToPage('order')"
>
<
view
class=
"order1"
>
我的订单
</view
>
<view
class=
"
order2
"
>
点击查看订单
</view>
<view><image
class=
"
orderImg
"
src=
"/static/imgs/myOrder.png"
></image></view>
<
h3>
我的订单
</h3
>
<view
class=
"
desc
"
>
点击查看订单
</view>
<view><image
class=
"
icon
"
src=
"/static/imgs/myOrder.png"
></image></view>
</view>
<view
class=
"right_box"
>
<view
class=
"box"
@
click
.
stop=
"goToPage('coupon')"
>
<view
class=
"left"
>
<h3>
HOOLOO券
</h3>
<view
class=
"dec"
>
优惠多多不要错过
</view>
<view
class=
"de
s
c"
>
优惠多多不要错过
</view>
</view>
<view
class=
"right"
><image
class=
"
right_img
"
src=
"/static/imgs/my3.png"
></image></view>
<view
class=
"right"
><image
class=
"
icon
"
src=
"/static/imgs/my3.png"
></image></view>
</view>
<view
class=
"box two"
@
click=
"goToPage('msg')"
>
<view
class=
"left"
>
<h3>
我的消息
</h3>
<view
class=
"dec"
>
点击查看我的消息
</view>
<view
class=
"de
s
c"
>
点击查看我的消息
</view>
</view>
<view
class=
"right"
><image
class=
"
right_img
"
src=
"/static/imgs/myMail.png"
></image></view>
<view
class=
"right"
><image
class=
"
icon
"
src=
"/static/imgs/myMail.png"
></image></view>
</view>
</view>
</view>
<view
class=
"contents"
v-if=
"!userms"
>
<button
class=
"myOrder"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
<
view
class=
"order3"
>
我的订单
</view
>
<view
class=
"
order4
"
>
点击查看订单
</view>
<view><image
class=
"
orderImg1
"
src=
"/static/imgs/myOrder.png"
></image></view>
<button
class=
"myOrder"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
style=
"line-height:1.5; margin-left:0rpx; margin-right:0rpx; padding-left:0rpx; padding-right:0rpx;"
>
<
h3>
我的订单
</h3
>
<view
class=
"
desc
"
>
点击查看订单
</view>
<view><image
class=
"
icon
"
src=
"/static/imgs/myOrder.png"
></image></view>
</button>
<view
class=
"right_box"
>
<button
class=
"box"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
<button
class=
"box"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
style=
"line-height:1.5; margin-left:0rpx; margin-right:0rpx; padding-left:0rpx; padding-right:0rpx;"
>
<view
class=
"left"
>
<h3>
HOOLOO券
</h3>
<view
class=
"dec"
>
优惠多多不要错过
</view>
<view
class=
"de
s
c"
>
优惠多多不要错过
</view>
</view>
<view
class=
"right"
><image
class=
"
right_img
"
src=
"/static/imgs/my3.png"
></image></view>
<view
class=
"right"
><image
class=
"
icon
"
src=
"/static/imgs/my3.png"
></image></view>
</button>
<button
class=
"box two"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
<button
class=
"box two"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
style=
"line-height:1.5; margin-left:0rpx; margin-right:0rpx; padding-left:0rpx; padding-right:0rpx;"
>
<view
class=
"left"
>
<h3>
我的消息
</h3>
<view
class=
"dec"
>
点击查看我的消息
</view>
<view
class=
"de
s
c"
>
点击查看我的消息
</view>
</view>
<view
class=
"right"
><image
class=
"
right_img
"
src=
"/static/imgs/myMail.png"
></image></view>
<view
class=
"right"
><image
class=
"
icon
"
src=
"/static/imgs/myMail.png"
></image></view>
</button>
</view>
</view>
...
...
@@ -198,27 +198,28 @@ button::after {
.contents
{
display
:
flex
;
align-items
:
center
;
margin
:
34
rpx
auto
;
width
:
692
rpx
;
padding
:
34
rpx
;
width
:
100%
;
//
background
:
#0000FF
;
.myOrder
{
width
:
270
rpx
;
height
:
272
rpx
;
width
:
36%
;
height
:
270
rpx
;
//
background
:
#FF0000
;
background
:
#FFFFFF
;
border-radius
:
10
rpx
;
align-items
:
center
;
text-align
:
center
;
padding
:
0
36
rpx
;
.order1
{
h3
{
font-size
:
28
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
5
00
;
font-family
:
Arial-BoldMT
,
Arial
;
font-weight
:
7
00
;
color
:
#000000
;
margin-top
:
25
rpx
;
margin-top
:
30
rpx
;
}
.
order2
{
.
desc
{
font-size
:
20
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
...
...
@@ -226,59 +227,37 @@ button::after {
margin-top
:
10
rpx
;
}
.
orderImg
{
.
icon
{
width
:
70
rpx
;
height
:
80
rpx
;
margin
:
0
auto
;
margin-top
:
50
rpx
;
}
.order3
{
font-size
:
28
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#000000
;
margin-top
:
10
rpx
;
}
.order4
{
font-size
:
20
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#323232
;
margin-top
:
-20
rpx
;
}
.orderImg1
{
width
:
70
rpx
;
height
:
80
rpx
;
margin
:
0
auto
;
margin-top
:
20
rpx
;
}
}
.right_box
{
margin-left
:
20
rpx
;
//
background
:
#00FF00
;
width
:
52%
;
.two
{
margin-top
:
15
rpx
;
}
.box
{
width
:
396
rpx
;
height
:
128
rpx
;
width
:
100%
;
height
:
129
rpx
;
//
background
:
#FF0000
;
background
:
#FFFFFF
;
border-radius
:
10
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
padding
:
0
36
rpx
;
position
:
relative
;
&.two
{
margin-top
:
15
rpx
;
}
.left
{
text-align
:
center
;
}
padding-left
:
30
rpx
;
h3
{
font-size
:
28
rpx
;
...
...
@@ -286,20 +265,24 @@ button::after {
font-weight
:
700
;
color
:
#000000
;
}
.dec
{
.desc
{
font-size
:
20
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#323232
;
margin-top
:
10
rpx
}
}
.right_img
{
.right
{
padding-right
:
30
rpx
;
.icon
{
width
:
80
rpx
;
height
:
55
rpx
;
}
}
}
}
}
.function
{
...
...
pages/order/order.vue
View file @
36814f71
...
...
@@ -38,8 +38,7 @@
</view>
</view>
</view>
<view
v-if=
"item.state == 2 || item.state == 3 || item.state == 4 || item.state == 5"
class=
"qr_code"
>
<view
v-if=
"item.state == 2 || item.state == 3 || item.state == 4 || item.state == 5 || item.state == 7"
class=
"qr_code"
>
<image
class=
"qr_code_img"
src=
"/static/imgs/icon-barcode.png"
></image>
<view
class=
"qr_text"
>
点击二维码取单
</view>
</view>
...
...
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