Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
hmd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ab44df63
authored
Jul 19, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改加企微样式
1 parent
3c15cfd6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
147 additions
and
257 deletions
api/module/entmicro.js
packageIndex/pages/common/contact/contact.scss
packageIndex/pages/common/contact/contact.wxml
packageIndex/pages/serviceCode/serviceCode.scss
packageIndex/pages/serviceCode/serviceCode.wxml
api/module/entmicro.js
View file @
ab44df6
...
@@ -2,6 +2,10 @@ import api from '../request/http'
...
@@ -2,6 +2,10 @@ import api from '../request/http'
module
.
exports
=
{
module
.
exports
=
{
getServiceCode
(
data
)
{
getServiceCode
(
data
)
{
return
api
.
fetch
(
'dracIm.api.entmicro.findMiniProgramIm'
,
data
)
return
api
.
fetch
(
'dracIm.api.entmicro.findMiniProgramIm'
,
data
)
},
/**智能外呼-联系人 */
findByActivityIdAndPhone
(
data
)
{
return
api
.
fetch
(
'dracIm.api.entmicro.findByActivityIdAndPhone'
,
data
)
}
}
}
}
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/common/contact/contact.scss
View file @
ab44df6
.layout
{
@import
"../../serviceCode/serviceCode.scss"
;
padding
:
40rpx
40rpx
100rpx
;
}
.layout
.logo
{
width
:
190rpx
;
height
:
48rpx
;
margin-bottom
:
32rpx
;
}
.layout
.box
{
height
:
1068rpx
;
background
:
#ffffff
;
border-radius
:
16rpx
;
box-sizing
:
border-box
;
padding
:
32rpx
;
}
.box
.merchant
{
font-size
:
36rpx
;
color
:
#333333
;
font-weight
:
600
;
}
.box
.merchant
.icon
{
width
:
96rpx
;
height
:
96rpx
;
border-radius
:
100%
;
overflow
:
hidden
;
margin-right
:
16rpx
;
flex-shrink
:
0
;
}
.box
.merchant
.name
{
animation
:
show-text
2s
forwards
;
}
@keyframes
show-text
{
0
%
{
width
:
0
;
}
100
%
{
width
:
calc
(
100%
-
112rpx
);
}
}
.box
.qr-box
{
height
:
624rpx
;
/* background: #f8f8f8; */
border-radius
:
16rpx
;
margin
:
32rpx
0
48rpx
;
flex-direction
:
column
;
justify-content
:
center
;
}
.box
.qr-box
.text
{
font-size
:
28rpx
;
color
:
#727272
;
width
:
450rpx
;
text-align
:
left
;
}
.qr-box
.icon
{
width
:
42rpx
;
height
:
48rpx
;
margin
:
32rpx
0
26rpx
;
}
.qr-box
.qr
{
width
:
310rpx
;
height
:
310rpx
;
background-color
:
#fff
;
position
:
relative
;
}
.qr-box
.qr
.btn
{
position
:
absolute
;
width
:
112rpx
;
height
:
112rpx
;
}
.qr-box
.refresh
{
color
:
#5850FF
;
font-size
:
24rpx
;
margin
:
8rpx
0
12rpx
;
}
.box
.title
{
font-size
:
28rpx
;
color
:
#c2c2c2
;
text-align
:
center
;
margin-bottom
:
32rpx
;
}
.box
.list
{
display
:
grid
;
grid-template-columns
:
repeat
(
2
,
1fr
);
font-size
:
28rpx
;
color
:
#727272
;
gap
:
20rpx
0
;
}
.box
.list
.item
.icon
{
width
:
24rpx
;
height
:
24rpx
;
margin-right
:
8rpx
;
}
.layout
>
.tips
{
font-size
:
24rpx
;
color
:
#a2a2a2
;
margin-top
:
64rpx
;
text-align
:
center
;
}
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/common/contact/contact.wxml
View file @
ab44df6
<view class="layout">
<view class="layout">
<view class="box">
<view class="box">
<view class="merchant flex">
<view class="bg">
<glsx-image src="home/service/box-bg.png"></glsx-image>
</view>
<view class="icon">
<view class="icon">
<glsx-image webp src="pages/default-merchan
t.png"></glsx-image>
<glsx-image src="home/service/portrai
t.png"></glsx-image>
</view>
</view>
<block wx:if="{{detail.merchantName}}">
<view class="name">
<view class="name text-hide">{{detail.merchantName}}</view>
<glsx-image src="home/service/name.png"></glsx-image>
</block>
</view>
</view>
<view class="qr-box flex">
<view class="title x-center">
<view class="text">“您好,我是您的专属服务顾问。长按识别二维码,添加我的企业微信”</view>
<glsx-image src="home/service/title.png"></glsx-image>
<view class="icon">
<glsx-image webp src="pages/qr-icon.png"></glsx-image>
</view>
</view>
<view class="qr">
<view class="sub-title x-center">
<glsx-image webp src="{{detail.url || 'pages/qr.png'}}" show-menu-by-longpress="{{detail.url}}" bindlongtap="longtap"></glsx-image>
<glsx-image src="home/service/sub-title.png"></glsx-image>
<block wx:if="{{!userInfo || !detail.url}}">
<view class="btn box-center" bindtap="refresh">
<glsx-image webp src="pages/btn.png"></glsx-image>
</view>
</view>
</block>
<view class="line x-center">
<glsx-image src="home/service/line.png"></glsx-image>
</view>
</view>
<block wx:if="{{!userInfo}}">
<view class="receive x-center">
<view class="refresh">
<glsx-image src="home/service/receive.png"></glsx-image>
点击刷新,重新授权
</view>
</view>
</block>
<view class="qr-box x-center">
<glsx-image src="home/service/qr-box.png"></glsx-image>
<view class="qr x-center">
<glsx-image webp src="{{detail.url}}" show-menu-by-longpress="{{detail.url}}" bindlongtap="longtap"></glsx-image>
</view>
<view class="wx-tips">
<glsx-image src="home/service/wx.png"></glsx-image>
</view>
</view>
<view class="title">— 添加我的企业微信可获得以下服务 —</view>
<view class="list">
<block wx:for="{{list}}" wx:key="index">
<view class="item text-center">
<view class="icon">
<glsx-image webp src="pages/active-icon.png"></glsx-image>
</view>
</view>
{{item}}
<view class="qr-bg x-center">
<glsx-image src="home/service/qr-icon.png"></glsx-image>
</view>
</view>
</block>
<view class="tips">
<glsx-image src="home/service/tips.png"></glsx-image>
</view>
</view>
</view>
</view>
<view class="tips">—— 顾客至上 服务第一 ——</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/serviceCode/serviceCode.scss
View file @
ab44df6
/* pages/serviceCode/serviceCode.wxss */
/* pages/serviceCode/serviceCode.wxss */
.layout
{
.layout
{
padding
:
40rpx
40rpx
100rpx
;
height
:
1443rpx
;
}
&
:
:
after
{
.layout
.logo
{
position
:
fixed
;
width
:
190rpx
;
width
:
100vw
;
height
:
48rpx
;
height
:
100%
;
margin-bottom
:
32rpx
;
left
:
0
;
}
top
:
0
;
.layout
.box
{
background-color
:
rgb
(
186
,
9
,
16
);
height
:
1068rpx
;
content
:
''
;
background
:
#ffffff
;
z-index
:
-10
;
border-radius
:
16rpx
;
box-sizing
:
border-box
;
padding
:
32rpx
;
}
.box
.merchant
{
font-size
:
36rpx
;
color
:
#333333
;
font-weight
:
600
;
}
.box
.merchant
.icon
{
width
:
96rpx
;
height
:
96rpx
;
border-radius
:
100%
;
overflow
:
hidden
;
margin-right
:
16rpx
;
flex-shrink
:
0
;
}
.box
.merchant
.name
{
animation
:
show-text
2s
forwards
;
}
@keyframes
show-text
{
0
%
{
width
:
0
;
}
}
100
%
{
.box
{
width
:
calc
(
100%
-
112rpx
);
margin
:
0
50rpx
;
}
height
:
1276rpx
;
}
.box
.qr-box
{
height
:
624rpx
;
/* background: #f8f8f8; */
border-radius
:
16rpx
;
margin
:
32rpx
0
48rpx
;
flex-direction
:
column
;
justify-content
:
center
;
}
.box
.qr-box
.text
{
font-size
:
28rpx
;
color
:
#727272
;
width
:
450rpx
;
text-align
:
left
;
}
.qr-box
.icon
{
width
:
42rpx
;
height
:
48rpx
;
margin
:
32rpx
0
26rpx
;
}
.qr-box
.qr
{
width
:
310rpx
;
height
:
310rpx
;
background-color
:
#fff
;
position
:
relative
;
position
:
relative
;
}
.bg
{
.qr-box
.qr
.btn
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
position
:
absolute
;
width
:
112rpx
;
z-index
:
-9
;
height
:
112rpx
;
left
:
0
;
top
:
0
;
}
}
.qr-box
.refresh
{
.icon
{
color
:
#5850FF
;
position
:
absolute
;
font-size
:
24rpx
;
left
:
46rpx
;
margin
:
8rpx
0
12rpx
;
top
:
78rpx
;
}
width
:
80rpx
;
.box
.title
{
height
:
80rpx
;
font-size
:
28rpx
;
}
color
:
#c2c2c2
;
.name
{
text-align
:
center
;
position
:
absolute
;
margin-bottom
:
32rpx
;
top
:
107rpx
;
}
left
:
139rpx
;
.box
.list
{
width
:
191rpx
;
display
:
grid
;
grid-template-columns
:
repeat
(
2
,
1fr
);
font-size
:
28rpx
;
color
:
#727272
;
gap
:
20rpx
0
;
}
.box
.list
.item
.icon
{
width
:
24rpx
;
height
:
24rpx
;
height
:
24rpx
;
margin-right
:
8rpx
;
}
}
.title
{
position
:
absolute
;
.layout
>
.tips
{
top
:
204rpx
;
font-size
:
24rpx
;
width
:
438rpx
;
color
:
#a2a2a2
;
height
:
54rpx
;
margin-top
:
64rpx
;
}
text-align
:
center
;
.sub-title
{
position
:
absolute
;
top
:
290rpx
;
width
:
424rpx
;
height
:
117rpx
;
}
.line
{
position
:
absolute
;
width
:
339rpx
;
height
:
3rpx
;
top
:
486rpx
;
}
.receive
{
position
:
absolute
;
width
:
121rpx
;
height
:
29rpx
;
top
:
473rpx
;
}
.qr-box
{
position
:
absolute
;
top
:
526rpx
;
width
:
312rpx
;
height
:
312rpx
;
.wx-tips
{
position
:
absolute
;
left
:
59rpx
;
bottom
:
16rpx
;
width
:
206rpx
;
height
:
22rpx
;
}
.qr
{
position
:
absolute
;
width
:
230rpx
;
height
:
230rpx
;
top
:
33rpx
;
}
}
.qr-bg
{
position
:
absolute
;
top
:
559rpx
;
width
:
559rpx
;
height
:
235rpx
;
z-index
:
-1
;
}
.tips
{
position
:
absolute
;
right
:
0
;
bottom
:
-34rpx
;
width
:
285rpx
;
height
:
17rpx
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/serviceCode/serviceCode.wxml
View file @
ab44df6
<view class="layout">
<view class="layout">
<view class="box">
<view class="box">
<view class="merchant flex">
<view class="bg">
<glsx-image src="home/service/box-bg.png"></glsx-image>
</view>
<view class="icon">
<view class="icon">
<glsx-image webp src="pages/default-merchan
t.png"></glsx-image>
<glsx-image src="home/service/portrai
t.png"></glsx-image>
</view>
</view>
<block wx:if="{{detail.merchantName}}">
<view class="name">
<view class="name text-hide">{{detail.merchantName}}</view>
<glsx-image src="home/service/name.png"></glsx-image>
</block>
</view>
</view>
<view class="qr-box flex">
<view class="title x-center">
<view class="text">“您好,我是您的专属服务顾问。长按识别二维码,添加我的企业微信”</view>
<glsx-image src="home/service/title.png"></glsx-image>
<view class="icon">
<glsx-image webp src="pages/qr-icon.png"></glsx-image>
</view>
</view>
<view class="qr">
<view class="sub-title x-center">
<glsx-image webp src="{{detail.url || 'pages/qr.png'}}" show-menu-by-longpress="{{detail.url}}" bindlongtap="longtap"></glsx-image>
<glsx-image src="home/service/sub-title.png"></glsx-image>
<block wx:if="{{!userInfo || !detail.url}}">
<view class="btn box-center" bindtap="refresh">
<glsx-image webp src="pages/btn.png"></glsx-image>
</view>
</view>
</block>
<view class="line x-center">
<glsx-image src="home/service/line.png"></glsx-image>
</view>
</view>
<block wx:if="{{!userInfo}}">
<view class="receive x-center">
<view class="refresh">
<glsx-image src="home/service/receive.png"></glsx-image>
点击刷新,重新授权
</view>
</view>
</block>
<view class="qr-box x-center">
<glsx-image src="home/service/qr-box.png"></glsx-image>
<view class="qr x-center">
<glsx-image webp src="{{detail.url}}" show-menu-by-longpress="{{detail.url}}" bindlongtap="longtap"></glsx-image>
</view>
<view class="wx-tips">
<glsx-image src="home/service/wx.png"></glsx-image>
</view>
</view>
<view class="title">— 添加我的企业微信可获得以下服务 —</view>
<view class="list">
<block wx:for="{{list}}" wx:key="index">
<view class="item text-center">
<view class="icon">
<glsx-image webp src="pages/active-icon.png"></glsx-image>
</view>
</view>
{{item}}
<view class="qr-bg x-center">
<glsx-image src="home/service/qr-icon.png"></glsx-image>
</view>
</view>
</block>
<view class="tips">
<glsx-image src="home/service/tips.png"></glsx-image>
</view>
</view>
</view>
</view>
<view class="tips">—— 顾客至上 服务第一 ——</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment