Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-rljj-wx
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
rl
hls-rljj-wx
Commits
33a12c07
Commit
33a12c07
authored
Apr 28, 2020
by
chaiwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改优化后提交
parent
a66e0558
Pipeline
#5830
canceled with stages
Changes
9
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
587 additions
and
476 deletions
+587
-476
contractDownload.vue
src/pages/applications/contractDownload/contractDownload.vue
+2
-0
contractDownloadList.vue
...es/applications/contractDownload/contractDownloadList.vue
+11
-1
electronicContract.vue
...es/applications/electronicContract/electronicContract.vue
+2
-2
electronicContractList.vue
...pplications/electronicContract/electronicContractList.vue
+51
-41
companyRegister.vue
src/pages/applications/userRegisters/companyRegister.vue
+77
-64
personalRegister.vue
src/pages/applications/userRegisters/personalRegister.vue
+135
-118
readonlyCompanyReg.vue
src/pages/applications/userRegisters/readonlyCompanyReg.vue
+36
-23
readonlyPersonalReg.vue
src/pages/applications/userRegisters/readonlyPersonalReg.vue
+24
-16
home.vue
src/pages/home.vue
+249
-211
No files found.
src/pages/applications/contractDownload/contractDownload.vue
View file @
33a12c07
...
...
@@ -92,6 +92,7 @@ export default {
this
.
offsize
=
1
;
this
.
pagesize
=
10
;
this
.
index
=
[
1
,
0
,
0
];
// window.localStorage.openId = "1234567"
if
(
window
.
localStorage
.
openId
)
{
this
.
getUserInfo
(
window
.
localStorage
.
openId
);
}
...
...
@@ -120,6 +121,7 @@ export default {
"/sign/info/hclc/query/by/openid?openId="
+
openId
;
vm
.
hlsPopup
.
showLoading
(
"请稍等"
);
// vm.getData();
vm
.
$post
(
url
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
();
...
...
src/pages/applications/contractDownload/contractDownloadList.vue
View file @
33a12c07
...
...
@@ -9,7 +9,7 @@
<p
style=
"margin-top:3px"
>
{{
item
.
file_sign_name
}}
</p>
</div>
<button
style=
"float:right;margin-top:5px;background-color:#09bb07;color:#ffffff;width:
5
0px;border-radius:3px"
style=
"float:right;margin-top:5px;background-color:#09bb07;color:#ffffff;width:
7
0px;border-radius:3px"
@
click=
"downloadContract(item.attachment_id)"
>
下载
</button>
</div>
...
...
@@ -51,6 +51,16 @@ export default {
mounted
()
{
// this._initLoad()
},
activated
(){
this
.
wxConfig
();
if
(
this
.
$route
.
params
.
itemData
)
{
window
.
localStorage
.
SignDownloadData
=
JSON
.
stringify
(
this
.
$route
.
params
.
itemData
.
sign_file_list
);
}
// console.log(JSON.parse(window.localStorage.unSignData));
this
.
data
=
JSON
.
parse
(
window
.
localStorage
.
SignDownloadData
);
},
methods
:
{
// createSign() {
// let url = "http://sign.hitachics.com/core/r/api/app/fileViewSvc?attachment_id=13435&apiName=download&sysName=HCL_UPLOAD_FILE&access_token="+window.localStorage.access_token_rl
...
...
src/pages/applications/electronicContract/electronicContract.vue
View file @
33a12c07
...
...
@@ -62,11 +62,11 @@
<list-item
:item-height=
"80"
v-if=
"myIndex == 1"
>
<!--
<div
:key=
"index"
:proportion=
"[5,1]"
:show-arrow=
"true"
>
-->
<item
style=
"margin-top:10px"
v-for=
"(item,index) in signData"
:key=
"index"
>
<img
<
!--
<
img
slot=
"left-icon"
src=
"../../../assets/electronicContract/contract-icon.png"
class=
"left-icon"
/>
/>
-->
<div
slot=
"name"
class=
"text"
style=
"width: 70%;font-size: 12px;"
>
<div
class=
"cont-type"
...
...
src/pages/applications/electronicContract/electronicContractList.vue
View file @
33a12c07
...
...
@@ -32,26 +32,36 @@ export default {
},
components
:
{},
created
()
{
this
.
wxConfig
();
if
(
this
.
$route
.
params
.
itemData
){
// console.log('33333333333',this.$route.params.itemData.un_sign_file_list)
window
.
localStorage
.
unSignData
=
JSON
.
stringify
(
this
.
$route
.
params
.
itemData
.
un_sign_file_list
);
}
// console.log(JSON.parse(window.localStorage.unSignData));
this
.
data
=
JSON
.
parse
(
window
.
localStorage
.
unSignData
);
console
.
log
(
"22222222222"
,
this
.
data
);
this
.
wxConfig
(
);
this
.
offsize
=
1
;
this
.
pagesize
=
10
;
this
.
index
=
[
1
,
0
,
0
];
},
mounted
()
{
// this._initLoad()
},
activated
(){
if
(
this
.
$route
.
params
.
itemData
){
// console.log('33333333333',this.$route.params.itemData.un_sign_file_list)
window
.
localStorage
.
unSignData
=
JSON
.
stringify
(
this
.
$route
.
params
.
itemData
.
un_sign_file_list
);
}
this
.
data
=
JSON
.
parse
(
window
.
localStorage
.
unSignData
);
},
methods
:
{
createSign
()
{
let
goUrl
=
this
.
data
[
0
].
sign_url
if
(
goUrl
)
{
//
this
.
hlsPopup
.
showLoading
(
"请稍等"
);
//
this.hlsPopup.showLoading("请稍等");
window
.
open
(
goUrl
,
"_self"
);
// let url = window.open('http://www.baidu.com','_self');
...
...
@@ -66,43 +76,43 @@ export default {
// 打开模态框
},
load_count
:
function
()
{
let
vm
=
this
;
let
url
=
process
.
env
.
basePath
+
"contract_count"
;
let
param
=
{};
// hlsPopup.showLoadingWithoutBackdrop();
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
info
=
res
;
vm
.
changeData
();
});
},
//
load_count: function() {
//
let vm = this;
//
let url = process.env.basePath + "contract_count";
//
let param = {};
//
// hlsPopup.showLoadingWithoutBackdrop();
//
vm.$post(url, param).then(function(res) {
//
vm.info = res;
//
vm.changeData();
//
});
//
},
loadMore
:
function
()
{
let
vm
=
this
;
vm
.
offsize
=
vm
.
offsize
+
1
;
let
url
=
process
.
env
.
basePath
+
"app_get_contract_selected"
;
let
param
=
{
offsize
:
vm
.
offsize
,
searchInput
:
vm
.
searchCondition
.
input
};
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
let
returnData
=
[];
returnData
=
res
.
getContract_list
;
if
(
returnData
.
length
===
0
)
{
vm
.
$refs
.
scroll
.
update
(
true
);
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
vm
.
pagesize
)
{
vum
.
forEach
(
returnData
,
function
(
data
,
index
,
array
)
{
vm
.
con_list
.
push
(
array
[
index
]);
});
vm
.
$refs
.
scroll
.
update
(
true
);
}
else
if
(
returnData
.
length
===
vm
.
pagesize
)
{
vum
.
forEach
(
returnData
,
function
(
data
,
index
,
array
)
{
vm
.
con_list
.
push
(
array
[
index
]);
});
vm
.
$refs
.
scroll
.
update
(
false
);
}
});
},
//
loadMore: function() {
//
let vm = this;
//
vm.offsize = vm.offsize + 1;
//
let url = process.env.basePath + "app_get_contract_selected";
//
let param = {
//
offsize: vm.offsize,
//
searchInput: vm.searchCondition.input
//
};
//
vm.$post(url, param).then(function(res) {
//
let returnData = [];
//
returnData = res.getContract_list;
//
if (returnData.length === 0) {
//
vm.$refs.scroll.update(true);
//
} else if (returnData.length > 0 && returnData.length
<
vm
.
pagesize
)
{
//
vum.forEach(returnData, function(data, index, array) {
//
vm.con_list.push(array[index]);
//
});
//
vm.$refs.scroll.update(true);
//
} else if (returnData.length === vm.pagesize) {
//
vum.forEach(returnData, function(data, index, array) {
//
vm.con_list.push(array[index]);
//
});
//
vm.$refs.scroll.update(false);
//
}
//
});
//
},
// goContractMainten: function (list) {
// this.$router.push({
// name: 'ContractSign',
...
...
src/pages/applications/userRegisters/companyRegister.vue
View file @
33a12c07
...
...
@@ -2,7 +2,7 @@
<h-view
class=
"public-style companyRegister"
title=
"企业用户注册"
>
<h-content
v-if=
"status != '成功'"
>
<list-item
class=
"reg-content"
>
<div
class=
"repre-type"
v-if=
"faceAuthStatus != 'SUCCESS'"
>
<
!--
<
div
class=
"repre-type"
v-if=
"faceAuthStatus != 'SUCCESS'"
>
<input
type=
"radio"
name=
"agent"
v-model=
"agentType"
@
change=
"isAgent"
value=
"Y"
/>
代理店
...
...
@@ -16,8 +16,8 @@
@
change=
"isAgent"
value=
"N"
/>
非代理店
</div>
<div
class=
"repre-type"
v-if=
"faceAuthStatus == 'SUCCESS'"
>
</div>
-->
<
!--
<
div
class=
"repre-type"
v-if=
"faceAuthStatus == 'SUCCESS'"
>
代理店
<input
type=
"radio"
name=
"agent"
v-model=
"agentType"
@
change=
"isAgent"
value=
"Y"
disabled
/>
非代理店
...
...
@@ -29,8 +29,8 @@
value=
"N"
disabled
/>
</div>
<div
class=
"repre-type"
v-if=
"faceAuthStatus != 'SUCCESS'
&& agentType == 'Y'
"
>
</div>
-->
<div
class=
"repre-type"
v-if=
"faceAuthStatus != 'SUCCESS'"
>
<span>
经办人类型:
</span>
<input
type=
"radio"
...
...
@@ -47,7 +47,7 @@
value=
"法定代表人"
/>
法定代表人
</div>
<div
class=
"repre-type"
v-if=
"faceAuthStatus == 'SUCCESS'
&& agentType == 'Y'
"
>
<div
class=
"repre-type"
v-if=
"faceAuthStatus == 'SUCCESS'"
>
<span>
经办人类型:
</span>
<input
type=
"radio"
...
...
@@ -260,25 +260,7 @@
<input
type=
"text"
class=
"edit"
v-model=
"jbName"
readonly
/>
</div>
</div>
<div
class=
"info_list"
>
<div
class=
"list_left"
style=
"width:30%;"
>
<img
src=
"../../../assets/userRegister/phone.png"
alt
style=
"width:16px;height:16px;margin-right:5px;"
/>
手机号码:
</div>
<div
class=
"list_right"
style=
"width:70%;"
>
<input
type=
"text"
class=
"edit"
v-model=
"jbPhoneNumber"
@
blur=
"goTop()"
placeholder=
"请输入手机号码"
/>
</div>
</div>
<div
class=
"info_list"
v-if=
"faceAuthStatus =='SUCCESS'"
>
<div
class=
"list_left"
style=
"width:41%;"
>
<img
...
...
@@ -305,6 +287,25 @@
<input
type=
"text"
class=
"edit"
v-model=
"jbIdNumber"
readonly
/>
</div>
</div>
<div
class=
"info_list"
>
<div
class=
"list_left"
style=
"width:30%;"
>
<img
src=
"../../../assets/userRegister/phone.png"
alt
style=
"width:16px;height:16px;margin-right:5px;"
/>
手机号码:
</div>
<div
class=
"list_right"
style=
"width:70%;"
>
<input
type=
"text"
class=
"edit"
v-model=
"jbPhoneNumber"
@
blur=
"goTop()"
placeholder=
"请输入手机号码"
/>
</div>
</div>
<div
style=
"margin: 10px 0 0 14px;color:#636363"
>
<p>
请上传身份证照片
</p>
</div>
...
...
@@ -425,7 +426,7 @@
</h-content>
<h-content
v-if=
"status == '成功'"
>
<list-item
class=
"reg-content"
>
<div
class=
"repre-type"
>
<
!--
<
div
class=
"repre-type"
>
<input
type=
"radio"
name=
"agent"
...
...
@@ -443,8 +444,8 @@
value=
"N"
disabled
/>
非代理店
</div>
<div
class=
"repre-type"
v-if=
"agentType == 'Y'"
>
</div>
-->
<div
class=
"repre-type"
>
<span>
经办人类型:
</span>
<input
type=
"radio"
...
...
@@ -586,31 +587,31 @@
<input
type=
"text"
class=
"edit"
v-model=
"jbName"
readonly
/>
</div>
</div>
<div
class=
"info_list"
>
<div
class=
"list_left"
style=
"width:
30
%;"
>
<div
class=
"list_left"
style=
"width:
48
%;"
>
<img
src=
"../../../assets/userRegister/
phone
.png"
src=
"../../../assets/userRegister/
idCard
.png"
alt
style=
"width:16px;height:16px;margin-right:5px;"
/>
手机号码
:
经办人身份证号
:
</div>
<div
class=
"list_right"
style=
"width:
70
%;"
>
<input
type=
"text"
class=
"edit"
v-model=
"jb
Phone
Number"
readonly
/>
<div
class=
"list_right"
style=
"width:
52
%;"
>
<input
type=
"text"
class=
"edit"
v-model=
"jb
Id
Number"
readonly
/>
</div>
</div>
<div
class=
"info_list"
>
<div
class=
"list_left"
style=
"width:
48
%;"
>
<div
class=
"list_left"
style=
"width:
30
%;"
>
<img
src=
"../../../assets/userRegister/
idCard
.png"
src=
"../../../assets/userRegister/
phone
.png"
alt
style=
"width:16px;height:16px;margin-right:5px;"
/>
经办人身份证号
:
手机号码
:
</div>
<div
class=
"list_right"
style=
"width:
52
%;"
>
<input
type=
"text"
class=
"edit"
v-model=
"jb
Id
Number"
readonly
/>
<div
class=
"list_right"
style=
"width:
70
%;"
>
<input
type=
"text"
class=
"edit"
v-model=
"jb
Phone
Number"
readonly
/>
</div>
</div>
<!--
<div
style=
"margin: 10px 0 0 14px;color:#636363"
>
...
...
@@ -717,7 +718,7 @@ import { getUrlParam } from "@/scripts/utils";
export
default
{
data
()
{
return
{
agentType
:
"Y"
,
//
agentType: "Y",
staffType
:
"法定代表人"
,
cardUp
:
require
(
"../../../assets/userRegister/camear.png"
),
//身份证照片url
busLic
:
require
(
"../../../assets/userRegister/camear.png"
),
//营业执照照片url
...
...
@@ -780,13 +781,13 @@ export default {
updated
:
function
()
{},
methods
:
{
// 是否是代理店
isAgent
()
{
console
.
log
(
this
.
agentType
);
// window.localStorage.agentType = this.agentType;
if
(
this
.
agentType
==
"N"
)
{
this
.
staffType
=
"法定代表人"
;
}
},
//
isAgent() {
//
console.log(this.agentType);
//
// window.localStorage.agentType = this.agentType;
//
if (this.agentType == "N") {
//
this.staffType = "法定代表人";
//
}
//
},
// 调用微信接口的基础配置
wxConfig
()
{
...
...
@@ -827,9 +828,9 @@ export default {
"hideOptionMenu"
]
// 必填,需要使用的JS接口列表,所有JS接口列表见附录2
});
wx
.
ready
(
function
()
{
wx
.
ready
(
function
()
{
wx
.
hideOptionMenu
();
})
});
});
},
// 法人和其他人切换状态
...
...
@@ -1062,7 +1063,7 @@ export default {
legalName
:
vm
.
legalRepresentativeName
,
legalIdNo
:
vm
.
legalRepresentativeCardNumber
,
agentType
:
"1"
,
dealerFlag
:
vm
.
agentType
,
//
dealerFlag: vm.agentType,
redirectUrl
:
"http://sign.hitachics.com/www/#/UserRegister/CompanyRegister?Regstatus=1"
};
...
...
@@ -1127,7 +1128,6 @@ export default {
legalName
:
vm
.
legalRepresentativeName1
,
legalIdNo
:
vm
.
legalRepresentativeCardNumber1
,
agentType
:
"2"
,
dealerFlag
:
vm
.
agentType
,
redirectUrl
:
"http://sign.hitachics.com/www/#/UserRegister/CompanyRegister?Regstatus=2"
};
...
...
@@ -1162,7 +1162,13 @@ export default {
},
logout
()
{
let
vm
=
this
;
let
url
=
process
.
env
.
rootPath
+
"/organizations/outerOrgans/delete"
;
hlsPopup
.
showConfirm
({
title
:
"提示"
,
content
:
"请确认合同是否都已下载完成,注销后无法下载,请知悉,谢谢!"
,
onConfirm
:
function
(
index
)
{
if
(
index
===
1
)
{
let
url
=
process
.
env
.
rootPath
+
"/organizations/outerOrgans/delete"
;
let
param
=
{
openId
:
window
.
localStorage
.
openId
};
...
...
@@ -1171,11 +1177,18 @@ export default {
vm
.
hlsPopup
.
hideLoading
();
if
(
res
.
code
==
0
)
{
vm
.
$vux
.
toast
.
text
(
res
.
message
,
"middle"
);
window
.
open
(
"http://sign.hitachics.com/www/#/UserRegister"
,
"_self"
);
window
.
open
(
"http://sign.hitachics.com/www/#/UserRegister"
,
"_self"
);
}
else
{
vm
.
$vux
.
toast
.
text
(
res
.
message
,
"middle"
);
}
});
}
// console.log(index);
}
});
},
// 认证结果返回给接口
authResult
(
id
,
code
,
suc
)
{
...
...
src/pages/applications/userRegisters/personalRegister.vue
View file @
33a12c07
This diff is collapsed.
Click to expand it.
src/pages/applications/userRegisters/readonlyCompanyReg.vue
View file @
33a12c07
...
...
@@ -2,7 +2,7 @@
<h-view
class=
"public-style companyRegister"
title=
"企业用户注册"
>
<h-content>
<list-item
class=
"reg-content"
>
<div
class=
"repre-type"
>
<
!--
<
div
class=
"repre-type"
>
代理店
<input
type=
"radio"
...
...
@@ -19,8 +19,8 @@
value=
"N"
disabled
/>
</div>
<div
class=
"repre-type"
v-if=
"agentType == 'Y'"
>
</div>
-->
<div
class=
"repre-type"
>
<span>
经办人类型:
</span>
<input
type=
"radio"
...
...
@@ -296,8 +296,8 @@ export default {
attachmentId
:
""
,
orgAttachmentId
:
""
,
attachmentId1
:
""
,
orgAttachmentId1
:
""
,
agentType
:
""
orgAttachmentId1
:
""
//
agentType: ""
};
},
components
:
{
...
...
@@ -342,7 +342,13 @@ export default {
},
logout
()
{
let
vm
=
this
;
let
url
=
process
.
env
.
rootPath
+
"/organizations/outerOrgans/delete"
;
hlsPopup
.
showConfirm
({
title
:
"提示"
,
content
:
"请确认合同是否都已下载完成,注销后无法下载,请知悉,谢谢!"
,
onConfirm
:
function
(
index
)
{
if
(
index
===
1
)
{
let
url
=
process
.
env
.
rootPath
+
"/organizations/outerOrgans/delete"
;
let
param
=
{
openId
:
window
.
localStorage
.
openId
};
...
...
@@ -351,11 +357,18 @@ export default {
vm
.
hlsPopup
.
hideLoading
();
if
(
res
.
code
==
0
)
{
vm
.
$vux
.
toast
.
text
(
res
.
message
,
"middle"
);
window
.
open
(
"http://sign.hitachics.com/www/#/UserRegister"
,
"_self"
);
window
.
open
(
"http://sign.hitachics.com/www/#/UserRegister"
,
"_self"
);
}
else
{
vm
.
$vux
.
toast
.
text
(
res
.
message
,
"middle"
);
}
});
}
console
.
log
(
index
);
}
});
},
// 调用微信接口的基础配置
wxConfig
()
{
...
...
@@ -396,11 +409,11 @@ export default {
"hideOptionMenu"
]
// 必填,需要使用的JS接口列表,所有JS接口列表见附录2
});
wx
.
ready
(
function
()
{
wx
.
ready
(
function
()
{
wx
.
hideOptionMenu
();
})
});
},
});
}
},
created
()
{
this
.
wxConfig
();
...
...
@@ -408,7 +421,7 @@ export default {
var
agentType
=
data
.
agentType
;
console
.
log
(
data
);
if
(
agentType
==
1
)
{
this
.
agentType
=
data
.
dealerFlag
;
//
this.agentType = data.dealerFlag;
this
.
organizationName
=
data
.
name
;
this
.
socialCode
=
data
.
idNo
;
this
.
legalRepresentativeName
=
data
.
legalName
;
...
...
@@ -429,7 +442,7 @@ export default {
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token="
+
window
.
localStorage
.
access_token_rl
;
}
else
if
(
agentType
==
2
)
{
this
.
agentType
=
data
.
dealerFlag
;
//
this.agentType = data.dealerFlag;
this
.
staffType
=
"组织其他员工"
;
this
.
jbName
=
data
.
agentName
;
this
.
jbPhoneNumber
=
data
.
mobile
;
...
...
src/pages/applications/userRegisters/readonlyPersonalReg.vue
View file @
33a12c07
...
...
@@ -93,8 +93,14 @@ export default {
imgUrl
:
vm
.
cardUp
});
},
// 注销
logout
()
{
let
vm
=
this
;
hlsPopup
.
showConfirm
({
title
:
"签名成功"
,
content
:
"请确认合同是否都已下载完成,注销后无法下载,请知悉,谢谢!"
,
onConfirm
:
function
(
index
)
{
if
(
index
===
1
)
{
let
url
=
process
.
env
.
rootPath
+
"/accounts/outerAccounts/delete"
;
let
param
=
{
openId
:
window
.
localStorage
.
openId
...
...
@@ -111,7 +117,9 @@ export default {
}
else
{
vm
.
$vux
.
toast
.
text
(
res
.
message
,
"middle"
);
}
// vm.$vux.toast.text(res.message, "middle");
});
}
}
});
},
// 调用微信接口的基础配置
...
...
src/pages/home.vue
View file @
33a12c07
...
...
@@ -5,17 +5,17 @@
<!--
<header
class=
"header"
>
<input
v-model=
"searchInput"
placeholder=
"请输入功能名"
>
<img
src=
"../assets/image/home/functionList@2x.png"
@
click=
"search"
>
</header>
-->
</header>
-->
<!--
<swipe
:interval=
"5000"
:showIndicators=
"false"
class=
"swipe"
>
<swipe-item
v-for=
"img in imgList"
:key=
"img.pictureUrl"
>
<img
:src=
"img.pictureUrl"
>
</swipe-item>
</swipe>
-->
</swipe>
-->
<!--
<div
class=
"function"
>
<function-item
v-for=
"item in moduleSeparateList.slice(0,4)"
:key=
"item.moduleId"
:functionIcon=
"item.moduleIcon"
:functionName=
"item.moduleName"
:data=
"item"
@
clickFunction=
"goModuleFunction"
/>
-->
:data=
"item"
@
clickFunction=
"goModuleFunction"
/>
-->
<!--
<function-item
:functionIcon=
"require('../assets/image/home/allFunction@2x.png')"
:functionName=
"'全部'"
@
clickFunction=
"goAllFunction"
/>
-->
<!--
</div>
-->
</div>
...
...
@@ -23,9 +23,15 @@
<header>
常用应用
</header>
<div
class=
"function"
>
<function-item
v-for=
"item in functionList"
:key=
"item.functionId"
:functionIcon=
"item.functionIcon"
:functionName=
"item.functionName"
style=
"width:33.3%"
:data=
"item"
class=
"function-item vue-1px"
@
clickFunction=
"goFunctionHome"
/>
v-for=
"item in functionList"
:key=
"item.functionId"
:functionIcon=
"item.functionIcon"
:functionName=
"item.functionName"
style=
"width:33.3%"
:data=
"item"
class=
"function-item vue-1px"
@
clickFunction=
"goFunctionHome"
/>
<!--
<div
class=
"function-item"
@
click=
"goAllFunction"
>
<img
src=
"../assets/image/home/functionMore@2x.png"
>
</div>
-->
...
...
@@ -42,7 +48,7 @@
</ul>
<ul
id=
"p2"
/>
</div>
</div>
-->
</div>
-->
<!--
<div
class=
"middle-box bottom-box"
>
<header>
为您推荐
<span
@
click=
"moreRecommend"
>
更多
</span></header>
<div
class=
"function"
>
...
...
@@ -50,17 +56,17 @@
<img
:src=
"item.recommendUrl"
>
</div>
</div>
</div>
-->
</div>
-->
</h-content>
</h-view>
</
template
>
<
script
>
import
functionState
from
'./functionState'
import
{
getUrlParam
}
from
'@/scripts/utils'
import
functionState
from
"./functionState"
;
import
{
getUrlParam
}
from
"@/scripts/utils"
;
export
default
{
data
()
{
data
()
{
return
{
imgList
:
[],
recommendList
:
[],
...
...
@@ -70,33 +76,37 @@ export default {
area
:
{},
box1
:
{},
box2
:
{},
searchInput
:
''
,
}
},
beforeCreate
:
function
()
{
searchInput
:
""
,
subscribe
:
false
};
},
created
:
function
()
{
this
.
wxConfig
();
beforeCreate
:
function
()
{},
created
:
function
()
{
// debugger;
// window.localStorage.setItem('user_id', 2009)
// this.imgList = [...functionState.bannerList]
// this.recommendList = [...functionState.recommendList]
this
.
moduleSeparateList
=
[...
functionState
.
moduleSeparateList
]
this
.
moduleSeparateList
=
[...
functionState
.
moduleSeparateList
]
;
this
.
moduleSeparateList
.
forEach
(
item
=>
{
this
.
functionList
=
this
.
functionList
.
concat
(
item
.
functions
)
})
this
.
functionList
=
this
.
functionList
.
concat
(
item
.
functions
)
;
})
;
this
.
getToken
().
then
(
res
=>
{
this
.
wxConfig
();
// if (window.localStorage.openId) {
// this.getWxUserInfo(window.localStorage.openId);
// }
// this.noticeQuery()
// 注意,此处用户个人信息是写死的user_id 后续项目实施中根据以下代码实时获取企业通讯录个人信息
var
code
=
getUrlParam
(
'code'
);
//
code = '111'
;
if
(
code
)
{
var
code
=
getUrlParam
(
"code"
);
//
code = "111"
;
if
(
code
)
{
this
.
getOpenId
(
code
);
}
})
},
updated
:
function
()
{
this
.
subscribe
=
window
.
localStorage
.
subscribe
;
});
},
updated
:
function
()
{},
methods
:
{
// 获取中台token
// hlsSupportToken () {
...
...
@@ -156,9 +166,9 @@ export default {
"hideOptionMenu"
]
// 必填,需要使用的JS接口列表,所有JS接口列表见附录2
});
wx
.
ready
(
function
()
{
wx
.
ready
(
function
()
{
wx
.
hideOptionMenu
();
})
});
});
},
// search () {
...
...
@@ -189,7 +199,7 @@ export default {
// },
// })
// },
getToken
()
{
getToken
()
{
let
vm
=
this
;
let
url
=
process
.
env
.
loginPathRl
+
"admin"
;
let
param
=
{};
...
...
@@ -197,35 +207,64 @@ export default {
window
.
localStorage
.
setItem
(
"access_token_rl"
,
res
.
access_token
);
});
},
goFunctionHome
(
data
)
{
goFunctionHome
(
data
)
{
if
(
this
.
subscribe
)
{
this
.
$router
.
push
({
name
:
data
.
functionState
,
})
name
:
data
.
functionState
});
}
else
{
hlsPopup
.
showPopup
({
title
:
"提示"
,
content
:
"未关注公众号,请先关注后再进入!"
,
onConfirm
()
{}
});
}
},
// moreRecommend () {
// console.log('go moreRecommend')
// },
getOpenId
(
code
)
{
let
vm
=
this
getOpenId
(
code
)
{
let
vm
=
this
;
let
url
=
process
.
env
.
basePathRl
+
"getOpenId"
;
let
param
=
{
"apiKey"
:
"handexinxi"
,
"code"
:
code
}
// window.localStorage.openId = "1234567"
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
apiKey
:
"handexinxi"
,
code
:
code
};
// window.localStorage.openId = "oBdoRwI9gj9Brbe9iqlDCg5G2dDc";
// vm.getWxUserInfo(window.localStorage.openId);
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
if
(
res
.
resultCode
==
"00"
)
{
window
.
localStorage
.
openId
=
res
.
result
;
if
(
window
.
localStorage
.
openId
)
{
vm
.
getWxUserInfo
(
window
.
localStorage
.
openId
);
}
})
},
}
});
},
}
getWxUserInfo
(
id
)
{
let
vm
=
this
;
let
url
=
process
.
env
.
basePathRl
+
"getWxUserInfo"
;
let
params
=
{
apiKey
:
"handexinxi"
,
openid
:
id
// openid: "oBdoRwI9gj9Brbe9iqlDCg5G2dDc"
};
// window.localStorage.openId = "1234567"
vm
.
hlsHttp
.
post
(
url
,
params
).
then
(
function
(
res
)
{
if
(
res
.
resultCode
==
"00"
)
{
vm
.
subscribe
=
window
.
localStorage
.
subscribe
=
res
.
result
.
subscribe
;
// console.log("vvvv", res.result.subscribe);
}
});
}
}
};
</
script
>
<
style
lang=
"less"
scoped
type=
"text/less"
>
@import "../styles/vue-1px";
@import "../styles/vue-1px";
#home {
#home {
.top-box {
// height: 264px;
width: 100%;
...
...
@@ -247,7 +286,7 @@ export default {
// border: 1px solid white;
border-radius: 15px;
text-align: center;
color: #B6B6B
6;
color: #b6b6b
6;
font-size: 12px;
}
...
...
@@ -272,23 +311,22 @@ export default {
position: absolute;
bottom: 0;
background: url("../assets/image/home/moduleBg@2x.png");
B
ackground-size: 100%;
b
ackground-size: 100%;
padding-top: 43px;
display: flex;
justify-content: space-between;
&:before {
content: ''
content: "";
}
&:after {
content: ''
content: "";
}
.function-item {
text-align: center;
}
}
}
...
...
@@ -301,31 +339,31 @@ export default {
display: flex;
align-items: center;
line-height: 100%;
color: #5D98F
6;
color: #5d98f
6;
position: relative;
&:before {
content: ''
;
content: ""
;
width: 4px;
height: 15px;
margin-right: 9px;
margin-left: 10px;
background-image: linear-gradient(-180deg, #5D98F6 0%, #76BCEE
100%);
background-image: linear-gradient(-180deg, #5d98f6 0%, #76bcee
100%);
border-radius: 2px;
}
&:after {
.setBottomLine()
.setBottomLine();
}
span {
font-size: 12px;
color: #878A8D
;
color: #878a8d
;
position: absolute;
right: 15px;
}
}
.function
{
.function
{
display: flex;
flex-wrap: wrap;
...
...
@@ -363,7 +401,7 @@ export default {
width: 100%;
height: 42px;
margin-top: 8px;
background-color: #FFFFFF
;
background-color: #ffffff
;
display: flex;
justify-content: flex-start;
align-items: center;
...
...
@@ -371,7 +409,7 @@ export default {
-webkit-flex: 0 0 20%;
flex: 0 0 20%;
max-width: 20%;
color: #E84A
55;
color: #e84a
55;
font-size: 14px;
//margin-left: 3.2%;
height: 100%;
...
...
@@ -453,5 +491,5 @@ export default {
}
}
}
}
}
</
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