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
6527b804
Commit
6527b804
authored
Aug 15, 2022
by
songbingqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复部分bug
parent
bcfc1650
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
components/menuAssembly/index.vue
+1
-1
mineSubPackage/pages/coupon/index.vue
+1
-1
orderSubPackage/pages/settlement/index.vue
+6
-6
store/modules/order.js
+2
-2
No files found.
components/menuAssembly/index.vue
View file @
6527b804
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<view
class=
"price"
v-if=
"getSku(item).price!=getSku(item).discount"
>
¥
<text
class=
"num"
>
{{
Utils
.
isInteger
(
getSku
(
item
).
price
)
}}
</text></view>
<view
class=
"price"
v-if=
"getSku(item).price!=getSku(item).discount"
>
¥
<text
class=
"num"
>
{{
Utils
.
isInteger
(
getSku
(
item
).
price
)
}}
</text></view>
</view>
</view>
<view
class=
"addbox"
v-if=
"shopState!==0"
>
<view
class=
"addbox"
v-if=
"shopState!==0"
>
<image
v-if=
"getSku(item).state==1"
@
click
.
stop=
"
getallNum
(item, category)"
class=
"add"
:src=
"'../../static/imgs/jiahao.png'"
/>
<image
v-if=
"getSku(item).state==1"
@
click
.
stop=
"
cart
(item, category)"
class=
"add"
:src=
"'../../static/imgs/jiahao.png'"
/>
<!--
<u-icon
class=
"add"
name=
"plus-circle-fill"
color=
"#0050F6"
@
click
.
stop=
"getallNum(item, category)"
size=
"22"
></u-icon>
-->
<!--
<u-icon
class=
"add"
name=
"plus-circle-fill"
color=
"#0050F6"
@
click
.
stop=
"getallNum(item, category)"
size=
"22"
></u-icon>
-->
<div
v-if=
"getSku(item).state!=1"
style=
"color: #858585;font-size: 20rpx;margin-top:16rpx"
>
已售罄
</div>
<div
v-if=
"getSku(item).state!=1"
style=
"color: #858585;font-size: 20rpx;margin-top:16rpx"
>
已售罄
</div>
</view>
</view>
...
...
mineSubPackage/pages/coupon/index.vue
View file @
6527b804
...
@@ -59,7 +59,7 @@ export default {
...
@@ -59,7 +59,7 @@ export default {
let
timeStart
=
''
let
timeStart
=
''
let
timeEnd
=
''
let
timeEnd
=
''
if
(
item
.
useStartTime
){
if
(
item
.
useStartTime
){
timeStart
=
item
.
useStartTime
.
slice
(
0
,
11
).
replace
(
new
RegExp
(
'-'
,
'g'
),
'.'
)
timeStart
=
Date
.
parse
(
item
.
useStartTime
)
<
new
Date
().
valueOf
()
<
Date
.
parse
(
item
.
useEndTime
)?
''
:
item
.
useStartTime
.
slice
(
0
,
11
).
replace
(
new
RegExp
(
'-'
,
'g'
),
'.'
)
}
}
if
(
item
.
useEndTime
){
if
(
item
.
useEndTime
){
timeEnd
=
item
.
useEndTime
.
slice
(
0
,
11
).
replace
(
new
RegExp
(
'-'
,
'g'
),
'.'
)
timeEnd
=
item
.
useEndTime
.
slice
(
0
,
11
).
replace
(
new
RegExp
(
'-'
,
'g'
),
'.'
)
...
...
orderSubPackage/pages/settlement/index.vue
View file @
6527b804
...
@@ -350,6 +350,12 @@ export default {
...
@@ -350,6 +350,12 @@ export default {
}
}
},
},
messageAndSave
()
{
messageAndSave
()
{
if
(
!
this
.
TermsStatus
&&!
this
.
agreeTerms
){
this
.
showToast
({
title
:
"请同意下方协议条款"
});
return
}
else
{
if
(
this
.
agreeTerms
)
uni
.
setStorageSync
(
'TermsStatus'
,
true
)
}
let
needChoseMsg
=
true
let
needChoseMsg
=
true
const
{
sendMsgFlag1
,
flagExpireData
}
=
this
.
sendMsgData
const
{
sendMsgFlag1
,
flagExpireData
}
=
this
.
sendMsgData
const
HasMessageFlag
=
JSON
.
stringify
(
sendMsgFlag1
)
==
'true'
||
JSON
.
stringify
(
sendMsgFlag1
)
==
'false'
?
true
:
true
const
HasMessageFlag
=
JSON
.
stringify
(
sendMsgFlag1
)
==
'true'
||
JSON
.
stringify
(
sendMsgFlag1
)
==
'false'
?
true
:
true
...
@@ -374,12 +380,6 @@ export default {
...
@@ -374,12 +380,6 @@ export default {
this
.
saveReserve
()
this
.
saveReserve
()
}
}
return
return
if
(
!
this
.
TermsStatus
&&!
this
.
agreeTerms
){
this
.
showToast
({
title
:
"请同意下方协议条款"
});
return
}
else
{
if
(
this
.
agreeTerms
)
uni
.
setStorageSync
(
'TermsStatus'
,
true
)
}
const
tmpid
=
[
'1uErx-15S-3vuopXSvvsxCeM_Jd-1iZC-nXzd2yW3QU'
,
'Q4HDwBEvpTXpwtZktqWm4SZOTEuQK1x48xjqjD2GqyM'
,
'Fu_CPIXa0cnJ4EDdVKqFQ3qqKJccMqt2oorI5mfNq74'
]
const
tmpid
=
[
'1uErx-15S-3vuopXSvvsxCeM_Jd-1iZC-nXzd2yW3QU'
,
'Q4HDwBEvpTXpwtZktqWm4SZOTEuQK1x48xjqjD2GqyM'
,
'Fu_CPIXa0cnJ4EDdVKqFQ3qqKJccMqt2oorI5mfNq74'
]
const
val
=
{}
const
val
=
{}
wx
.
requestSubscribeMessage
({
wx
.
requestSubscribeMessage
({
...
...
store/modules/order.js
View file @
6527b804
...
@@ -17,7 +17,7 @@ const order = {
...
@@ -17,7 +17,7 @@ const order = {
let
timeStart
=
''
let
timeStart
=
''
let
timeEnd
=
''
let
timeEnd
=
''
if
(
item
.
useStartTime
){
if
(
item
.
useStartTime
){
timeStart
=
item
.
useStartTime
.
slice
(
0
,
11
).
replace
(
new
RegExp
(
'-'
,
'g'
),
'.'
)
timeStart
=
Date
.
parse
(
item
.
useStartTime
)
<
new
Date
().
valueOf
()
<
Date
.
parse
(
item
.
useEndTime
)?
''
:
item
.
useStartTime
.
slice
(
0
,
11
).
replace
(
new
RegExp
(
'-'
,
'g'
),
'.'
)
}
}
if
(
item
.
useEndTime
){
if
(
item
.
useEndTime
){
timeEnd
=
item
.
useEndTime
.
slice
(
0
,
11
).
replace
(
new
RegExp
(
'-'
,
'g'
),
'.'
)
timeEnd
=
item
.
useEndTime
.
slice
(
0
,
11
).
replace
(
new
RegExp
(
'-'
,
'g'
),
'.'
)
...
@@ -59,7 +59,7 @@ const order = {
...
@@ -59,7 +59,7 @@ const order = {
let
timeStart
=
''
let
timeStart
=
''
let
timeEnd
=
''
let
timeEnd
=
''
if
(
item
.
useStartTime
){
if
(
item
.
useStartTime
){
timeStart
=
item
.
useStartTime
.
slice
(
0
,
11
).
replace
(
new
RegExp
(
'-'
,
'g'
),
'.'
)
timeStart
=
Date
.
parse
(
item
.
useStartTime
)
<
new
Date
().
valueOf
()
<
Date
.
parse
(
item
.
useEndTime
)?
''
:
item
.
useStartTime
.
slice
(
0
,
11
).
replace
(
new
RegExp
(
'-'
,
'g'
),
'.'
)
}
}
if
(
item
.
useEndTime
){
if
(
item
.
useEndTime
){
timeEnd
=
item
.
useEndTime
.
slice
(
0
,
11
).
replace
(
new
RegExp
(
'-'
,
'g'
),
'.'
)
timeEnd
=
item
.
useEndTime
.
slice
(
0
,
11
).
replace
(
new
RegExp
(
'-'
,
'g'
),
'.'
)
...
...
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