Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
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
pseer
gxpt_wechat
Commits
287d14aa
Commit
287d14aa
authored
Jul 24, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
fa1045ae
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
46 deletions
+63
-46
storeList.vue
components/storeList/storeList.vue
+1
-1
myInfo.vue
pages/my/myInfo.vue
+1
-1
order.vue
pages/order/order.vue
+61
-44
No files found.
components/storeList/storeList.vue
View file @
287d14aa
...
...
@@ -131,7 +131,7 @@
box-shadow
:
0
4
upx
8
upx
rgba
(
0
,
0
,
0
,
0.1
);
border-radius
:
12
upx
;
overflow
:
hidden
;
//
margin-top
:
24
upx
;
margin-top
:
24
upx
;
padding
:
20
upx
0
;
.room-img-box
{
...
...
pages/my/myInfo.vue
View file @
287d14aa
...
...
@@ -27,7 +27,7 @@
</view>
</view>
</view>
<view
v-if=
"userInfo.memberConfig &&
userInfo.memberConfig.memberType ==1
"
class=
"tip-date"
>
<view
v-if=
"userInfo.memberConfig &&
( userInfo.memberConfig.memberType ==1 || userInfo.memberConfig.memberType ==2)
"
class=
"tip-date"
>
<text>
{{
userInfo
.
consumerMember
.
expirationDate
}}
到期
</text>
</view>
</view>
...
...
pages/order/order.vue
View file @
287d14aa
...
...
@@ -61,9 +61,20 @@
</view>
<view
v-for=
"(item,k) in dateList"
:key=
"k"
class=
"flex-1 flex-col date-item"
:class=
"
{active:dateIndex === k}" @tap="onDateChange(k)">
<text
class=
"text-title text-bold text-first "
>
{{
k
===
0
&&
item
.
readDate
===
toDayDate
?
'今天'
:
item
.
weekday
}}
</text>
<view
class=
"relative"
>
<text
class=
"text-title text-bold text-first "
>
{{
k
===
0
&&
item
.
readDate
===
toDayDate
?
'今天'
:
item
.
weekday
}}
</text>
<view
v-if=
"dateIndex !== k && activityDate[item.readDate]"
class=
"absolute-right"
>
<image
:src=
"assetsPath+'/xx2.png'"
mode=
"widthFix"
></image>
</view>
</view>
<text
class=
"text-title text-bold"
style=
"margin-top: 12upx;"
>
{{
item
.
date
}}
</text>
<view
v-if=
"dateIndex === k && activityDate[item.readDate]"
class=
"absolute-right"
>
<image
:src=
"assetsPath+'/xx2.png'"
mode=
"widthFix"
></image>
</view>
</view>
</view>
</view>
...
...
@@ -80,7 +91,7 @@
<view
class=
"item"
:class=
"allDayUseStatus? 'gray': modeIndex===index?'active':''"
>
<text>
{{
item
.
labelName
}}
</text>
</view>
<view
v-if=
"item.openPack==1"
class=
"pre-icon"
>
<view
v-if=
"item.openPack==1
|| (activityDate[dateList[dateIndex].readDate] && activityDate[dateList[dateIndex].readDate].labelIds.includes(item.labelId))
"
class=
"pre-icon"
>
<image
:src=
"assetsPath+'/pre_icon.png'"
mode=
"widthFix"
></image>
</view>
</view>
...
...
@@ -96,40 +107,8 @@
</view>
</view>
</view>
</view>
<!--
<view
v-if=
"orderType ===1 && !roomLabelList.length && !packageMode.length"
class=
"flex-col distance-mode"
>
<view
class=
"distance-title"
>
<text
class=
"text-title text-lg text-bold"
>
时长选择:
</text>
</view>
<view
class=
"flex-1 distance-box"
>
<view
v-for=
"(item,index) in distanceMode"
:key=
"index"
class=
"flex-col"
style=
"margin: 0 12upx;"
@
tap=
"onDurationChange(index)"
>
<view
class=
"cu-tag radius"
:class=
"index===distanceIndex? 'line-pink':'line-gray'"
>
<text>
{{
index
>=
distanceMode
.
length
-
1
&&
!
editDuration
.
length
?
item
.
duration
:
item
.
duration
+
'小时'
}}
</text>
<text
v-if=
"index >= distanceMode.length-1"
class=
"cuIcon-edit text-lg"
></text>
</view>
</view>
</view>
</view>
-->
</view>
<!--
<view
v-if=
"orderType ===2"
class=
"flex-col distance-mode"
style=
"margin: 40upx 20upx 40upx;"
>
<view
class=
"distance-title"
>
<text
class=
"text-title text-lg text-bold"
>
时长选择:
</text>
</view>
<view
class=
"flex-1 distance-box"
>
<view
v-for=
"(item,index) in distanceMode2"
:key=
"index"
class=
"flex-col"
style=
"margin: 0 6upx;"
@
tap=
"onDurationChange2(index)"
>
<view
class=
"cu-tag radius"
:class=
"index===distanceIndex? 'line-black':'line-gray'"
>
<text>
{{
item
.
duration
<
1
?
'半小时'
:
item
.
duration
+
'小时'
}}
</text>
</view>
</view>
</view>
</view>
-->
<view
class=
"flex-col date-mode"
>
<view
class=
"flex-row date-box"
>
<view
class=
"part-1"
>
...
...
@@ -548,18 +527,19 @@
orderDateDes
:
""
,
orderWeekDes
:
""
,
orderWeeEnum
:{
1
:
"
星期
一"
,
2
:
"
星期
二"
,
3
:
"
星期
三"
,
4
:
"
星期
四"
,
5
:
"
星期
五"
,
6
:
"
星期
六"
,
0
:
"
星期
日"
,
1
:
"
周
一"
,
2
:
"
周
二"
,
3
:
"
周
三"
,
4
:
"
周
四"
,
5
:
"
周
五"
,
6
:
"
周
六"
,
0
:
"
周
日"
,
},
allDayUseStatus
:
false
,
// 当日无可预约时段,true 无法预约,false 可预约
tipContent
:
"当前条件下无可预约的时段,请手动选择合适的空闲时段"
,
tipErrMsg
:
''
,
warnTip
:
''
warnTip
:
''
,
activityDate
:{}
};
},
...
...
@@ -1021,7 +1001,7 @@
readDate
:
this
.
dateList
.
length
?
moment
(
this
.
dateList
[
1
].
readDate
).
add
(
i
,
"days"
).
format
(
"YYYY-MM-DD"
)
:
moment
().
add
(
i
,
"days"
).
format
(
"YYYY-MM-DD"
),
weekday
:
this
.
dateList
.
length
?
moment
(
this
.
dateList
[
1
].
readDate
).
add
(
i
,
"days"
).
format
(
"ddd
d"
)
:
moment
().
add
(
i
,
"days"
).
format
(
"d
ddd"
)
"ddd
"
)
:
moment
().
add
(
i
,
"days"
).
format
(
"
ddd"
)
}
dateList
.
push
(
obj
)
}
...
...
@@ -1080,6 +1060,23 @@
storeId
:
this
.
id
}).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
){
let
obj
=
res
.
data
.
data
||
{}
for
(
let
key
in
obj
){
let
key2
=
moment
(
key
).
format
(
"YYYY-MM-DD"
)
if
(
obj
[
key
]
&&
obj
[
key
].
length
){
this
.
activityDate
[
key2
]
=
{
labelIds
:
obj
[
key
].
filter
(
item
=>
item
.
labelId
).
map
(
val
=>
val
.
labelId
),
packIds
:
obj
[
key
].
filter
(
item
=>
item
.
packId
).
map
(
val
=>
val
.
packId
),
}
}
else
{
this
.
activityDate
[
key2
]
=
false
}
}
console
.
log
(
this
.
activityDate
,
"this.activityDate"
)
}
})
},
// 获取房间信息相关
...
...
@@ -1946,6 +1943,26 @@
.text-first
{
letter-spacing
:
4
upx
;
}
.relative
{
.absolute-right{
position
:
absolute
;
top
:
-12
upx
;
right
:
-16
upx
;
image{
width
:
32
upx
;
max-height
:
30
upx
;
}
}
}
.absolute-right
{
position
:
absolute
;
top
:
-8
upx
;
right
:
-4
upx
;
image{
width
:
38
upx
;
max-height
:
34
upx
;
}
}
}
.active
{
...
...
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