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
17e580e6
Commit
17e580e6
authored
Nov 19, 2019
by
linxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://hel.hand-china.com/xugong/hls-xcmg-vue-app
into develop
parents
cfc56f03
3142a682
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
199 additions
and
38 deletions
+199
-38
dev.env.js
config/dev.env.js
+2
-3
prod.env.js
config/prod.env.js
+1
-2
uat.env.js
config/uat.env.js
+2
-3
contract-records.vue
src/pages/contractInquire/contract-records.vue
+42
-3
repay-detail.vue
src/pages/contractInquire/repay-detail.vue
+4
-4
contract-detail.vue
src/pages/contractSigning/contract-detail.vue
+3
-18
contract-signing.vue
src/pages/contractSigning/contract-signing.vue
+38
-2
login.vue
src/pages/login.vue
+71
-2
product-list.vue
src/pages/productQuery/product-list.vue
+36
-1
No files found.
config/dev.env.js
View file @
17e580e6
...
@@ -12,7 +12,6 @@ module.exports = merge(prodEnv, {
...
@@ -12,7 +12,6 @@ module.exports = merge(prodEnv, {
rootPath
:
'"http://180.104.121.66:8088/r/api"'
,
rootPath
:
'"http://180.104.121.66:8088/r/api"'
,
filePath
:
'"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_DEV&apiName=file_view&"'
,
filePath
:
'"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_DEV&apiName=file_view&"'
,
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
file_url
:
'"http://hlsapp.hand-china.com/file/"'
,
appId
:
'"com.xcmg.app"'
,
appId
:
'"com.hls.easy.car"'
,
currentVersion
:
'"1.0.1"'
currentVersion
:
'"0.0.1"'
});
});
config/prod.env.js
View file @
17e580e6
...
@@ -8,7 +8,6 @@ module.exports = {
...
@@ -8,7 +8,6 @@ module.exports = {
loginPath
:
'"http://hlsapp.hand-china.com/core/oauth/token?client_id=hQGCtxTItRa34PUOgxaD0r7oSPeuEaIB&client_secret=7ee8338c-4a06-44a1-87cc-afa63f8e1bc3&grant_type=password&username=app&password=" '
,
loginPath
:
'"http://hlsapp.hand-china.com/core/oauth/token?client_id=hQGCtxTItRa34PUOgxaD0r7oSPeuEaIB&client_secret=7ee8338c-4a06-44a1-87cc-afa63f8e1bc3&grant_type=password&username=app&password=" '
,
basePath
:
'"http://hlsapp.hand-china.com/core/r/api?sysName=HLS_APP&apiName="'
,
basePath
:
'"http://hlsapp.hand-china.com/core/r/api?sysName=HLS_APP&apiName="'
,
rootPath
:
'"http://hlsapp.hand-china.com/core/r/api"'
,
rootPath
:
'"http://hlsapp.hand-china.com/core/r/api"'
,
file_url
:
'"http://hlsapp.hand-china.com/file/"'
,
appId
:
'"com.xcmg.app"'
,
appId
:
'"com.hls.easy.car"'
,
currentVersion
:
'"1.0.0"'
currentVersion
:
'"1.0.0"'
}
}
config/uat.env.js
View file @
17e580e6
...
@@ -9,7 +9,6 @@ module.exports = {
...
@@ -9,7 +9,6 @@ module.exports = {
rootPath
:
'"http://180.104.121.66:8088/r/api"'
,
rootPath
:
'"http://180.104.121.66:8088/r/api"'
,
filePath
:
'"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_DEV&apiName=file_view&"'
,
filePath
:
'"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_DEV&apiName=file_view&"'
,
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
file_url
:
'"http://hlsapp.hand-china.com/file/"'
,
appId
:
'"com.xcmg.app"'
,
appId
:
'"com.hls.easy.car"'
,
currentVersion
:
'"1.0.1"'
currentVersion
:
'"0.0.1"'
}
}
src/pages/contractInquire/contract-records.vue
View file @
17e580e6
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2019-10-31 09:49:57
* @Date: 2019-10-31 09:49:57
* @LastEditTime: 2019-11-18 1
5:28:4
9
* @LastEditTime: 2019-11-18 1
7:23:2
9
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: 合同查询--记录
* @Description: 合同查询--记录
* @FilePath:
* @FilePath:
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<div
class=
"search"
>
<div
class=
"search"
>
<img
src=
"@/assets/contractInquire/search.png"
alt=
""
>
<img
src=
"@/assets/contractInquire/search.png"
alt=
""
>
<input
type=
"text"
placeholder=
"请输入合同号/承租人名称"
>
<input
v-model=
"searchInput"
type=
"text"
placeholder=
"请输入合同号/承租人名称"
>
</div>
</div>
</div>
</div>
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
ref=
"scroll"
ref=
"scroll"
:updateData=
"[lists]"
:updateData=
"[lists]"
:pullUp=
"true"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
>
<div
class=
"pay-content"
>
<div
class=
"pay-content"
>
<div
v-for=
"(item,index) in lists"
:key=
"index"
class=
"contract-item"
>
<div
v-for=
"(item,index) in lists"
:key=
"index"
class=
"contract-item"
>
...
@@ -205,6 +206,8 @@ export default {
...
@@ -205,6 +206,8 @@ export default {
unRepayLists
:
[],
// 待还款
unRepayLists
:
[],
// 待还款
repayingLists
:
[],
// 还款中
repayingLists
:
[],
// 还款中
repayedLists
:
[],
// 已结清
repayedLists
:
[],
// 已结清
pagenum
:
1
,
searchInput
:
''
,
}
}
},
},
...
@@ -237,6 +240,9 @@ export default {
...
@@ -237,6 +240,9 @@ export default {
let
url
=
$config
.
basePath
+
'con_contract_list'
let
url
=
$config
.
basePath
+
'con_contract_list'
let
param
=
{
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
user_phone
:
window
.
localStorage
.
user_phone
,
searchInput
:
vm
.
searchInput
,
pagenum
:
vm
.
pagenum
,
pagesize
:
10
,
}
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
...
@@ -252,7 +258,7 @@ export default {
...
@@ -252,7 +258,7 @@ export default {
vm
.
unRepayLists
=
res
.
lists
.
filter
(
item
=>
item
.
contract_status_n
===
'首付还款中'
)
// 待还款
vm
.
unRepayLists
=
res
.
lists
.
filter
(
item
=>
item
.
contract_status_n
===
'首付还款中'
)
// 待还款
vm
.
repayingLists
=
res
.
lists
.
filter
(
item
=>
item
.
contract_status_n
===
'还款中'
)
// 还款中
vm
.
repayingLists
=
res
.
lists
.
filter
(
item
=>
item
.
contract_status_n
===
'还款中'
)
// 还款中
vm
.
repayedLists
=
res
.
lists
.
filter
(
item
=>
item
.
contract_status_n
===
'已结清'
)
// 已结清
vm
.
repayedLists
=
res
.
lists
.
filter
(
item
=>
item
.
contract_status_n
===
'已结清'
)
// 已结清
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
if
(
res
.
lists
.
length
>
=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
}
}
else
{
}
else
{
...
@@ -260,6 +266,39 @@ export default {
...
@@ -260,6 +266,39 @@ export default {
}
}
})
})
},
},
loadMore
()
{
let
vm
=
this
vm
.
pagenum
++
let
url
=
$config
.
basePath
+
'con_contract_list'
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
searchInput
:
vm
.
searchInput
,
pagenum
:
vm
.
pagenum
,
pagesize
:
10
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
// if (res.lists.length === 0) {
// vm.data = null
// } else {
// vm.data = 1
// }
console
.
log
(
'........'
,
res
.
lists
)
// vm.lists = res.lists
// vm.unSignedLists = res.lists.filter(item => item.contract_status_n === '待首付') // 待签约
// vm.unRepayLists = res.lists.filter(item => item.contract_status_n === '首付还款中') // 待还款
// vm.repayingLists = res.lists.filter(item => item.contract_status_n === '还款中') // 还款中
// vm.repayedLists = res.lists.filter(item => item.contract_status_n === '已结清') // 已结清
// if (res.lists.length > 0 && res.lists.length
<
10
)
{
// vm.$refs.scroll.update(true)
// }
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
},
},
}
}
</
script
>
</
script
>
...
...
src/pages/contractInquire/repay-detail.vue
View file @
17e580e6
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2019-10-31 09:49:57
* @Date: 2019-10-31 09:49:57
* @LastEditTime: 2019-11-18 1
5:55:12
* @LastEditTime: 2019-11-18 1
6:31:19
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: 合同查询--明细
* @Description: 合同查询--明细
* @FilePath:
* @FilePath:
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
</div>
</div>
</div>
</div>
<div
slot=
"content"
>
<div
slot=
"content"
>
<span
v-if=
"item.overdue_times"
:class=
"['status','red']"
>
逾期
{{
item
.
overdue_t
imes
}}
期
</span>
<span
v-if=
"item.overdue_times"
:class=
"['status','red']"
>
逾期
{{
totalT
imes
}}
期
</span>
<div
class=
"plan"
@
click=
"toRepayPlans(item.contract_id)"
>
<div
class=
"plan"
@
click=
"toRepayPlans(item.contract_id)"
>
<img
src=
"@/assets/contractRepayment/plan.png"
alt=
""
>
<img
src=
"@/assets/contractRepayment/plan.png"
alt=
""
>
<span>
还款计划
</span>
<span>
还款计划
</span>
...
@@ -101,8 +101,8 @@ export default {
...
@@ -101,8 +101,8 @@ export default {
computed
:
{
computed
:
{
totalTimes
()
{
totalTimes
()
{
let
num
=
0
let
num
=
0
for
(
let
item
in
this
.
lists
)
{
for
(
let
item
of
this
.
lists
)
{
num
+=
item
.
overdue_times
num
+=
Number
(
item
.
overdue_times
)
}
}
return
num
return
num
},
},
...
...
src/pages/contractSigning/contract-detail.vue
View file @
17e580e6
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2019-09-29 10:02:11
* @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-11-1
5 15:57:14
* @LastEditTime: 2019-11-1
9 09:07:15
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @Description: In User Settings Edit
-->
-->
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<Personal
v-if=
"!bp_flag"
:baseInfo=
"baseInfo"
/>
<Personal
v-if=
"!bp_flag"
:baseInfo=
"baseInfo"
/>
<div
class=
"equipment-list"
>
担保人信息
<span
v-if=
"guarantorInfo.length === 0"
>
(无)
</span></div>
<div
class=
"equipment-list"
>
担保人信息
<span
v-if=
"guarantorInfo.length === 0"
>
(无)
</span></div>
<list-item
v-if=
"guarantorInfo.length
&& guarantorInfo[0].bp_class === 'NP'
"
:item-height=
"76"
>
<list-item
v-if=
"guarantorInfo.length"
:item-height=
"76"
>
<item
v-for=
"(item,index) in guarantorInfo"
:key=
"index"
>
<item
v-for=
"(item,index) in guarantorInfo"
:key=
"index"
>
<div
slot=
"name"
>
<div
slot=
"name"
>
<span
class=
"name-box"
>
{{
index
+
1
}}
</span>
<span
class=
"name-box"
>
{{
index
+
1
}}
</span>
...
@@ -66,26 +66,11 @@
...
@@ -66,26 +66,11 @@
<img
src=
"@/assets/intoApproval/introduce.png"
>
<img
src=
"@/assets/intoApproval/introduce.png"
>
<span
:title=
"item.bp_name"
>
{{
item
.
bp_name
}}
</span>
<span
:title=
"item.bp_name"
>
{{
item
.
bp_name
}}
</span>
<br
>
<br
>
<span>
{{
item
.
id_card_no
}}
</span>
<span>
{{
item
.
bp_class
===
'NP'
?
item
.
id_card_no
:
item
.
organization_code
}}
</span>
</div>
</div>
</item>
</item>
</list-item>
</list-item>
<list-item
v-if=
"guarantorInfo.length && guarantorInfo[0].bp_class === 'ORG'"
:item-height=
"76"
>
<item
v-for=
"(item,index) in guarantorInfo"
:key=
"index"
>
<div
slot=
"name"
>
<span
class=
"name-box"
>
{{
index
+
1
}}
</span>
<span
class=
"name"
>
担保人
{{
index
+
1
}}
姓名
</span>
<span
class=
"card-num"
>
证件号
</span>
</div>
<div
slot=
"content"
class=
"right"
>
<img
src=
"@/assets/intoApproval/introduce.png"
>
<span
:title=
"item.bp_name"
>
{{
item
.
bp_name
}}
</span>
<br
>
<span>
{{
item
.
organization_code
}}
</span>
</div>
</item>
</list-item>
<div
class=
"alert"
>
<div
class=
"alert"
>
<div
class=
"alert-content"
>
<div
class=
"alert-content"
>
<div
class=
"title"
>
<div
class=
"title"
>
...
...
src/pages/contractSigning/contract-signing.vue
View file @
17e580e6
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2019-09-29 10:02:11
* @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-11-1
5 09:09:0
2
* @LastEditTime: 2019-11-1
8 16:25:5
2
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @Description: In User Settings Edit
-->
-->
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</div>
</div>
<div
class=
"hinput"
>
<div
class=
"hinput"
>
<div
class=
"search-box"
>
<div
class=
"search-box"
>
<input
type=
"text"
placeholder=
"请输入合同号/承租人名称"
>
<input
v-model=
"searchInput"
type=
"text"
placeholder=
"请输入合同号/承租人名称"
>
<img
src=
"@/assets/constractSigning/search.png"
alt=
""
style=
"width:18px"
>
<img
src=
"@/assets/constractSigning/search.png"
alt=
""
style=
"width:18px"
>
</div>
</div>
</div>
</div>
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
ref=
"scroll"
ref=
"scroll"
:updateData=
"[submitLists]"
:updateData=
"[submitLists]"
:pullUp=
"true"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
>
<div
class=
"wrap"
>
<div
class=
"wrap"
>
<div
v-for=
"(item,index) in submitLists"
:key=
"index"
class=
"contract-lists"
>
<div
v-for=
"(item,index) in submitLists"
:key=
"index"
class=
"contract-lists"
>
...
@@ -57,6 +58,7 @@
...
@@ -57,6 +58,7 @@
ref=
"scrollList"
ref=
"scrollList"
:updateData=
"[approvedLists]"
:updateData=
"[approvedLists]"
:pullUp=
"true"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
>
<div
class=
"wrap"
>
<div
class=
"wrap"
>
<div
v-for=
"(item,index) in approvedLists"
:key=
"index"
class=
"contract-lists"
>
<div
v-for=
"(item,index) in approvedLists"
:key=
"index"
class=
"contract-lists"
>
...
@@ -90,6 +92,8 @@ export default {
...
@@ -90,6 +92,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
num
:
1
,
num
:
1
,
pagenum
:
1
,
searchInput
:
''
,
check1
:
Check1
,
check1
:
Check1
,
check2
:
Check2
,
check2
:
Check2
,
uncheck1
:
unCheck1
,
uncheck1
:
unCheck1
,
...
@@ -125,11 +129,43 @@ export default {
...
@@ -125,11 +129,43 @@ export default {
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
searchInput
:
vm
.
searchInput
,
}
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
console
.
log
(
res
.
lists
)
vm
.
submitLists
=
res
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'SUBMIT'
)
vm
.
approvedLists
=
res
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'APPROVED'
)
if
(
vm
.
submitLists
.
length
>
0
&&
vm
.
submitLists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
if
(
vm
.
approvedLists
.
length
>
0
&&
vm
.
approvedLists
.
length
<
10
)
{
vm
.
$refs
.
scrollList
.
update
(
true
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
loadMore
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagenum
:
vm
.
pagenum
+
1
,
searchInput
:
'1'
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
console
.
log
(
'.....'
,
res
.
lists
)
vm
.
submitLists
=
res
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'SUBMIT'
)
vm
.
submitLists
=
res
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'SUBMIT'
)
vm
.
approvedLists
=
res
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'APPROVED'
)
vm
.
approvedLists
=
res
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'APPROVED'
)
if
(
vm
.
submitLists
.
length
>
0
&&
vm
.
submitLists
.
length
<
10
)
{
if
(
vm
.
submitLists
.
length
>
0
&&
vm
.
submitLists
.
length
<
10
)
{
...
...
src/pages/login.vue
View file @
17e580e6
...
@@ -42,7 +42,7 @@ export default {
...
@@ -42,7 +42,7 @@ export default {
?
window
.
localStorage
.
username
?
window
.
localStorage
.
username
:
''
,
:
''
,
password
:
''
,
password
:
''
,
v
ersion
:
process
.
env
.
currentVersion
,
currentV
ersion
:
process
.
env
.
currentVersion
,
routeName
:
this
.
$route
.
params
.
routeName
||
''
,
routeName
:
this
.
$route
.
params
.
routeName
||
''
,
}
}
},
},
...
@@ -50,6 +50,7 @@ export default {
...
@@ -50,6 +50,7 @@ export default {
window
.
addEventListener
(
'native.keyboardhide'
,
function
()
{
window
.
addEventListener
(
'native.keyboardhide'
,
function
()
{
document
.
activeElement
.
blur
()
document
.
activeElement
.
blur
()
})
})
this
.
updateVersion
()
// 版本更新
},
},
methods
:
{
methods
:
{
changeType
()
{
changeType
()
{
...
@@ -119,6 +120,74 @@ export default {
...
@@ -119,6 +120,74 @@ export default {
clearPassword
:
function
()
{
clearPassword
:
function
()
{
this
.
password
=
''
this
.
password
=
''
},
},
// 版本更新
updateVersion
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'version_update'
let
param
=
{}
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
if
(
res
.
result
===
'S'
)
{
// 版本更新
var
updateUrl
=
''
var
content
=
''
if
(
vum
.
Platform
.
isAndroid
())
{
if
(
res
.
android_version_list
.
length
)
{
if
(
res
.
android_version_list
[
0
].
app_version
!==
vm
.
currentVersion
)
{
updateUrl
=
res
.
android_version_list
[
0
].
version_url
content
=
res
.
android_version_list
[
0
].
update_content
if
(
res
.
android_version_list
[
0
].
big_version
===
'Y'
)
{
vm
.
open_new_win
(
content
,
updateUrl
)
}
else
{
vm
.
hote_update_version
(
content
,
updateUrl
)
}
}
else
{
}
}
}
else
if
(
vum
.
Platform
.
isIOS
())
{
if
(
res
.
ios_version_list
.
length
)
{
if
(
res
.
ios_version_list
[
0
].
app_version
!==
vm
.
currentVersion
)
{
updateUrl
=
res
.
ios_version_list
[
0
].
version_url
content
=
res
.
ios_version_list
[
0
].
update_content
if
(
res
.
ios_version_list
[
0
].
big_version
===
'Y'
)
{
vm
.
open_new_win
(
content
,
updateUrl
)
}
else
{
vm
.
hote_update_version
(
content
,
updateUrl
)
}
}
else
{
}
}
}
}
})
},
open_new_win
(
content
,
url
)
{
if
(
url
)
{
hlsPopup
.
showConfirm
({
title
:
'版本更新'
,
content
:
content
,
onConfirm
:
function
(
index
)
{
if
(
index
===
1
)
{
cordova
.
InAppBrowser
.
open
(
url
,
'_system'
,
'location=yes'
)
}
else
{
}
},
})
}
},
hote_update_version
(
content
,
url
)
{
hlsPopup
.
showConfirm
({
title
:
'版本更新'
,
content
:
content
,
onConfirm
:
function
(
index
)
{
if
(
index
===
1
)
{
hotpatch
.
updateNewVersion
(
url
)
}
},
})
},
},
},
}
}
</
script
>
</
script
>
...
...
src/pages/productQuery/product-list.vue
View file @
17e580e6
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<h-content>
<h-content>
<div
class=
"hinput"
>
<div
class=
"hinput"
>
<div
class=
"search-box"
>
<div
class=
"search-box"
>
<input
type=
"text"
placeholder=
"请输入经销商/产品名称/参数项"
>
<input
v-model=
"searchInput"
type=
"text"
placeholder=
"请输入经销商/产品名称/参数项"
>
<img
src=
"@/assets/distributorSign/search.png"
alt=
""
>
<img
src=
"@/assets/distributorSign/search.png"
alt=
""
>
</div>
</div>
</div>
</div>
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
ref=
"scroll"
ref=
"scroll"
:updateData=
"[lists]"
:updateData=
"[lists]"
:pullUp=
"true"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
>
<div
class=
"division-box"
>
<div
class=
"division-box"
>
...
@@ -58,6 +59,8 @@ export default {
...
@@ -58,6 +59,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
lists
:
[],
lists
:
[],
pagenum
:
2
,
searchInput
:
''
,
}
}
},
},
computed
:
{},
computed
:
{},
...
@@ -75,6 +78,9 @@ export default {
...
@@ -75,6 +78,9 @@ export default {
let
param
=
{
let
param
=
{
division
:
window
.
sessionStorage
.
division
,
division
:
window
.
sessionStorage
.
division
,
user_phone
:
window
.
localStorage
.
user_phone
,
user_phone
:
window
.
localStorage
.
user_phone
,
searchInput
:
vm
.
searchInput
,
pagenum
:
vm
.
pagenum
,
pagesize
:
10
,
}
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
...
@@ -94,6 +100,35 @@ export default {
...
@@ -94,6 +100,35 @@ export default {
}
}
})
})
},
},
loadMore
()
{
let
vm
=
this
vm
.
pagenum
++
let
url
=
$config
.
basePath
+
'prd_product_list'
let
param
=
{
division
:
window
.
sessionStorage
.
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
()
if
(
res
.
result
===
'S'
)
{
console
.
log
(
'...........'
,
res
.
lists
)
// vm.lists = res.lists
// res.lists.forEach(item => {
// item['url'] = process.env.filePath + 'attachment_id=' + item.product_attachment_id + '&access_token=' + window.localStorage.access_token
// })
// if (res.lists.length > 0 && res.lists.length
<
10
)
{
// vm.$refs.scroll.update(true)
// }
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
// val:产品id, status: 收藏状态
// val:产品id, status: 收藏状态
goDetailed
(
val
,
status
,
bp_id
)
{
goDetailed
(
val
,
status
,
bp_id
)
{
window
.
sessionStorage
.
setItem
(
'collect_status'
,
status
)
window
.
sessionStorage
.
setItem
(
'collect_status'
,
status
)
...
...
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