Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
f7048093
Commit
f7048093
authored
Sep 25, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地址搜索
parent
1d751e7a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
112 additions
and
8 deletions
+112
-8
address.vue
pages/address/address.vue
+111
-7
storeManagement.vue
pages/microShop/storeManagement/storeManagement.vue
+1
-1
No files found.
pages/address/address.vue
View file @
f7048093
<
template
>
<
template
>
<view
class=
"addressStyle"
v-if=
"!isloading"
:style=
"
{ height: contentHeight }">
<view
class=
"addressStyle"
v-if=
"!isloading"
:style=
"
{ height: contentHeight + 'px'}">
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
:style=
"
{ height: '100%' }">
<view
style=
"width: 100%;height: 50px;background: #FFF;padding: 9px 15px;"
@
click=
'show=true'
>
<u-search
placeholder=
"根据相关内容搜索"
v-model=
"val"
:show-action=
"false"
:disabled=
'true'
></u-search>
</view>
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
:style=
"
{height:(contentHeight-50)+'px'} ">
<view
v-for=
"(item, index) in list"
:key=
"index"
class=
"addresbox"
@
click=
"chosenHandler(item)"
>
<view
v-for=
"(item, index) in list"
:key=
"index"
class=
"addresbox"
@
click=
"chosenHandler(item)"
>
<view
class=
"addresclo"
>
<view
class=
"addresclo"
>
<Text>
收件人:
{{
item
.
Name
}}
</Text>
<Text>
收件人:
{{
item
.
Name
}}
</Text>
...
@@ -38,6 +42,36 @@
...
@@ -38,6 +42,36 @@
</view>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
<u-popup
v-model=
"show"
mode=
"right"
length=
"70%"
height=
'100%'
>
<view
class=
"popupbox"
>
<text
class=
"popupbox_text"
style=
"margin-top: 15px;"
>
收货人
</text>
<view
class=
"popup_item"
>
<input
class=
"uni-input inputM"
v-model=
"msg.Name"
/>
</view>
<text
class=
"popupbox_text"
style=
"margin-top: 15px;"
>
手机号码
</text>
<view
class=
"popup_item"
>
<input
type=
"number"
class=
"uni-input inputM"
v-model=
"msg.Mobile"
/>
</view>
<text
class=
"popupbox_text"
style=
"margin-top: 15px;"
>
详细地址
</text>
<view
class=
"popup_item"
>
<input
class=
"uni-input inputM"
v-model=
"msg.Address"
/>
</view>
<view
class=
"popup_b"
:style=
"
{height:cHeight+'px'}">
<view
class=
"popup_b_item"
style=
"background: #FAF8F9;color: #000000;"
@
click=
"goreset()"
>
<text>
重置
</text>
</view>
<view
class=
"popup_b_item"
:style=
"
{background:mainColor }" @click="determine()">
<text>
确定
</text>
</view>
</view>
</view>
</u-popup>
<!-- 删除的弹框 -->
<!-- 删除的弹框 -->
<u-modal
v-model=
"showModal"
content=
"确实删除收货地址"
:show-cancel-button=
"true"
:show-title=
"false"
@
confirm=
"confirm"
></u-modal>
<u-modal
v-model=
"showModal"
content=
"确实删除收货地址"
:show-cancel-button=
"true"
:show-title=
"false"
@
confirm=
"confirm"
></u-modal>
<u-toast
ref=
"uToast"
/>
<u-toast
ref=
"uToast"
/>
...
@@ -60,10 +94,14 @@ export default {
...
@@ -60,10 +94,14 @@ export default {
contentHeight
:
0
,
contentHeight
:
0
,
showModal
:
false
,
showModal
:
false
,
deleteID
:
0
,
deleteID
:
0
,
val
:
''
,
show
:
false
,
cHeight
:
0
,
msg
:
{
msg
:
{
Name
:
''
,
Name
:
''
,
IsDefault
:
0
,
IsDefault
:
0
,
Mobile
:
''
Mobile
:
''
,
Address
:
''
,
},
},
source
:
''
,
source
:
''
,
defaultId
:
0
,
defaultId
:
0
,
...
@@ -85,8 +123,10 @@ export default {
...
@@ -85,8 +123,10 @@ export default {
auth
auth
},
},
created
()
{
created
()
{
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
'px'
;
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
cHeight
=
this
.
$uiConfig
.
is_bang
?
60
:
52
;
},
},
mounted
()
{
mounted
()
{
let
currentPages
=
getCurrentPages
();
let
currentPages
=
getCurrentPages
();
...
@@ -261,7 +301,22 @@ export default {
...
@@ -261,7 +301,22 @@ export default {
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/address/AddAddress'
url
:
'/pages/address/AddAddress'
});
});
}
},
goreset
(){
//重置
this
.
show
=
false
;
this
.
msg
.
Name
=
''
;
this
.
msg
.
Mobile
=
''
;
this
.
msg
.
Address
=
''
;
this
.
init
()
},
determine
(){
//确认
this
.
show
=
false
this
.
init
()
},
}
}
};
};
</
script
>
</
script
>
...
@@ -297,8 +352,8 @@ export default {
...
@@ -297,8 +352,8 @@ export default {
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin-left
:
3%
;
margin
-top
:
30
rpx
;
margin
:
30
rpx
3%
;
}
}
.addressStyle
.bottom_btn
.bottom_btn_item
{
.addressStyle
.bottom_btn
.bottom_btn_item
{
width
:
48%
;
width
:
48%
;
...
@@ -309,4 +364,53 @@ export default {
...
@@ -309,4 +364,53 @@ export default {
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
}
}
.addressStyle
.popupbox
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
position
:
relative
;
}
.addressStyle
.popupbox_text
{
font-size
:
12px
;
color
:
#111111
;
margin-left
:
5%
;
}
.addressStyle
.popup_item
{
width
:
90%
;
height
:
35px
;
margin-left
:
5%
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
padding
:
5px
;
margin-top
:
10px
;
background
:
#F1F1F1
;
}
.addressStyle
.inputM
{
width
:
100%
;
}
.addressStyle
.popup_b
{
width
:
100%
;
position
:
absolute
;
left
:
0
;
bottom
:
0
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
color
:
#FFFFFF
;
}
.addressStyle
.popup_b_item
{
width
:
50%
;
height
:
100%
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
flex-start
;
justify-content
:
center
;
font-size
:
14px
;
padding-top
:
15px
;
}
</
style
>
</
style
>
pages/microShop/storeManagement/storeManagement.vue
View file @
f7048093
...
@@ -244,7 +244,7 @@
...
@@ -244,7 +244,7 @@
created
(){
created
(){
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
'px'
;
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
'px'
;
this
.
scrollHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
+
210
)
+
'px'
;
this
.
scrollHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
+
210
)
+
'px'
;
this
.
cHeight
=
this
.
$uiConfig
.
is_bang
?
8
0
:
52
;
this
.
cHeight
=
this
.
$uiConfig
.
is_bang
?
6
0
:
52
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
this
.
getSmallShopsGlobalPrice
()
this
.
getSmallShopsGlobalPrice
()
...
...
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