Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
ptfw-uniapp
Project
Project
Details
Activity
Releases
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
侯忠英
ptfw-uniapp
Commits
0205babd
Commit
0205babd
authored
Jul 30, 2019
by
DPFly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加一键关店功能
parent
5700f509
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
6159 additions
and
5245 deletions
+6159
-5245
index.vue
src/components/business/action-sheet-pay/index.vue
+965
-804
index.vue
src/components/business/cart-control/index.vue
+195
-189
store.js
src/models/basic/store.js
+232
-186
index.vue
src/pages/marketing/group/detail/index.vue
+24
-2
index.vue
src/pages/marketing/group/share/index.vue
+10
-1
index.vue
src/pages/store/goods/detail/index.vue
+1092
-1017
index.vue
src/pages/store/goods/list/index.vue
+2723
-2227
index.vue
src/pages/store/goods/search/index.vue
+918
-819
No files found.
src/components/business/action-sheet-pay/index.vue
View file @
0205babd
This diff is collapsed.
Click to expand it.
src/components/business/cart-control/index.vue
View file @
0205babd
This diff is collapsed.
Click to expand it.
src/models/basic/store.js
View file @
0205babd
This diff is collapsed.
Click to expand it.
src/pages/marketing/group/detail/index.vue
View file @
0205babd
...
...
@@ -117,7 +117,8 @@
<view
class=
"no-content"
v-else
>
暂无商品详情
</view>
</view>
</view>
<view
class=
"bottom-option"
>
<view
v-if=
"hasCloseStore"
class=
"store-closed"
>
本店已打烊
</view>
<view
v-else
class=
"bottom-option"
>
<view
class=
"navigation"
>
<view
class=
"item"
@
click=
"toHome"
>
<image
...
...
@@ -217,6 +218,13 @@ export default {
limitCount
:
-
1
,
}
},
computed
:
{
hasCloseStore
()
{
const
{
store_setting
=
{}
}
=
this
.
$store
.
state
const
{
store_temporary_closed
=
0
}
=
store_setting
return
store_temporary_closed
},
},
onLoad
({
id
,
storeId
})
{
this
.
_storeId
=
storeId
...
...
@@ -229,8 +237,8 @@ export default {
if
(
this
.
_setStoreId
)
{
this
.
$store
.
commit
(
'SET_STORE_ID'
,
this
.
_storeId
)
this
.
_setStoreId
=
false
storeModel
.
info
()
}
storeModel
.
info
()
this
.
fetchGroupDetail
()
})
},
...
...
@@ -775,6 +783,20 @@ $bottomOptionHeight: 100rpx;
}
}
.store-closed
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
right
:
0
;
z-index
:
12
;
height
:
120rpx
;
text-align
:
center
;
line-height
:
120rpx
;
font-size
:
34rpx
;
color
:
#fff
;
background-color
:
rgba
(
0
,
0
,
0
,
0
.75
);
}
.bottom-option
{
position
:
fixed
;
bottom
:
0
;
...
...
src/pages/marketing/group/share/index.vue
View file @
0205babd
...
...
@@ -195,6 +195,13 @@ export default {
isVisiblePay
:
false
,
// 是否弹出支付组件
}
},
computed
:
{
hasCloseStore
()
{
const
{
store_setting
=
{}
}
=
this
.
$store
.
state
const
{
store_temporary_closed
=
0
}
=
store_setting
return
store_temporary_closed
},
},
onLoad
({
teamId
,
style
=
0
,
status
=
0
,
storeId
})
{
this
.
_storeId
=
storeId
...
...
@@ -208,8 +215,8 @@ export default {
if
(
this
.
_setStoreId
)
{
this
.
$store
.
commit
(
'SET_STORE_ID'
,
this
.
_storeId
)
this
.
_setStoreId
=
false
storeModel
.
info
()
}
storeModel
.
info
()
const
{
style
,
status
}
=
this
if
(
style
==
0
&&
status
==
0
)
{
// 待支付
...
...
@@ -434,6 +441,7 @@ export default {
})
},
toPay
()
{
if
(
this
.
hasCloseStore
)
return
prompt
.
toast
(
'本店已打烊'
)
if
(
this
.
disablePay
)
return
this
.
payParams
=
this
.
_payParams
this
.
togglePayVisible
(
true
)
...
...
@@ -443,6 +451,7 @@ export default {
storage
.
set
(
'upd-unpay-group-order'
,
true
)
},
toJoin
()
{
if
(
this
.
hasCloseStore
)
return
prompt
.
toast
(
'本店已打烊'
)
this
.
$refs
.
goodsBuy
.
show
()
},
goodsConfirm
(
e
)
{
...
...
src/pages/store/goods/detail/index.vue
View file @
0205babd
This diff is collapsed.
Click to expand it.
src/pages/store/goods/list/index.vue
View file @
0205babd
This diff is collapsed.
Click to expand it.
src/pages/store/goods/search/index.vue
View file @
0205babd
This diff is collapsed.
Click to expand it.
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