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
e5c9e94b
Commit
e5c9e94b
authored
May 25, 2021
by
linwenqing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
fa8ed8ef
a7c95785
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
128 additions
and
115 deletions
+128
-115
customer.vue
src/components/mine/customer.vue
+95
-86
detail.vue
src/pages/mine/cert/detail.vue
+5
-2
index.vue
src/pages/mine/cert/index.vue
+18
-8
upload.vue
src/pages/mine/cert/upload.vue
+10
-19
No files found.
src/components/mine/customer.vue
View file @
e5c9e94b
...
@@ -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,13 +40,15 @@
...
@@ -38,13 +40,15 @@
}
}
},
},
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
},
},
...
@@ -89,7 +93,7 @@
...
@@ -89,7 +93,7 @@
return
[
'contact'
,
'contact'
,
''
]
return
[
'contact'
,
'contact'
,
''
]
},
},
buttonText
()
{
buttonText
()
{
return
[
'追加'
,
'追加'
,
'点击下载'
]
return
[
'追加'
,
'追加'
,
'点击下载'
]
},
},
titleText
()
{
titleText
()
{
return
[
'添加订单助手'
,
'添加订单助手'
,
'客服微信'
]
return
[
'添加订单助手'
,
'添加订单助手'
,
'客服微信'
]
...
@@ -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
)
}
}
});
});
}
}
...
@@ -177,6 +182,7 @@
...
@@ -177,6 +182,7 @@
padding-left
:
40rpx
;
padding-left
:
40rpx
;
padding-right
:
60rpx
;
padding-right
:
60rpx
;
margin-top
:
20rpx
;
margin-top
:
20rpx
;
&
.is-mine
{
&
.is-mine
{
display
:
inline
;
display
:
inline
;
font-size
:
24rpx
;
font-size
:
24rpx
;
...
@@ -184,11 +190,13 @@
...
@@ -184,11 +190,13 @@
width
:
100%
;
width
:
100%
;
margin-top
:
10rpx
;
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
{
&
.is-mine
{
font-size
:
32rpx
;
font-size
:
32rpx
;
margin-right
:
30rpx
;
margin-right
:
30rpx
;
...
@@ -255,6 +263,7 @@
...
@@ -255,6 +263,7 @@
}
}
}
}
}
}
.settle-button
{
.settle-button
{
margin-bottom
:
14rpx
;
margin-bottom
:
14rpx
;
}
}
...
...
src/pages/mine/cert/detail.vue
View file @
e5c9e94b
...
@@ -9,8 +9,10 @@
...
@@ -9,8 +9,10 @@
title-bold=
"true"
title-bold=
"true"
></u-navbar>
></u-navbar>
<view
class=
"content-cody"
>
<view
class=
"content-cody"
>
<view
class=
"title"
>
{{
info
.
type
}}
</view>
<view
v-for=
"item,key in info.url"
:key=
"key"
>
<view
class=
"content"
v-for=
"item in info.url"
><image
:src=
"item"
mode=
"aspectFit"
></image></view>
<view
class=
"title"
>
{{
info
.
desc
[
key
]
}}
</view>
<image
class=
"content"
:src=
"item"
mode=
"aspectFit"
></image>
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -34,6 +36,7 @@
...
@@ -34,6 +36,7 @@
let
urlArr
=
data
.
url
.
split
(
','
);
let
urlArr
=
data
.
url
.
split
(
','
);
that
.
info
.
type
=
data
.
type
;
that
.
info
.
type
=
data
.
type
;
that
.
info
.
url
=
urlArr
;
that
.
info
.
url
=
urlArr
;
that
.
info
.
desc
=
data
.
desc
;
console
.
log
(
urlArr
);
console
.
log
(
urlArr
);
}
catch
(
e
){}
}
catch
(
e
){}
console
.
log
(
that
.
info
);
console
.
log
(
that
.
info
);
...
...
src/pages/mine/cert/index.vue
View file @
e5c9e94b
...
@@ -31,56 +31,65 @@
...
@@ -31,56 +31,65 @@
isUpload
:
false
,
isUpload
:
false
,
isUploadName
:
"未上传"
,
isUploadName
:
"未上传"
,
keyName
:
"id_card"
,
keyName
:
"id_card"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'身份证人像面'
,
'身份证国徽面'
],
},
},
electrician_certificate
:
{
electrician_certificate
:
{
name
:
"电工证"
,
name
:
"电工证"
,
isUpload
:
false
,
isUpload
:
false
,
isUploadName
:
"未上传"
,
isUploadName
:
"未上传"
,
keyName
:
"electrician_certificate"
,
keyName
:
"electrician_certificate"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'电工证正面'
],
},
},
driver_license
:
{
driver_license
:
{
name
:
"驾驶证"
,
name
:
"驾驶证"
,
isUpload
:
false
,
isUpload
:
false
,
isUploadName
:
"未上传"
,
isUploadName
:
"未上传"
,
keyName
:
"driver_license"
,
keyName
:
"driver_license"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'驾驶证正面'
],
},
},
driving_license
:
{
driving_license
:
{
name
:
"行驶证"
,
name
:
"行驶证"
,
isUpload
:
false
,
isUpload
:
false
,
isUploadName
:
"未上传"
,
isUploadName
:
"未上传"
,
keyName
:
"driving_license"
,
keyName
:
"driving_license"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'行驶证正面'
],
},
},
vehicle
:
{
vehicle
:
{
name
:
"车辆照"
,
name
:
"车辆照"
,
isUpload
:
false
,
isUpload
:
false
,
isUploadName
:
"未上传"
,
isUploadName
:
"未上传"
,
keyName
:
"vehicle"
,
keyName
:
"vehicle"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'车辆正面/看到车牌'
,
'车辆侧面/看到外观'
],
},
},
high_sky_license
:
{
high_sky_license
:
{
name
:
"高空证"
,
name
:
"高空证"
,
isUpload
:
false
,
isUpload
:
false
,
isUploadName
:
"未上传"
,
isUploadName
:
"未上传"
,
keyName
:
"high_sky_license"
,
keyName
:
"high_sky_license"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'高空证正面'
],
},
},
refrigeration_license
:
{
refrigeration_license
:
{
name
:
"制冷证"
,
name
:
"制冷证"
,
isUpload
:
false
,
isUpload
:
false
,
isUploadName
:
"未上传"
,
isUploadName
:
"未上传"
,
keyName
:
"refrigeration_license"
,
keyName
:
"refrigeration_license"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'制冷证正面'
],
},
},
business_license
:
{
business_license
:
{
name
:
"营业执照"
,
name
:
"营业执照"
,
isUpload
:
false
,
isUpload
:
false
,
isUploadName
:
"未上传"
,
isUploadName
:
"未上传"
,
keyName
:
"business_license"
,
keyName
:
"business_license"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'营业执照正面'
],
},
},
}
}
}
}
...
@@ -111,6 +120,7 @@
...
@@ -111,6 +120,7 @@
},
},
toDetail
(
key
)
{
toDetail
(
key
)
{
let
data
=
this
.
list
[
key
].
data
;
let
data
=
this
.
list
[
key
].
data
;
data
.
desc
=
this
.
list
[
key
].
desc
;
if
(
data
.
status
!=
1
){
if
(
data
.
status
!=
1
){
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'/pages/mine/cert/upload?type='
+
data
.
type_key
url
:
'/pages/mine/cert/upload?type='
+
data
.
type_key
...
...
src/pages/mine/cert/upload.vue
View file @
e5c9e94b
...
@@ -12,22 +12,17 @@
...
@@ -12,22 +12,17 @@
请点击上传图片,图片大小不大于3M
请点击上传图片,图片大小不大于3M
</view>
</view>
<view
class=
"upload-container"
>
<view
class=
"upload-container"
>
<view
class=
"img-container"
v-for=
"(item, index) in imgList[key].desc"
<view
class=
"img-container"
v-for=
"(item, index) in imgList[key].desc"
:key=
"index"
>
:class=
"
{'u-margin-left-30': index>0}" :key="index">
<image
class=
"upload-img"
@
click=
"handleClick(type, index)"
:src=
"imgs[index]"
mode=
"widthFix"
>
<image
class=
"upload-img"
@
click=
"handleClick(type, index)"
:src=
"imgs[index]"
mode=
"aspectFill"
>
</image>
</image>
<text
class=
"img-desc"
>
{{
item
}}
</text>
<text
class=
"img-desc"
>
{{
item
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"notice-bottom"
>
<image
:src=
"icon"
class=
"icon"
></image>
<text
class=
"u-padding-left-10"
>
若无需上传证件反面照,则点击上传正面照即可
</text>
</view>
</view>
<view
class=
"button-container"
>
<view
class=
"button-container"
>
<view
class=
"submit-button"
:class=
"
{'is-ok': isOk}" @click="submitCert()">提交
</view>
<view
class=
"submit-button"
:class=
"
{'is-ok': isOk}" @click="submitCert()">提交
</view>
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -45,8 +40,8 @@
...
@@ -45,8 +40,8 @@
type
:
null
,
type
:
null
,
isOk
:
false
,
isOk
:
false
,
imgs
:
[
imgs
:
[
process
.
uniEnv
.
qn_base_url
+
"s
ahgnchuanzhaopian
.png"
,
process
.
uniEnv
.
qn_base_url
+
"s
hangchuanzhaopian-big
.png"
,
process
.
uniEnv
.
qn_base_url
+
"s
ahgnchuanzhaopian
.png"
,
process
.
uniEnv
.
qn_base_url
+
"s
hangchuanzhaopian-big
.png"
,
],
],
imgList
:
[{
imgList
:
[{
typeKey
:
'id_card'
,
typeKey
:
'id_card'
,
...
@@ -225,7 +220,7 @@
...
@@ -225,7 +220,7 @@
height
:
104
rpx
;
height
:
104
rpx
;
background
:
#D1D4D4
;
background
:
#D1D4D4
;
border-radius
:
52
rpx
;
border-radius
:
52
rpx
;
margin-top
:
2
50
rpx
;
margin-top
:
2
24
rpx
;
text-align
:
center
;
text-align
:
center
;
line-height
:
104
rpx
;
line-height
:
104
rpx
;
display
:
inline-block
;
display
:
inline-block
;
...
@@ -240,16 +235,12 @@
...
@@ -240,16 +235,12 @@
.button-container
{
.button-container
{
text-align
:
center
;
text-align
:
center
;
}
padding-bottom
:
30
rpx
;
.upload-container
{
display
:
flex
;
}
}
.upload-img
{
.upload-img
{
margin-top
:
30
rpx
;
margin-top
:
30
rpx
;
width
:
300
rpx
;
width
:
100%
;
height
:
226
rpx
;
}
}
.two
{
.two
{
...
...
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