Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
e41d31b3
Commit
e41d31b3
authored
May 25, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客服图片
parent
8d4291f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
95 additions
and
86 deletions
+95
-86
customer.vue
src/components/mine/customer.vue
+95
-86
No files found.
src/components/mine/customer.vue
View file @
e41d31b3
...
@@ -11,7 +11,9 @@
...
@@ -11,7 +11,9 @@
<u-loading
slot=
"loading"
></u-loading>
<u-loading
slot=
"loading"
></u-loading>
<view
slot=
"error"
style=
"font-size: 24rpx;"
>
加载失败
</view>
<view
slot=
"error"
style=
"font-size: 24rpx;"
>
加载失败
</view>
</u-image>
</u-image>
<u-button
class=
"settle-button"
type=
"primary"
:open-type=
"openTypes[typeIndex]"
show-message-card
send-message-title=
"点击下方客服会话添加订单助手"
shape=
"circle"
@
click=
"download"
:custom-style=
"buttonStyle"
>
<u-button
class=
"settle-button"
type=
"primary"
:open-type=
"openTypes[typeIndex]"
show-message-card
send-message-title=
"点击下方客服会话添加订单助手"
shape=
"circle"
@
click=
"download"
:send-message-img=
"kefuzxiaoxiImage"
send-message-path=
"/pages/index/index"
:custom-style=
"buttonStyle"
>
{{
buttonText
[
typeIndex
]
}}
{{
buttonText
[
typeIndex
]
}}
</u-button>
</u-button>
<view
class=
"bottom-view"
v-if=
"isMine"
>
<view
class=
"bottom-view"
v-if=
"isMine"
>
...
@@ -38,12 +40,14 @@
...
@@ -38,12 +40,14 @@
}
}
},
},
data
()
{
data
()
{
return
{
return
{};
};
},
},
computed
:
{
computed
:
{
cusQrcode
()
{
cusQrcode
()
{
return
process
.
uniEnv
.
qn_base_url
+
(
this
.
isMine
?
'erweima-rk.png'
:
'dingdanzhushou.png'
)
return
process
.
uniEnv
.
qn_base_url
+
(
this
.
isMine
?
'erweima-rk.png'
:
'dingdanzhushou.png'
)
},
kefuzxiaoxiImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'kefuzxiaoxi.png'
},
},
minekefutuImage
()
{
minekefutuImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
this
.
imageName
return
process
.
uniEnv
.
qn_base_url
+
this
.
imageName
...
@@ -56,46 +60,46 @@
...
@@ -56,46 +60,46 @@
},
},
isExclusive
()
{
isExclusive
()
{
return
this
.
type
==
'exclusive'
return
this
.
type
==
'exclusive'
},
},
isPop
()
{
isPop
()
{
return
this
.
type
==
'pop'
return
this
.
type
==
'pop'
},
},
phoneIcon
()
{
phoneIcon
()
{
return
process
.
uniEnv
.
qn_base_url
+
'dianhua.png'
return
process
.
uniEnv
.
qn_base_url
+
'dianhua.png'
},
},
buttonStyle
()
{
buttonStyle
()
{
return
this
.
isMine
?
{
return
this
.
isMine
?
{
'width'
:
"300rpx"
,
'width'
:
"300rpx"
,
'height'
:
"80rpx"
,
'height'
:
"80rpx"
,
"font-size"
:
"32rpx"
,
"font-size"
:
"32rpx"
,
"font-weight"
:
"bold"
,
"font-weight"
:
"bold"
,
}
:
{
}
:
{
'width'
:
"400rpx"
,
'width'
:
"400rpx"
,
'height'
:
"100rpx"
,
'height'
:
"100rpx"
,
"font-size"
:
"32rpx"
,
"font-size"
:
"32rpx"
,
"font-weight"
:
"bold"
,
"font-weight"
:
"bold"
,
};
};
},
},
types
()
{
types
()
{
return
[
'exclusive'
,
'pop'
,
'mine'
]
return
[
'exclusive'
,
'pop'
,
'mine'
]
},
},
typeIndex
()
{
typeIndex
()
{
return
this
.
types
.
indexOf
(
this
.
type
)
return
this
.
types
.
indexOf
(
this
.
type
)
},
},
phone
()
{
phone
()
{
return
'18124099271'
return
'18124099271'
},
},
openTypes
()
{
openTypes
()
{
return
[
'contact'
,
'contact'
,
''
]
return
[
'contact'
,
'contact'
,
''
]
},
},
buttonText
()
{
buttonText
()
{
return
[
'追加'
,
'追加'
,
'点击下载'
]
return
[
'追加'
,
'追加'
,
'点击下载'
]
},
},
titleText
()
{
titleText
()
{
return
[
'添加订单助手'
,
'添加订单助手'
,
'客服微信'
]
return
[
'添加订单助手'
,
'添加订单助手'
,
'客服微信'
]
},
},
tipText
()
{
tipText
()
{
return
[
'在对话框输入“加入”,即可获取二维码,添加订单助手'
,
'在对话框输入“加入”,即可获取二维码,添加订单助手'
,
'下载二维码添加官方客服微信'
]
return
[
'在对话框输入“加入”,即可获取二维码,添加订单助手'
,
'在对话框输入“加入”,即可获取二维码,添加订单助手'
,
'下载二维码添加官方客服微信'
]
}
}
},
},
methods
:
{
methods
:
{
...
@@ -105,11 +109,11 @@
...
@@ -105,11 +109,11 @@
complete
()
{}
complete
()
{}
});
});
},
},
download
()
{
download
()
{
if
(
!
this
.
isMine
)
{
if
(
!
this
.
isMine
)
{
this
.
$emit
(
'click'
)
this
.
$emit
(
'click'
)
return
return
}
}
let
self
=
this
let
self
=
this
uni
.
downloadFile
({
//获得二维码的临时地址
uni
.
downloadFile
({
//获得二维码的临时地址
url
:
self
.
cusQrcode
,
url
:
self
.
cusQrcode
,
...
@@ -118,8 +122,8 @@
...
@@ -118,8 +122,8 @@
uni
.
saveImageToPhotosAlbum
({
uni
.
saveImageToPhotosAlbum
({
filePath
:
result
.
tempFilePath
,
//传入临时地址
filePath
:
result
.
tempFilePath
,
//传入临时地址
success
(
e
)
{
success
(
e
)
{
self
.
$u
.
toast
(
'保存成功!'
);
self
.
$u
.
toast
(
'保存成功!'
);
self
.
$emit
(
'click'
)
self
.
$emit
(
'click'
)
},
},
fail
(
res
)
{
fail
(
res
)
{
if
(
res
.
errMsg
.
indexOf
(
'auth'
)
!=
-
1
)
{
if
(
res
.
errMsg
.
indexOf
(
'auth'
)
!=
-
1
)
{
...
@@ -131,7 +135,8 @@
...
@@ -131,7 +135,8 @@
if
(
res
.
confirm
)
{
if
(
res
.
confirm
)
{
uni
.
openSetting
({
uni
.
openSetting
({
success
(
res
)
{
success
(
res
)
{
console
.
log
(
res
.
authSetting
)
console
.
log
(
res
.
authSetting
)
}
}
});
});
}
}
...
@@ -140,7 +145,7 @@
...
@@ -140,7 +145,7 @@
})
})
}
else
if
(
res
.
errMsg
)
{
}
else
if
(
res
.
errMsg
)
{
self
.
$u
.
toast
(
'保存失败!'
);
self
.
$u
.
toast
(
'保存失败!'
);
}
}
},
},
})
})
}
}
...
@@ -166,47 +171,50 @@
...
@@ -166,47 +171,50 @@
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
.title-view
{
.title-view
{
text-align
:
center
;
text-align
:
center
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
flex-direction
:
column
;
flex-direction
:
column
;
color
:
#999999
;
color
:
#999999
;
font-size
:
28rpx
;
font-size
:
28rpx
;
padding-left
:
40rpx
;
padding-left
:
40rpx
;
padding-right
:
60rpx
;
padding-right
:
60rpx
;
margin-top
:
20rpx
;
margin-top
:
20rpx
;
&
.is-mine
{
display
:
inline
;
&
.is-mine
{
font-size
:
24rpx
;
display
:
inline
;
color
:
#666666
;
font-size
:
24rpx
;
width
:
100%
;
color
:
#666666
;
margin-top
:
10rpx
;
width
:
100%
;
margin-top
:
10rpx
;
}
}
.title-text
{
.title-text
{
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#333333
;
color
:
#333333
;
font-size
:
40rpx
;
font-size
:
40rpx
;
margin
:
0
0
30rpx
0
;
margin
:
0
0
30rpx
0
;
&
.is-mine
{
font-size
:
32rpx
;
&
.is-mine
{
margin-right
:
30rpx
;
font-size
:
32rpx
;
margin-right
:
30rpx
;
}
}
}
}
}
}
.qrcode
{
.qrcode
{
width
:
600rpx
;
width
:
600rpx
;
height
:
440rpx
;
height
:
440rpx
;
margin-top
:
30rpx
;
margin-top
:
30rpx
;
margin-bottom
:
40rpx
;
margin-bottom
:
40rpx
;
&
.is-mine
{
&
.is-mine
{
margin-top
:
60rpx
;
margin-top
:
60rpx
;
margin-bottom
:
60rpx
;
margin-bottom
:
60rpx
;
width
:
400rpx
;
width
:
400rpx
;
height
:
400rpx
;
height
:
400rpx
;
}
}
}
}
...
@@ -254,16 +262,17 @@
...
@@ -254,16 +262,17 @@
height
:
56rpx
;
height
:
56rpx
;
}
}
}
}
}
}
.settle-button
{
margin-bottom
:
14rpx
;
.settle-button
{
}
margin-bottom
:
14rpx
;
}
.pop-tip-view
{
text-align
:
center
;
.pop-tip-view
{
color
:
#333333
;
text-align
:
center
;
font-size
:
28rpx
;
color
:
#333333
;
margin
:
0rpx
60rpx
40rpx
60rpx
;
font-size
:
28rpx
;
margin
:
0rpx
60rpx
40rpx
60rpx
;
}
}
.tip-view
{
.tip-view
{
...
...
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