Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
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
xugong
hls-xcmg-vue-app
Commits
7eed5502
Commit
7eed5502
authored
Nov 06, 2020
by
Jennie Shi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
集成插件前的封板
parent
5a0c4035
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
149 additions
and
129 deletions
+149
-129
uat.env.js
config/uat.env.js
+1
-1
contract-detail.vue
src/pages/contractSigning/contract-detail.vue
+28
-1
entity-list.vue
src/pages/productQuery/entity-list.vue
+118
-119
reimburse-detail.vue
src/pages/reimburseMyself/reimburse-detail.vue
+2
-8
No files found.
config/uat.env.js
View file @
7eed5502
...
...
@@ -11,5 +11,5 @@ module.exports = {
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
fileUploadSvcPath
:
'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="'
,
appId
:
'"com.xcmg.app.dev"'
,
currentVersion
:
'"2.7.
5
"'
currentVersion
:
'"2.7.
6
"'
}
src/pages/contractSigning/contract-detail.vue
View file @
7eed5502
...
...
@@ -622,6 +622,7 @@ export default {
// // vm.hlsPopup.showLongCenter(res.message)
// if (res.code === 1) {
// // 回调成功上传图片
// vm.takePhontoOpenCamera(res.image)
// }
// }, function (reason) {
// vm.hlsPopup.showLongCenter('认证失败: ' + reason)
...
...
@@ -636,7 +637,7 @@ export default {
},
})
},
//
打开相机自拍
//
图片上传
takePhontoOpenCamera
()
{
let
vm
=
this
vm
.
faceListUpload
=
[]
...
...
@@ -663,6 +664,32 @@ export default {
}
hlsUtil
.
openCamera
(
cameraoptions
,
success
,
error
)
},
// takePhontoOpenCamera () {
// let vm = this
// vm.faceListUpload = []
// let obj = {
// pkvalue: vm.$route.params.check_id,
// source_type: 'PRJ_CDD_ITEM_CHECK',
// picture: '',
// filePath: '',
// attachment_id: '',
// user_id: 1,
// fileName: 'face',
// }
// let cameraoptions = {
// quality: 100,
// cameraDirection: 1,
// }
// let success = function (imgdata) {
// obj.filePath = imgdata
// vm.confirmContractSign(imgdata)
// vm.faceListUpload.push(obj)
// }
// let error = function () {
// hlsPopup.showLongCenter('请拍照')
// }
// hlsUtil.openCamera(cameraoptions, success, error)
// },
// 执行同意的逻辑(查询对应的身份证正面图片->人脸识别->活体检测)
async
confirmContractSign
(
faceImg
)
{
let
idCardImgUrl
=
await
this
.
idCardImgUrlGet
()
...
...
src/pages/productQuery/entity-list.vue
View file @
7eed5502
<!--
* @Description: 产品展示列表
* @Author: y/>e: 2019-10-16 14:39:07
* @LastEditors : Please set LastEditors
-->
<
template
>
<h-view
id=
"prolist"
class=
"public-style"
title=
"产品查询"
>
<h-header
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
...
...
@@ -19,6 +14,7 @@
ref=
"scroll"
:updateData=
"[lists]"
:pullUp=
"true"
class=
"scroll-content"
@
pullingUp=
"loadMore"
>
<div
class=
"division-box"
>
...
...
@@ -83,126 +79,129 @@ export default {
})
},
methods
:
{
// 根据产品名称查询列表
proQuery
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'prd_product_list'
let
param
=
{
division
:
vm
.
division
,
searchInput
:
vm
.
searchInput
,
user_phone
:
localStorage
.
getItem
(
'user_phone'
),
pagenum
:
vm
.
pagenum
,
pagesize
:
10
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
lists
=
res
.
lists
if
(
vm
.
lists
.
length
===
0
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
vm
.
lists
.
length
>
0
&&
vm
.
lists
.
length
<
10
)
{
vm
.
lists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
product_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
product_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
vm
.
lists
.
length
===
10
)
{
vm
.
lists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
product_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
product_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
// 根据产品名称查询列表
proQuery
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'prd_product_list'
let
param
=
{
division
:
vm
.
division
,
searchInput
:
vm
.
searchInput
,
user_phone
:
localStorage
.
getItem
(
'user_phone'
),
pagenum
:
vm
.
pagenum
,
pagesize
:
10
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
lists
=
res
.
lists
if
(
vm
.
lists
.
length
===
0
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
vm
.
lists
.
length
>
0
&&
vm
.
lists
.
length
<
10
)
{
vm
.
lists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
product_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
product_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
vm
.
lists
.
length
===
10
)
{
vm
.
lists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
product_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
product_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
loadMore
()
{
let
vm
=
this
vm
.
pagenum
=
vm
.
pagenum
+
1
let
url
=
$config
.
basePath
+
'prd_product_list'
let
param
=
{
division
:
vm
.
division
,
user_phone
:
window
.
localStorage
.
user_phone
,
searchInput
:
vm
.
searchInput
,
pagenum
:
vm
.
pagenum
,
pagesize
:
10
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
let
returnData
=
[]
if
(
res
.
result
===
'S'
)
{
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
product_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
product_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
lists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
product_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
product_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
lists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
loadMore
()
{
let
vm
=
this
vm
.
pagenum
=
vm
.
pagenum
+
1
let
url
=
$config
.
basePath
+
'prd_product_list'
let
param
=
{
division
:
vm
.
division
,
user_phone
:
window
.
localStorage
.
user_phone
,
searchInput
:
vm
.
searchInput
,
pagenum
:
vm
.
pagenum
,
pagesize
:
10
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
let
returnData
=
[]
if
(
res
.
result
===
'S'
)
{
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
product_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
product_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
lists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
product_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
product_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
lists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
// 搜索
search
()
{
let
vm
=
this
vm
.
pagenum
=
1
let
num
=
Math
.
random
()
*
10
// vm.bpList = []
let
url
=
$config
.
basePath
+
'prd_product_list'
+
'&index'
+
`
${
num
}
`
let
param
=
{
pagesize
:
10
,
pagenum
:
1
,
searchInput
:
vm
.
searchInput
,
division
:
vm
.
division
,
user_phone
:
window
.
localStorage
.
user_phone
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
lists
=
res
.
lists
vm
.
lists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
product_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
product_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
if
(
vm
.
lists
.
length
>=
0
&&
vm
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
vm
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
.
update
(
false
)
}
})
},
// val:产品id, status: 收藏状态
goDetailed
(
product_id
,
bp_id
)
{
this
.
$router
.
push
({
name
:
'ProDetailed'
,
params
:
{
product_id
:
product_id
,
bp_id
:
bp_id
,
},
})
},
},
// 搜索
search
()
{
let
vm
=
this
vm
.
pagenum
=
1
let
num
=
Math
.
random
()
*
10
// vm.bpList = []
let
url
=
$config
.
basePath
+
'prd_product_list'
+
'&index'
+
`
${
num
}
`
let
param
=
{
pagesize
:
10
,
pagenum
:
1
,
searchInput
:
vm
.
searchInput
,
division
:
vm
.
division
,
user_phone
:
window
.
localStorage
.
user_phone
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
lists
=
res
.
lists
vm
.
lists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
product_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
product_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
if
(
vm
.
lists
.
length
>=
0
&&
vm
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
vm
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
.
update
(
false
)
}
})
},
// val:产品id, status: 收藏状态
goDetailed
(
product_id
,
bp_id
)
{
this
.
$router
.
push
({
name
:
'ProDetailed'
,
params
:
{
product_id
:
product_id
,
bp_id
:
bp_id
,
},
})
},
},
}
</
script
>
<
style
lang=
'less'
scoped
>
#prolist {
.scroll-content{
margin-top: 100px;
}
.display {
position: fixed;
top: 0;
...
...
src/pages/reimburseMyself/reimburse-detail.vue
View file @
7eed5502
/**
* @Author Sean
* @Date 2019/10/22
*/
<
template
>
<h-view
id=
"reimburseDetail"
class=
"public-style"
style=
"height: 100%"
>
<h-header
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
...
...
@@ -10,7 +6,7 @@
<span>
还款明细
</span>
</div>
</h-header>
<h-content
style=
"
overflow:hidden
"
>
<h-content
style=
"
position:absolute;z-index:9999;margin-top:55px;
"
>
<list-item
:item-height=
"44"
>
<item>
<div
slot=
"name"
>
交易流水号
</div>
...
...
@@ -209,6 +205,7 @@ export default {
color: #4b4a4b;
letter-spacing: 0;
line-height: 18px;
white-space: nowrap;
}
span:last-child {
margin-left: 166px;
...
...
@@ -231,9 +228,6 @@ export default {
flex: 1;
text-align: right;
}
}
.content {
position: absolute;
}
.scrollContent {
padding-bottom: 320px;
...
...
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