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
7ce31762
Commit
7ce31762
authored
Jun 08, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件页面
parent
27e28742
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
141 additions
and
64 deletions
+141
-64
App.vue
src/App.vue
+1
-0
iconfont.css
src/common/iconfont.css
+18
-0
XhInput.vue
src/components/createCom/XhInput.vue
+1
-1
XhRadio.vue
src/components/createCom/XhRadio.vue
+2
-1
learn.vue
src/pages/index/learn.vue
+5
-5
order.vue
src/pages/index/order.vue
+1
-0
complete.vue
src/pages/order/complete.vue
+2
-3
document.vue
src/pages/order/document.vue
+104
-49
list.vue
src/pages/photo/list.vue
+7
-5
No files found.
src/App.vue
View file @
7ce31762
...
...
@@ -257,6 +257,7 @@ export default {
<
style
>
/*每个页面公共css */
@import
"@/common/iconfont.css"
;
</
style
>
<
style
lang=
"scss"
>
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
...
...
src/common/iconfont.css
0 → 100644
View file @
7ce31762
@font-face
{
font-family
:
"wxh"
;
/* Project id 2600874 */
/* Color fonts */
src
:
url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAHYAAwAAAAAA3wAAAGNAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIhgjEgZgADwKYGwBNgIkAwwLCgAEIAWBVAcgG6sCyL5APLajkgSQKlA9xTEuxLtPw+avikE32OCp3+939u3+/1Gp7skkindRuVQ8k0iUaNNpRCLDdLF04f9/532v+ifKCgIKskACGvLAxrTW4SE+1iqP8/+6guhXXAM8hf9vEasvfKVwncDD1TkrNzR1E+lJXq2Jk7a1bQ3roijRNAvX4KcCSyxqd7YWLiJliUdasyQ5XAICJABpCMZgAkDSE0gAP2OGrgmRg5tgCnRTF5lSK4fYlCRE6qmni0ey3kWdd6AOt3OGAD8DWYQiKJCG+oE0jAWEMQIW696D9G/KUxg1AKI02plA7vAtAEFB+v7O7tkkdNLjvbjTF5h7OrYl920W6m8dFljELe5HnXjRVxjkRJ65+0r0u+pq6/XtP1pP8E4/1AFhLCAv7zVIoOnH2TR4MIAZYTWjM0p5KABhHoosGhHQgGmEmthvxABkBq2gMBm5GwxWbNsxY8CkaZsWjFpTTQVVKdtAj149uirJqit35ACW9XfEpDXrZi1bkqVWQeFDBQCPX3IBAA==')
format
(
'woff2'
);
}
.wxh
{
font-family
:
"wxh"
!important
;
font-size
:
16px
;
font-style
:
normal
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
.wxh-doc
:before
{
content
:
"\e601"
;
}
src/components/createCom/XhInput.vue
View file @
7ce31762
...
...
@@ -70,7 +70,7 @@
return
this
.
textarea
?
'transparent'
:
'#F4F5F7'
},
isDisabled
()
{
return
this
.
item
.
f
unction
?
true
:
false
return
this
.
item
.
f
ieldsId
===
254
||
this
.
disabled
?
true
:
false
}
},
watch
:
{},
...
...
src/components/createCom/XhRadio.vue
View file @
7ce31762
...
...
@@ -25,6 +25,7 @@
mounted
()
{},
methods
:
{
setValue
(
txt
){
if
(
this
.
disabled
)
return
this
.
dataValue
=
txt
this
.
valueChange
(
txt
)
}
...
...
@@ -44,7 +45,7 @@
display
:
flex
;
flex-wrap
:
wrap
;
line-height
:
50rpx
;
max-width
:
46%
;
max-width
:
46%
;
align-items
:
center
;
&
.active
{
background-color
:
#2272FF
;
...
...
src/pages/index/learn.vue
View file @
7ce31762
...
...
@@ -408,7 +408,7 @@ export default {
},
list
:
[],
rule
:
{
pic
:
process
.
uniEnv
.
qn_base_url
+
"guifan
@3x
.png"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"guifan
-d
.png"
,
},
courselist
:
[
{
...
...
@@ -477,7 +477,7 @@ export default {
loadStatus
:
"loading"
,
isLoadMore
:
false
,
exam
:
null
,
jianBianImg
:
process
.
uniEnv
.
qn_base_url
+
"jianbian
@3x_bak1
.png"
,
jianBianImg
:
process
.
uniEnv
.
qn_base_url
+
"jianbian
-fp
.png"
,
isReflesh
:
true
,
triggered
:
false
,
_freshing
:
false
,
...
...
@@ -497,13 +497,13 @@ export default {
},
computed
:
{
bannerImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
"xuexibanner.png"
;
return
process
.
uniEnv
.
qn_base_url
+
"xuexibanner
-p
.png"
;
},
jianbianImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
"jianbian.png"
;
return
process
.
uniEnv
.
qn_base_url
+
"jianbian
-p
.png"
;
},
anzhuangwenjianImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
"
anzhuangwenjian
.png"
;
return
process
.
uniEnv
.
qn_base_url
+
"
wenjian-d
.png"
;
},
},
onShow
:
function
(
param
)
{
...
...
src/pages/index/order.vue
View file @
7ce31762
...
...
@@ -301,6 +301,7 @@
+
"&inGuaranteePeriod="
+
item
.
inGuaranteePeriod
+
"&partnerCompanyId="
+
item
.
partnerCompanyId
+
"&auditResultsId="
+
(
item
.
auditResults
?
Object
.
keys
(
item
.
auditResults
)[
Object
.
keys
(
item
.
auditResults
).
length
-
1
]:
''
)
+
"&maintainStep="
+
item
.
maintainStep
})
},
// handleAction(item) {
...
...
src/pages/order/complete.vue
View file @
7ce31762
...
...
@@ -19,15 +19,14 @@
</view>
<template
v-if=
"item.fieldsType"
>
<xh-input
v-if=
"item.formType==='input'"
:groupIndex=
"groupIndex"
:type=
"item.inputType"
:itemIndex=
"itemIndex"
:item=
"item"
:value=
'form[item.fieldsName] || ""'
:slotContent=
"item.fieldsInfo"
@
value-change=
"fieldValueChange"
>
:itemIndex=
"itemIndex"
:item=
"item"
:value=
'form[item.fieldsName] || ""'
:
disabled=
"item.disabled || false"
:
slotContent=
"item.fieldsInfo"
@
value-change=
"fieldValueChange"
>
</xh-input>
<xh-multi-input
v-else-if=
"item.formType==='multiinput'"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:item=
"item"
:value=
'form[item.fieldsName] || ""'
@
value-change=
"fieldValueChange"
>
</xh-multi-input>
<xh-radio
v-else-if=
"item.formType==='radio'"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:item=
"item"
:value=
'form[item.fieldsName] || ""'
@
value-change=
"fieldValueChange"
>
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:item=
"item"
:value=
'form[item.fieldsName] || ""'
:disabled=
"item.disabled || false"
@
value-change=
"fieldValueChange"
>
</xh-radio>
<xh-checkbox
v-else-if=
"item.formType==='checkbox'"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:item=
"item"
:value=
'form[item.fieldsName] || ""'
...
...
src/pages/order/document.vue
View file @
7ce31762
...
...
@@ -21,7 +21,20 @@
</
template
>
<view
class=
"file-title"
>
文件列表
</view>
<view
class=
"file-list"
>
<view
class=
"file-row"
v-for=
"(item, index) in list"
:key=
"index"
>
<view
class=
"file-row"
v-for=
"(item, index) in list"
:key=
"index"
>
<view
class=
"file-left"
>
<view
class=
"file-name"
>
<u-icon
class=
"item-icon"
name=
"doc"
custom-prefix=
"wxh"
size=
"52"
></u-icon>
<view
class=
"file-format-text"
>
{{formatText(item.name)}}
</view>
</view>
<text>
{{item.name}}
</text>
</view>
<view
class=
"file-right"
>
<u-button
:custom-style=
"shareStyle"
shape=
"circle"
@
click=
"handleShare(item)"
>
分享
</u-button>
<u-button
:custom-style=
"previewStyle"
shape=
"circle"
@
click=
"handlePreview(item)"
>
查看
</u-button>
</view>
<view
class=
"file-left"
>
<view
class=
"file-name"
>
<image
class=
"file-image"
:src=
"wenjianImage"
></image>
...
...
@@ -31,9 +44,10 @@
<text>
{{item.name}}
</text>
</view>
<view
class=
"file-right"
>
<u-button
:custom-style=
"shareStyle"
shape=
'circle'
size=
"mini"
@
click=
"handleShare"
>
分享
</u-button>
<u-button
:custom-style=
"shareStyle"
shape=
'circle'
size=
"mini"
@
click=
"handleShare(item)"
>
分享
</u-button>
<u-button
:custom-style=
"previewStyle"
shape=
'circle'
size=
"mini"
class=
"button-class"
@
click=
"handlePreview"
>
查看
@
click=
"handlePreview
(item)
"
>
查看
</u-button>
</view>
</view>
...
...
@@ -74,23 +88,28 @@
'2'
:
'品牌'
}
},
shareStyle
()
{
return
{
'background-color'
:
'#FFFFFF'
,
'heigth'
:
'52rpx'
,
'width'
:
'100rpx'
,
'color'
:
'#2272FF'
,
'font-size'
:
'24rpx'
,
}
},
previewStyle
()
{
return
{
'background-color'
:
'#2272FF'
,
'heigth'
:
'52rpx'
,
'width'
:
'100rpx'
,
'color'
:
'#FFFFFF'
,
'font-size'
:
'24rpx'
,
}
shareStyle
()
{
return
{
marginRight
:
'10rpx'
,
width
:
'100rpx'
,
height
:
'52rpx'
,
background
:
'#FFFFFF'
,
color
:
'#2272FF'
,
fontSize
:
'24rpx'
,
fontWeight
:
'400'
,
lineHeight
:
'52rpx'
}
},
previewStyle
()
{
return
{
width
:
'100rpx'
,
height
:
'52rpx'
,
background
:
'#2272FF'
,
color
:
'#FFFFFF'
,
fontSize
:
'24rpx'
,
fontWeight
:
'400'
,
lineHeight
:
'52rpx'
}
},
wenjianImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'wenjian-bk.png'
...
...
@@ -100,7 +119,7 @@
}
},
onLoad
(
e
)
{
if
(
e
.
partnerCompanyId
&&
e
.
brandId
)
{
if
(
e
&&
e
.
partnerCompanyId
&&
e
.
brandId
)
{
this
.
orderFile
=
true
this
.
loadFileList
(
e
.
partnerCompanyId
,
e
.
brandId
)
}
else
{
...
...
@@ -119,10 +138,49 @@
this
.
loadFileList
(
this
.
selected
[
'1'
].
id
,
this
.
selected
[
'2'
].
id
)
}
},
handleShare
()
{
},
handlePreview
()
{
handleShare
(
item
)
{
uni
.
showLoading
({
title
:
'加载中'
})
// callback 写法
wx
.
downloadFile
({
url
:
item
.
url
,
// 下载url
success
(
res
)
{
uni
.
hideLoading
()
// 下载完成后转发
wx
.
shareFileMessage
({
filePath
:
res
.
tempFilePath
,
success
()
{},
fail
:
console
.
error
,
})
},
fail
:
console
.
error
,
})
},
handlePreview
(
item
)
{
uni
.
showLoading
({
title
:
'加载中'
})
uni
.
downloadFile
({
url
:
item
.
url
,
success
:
function
(
res
)
{
uni
.
hideLoading
()
var
filePath
=
res
.
tempFilePath
;
if
(
/
\.(
gif|jpg|jpeg|png|GIF|JPG|PNG
)
$/
.
test
(
filePath
))
{
wx
.
previewImage
({
current
:
filePath
,
// 当前显示图片的http链接
urls
:
[
filePath
]
// 需要预览的图片http链接列表
})
}
else
{
uni
.
openDocument
({
filePath
:
filePath
,
success
:
function
(
res
)
{
console
.
log
(
'打开文档成功'
);
}
});
}
}
});
},
async
loadFileLabel
(
type
,
partnerCompanyId
)
{
let
param
=
{
...
...
@@ -133,7 +191,8 @@
}
let
res
=
await
this
.
$u
.
api
.
fileLabel
(
param
)
if
(
res
&&
res
.
code
==
200
)
{
this
.
labels
[
type
]
=
res
.
data
||
[]
this
.
labels
[
type
]
=
res
.
data
||
[]
this
.
labels
[
type
]
=
[...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
]
console
.
log
(
this
.
labels
)
if
(
this
.
firstLoad
&&
type
==
'1'
)
{
// 第一次额外加载第一个合作商的品牌标签
this
.
firstLoad
=
false
...
...
@@ -151,9 +210,10 @@
brandId
:
brandId
// 品牌标签
})
this
.
loading
=
false
if
(
res
&&
res
.
code
==
200
)
{
console
.
log
(
res
.
data
)
this
.
list
=
res
.
data
||
[]
if
(
res
&&
res
.
code
==
200
)
{
console
.
log
(
res
.
data
)
this
.
list
=
res
.
data
||
[]
this
.
list
=
[...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
]
}
},
formatText
(
name
)
{
...
...
@@ -262,25 +322,20 @@
color
:
#333333
;
font-size
:
26rpx
;
.file-name
{
position
:
relative
;
.file-image
{
width
:
52rpx
;
height
:
52rpx
;
position
:
absolute
;
}
.file-format-text
{
color
:
#FFFFFF
;
font-weight
:
bold
;
font-size
:
32rpx
;
width
:
52rpx
;
height
:
52rpx
;
position
:
relative
;
text-align
:
center
;
margin-right
:
20rpx
;
}
.file-name
{
margin-right
:
20rpx
;
position
:
relative
;
.file-format-text
{
position
:
absolute
;
width
:
52rpx
;
height
:
52rpx
;
text-align
:
center
;
font-size
:
32rpx
;
font-weight
:
bold
;
color
:
#FFFFFF
;
line-height
:
52rpx
;
}
}
}
...
...
@@ -310,5 +365,5 @@
justify-content
:
center
;
margin-top
:
200rpx
;
}
}
}
</
style
>
src/pages/photo/list.vue
View file @
7ce31762
...
...
@@ -246,16 +246,17 @@
},
async
closeTake
(
img
)
{
if
(
img
!==
undefined
){
// 复制一份 用于保存
if
(
!
this
.
currentItemDate
.
orderImages
)
this
.
currentItemDate
.
orderImages
=
[]
let
saveList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
currentItemDate
.
orderImages
))
const
files
=
img
.
map
(
v
=>
v
.
path
)
const
value
=
await
this
.
saveToTask
(
files
)
if
(
!
this
.
currentItemDate
.
orderImages
)
this
.
currentItemDate
.
orderImages
=
[]
// 复制一份 用于保存
let
saveList
=
this
.
currentItemDate
.
orderImages
.
concat
();
value
.
map
(
item
=>
{
// step1 添加缓存图片 到显示
this
.
currentItemDate
.
orderImages
.
push
(
item
.
path
)
// 文件key添加保存数组中
saveList
.
push
(
item
.
key
)
// step1 添加缓存图片 到显示
this
.
currentItemDate
.
orderImages
.
push
(
item
.
path
)
})
// step2 保存图片
var
data
=
{
...
...
@@ -263,6 +264,7 @@
images
:
Array
.
from
(
saveList
),
fieldsName
:
this
.
currentItemDate
.
fieldName
}
console
.
log
(
"data"
,
data
)
this
.
$u
.
api
.
saveImage
(
data
,
this
.
orderId
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
}
else
{
...
...
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