Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
0efd79d8
Commit
0efd79d8
authored
Jul 13, 2021
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 客服
parent
b38d8c79
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
32 deletions
+47
-32
src/pages/contact/index.vue
+47
-32
No files found.
src/pages/contact/index.vue
View file @
0efd79d8
<
template
>
<div
class=
"contact"
>
<div
class=
"contact-img"
>
<img
src=
"https://mayi-newshop.oss-cn-shanghai.aliyuncs.com/product/HCe2iRXHsP.png"
alt=
""
>
<img
src=
"https://mayi-newshop.oss-cn-shanghai.aliyuncs.com/product/HCe2iRXHsP.png"
alt=
""
/
>
</div>
<div
class=
"btn-wrap"
>
<button
open-type=
"contact
"
>
<button
open-type=
"contact"
show-message-card
:session-from=
"sessionFrom
"
>
<div
class=
"btn-main"
>
<div
class=
"main-img"
>
<img
src=
"../../../static/images/wx.png"
alt=
""
>
<img
src=
"../../../static/images/wx.png"
alt=
""
/
>
</div>
<div
class=
"main-text"
>
官方微信客服
</div>
</div>
<img
class=
"btn-next"
src=
"../../../static/images/next.png"
alt=
""
>
<img
class=
"btn-next"
src=
"../../../static/images/next.png"
alt=
""
/
>
</button>
</div>
</div>
</
template
>
<
script
>
import
{
getUserLocation
}
from
"../../utils/wxIndex.js"
;
export
default
{
data
()
{
return
{
sessionFrom
:
""
,
};
},
onLoad
(
options
)
{
getUserLocation
().
then
((
res
)
=>
{
options
.
longitude
=
res
.
longitude
;
options
.
latitude
=
res
.
latitude
;
this
.
sessionFrom
=
JSON
.
stringify
(
options
);
console
.
log
(
'sessionFrom'
,
this
.
sessionFrom
)
});
}
},
};
</
script
>
<
style
scoped
>
.contact
{
.contact
{
padding
:
10px
22px
0
22px
;
}
.contact-img
{
}
.contact-img
{
width
:
100%
;
height
:
154px
;
margin-bottom
:
24px
;
background-color
:
#ccc
;
border-radius
:
8px
;
}
.contact-img
img
{
}
.contact-img
img
{
width
:
100%
;
height
:
100%
;
}
.btn-wrap
{
}
.btn-wrap
{
width
:
100%
;
height
:
80px
;
box-sizing
:
border-box
;
}
button
{
}
button
{
width
:
100%
;
height
:
80px
;
border
:
none
;
...
...
@@ -53,35 +67,35 @@ export default {
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
.btn-main
{
}
.btn-main
{
display
:
flex
;
height
:
40px
;
}
.main-img
{
}
.main-img
{
width
:
54px
;
height
:
40px
;
border-right
:
1px
solid
#D7D4D
4
;
border-right
:
1px
solid
#d7d4d
4
;
padding-top
:
3px
;
}
.main-img
img
{
}
.main-img
img
{
width
:
42px
;
height
:
34px
;
}
.main-text
{
color
:
#1C1B1B
;
font-size
:
17px
;
}
.main-text
{
color
:
#1c1b1b
;
font-size
:
17px
;
margin-left
:
10px
;
}
.btn-next
{
}
.btn-next
{
width
:
9px
;
height
:
14px
;
}
.btn-next
img
{
}
.btn-next
img
{
width
:
100%
;
height
:
100%
;
}
button
::after
{
}
button
::after
{
border
:
none
;
}
}
</
style
>
\ No newline at end of file
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