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
c6d3d382
Commit
c6d3d382
authored
Aug 09, 2022
by
songbingqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增自定义通知发送授权弹框
parent
79ac0b67
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
161 additions
and
3 deletions
+161
-3
orderSubPackage/pages/settlement/index.vue
+161
-3
No files found.
orderSubPackage/pages/settlement/index.vue
View file @
c6d3d382
...
@@ -84,6 +84,31 @@
...
@@ -84,6 +84,31 @@
<button
v-if=
"!userms"
class=
"payment"
style=
"border-radius: 0;"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
付款
</button>
<button
v-if=
"!userms"
class=
"payment"
style=
"border-radius: 0;"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
付款
</button>
</div>
</div>
<show-toast
ref=
"toast"
/>
<show-toast
ref=
"toast"
/>
<u-popup
:show=
"messagePopup"
mode=
"bottom"
:round=
"5"
:overlay=
"true"
zIndex=
"10071"
>
<view
class=
"messageBox"
>
<view
class=
"title"
>
<image
class=
"image"
src=
"../../../static/imgs/weixin-3.png"
></image>
<view
class=
"text"
>
HOOLOO COFFEE 申请
</view>
</view>
<view
class=
"desc"
>
<view
class=
""
>
发送一次以下消息
</view>
</view>
<view
class=
"content"
>
<view
class=
"contentItem"
v-for=
"(item,index) in messageList"
:key=
"index"
>
<view
:class=
"item.status?'checked':'nochecked'"
:style=
"
{'width':'40rpx','height':'40rpx'}" @click="changeContentFlag(index)">
</view>
<view
class=
"text"
>
{{
item
.
title
}}
</view>
</view>
</view>
<view
class=
"btns"
>
<view
class=
"cancle btn"
@
click=
"cancleMessage"
>
取消
</view>
<view
class=
"submit btn"
@
click=
"submitMessage"
>
确定
</view>
</view>
<view
class=
"save"
>
<view
:class=
"saveFlag?'checked':'nochecked'"
:style=
"
{'width':'20rpx','height':'20rpx'}" @click="changeSaveFlage">
</view>
<view
class=
"text"
>
总是保持以上选择,不在询问
</view>
</view>
</view>
</u-popup>
</view>
</view>
</
template
>
</
template
>
...
@@ -95,8 +120,6 @@ import User from '@/request/user'
...
@@ -95,8 +120,6 @@ import User from '@/request/user'
import
Order
from
'@/request/order'
import
Order
from
'@/request/order'
export
default
{
export
default
{
onShow
()
{
onShow
()
{
if
(
this
.
goods
)
{
if
(
this
.
goods
)
{
Order
.
getWaitTine
({
Order
.
getWaitTine
({
shopId
:
uni
.
getStorageSync
(
'shopData'
).
id
,
shopId
:
uni
.
getStorageSync
(
'shopData'
).
id
,
...
@@ -110,7 +133,6 @@ export default {
...
@@ -110,7 +133,6 @@ export default {
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
console
.
log
(
123
)
console
.
log
(
123
)
// 清除优惠卷信息
// 清除优惠卷信息
this
.
$store
.
commit
(
"cleanInfo"
,{})
this
.
$store
.
commit
(
"cleanInfo"
,{})
...
@@ -174,6 +196,25 @@ export default {
...
@@ -174,6 +196,25 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
messageList
:[
{
tmp
:
'1uErx-15S-3vuopXSvvsxCeM_Jd-1iZC-nXzd2yW3QU'
,
title
:
'下单成功通知'
,
status
:
false
},
{
tmp
:
'Q4HDwBEvpTXpwtZktqWm4SZOTEuQK1x48xjqjD2GqyM'
,
title
:
'订单状态变更通知'
,
status
:
false
},
{
tmp
:
'Fu_CPIXa0cnJ4EDdVKqFQ3qqKJccMqt2oorI5mfNq74'
,
title
:
'取餐提醒'
,
status
:
false
}
],
saveFlag
:
false
,
messagePopup
:
false
,
goods
:
[],
goods
:
[],
buyType
:
''
,
buyType
:
''
,
shopData
:
{},
shopData
:
{},
...
@@ -242,6 +283,22 @@ export default {
...
@@ -242,6 +283,22 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
cancleMessage
()
{
},
submitMessage
()
{
},
changeContentFlag
(
index
)
{
this
.
messageList
[
index
].
status
=
!
this
.
messageList
[
index
].
status
},
changeSaveFlage
(){
console
.
log
(
this
.
saveFlag
)
this
.
saveFlag
=
!
this
.
saveFlag
},
closeT
(){
this
.
messagePopup
=
false
},
// 勾选隐私协议
// 勾选隐私协议
clickAgreeTerms
(){
clickAgreeTerms
(){
this
.
agreeTerms
=
!
this
.
agreeTerms
this
.
agreeTerms
=
!
this
.
agreeTerms
...
@@ -264,6 +321,8 @@ export default {
...
@@ -264,6 +321,8 @@ export default {
}
}
},
},
messageAndSave
()
{
messageAndSave
()
{
// this.messagePopup = true
// return
if
(
!
this
.
TermsStatus
&&!
this
.
agreeTerms
){
if
(
!
this
.
TermsStatus
&&!
this
.
agreeTerms
){
this
.
showToast
({
title
:
"请同意下方协议条款"
});
this
.
showToast
({
title
:
"请同意下方协议条款"
});
return
return
...
@@ -381,6 +440,105 @@ export default {
...
@@ -381,6 +440,105 @@ export default {
padding-top
:
1
rpx
;
padding-top
:
1
rpx
;
}
}
.messageBox
{
padding
:
30
rpx
20
rpx
;
.title
{
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
.image
{
width
:
30
rpx
;
height
:
30
rpx
;
}
.text
{
font-size
:
28
rpx
;
font-weight
:
500
;
}
}
.desc
{
padding
:
30
rpx
0
rpx
;
border-bottom
:
1
rpx
solid
black
;
font-weight
:
500
;
font-size
:
34
rpx
;
}
.content
{
.contentItem{
padding
:
15
rpx
0
rpx
;
border-bottom
:
1
rpx
solid
black
;
display
:
flex
;
align-items
:
center
;
.checked{
background
:
url('../../../static/imgs/duigouxuanzhong.png')
center
center
no-repeat
;
background-size
:
100%
100%
;
}
.nochecked
{
background
:
url('../../../static/imgs/weixuanzhong.png')
center
center
no-repeat
;
background-size
:
100%
100%
;
}
.text
{
font-weight
:
500
;
margin-left
:
15
rpx
;
font-size
:
30
rpx
;
}
}
}
.btns
{
margin-top
:
40
rpx
;
display
:
flex
;
justify-content
:
center
;
.btn
{
width
:
150
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
}
.cancle
{
color
:
#58be6b
;
background
:
#f2f2f2
;
margin-right
:
10
rpx
;
}
.submit
{
margin-left
:
10
rpx
;
color
:
white
;
background
:
#58be6b
;
}
}
.save
{
margin-top
:
30
rpx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
line-height
:
center
;
.checked{
background
:
url('../../../static/imgs/duigouxuanzhong.png')
center
center
no-repeat
;
background-size
:
100%
100%
;
}
.nochecked
{
background
:
url('../../../static/imgs/weixuanzhong.png')
center
center
no-repeat
;
background-size
:
100%
100%
;
}
.text
{
color
:
gray
;
}
}
}
.shop_info
{
.shop_info
{
width
:
686
rpx
;
width
:
686
rpx
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
...
...
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