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
fcfef7a6
Commit
fcfef7a6
authored
May 11, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
c75d5631
c098ad03
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
325 additions
and
76 deletions
+325
-76
preview.vue
src/components/photo/preview.vue
+26
-26
pages.json
src/pages.json
+19
-43
mine.vue
src/pages/index/mine.vue
+1
-1
index.vue
src/pages/mine/cert/index.vue
+10
-6
index.vue
src/pages/mine/customer/index.vue
+77
-0
index.vue
src/pages/mine/deposit/index.vue
+192
-0
No files found.
src/components/photo/preview.vue
View file @
fcfef7a6
...
...
@@ -15,7 +15,7 @@
<
script
>
import
qiniup
from
'@/components/upload/qiniup'
;
const
app
=
getApp
()
export
default
{
export
default
{
props
:
{},
mixins
:
[
qiniup
],
data
()
{
...
...
@@ -28,12 +28,12 @@
files
:
[],
keys
:
[],
token
:
''
,
product
:
''
,
product
:
''
,
allImages
:
[]
}
},
created
(
e
)
{
// 获取照片选项对象
// 获取照片选项对象
console
.
log
(
getApp
().
globalData
.
photo
.
currentItem
)
const
product
=
app
.
globalData
.
photo
.
product
this
.
product
=
`?brandId=
${
product
.
brandId
}
&brand=
${
product
.
brandName
}
&classifyId=
${
product
.
classifyId
}
&systemId=
${
product
.
systemId
}
`
...
...
@@ -61,8 +61,8 @@
if
(
!
photo
.
tempPath
){
return
}
let
path
=
''
if
(
photo
.
tempPath
.
origin
){
let
path
=
''
if
(
photo
.
tempPath
.
origin
){
// 保存原图到本地
path
=
photo
.
tempPath
.
origin
let
result
=
await
this
.
saveLocal
(
path
)
...
...
@@ -72,10 +72,10 @@
title
:
'已将照片原图保存到本地相册'
})
}
}
}
// if(photo.currentItem){
// photo.currentItem.imageList.unshift(photo.tempPath.mixWater)
// }
// }
// if(photo.productList && photo.productList[photo.topIndex]){
// const topArr = photo.productList[photo.topIndex]
...
...
@@ -83,8 +83,8 @@
// topArr[photo.itemIndex].imageList.push(photo.tempPath.mixWater)
// }
// }
// photo.
if
(
photo
.
tempPath
.
mixWater
){
// photo.
if
(
photo
.
tempPath
.
mixWater
){
// 保存水印处理图片到本地
path
=
photo
.
tempPath
.
mixWater
let
result1
=
await
this
.
saveLocal
(
path
)
...
...
@@ -117,37 +117,37 @@
},
// 重拍图片
remakePhoto
()
{
remakePhoto
()
{
this
.
$emit
(
'changeType'
,
1
)
},
finishPhoto
(){
const
photo
=
getApp
().
globalData
.
photo
photo
.
currentItemLength
=
10
this
.
continuePhoto
()
// 完成本项
this
.
continuePhoto
()
// 完成本项
//this.$emit('finish')
},
// 确认图片
continuePhoto
()
{
continuePhoto
()
{
const
photo
=
getApp
().
globalData
.
photo
let
self
=
this
uni
.
showLoading
({
title
:
'图片保存中…'
})
self
.
saveTempToLocal
()
self
.
saveTempToLocal
()
self
.
confirmUpload
(
true
)
},
submitFile
()
{
const
photo
=
getApp
().
globalData
.
photo
if
(
photo
.
currentItemLength
<
10
)
photo
.
currentItemLength
=
photo
.
currentItemLength
+
1
uni
.
hideLoading
()
// 当前项的图片显示
// 拍照项张数目增加 等于10张
photo
.
allImages
.
unshift
(
this
.
fileMaps
[
0
])
if
(
photo
.
currentItemLength
<
10
){
this
.
$emit
(
'changeType'
,
1
)
}
else
{
this
.
$emit
(
'finish'
)
submitFile
()
{
const
photo
=
getApp
().
globalData
.
photo
if
(
photo
.
currentItemLength
<
10
)
photo
.
currentItemLength
=
photo
.
currentItemLength
+
1
uni
.
hideLoading
()
// 当前项的图片显示
// 拍照项张数目增加 等于10张
photo
.
allImages
.
unshift
(
this
.
fileMaps
[
0
])
if
(
photo
.
currentItemLength
<
10
){
this
.
$emit
(
'changeType'
,
1
)
}
else
{
this
.
$emit
(
'finish'
)
}
},
downloadImages
()
{
...
...
@@ -198,7 +198,7 @@
}
.bottomView
{
box-shadow
:
0
0
1rpx
6rpx
rgba
(
255
,
255
,
255
,
0
.05
);
//
box-shadow: 0 0 1rpx 6rpx rgba(255,255,255,0.05);
background-color
:
#333333
;
width
:
100%
;
padding
:
70rpx
0
;
...
...
src/pages.json
View file @
fcfef7a6
...
...
@@ -178,7 +178,7 @@
}
},
{
"path"
:
"cert/
list
"
,
"path"
:
"cert/
index
"
,
"style"
:
{
"navigationBarTitleText"
:
"我的证件"
,
"navigationStyle"
:
"custom"
...
...
@@ -190,8 +190,24 @@
"navigationBarTitleText"
:
""
,
//证件详情
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"customer/index"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"联系客服"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"deposit/index"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"配件押金"
,
"enablePullDownRefresh"
:
false
}
}
]
]
},
{
"root"
:
"pages/order"
,
...
...
@@ -421,16 +437,6 @@
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
0
,
//当前激活的模式(list
的索引项)
"list"
:
[
{
"name"
:
"自营平台"
,
//模式名称
"path"
:
"pages/index/index"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
{
"name"
:
"订单列表"
,
//模式名称
"path"
:
"pages/index/order"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
{
"name"
:
"拍照小工具"
,
//模式名称
"path"
:
"pages/photo/index"
,
//启动页面,必选
...
...
@@ -442,11 +448,6 @@
"path"
:
"pages/order/feedback"
,
"query"
:
""
},
{
"name"
:
"订单详情"
,
//模式名称
"path"
:
"pages/order/detail"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
{
"name"
:
"在线考试"
,
//模式名称
"path"
:
"pages/learn/exam"
,
//启动页面,必选
...
...
@@ -464,31 +465,6 @@
"id"
:
11880091
}
//启动参数,在页面的onLoad函数里面得到
},
{
"name"
:
"资料信息"
,
//模式名称
"path"
:
"pages/settle/file"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
{
"name"
:
"缴纳保证金"
,
//模式名称
"path"
:
"pages/settle/pay-ensure"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
{
"name"
:
"签约页面"
,
//模式名称
"path"
:
"pages/settle/sign-contract"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
{
"name"
:
"订单 - 拒单"
,
//模式名称
"path"
:
"pages/order/refuse"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
{
"name"
:
"订单 - 过程反馈"
,
//模式名称
"path"
:
"pages/order/feedback"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
{
"name"
:
"学习 - 首页"
,
//模式名称
"path"
:
"pages/index/learn"
,
//启动页面,必选
...
...
@@ -496,7 +472,7 @@
},
{
"name"
:
"我的 - 我的证件 - 列表"
,
//模式名称
"path"
:
"pages/mine/cert/
list
"
,
//启动页面,必选
"path"
:
"pages/mine/cert/
index
"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
}
]
...
...
src/pages/index/mine.vue
View file @
fcfef7a6
...
...
@@ -123,7 +123,7 @@
return
process
.
uniEnv
.
qn_base_url
},
pages
()
{
return
[
'wallet'
,
'
'
,
'contract'
,
'cert'
,
'address'
,
''
,
'
'
]
return
[
'wallet'
,
'
deposit'
,
'contract'
,
'cert'
,
'address'
,
''
,
'customer
'
]
},
headImageUrl
()
{
return
this
.
info
.
headImage
||
this
.
placeholderImage
...
...
src/pages/mine/cert/
list
.vue
→
src/pages/mine/cert/
index
.vue
View file @
fcfef7a6
<
template
>
<view
class=
"cert-page"
>
<u-navbar
class=
"navbarHeigth"
back-icon-color=
"#000000"
:background=
"background"
title-color=
"#000"
...
...
@@ -9,9 +10,9 @@
title-bold=
"true"
></u-navbar>
<view
class=
"content-cody"
>
<u-cell-group>
<u-cell-group
:border=
"false"
>
<u-cell-item
v-for=
"item in list"
:title=
"item.name"
:value=
"item.isUploadName"
:arrow=
"true"
:value-style=
"
{'color': item.color}" @click="toDetail(item.keyName)">
:value-style=
"
{'color': item.color}" @click="toDetail(item.keyName)"
:title-style="{'padding-left':'20rpx'}"
>
<u-icon
slot=
"icon"
size=
"32"
name=
"checkmark-circle"
:color=
"item.iconColor"
></u-icon>
</u-cell-item>
</u-cell-group>
...
...
@@ -129,16 +130,19 @@
.cert-page
{
font-size
:
28
rpx
;
margin
:
30
rpx
;
height
:
100vh
;
display
:
flex
;
flex-direction
:
column
;
}
.content-cody
{
/* padding-left: 30rpx;
padding-right: 30rpx; */
padding-left
:
30
rpx
;
padding-right
:
30
rpx
;
padding
:
30
rpx
;
background-color
:
#ffffff
;
border-radius
:
12
rpx
;
height
:
82vh
;
}
.rightBlue
{
color
:
#007AFF
;
}
</
style
>
src/pages/mine/customer/index.vue
0 → 100644
View file @
fcfef7a6
<
template
>
<view
class=
"cus-wrap"
>
<w-navbar
title=
"联系客服"
></w-navbar>
<view
class=
"content"
>
<u-image
class=
"qrcode"
:src=
"cusQrcode"
width=
"400"
mode=
"widthFix"
@
longtap=
"download"
>
<u-loading
slot=
"loading"
></u-loading>
<view
slot=
"error"
style=
"font-size: 24rpx;"
>
加载失败
</view>
</u-image>
<text
class=
"desc"
>
长按二维码保存图片添加官方客服微信
</text>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
};
},
computed
:
{
cusQrcode
()
{
return
process
.
uniEnv
.
qn_base_url
+
'erweima-bg.png'
},
},
methods
:
{
download
()
{
let
that
=
this
;
uni
.
downloadFile
({
//获得二维码的临时地址
url
:
that
.
erweimaImage
,
success
:(
res
)
=>
{
if
(
res
.
statusCode
==
200
){
uni
.
saveImageToPhotosAlbum
({
filePath
:
res
.
tempFilePath
,
//传入临时地址
success
()
{
that
.
$u
.
toast
(
'保存成功!'
);
},
fail
()
{
that
.
$u
.
toast
(
'保存失败!'
);
}
})
}
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
>
.cus-wrap
{
background-color
:
#F4F5F7
;
padding
:
30rpx
;
.content
{
width
:
690rpx
;
height
:
800rpx
;
background
:
#FFFFFF
;
border-radius
:
12rpx
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
.qrcode
{
margin-top
:
160rpx
;
}
.desc
{
margin-top
:
40rpx
;
font-size
:
24rpx
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
24rpx
;
}
}
}
</
style
>
src/pages/mine/deposit/index.vue
0 → 100644
View file @
fcfef7a6
<
template
>
<view
class=
"det-wrap"
>
<w-navbar
title=
"配件押金"
></w-navbar>
<view
class=
"content"
>
<view
class=
"toolbar"
>
<view
class=
"refund"
@
tap=
"refund"
>
退押金
</view>
</view>
<view
class=
"deposit"
>
<view
class=
"title"
>
我的配件押金
</view>
<view
class=
"amount"
><text
class=
"prefix"
>
¥
</text>
{{
amount
}}
</view>
</view>
<view
class=
"rules"
>
<view
class=
"title"
>
质保金规则
</view>
<view
class=
"item"
v-for=
"(item, index) in rules"
:key=
"index"
>
<view
class=
"question"
>
<view
class=
"qa-icon danger-bg"
>
Q
</view>
<view
class=
"txt"
>
{{
item
.
question
}}
</view>
</view>
<view
class=
"answer"
>
<view
class=
"qa-icon default-bg"
>
A
</view>
<view
class=
"txt"
>
{{
item
.
answer
}}
</view>
</view>
<u-divider
v-show=
"rules.length != (index+1)"
half-width=
"315"
border-color=
"#F4F5F7"
height=
"20"
></u-divider>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
settled
:
null
,
rules
:
[
{
question
:
'为什么缴纳设备押金?'
,
answer
:
`设备押金是什么什么什么,应该巴拉巴拉巴拉,所以
要缴纳,巴拉巴拉巴拉。`
},
{
question
:
'退还设备押金说明'
,
answer
:
`设备押金的退还说明是什么什么样的,应该怎么怎么
样,先找客服,然后再怎么怎么样,然后再怎么怎么
样,这样就可以了。`
}
],
};
},
computed
:
{
amount
()
{
return
this
.
settled
&&
this
.
settled
.
deposit
||
'0.00'
;
},
},
onLoad
()
{
if
(
this
.
vuex_token
&&
this
.
vuex_settled
)
{
this
.
settled
=
this
.
vuex_settled
}
else
{
this
.
getData
();
}
},
methods
:
{
getData
()
{
let
self
=
this
const
callBack
=
(
vm
,
result
)
=>
{
// 后台自动判断入驻流程是否完成,前台通过status确定状态
if
(
result
&&
result
.
record
)
{
self
.
settled
=
result
.
record
}
};
app
.
getBaseInfo
(
self
,
callBack
);
},
refund
()
{
this
.
$u
.
route
({
type
:
'redirect'
,
url
:
"pages/mine/customer/index"
})
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.det-wrap
{
background-color
:
#F4F5F7
;
padding
:
30rpx
;
.content
{
padding
:
30rpx
;
width
:
690rpx
;
min-height
:
1120rpx
;
background
:
#FFFFFF
;
border-radius
:
12rpx
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
.toolbar
{
align-self
:
flex-end
;
.refund
{
text-align
:
center
;
width
:
88rpx
;
height
:
40rpx
;
background
:
#F4F5F7
;
border-radius
:
26rpx
;
font-size
:
20rpx
;
font-weight
:
400
;
color
:
#2272FF
;
line-height
:
40rpx
;
}
}
.deposit
{
margin-top
:
50rpx
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
.title
{
font-size
:
40rpx
;
font-weight
:
bold
;
color
:
#333333
;
line-height
:
40rpx
;
}
.amount
{
margin-top
:
60rpx
;
font-size
:
72rpx
;
font-weight
:
bold
;
color
:
#2272FF
;
line-height
:
72rpx
;
.prefix
{
font-size
:
40rpx
;
}
}
}
.rules
{
align-self
:
flex-start
;
margin-top
:
160rpx
;
.title
{
font-size
:
32rpx
;
font-weight
:
bold
;
color
:
#333333
;
line-height
:
32rpx
;
margin-bottom
:
10rpx
;
}
.item
{
margin-top
:
40rpx
;
.question
{
display
:
flex
;
margin-bottom
:
30rpx
;
.txt
{
margin-left
:
20rpx
;
width
:
554rpx
;
font-size
:
28rpx
;
font-weight
:
bold
;
color
:
#333333
;
line-height
:
40rpx
;
}
}
.answer
{
display
:
flex
;
margin-bottom
:
30rpx
;
.txt
{
margin-left
:
20rpx
;
width
:
554rpx
;
font-size
:
24rpx
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
36rpx
;
}
}
}
}
}
}
.qa-icon
{
text-align
:
center
;
width
:
40rpx
;
height
:
40rpx
;
border-radius
:
8rpx
;
font-size
:
28rpx
;
font-weight
:
500
;
color
:
#FFFFFF
;
line-height
:
40rpx
;
}
.danger-bg
{
background
:
#FA5A49
;
}
.default-bg
{
background
:
#2272FF
;
}
</
style
>
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