update
This commit is contained in:
parent
8a32cda339
commit
c75814b1e2
351
pages.json
351
pages.json
@ -2,30 +2,26 @@
|
|||||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||||
{
|
{
|
||||||
"path": "pages/index/index",
|
"path": "pages/index/index",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "驿行畅旅",
|
"navigationBarTitleText": "驿行畅旅",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/userCenter/userCenter",
|
"path": "pages/userCenter/userCenter",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "个人中心"
|
"navigationBarTitleText": "个人中心"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/register/register",
|
"path": "pages/register/register",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "授权"
|
"navigationBarTitleText": "授权"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/webview/webview",
|
"path": "pages/webview/webview",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "驿行畅旅"
|
"navigationBarTitleText": "驿行畅旅"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -33,19 +29,16 @@
|
|||||||
"subPackages": [ //分包加载配置
|
"subPackages": [ //分包加载配置
|
||||||
{
|
{
|
||||||
"root": "pages/authorityApproval",
|
"root": "pages/authorityApproval",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "index",
|
"path": "index",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "权限审批",
|
"navigationBarTitleText": "权限审批",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "权限审批",
|
"navigationBarTitleText": "权限审批",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
@ -54,32 +47,27 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/auditingPop",
|
"root": "pages/auditingPop",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "jointlySign",
|
"path": "jointlySign",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "会签"
|
"navigationBarTitleText": "会签"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "transfer",
|
"path": "transfer",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "移交"
|
"navigationBarTitleText": "移交"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "toExamine",
|
"path": "toExamine",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "审核"
|
"navigationBarTitleText": "审核"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "reject",
|
"path": "reject",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "驳回"
|
"navigationBarTitleText": "驳回"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -87,49 +75,42 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/settlementApproval",
|
"root": "pages/settlementApproval",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "index",
|
"path": "index",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
"navigationBarTitleText": "结算审批"
|
"navigationBarTitleText": "结算审批"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "monthList",
|
"path": "monthList",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "月度结算列表"
|
"navigationBarTitleText": "月度结算列表"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "yearSettlement",
|
"path": "yearSettlement",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
"navigationBarTitleText": "年度结算"
|
"navigationBarTitleText": "年度结算"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "monthDetail",
|
"path": "monthDetail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
"navigationBarTitleText": "月度详情"
|
"navigationBarTitleText": "月度详情"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "dailyList",
|
"path": "dailyList",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "日结冲正明细"
|
"navigationBarTitleText": "日结冲正明细"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -137,11 +118,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/operatingStatements",
|
"root": "pages/operatingStatements",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "index",
|
"path": "index",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "经营报表",
|
"navigationBarTitleText": "经营报表",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarBackgroundColor": "#647BD1",
|
"navigationBarBackgroundColor": "#647BD1",
|
||||||
@ -150,8 +129,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "经营报表",
|
"navigationBarTitleText": "经营报表",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarBackgroundColor": "#647BD1",
|
"navigationBarBackgroundColor": "#647BD1",
|
||||||
@ -160,8 +138,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "operatingTrend",
|
"path": "operatingTrend",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "经营趋势",
|
"navigationBarTitleText": "经营趋势",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarBackgroundColor": "#647BD1",
|
"navigationBarBackgroundColor": "#647BD1",
|
||||||
@ -171,41 +148,57 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/tender",
|
"root": "pages/walkAroundManager",
|
||||||
"pages": [
|
"pages": [{
|
||||||
|
"path": "index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "上传走动式管理"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
|
"path": "statusPage",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "detail",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "考核详情"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"root": "pages/tender",
|
||||||
|
"pages": [{
|
||||||
"path": "tender",
|
"path": "tender",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "招标投标"
|
"navigationBarTitleText": "招标投标"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tenderRecord",
|
"path": "tenderRecord",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "招标备案详情"
|
"navigationBarTitleText": "招标备案详情"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tenderAlteration",
|
"path": "tenderAlteration",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "招标变更详情"
|
"navigationBarTitleText": "招标变更详情"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "decisionRecord",
|
"path": "decisionRecord",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "决标备案详情"
|
"navigationBarTitleText": "决标备案详情"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "specialProjects",
|
"path": "specialProjects",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "专项工程详情",
|
"navigationBarTitleText": "专项工程详情",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
@ -214,32 +207,27 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/mbwa",
|
"root": "pages/mbwa",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "mbwa",
|
"path": "mbwa",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "走动式管理"
|
"navigationBarTitleText": "走动式管理"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "mbwaUnCheck",
|
"path": "mbwaUnCheck",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "未检点位"
|
"navigationBarTitleText": "未检点位"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "mbwaDetail",
|
"path": "mbwaDetail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "走动式管理"
|
"navigationBarTitleText": "走动式管理"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "mbwaUpload",
|
"path": "mbwaUpload",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "上传走动式管理"
|
"navigationBarTitleText": "上传走动式管理"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -247,19 +235,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/serviceAreaReimbursement",
|
"root": "pages/serviceAreaReimbursement",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "serviceAreaReimbursement",
|
"path": "serviceAreaReimbursement",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "服务区报销"
|
"navigationBarTitleText": "服务区报销"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarTitleText": ""
|
"navigationBarTitleText": ""
|
||||||
}
|
}
|
||||||
@ -268,27 +253,23 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/dataSummary",
|
"root": "pages/dataSummary",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "dataSummary",
|
"path": "dataSummary",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "日结校验"
|
"navigationBarTitleText": "日结校验"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "dayDetail",
|
"path": "dayDetail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarBackgroundColor": "#EAEBEB",
|
"navigationBarBackgroundColor": "#EAEBEB",
|
||||||
"navigationBarTitleText": "日结校验"
|
"navigationBarTitleText": "日结校验"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "日结校验"
|
"navigationBarTitleText": "日结校验"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -296,33 +277,28 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/askForLeave",
|
"root": "pages/askForLeave",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "askForLeave",
|
"path": "askForLeave",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "请假加班"
|
"navigationBarTitleText": "请假加班"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "请假详情"
|
"navigationBarTitleText": "请假详情"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "newLeave",
|
"path": "newLeave",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "申请请假"
|
"navigationBarTitleText": "申请请假"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "newLeave2",
|
"path": "newLeave2",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "申请请假"
|
"navigationBarTitleText": "申请请假"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -330,33 +306,28 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/officialDocManagement",
|
"root": "pages/officialDocManagement",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "officialDocManagement",
|
"path": "officialDocManagement",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "公文阅办"
|
"navigationBarTitleText": "公文阅办"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "公文阅办"
|
"navigationBarTitleText": "公文阅办"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "readerList",
|
"path": "readerList",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "公文阅办"
|
"navigationBarTitleText": "公文阅办"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "circulate",
|
"path": "circulate",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "阅办记录"
|
"navigationBarTitleText": "阅办记录"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -364,41 +335,35 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/businessApproval",
|
"root": "pages/businessApproval",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "businessApproval",
|
"path": "businessApproval",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "商品审批"
|
"navigationBarTitleText": "商品审批"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "productDetail",
|
"path": "productDetail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "商品审批"
|
"navigationBarTitleText": "商品审批"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "newDetail",
|
"path": "newDetail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "商品审批"
|
"navigationBarTitleText": "商品审批"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "newApproval",
|
"path": "newApproval",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "商品审批"
|
"navigationBarTitleText": "商品审批"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "transferPage",
|
"path": "transferPage",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": ""
|
"navigationBarTitleText": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -406,51 +371,44 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/everdayRenven",
|
"root": "pages/everdayRenven",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "index",
|
"path": "index",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarTitleText": "每日营收汇总"
|
"navigationBarTitleText": "每日营收汇总"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarTitleText": "每日营收"
|
"navigationBarTitleText": "每日营收"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "serviceIndex",
|
"path": "serviceIndex",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarTitleText": "服务区每日营收"
|
"navigationBarTitleText": "服务区每日营收"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "serviceDetail",
|
"path": "serviceDetail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarTitleText": "服务区每日营收"
|
"navigationBarTitleText": "服务区每日营收"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "AnhuiIndex",
|
"path": "AnhuiIndex",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "每日营收汇总",
|
"navigationBarTitleText": "每日营收汇总",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "AnhuiServerpart",
|
"path": "AnhuiServerpart",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "服务区每日营收",
|
"navigationBarTitleText": "服务区每日营收",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
@ -459,19 +417,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/suggestion",
|
"root": "pages/suggestion",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "suggestion",
|
"path": "suggestion",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "投诉建议"
|
"navigationBarTitleText": "投诉建议"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "suggestionDetail",
|
"path": "suggestionDetail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "投诉建议"
|
"navigationBarTitleText": "投诉建议"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -479,8 +434,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/projectWarning",
|
"root": "pages/projectWarning",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "index",
|
"path": "index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "分润比例切换"
|
"navigationBarTitleText": "分润比例切换"
|
||||||
@ -498,19 +452,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/contract",
|
"root": "pages/contract",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "contract",
|
"path": "contract",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "合同审批"
|
"navigationBarTitleText": "合同审批"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "合同审批"
|
"navigationBarTitleText": "合同审批"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -518,26 +469,22 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/cashAudit",
|
"root": "pages/cashAudit",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "list",
|
"path": "list",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "收银稽核"
|
"navigationBarTitleText": "收银稽核"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "收银稽核详情"
|
"navigationBarTitleText": "收银稽核详情"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "check",
|
"path": "check",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "收银稽核反馈"
|
"navigationBarTitleText": "收银稽核反馈"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -545,19 +492,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/investment",
|
"root": "pages/investment",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "investment",
|
"path": "investment",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "招商审批"
|
"navigationBarTitleText": "招商审批"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "investmentDetail",
|
"path": "investmentDetail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "招商审批"
|
"navigationBarTitleText": "招商审批"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -565,19 +509,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/publicity",
|
"root": "pages/publicity",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "publicity",
|
"path": "publicity",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "阳光公示"
|
"navigationBarTitleText": "阳光公示"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "publicityDetail",
|
"path": "publicityDetail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "阳光公示"
|
"navigationBarTitleText": "阳光公示"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -585,19 +526,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/expenseApproval",
|
"root": "pages/expenseApproval",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "expenseApproval",
|
"path": "expenseApproval",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "财务审批"
|
"navigationBarTitleText": "财务审批"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "expenseDetail",
|
"path": "expenseDetail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "财务审批"
|
"navigationBarTitleText": "财务审批"
|
||||||
}
|
}
|
||||||
@ -606,19 +544,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/commodity_temp",
|
"root": "pages/commodity_temp",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "index",
|
"path": "index",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "资质审批"
|
"navigationBarTitleText": "资质审批"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "资质审批"
|
"navigationBarTitleText": "资质审批"
|
||||||
}
|
}
|
||||||
@ -627,19 +562,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/autoTest/serverpartshoptotalsummary",
|
"root": "pages/autoTest/serverpartshoptotalsummary",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "index",
|
"path": "index",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "业主门店数量汇总"
|
"navigationBarTitleText": "业主门店数量汇总"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "业主门店数量汇总详情"
|
"navigationBarTitleText": "业主门店数量汇总详情"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -647,19 +579,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/autoTest/shopmobilesummary",
|
"root": "pages/autoTest/shopmobilesummary",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "index",
|
"path": "index",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "门店移动支付汇总"
|
"navigationBarTitleText": "门店移动支付汇总"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "门店移动支付汇总详情"
|
"navigationBarTitleText": "门店移动支付汇总详情"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -667,19 +596,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/autoTest/endaccountreport",
|
"root": "pages/autoTest/endaccountreport",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "index",
|
"path": "index",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "服务区营收数据汇总"
|
"navigationBarTitleText": "服务区营收数据汇总"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "服务区营收数据汇总详情"
|
"navigationBarTitleText": "服务区营收数据汇总详情"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -687,19 +613,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/autoTest/abnormalauditreport",
|
"root": "pages/autoTest/abnormalauditreport",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "index",
|
"path": "index",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "服务区现场稽核异常汇总"
|
"navigationBarTitleText": "服务区现场稽核异常汇总"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "服务区现场稽核异常汇总详情"
|
"navigationBarTitleText": "服务区现场稽核异常汇总详情"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -707,19 +630,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/autoTest/serverpartreport",
|
"root": "pages/autoTest/serverpartreport",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "index",
|
"path": "index",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "服务区营收汇总"
|
"navigationBarTitleText": "服务区营收汇总"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "服务区营收汇总详情"
|
"navigationBarTitleText": "服务区营收汇总详情"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -727,19 +647,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/autoTest/abnormalauditsummary",
|
"root": "pages/autoTest/abnormalauditsummary",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "index",
|
"path": "index",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "现场稽核异常表服务区站点汇总"
|
"navigationBarTitleText": "现场稽核异常表服务区站点汇总"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "现场稽核异常表服务区站点汇总详情"
|
"navigationBarTitleText": "现场稽核异常表服务区站点汇总详情"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -747,19 +664,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pages/autoTest/abnormalaudit",
|
"root": "pages/autoTest/abnormalaudit",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "index",
|
"path": "index",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTitleText": "现场稽核异常表"
|
"navigationBarTitleText": "现场稽核异常表"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "detail",
|
"path": "detail",
|
||||||
"style":
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "现场稽核异常表详情"
|
"navigationBarTitleText": "现场稽核异常表详情"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -777,8 +691,7 @@
|
|||||||
"selectedColor": "#3295f9",
|
"selectedColor": "#3295f9",
|
||||||
"borderStyle": "black",
|
"borderStyle": "black",
|
||||||
"backgroundColor": "#ffffff",
|
"backgroundColor": "#ffffff",
|
||||||
"list": [
|
"list": [{
|
||||||
{
|
|
||||||
"pagePath": "pages/index/index",
|
"pagePath": "pages/index/index",
|
||||||
"iconPath": "static/images/tab/home.png",
|
"iconPath": "static/images/tab/home.png",
|
||||||
"selectedIconPath": "static/images/tab/homeActive.png",
|
"selectedIconPath": "static/images/tab/homeActive.png",
|
||||||
@ -792,4 +705,4 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,19 +1,27 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content" v-show="menus">
|
<view class="content" v-show="menus">
|
||||||
<menuModel v-for="(menu ,index) in modelMenu" :key="index" :title="menu.name" :class="{'line-block':index!=0}">
|
<menuModel
|
||||||
<view class="uni-flex align-top" name="slot">
|
v-for="(menu, index) in modelMenu"
|
||||||
<menuItem
|
:key="index"
|
||||||
v-for="item in menu.list"
|
:title="menu.name"
|
||||||
:key="item.id"
|
:class="{ 'line-block': index != 0 }"
|
||||||
:item ="item"
|
>
|
||||||
:doCout="toDoMsg ? toDoMsg[item.id] : 0"
|
<view class="uni-flex align-top" name="slot">
|
||||||
:active="item.id=='d5a9e3ef-3699-448f-abcc-819179df60bd' || menus[item.id]==1 || this.membershipType === 9999"
|
<menuItem
|
||||||
@handleClick="toPage"
|
v-for="item in menu.list"
|
||||||
|
:key="item.id"
|
||||||
></menuItem>
|
:item="item"
|
||||||
</view>
|
:doCout="toDoMsg ? toDoMsg[item.id] : 0"
|
||||||
</menuModel>
|
:active="
|
||||||
<!-- <view class="home-model">
|
item.id == 'd5a9e3ef-3699-448f-abcc-819179df60bd' ||
|
||||||
|
menus[item.id] == 1 ||
|
||||||
|
this.membershipType === 9999
|
||||||
|
"
|
||||||
|
@handleClick="toPage"
|
||||||
|
></menuItem>
|
||||||
|
</view>
|
||||||
|
</menuModel>
|
||||||
|
<!-- <view class="home-model">
|
||||||
<div class="model-title">
|
<div class="model-title">
|
||||||
<text class="text">综合办公</text>
|
<text class="text">综合办公</text>
|
||||||
</div>
|
</div>
|
||||||
@ -110,196 +118,212 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</view> -->
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import { mapState, mapMutations, mapActions } from "vuex";
|
||||||
mapState,
|
import modelMenu from "./components/menus.js";
|
||||||
|
import menuModel from "./components/menuModel.vue";
|
||||||
|
import menuItem from "./components/menuItem.vue";
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
modelMenu: null,
|
||||||
|
membershipType: null,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
menuModel,
|
||||||
|
menuItem,
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
console.log(this.user, 1111);
|
||||||
|
this.loadMenuSetting();
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState({
|
||||||
|
user: (state) => {
|
||||||
|
return {
|
||||||
|
UserId: state.userData.UserId,
|
||||||
|
UserName: state.userData.UserName,
|
||||||
|
Membership_Phone: state.userData.Membership_Phone,
|
||||||
|
Membership_Id: state.userData.Membership_Id,
|
||||||
|
Membership_Type: state.userData.Membership_Type,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
toDoMsg: (state) => {
|
||||||
|
return state.toDoMsg;
|
||||||
|
},
|
||||||
|
menus: (state) => {
|
||||||
|
return state.userData.AuthorityInfo;
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
...mapActions(["updateUser"]),
|
||||||
|
scanCode() {
|
||||||
|
let _this = this;
|
||||||
|
uni.scanCode({
|
||||||
|
onlyFromCamera: true,
|
||||||
|
success: function (res) {
|
||||||
|
console.log("条码类型:" + res.scanType);
|
||||||
|
console.log("条码内容:" + res.result);
|
||||||
|
if (res.scanType.indexOf("QR_CODE") > -1) {
|
||||||
|
if (res.result.indexOf("pages/walkAroundManager/index") > -1) {
|
||||||
|
_this.$util.toNextRoute("navigateTo", "/" + res.result);
|
||||||
|
} else {
|
||||||
|
let result = res.result.toLocaleLowerCase();
|
||||||
|
if (
|
||||||
|
result.indexOf("http://eshangtech.com:8000/mbwa/index.html") >
|
||||||
|
-1
|
||||||
|
) {
|
||||||
|
let mbwaId = res.result.split("?")[1];
|
||||||
|
mbwaId = mbwaId.split("=")[1];
|
||||||
|
|
||||||
mapMutations,
|
_this.$util.toNextRoute(
|
||||||
mapActions
|
"navigateTo",
|
||||||
} from 'vuex'
|
"/pages/mbwa/mbwaUpload?mbwaID=" + mbwaId
|
||||||
import modelMenu from'./components/menus.js'
|
);
|
||||||
import menuModel from'./components/menuModel.vue'
|
} else if (res.result.indexOf("http") > -1) {
|
||||||
import menuItem from'./components/menuItem.vue'
|
_this.$util.toNextRoute(
|
||||||
export default {
|
"navigateTo",
|
||||||
data() {
|
"/pages/webview/webview?src=" + encodeURIComponent(res.result)
|
||||||
return {
|
);
|
||||||
modelMenu: null,
|
} else {
|
||||||
membershipType: null
|
let invoice = res.result.split(",");
|
||||||
}
|
// console.log(invoice.length)
|
||||||
},
|
if (invoice.length == 9) {
|
||||||
components:{
|
_this.$util.toNextRoute(
|
||||||
menuModel,
|
"navigateTo",
|
||||||
menuItem
|
"/pages/invoice/invoice?invoice=" + invoice
|
||||||
},
|
);
|
||||||
onLoad() {
|
} else {
|
||||||
console.log(this.user,1111)
|
uni.showModal({
|
||||||
this.loadMenuSetting()
|
title: "温馨提示",
|
||||||
},
|
content: "不识别该二维码,请扫描发票或商品条形码",
|
||||||
computed: {
|
showCancel: false,
|
||||||
...mapState({
|
confirmText: "确定",
|
||||||
user: (state)=>{
|
});
|
||||||
return {
|
}
|
||||||
UserId: state.userData.UserId,
|
}
|
||||||
UserName: state.userData.UserName,
|
}
|
||||||
Membership_Phone: state.userData.Membership_Phone,
|
} else if (res.scanType.indexOf("EAN_13") > -1) {
|
||||||
Membership_Id: state.userData.Membership_Id,
|
this.$util.toNextRoute(
|
||||||
Membership_Type: state.userData.Membership_Type
|
"navigateTo",
|
||||||
}
|
"/pages/commodtity/commodtity?commodtity=" + res.result
|
||||||
},
|
);
|
||||||
toDoMsg: (state)=>{
|
} else {
|
||||||
return state.toDoMsg
|
uni.showModal({
|
||||||
},
|
title: "温馨提示",
|
||||||
menus: (state)=> {
|
content: "不识别该二维码,请扫描发票或商品条形码",
|
||||||
return state.userData.AuthorityInfo
|
showCancel: false,
|
||||||
}
|
confirmText: "确定",
|
||||||
}),
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
recordBrowsing(item) {
|
||||||
|
// 点击业务模块事件
|
||||||
|
let _this = this;
|
||||||
|
if (!item.id) {
|
||||||
|
uni.showModal({
|
||||||
|
title: " 温馨提示",
|
||||||
|
content: "该模块正在开发,尽请期待",
|
||||||
|
});
|
||||||
|
} else if (
|
||||||
|
_this.menus &&
|
||||||
|
(_this.menus[item.id] == 1 || this.user.Membership_Type === 9999)
|
||||||
|
) {
|
||||||
|
// 记录用户访问业务事件
|
||||||
|
// } else {
|
||||||
|
this.$util.toNextRoute("navigateTo", item.homeUrl);
|
||||||
|
} else if (this.user.Membership_Type !== 9999) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "您没有该模块权限,请联系管理员",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toPage(item) {
|
||||||
|
console.log("item", item);
|
||||||
|
let _this = this;
|
||||||
|
|
||||||
},
|
if (!this.user.Membership_Phone) {
|
||||||
methods: {
|
uni.showModal({
|
||||||
...mapActions(['updateUser']),
|
title: " 温馨提示",
|
||||||
scanCode() {
|
content: "您还没有登录,快去登录吧!",
|
||||||
let _this = this
|
success(res) {
|
||||||
uni.scanCode({
|
if (res.confirm) {
|
||||||
onlyFromCamera: true,
|
_this.$util.toNextRoute("navigateTo", "/pages/register/register");
|
||||||
success: function(res) {
|
}
|
||||||
console.log('条码类型:' + res.scanType)
|
},
|
||||||
console.log('条码内容:' + res.result)
|
});
|
||||||
if (res.scanType.indexOf("QR_CODE") > -1) {
|
} else if (item.id == "d5a9e3ef-3699-448f-abcc-819179df60bd") {
|
||||||
|
// 如果是扫一扫功能
|
||||||
let result = res.result.toLocaleLowerCase()
|
this.scanCode();
|
||||||
if (result.indexOf('http://eshangtech.com:8000/mbwa/index.html') > -1) {
|
} else if (this.user.UserId == "") {
|
||||||
let mbwaId = res.result.split('?')[1]
|
uni.showModal({
|
||||||
mbwaId = mbwaId.split('=')[1]
|
title: " 温馨提示",
|
||||||
|
content: "您的账户未绑定综管平台账户,请先绑定以获取业务权限",
|
||||||
_this.$util.toNextRoute('navigateTo', "/pages/mbwa/mbwaUpload?mbwaID=" + mbwaId)
|
success(res) {
|
||||||
|
if (res.confirm) {
|
||||||
} else if (res.result.indexOf("http") > -1) {
|
_this.$util.toNextRoute(
|
||||||
_this.$util.toNextRoute('navigateTo', "/pages/webview/webview?src=" +
|
"navigateTo",
|
||||||
encodeURIComponent(res.result))
|
"/pages/bindingBack/bindingBack"
|
||||||
} else {
|
);
|
||||||
let invoice = res.result.split(",")
|
}
|
||||||
// console.log(invoice.length)
|
},
|
||||||
if (invoice.length == 9) {
|
});
|
||||||
_this.$util.toNextRoute('navigateTo', "/pages/invoice/invoice?invoice=" + invoice)
|
} else {
|
||||||
} else {
|
this.recordBrowsing(item);
|
||||||
uni.showModal({
|
}
|
||||||
title: "温馨提示",
|
},
|
||||||
content: "不识别该二维码,请扫描发票或商品条形码",
|
async loadMenuSetting() {
|
||||||
showCancel: false,
|
//加载首页菜单配置
|
||||||
confirmText: "确定"
|
console.log("this.user", this.user);
|
||||||
})
|
this.membershipType = this.user.Membership_Type;
|
||||||
}
|
let res = await this.$request.$webGet(
|
||||||
}
|
"EShangApiMain/APPManage/GetWeChatAppletMenuList",
|
||||||
} else if (res.scanType.indexOf("EAN_13") > -1) {
|
{
|
||||||
this.$util.toNextRoute('navigateTo', "/pages/commodtity/commodtity?commodtity=" + res.result)
|
ModuleStatus: this.membershipType === 9999 ? "1,2" : "1",
|
||||||
} else {
|
AppletMenuStatus: this.membershipType === 9999 ? "1,2" : "1",
|
||||||
uni.showModal({
|
}
|
||||||
title: "温馨提示",
|
);
|
||||||
content: "不识别该二维码,请扫描发票或商品条形码",
|
this.modelMenu = res.Result_Data.List;
|
||||||
showCancel: false,
|
},
|
||||||
confirmText: "确定"
|
},
|
||||||
})
|
onReady() {},
|
||||||
}
|
onShow() {},
|
||||||
}
|
onPullDownRefresh() {
|
||||||
})
|
let _this = this;
|
||||||
|
this.updateUser();
|
||||||
},
|
this.loadMenuSetting();
|
||||||
recordBrowsing(item) { // 点击业务模块事件
|
setTimeout(function () {
|
||||||
let _this = this
|
uni.stopPullDownRefresh();
|
||||||
if (!item.id) {
|
}, 1000);
|
||||||
uni.showModal({
|
},
|
||||||
title: ' 温馨提示',
|
onTabItemTap(e) {
|
||||||
content: '该模块正在开发,尽请期待',
|
this.$util.addUserBehaviorNew({
|
||||||
})
|
outtoRoute: "/pages/index/index",
|
||||||
} else if (_this.menus && (_this.menus[item.id] == 1 ||
|
intoRoute: "/pages/userCenter/userCenter",
|
||||||
this.user.Membership_Type === 9999)) { // 记录用户访问业务事件
|
});
|
||||||
// } else {
|
},
|
||||||
this.$util.toNextRoute('navigateTo', item.homeUrl)
|
};
|
||||||
} else if (this.user.Membership_Type !== 9999) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '您没有该模块权限,请联系管理员',
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
toPage(item) {
|
|
||||||
console.log('item',item)
|
|
||||||
let _this = this
|
|
||||||
|
|
||||||
if (!this.user.Membership_Phone) {
|
|
||||||
uni.showModal({
|
|
||||||
title: ' 温馨提示',
|
|
||||||
content: '您还没有登录,快去登录吧!',
|
|
||||||
success(res) {
|
|
||||||
if (res.confirm) {
|
|
||||||
_this.$util.toNextRoute('navigateTo', '/pages/register/register')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
}else if(item.id=='d5a9e3ef-3699-448f-abcc-819179df60bd') { // 如果是扫一扫功能
|
|
||||||
this.scanCode()
|
|
||||||
} else if (this.user.UserId == '') {
|
|
||||||
uni.showModal({
|
|
||||||
title: ' 温馨提示',
|
|
||||||
content: '您的账户未绑定综管平台账户,请先绑定以获取业务权限',
|
|
||||||
success(res) {
|
|
||||||
if (res.confirm) {
|
|
||||||
_this.$util.toNextRoute('navigateTo', '/pages/bindingBack/bindingBack')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.recordBrowsing(item)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
async loadMenuSetting(){ //加载首页菜单配置
|
|
||||||
console.log('this.user',this.user)
|
|
||||||
this.membershipType = this.user.Membership_Type
|
|
||||||
let res = await this.$request.$webGet("EShangApiMain/APPManage/GetWeChatAppletMenuList",{
|
|
||||||
ModuleStatus: this.membershipType === 9999 ? '1,2' : '1',
|
|
||||||
AppletMenuStatus: this.membershipType === 9999 ? '1,2' : '1'
|
|
||||||
})
|
|
||||||
this.modelMenu = res.Result_Data.List
|
|
||||||
}
|
|
||||||
},
|
|
||||||
onReady() {
|
|
||||||
},
|
|
||||||
onShow() {
|
|
||||||
},
|
|
||||||
onPullDownRefresh() {
|
|
||||||
let _this = this
|
|
||||||
this.updateUser()
|
|
||||||
this.loadMenuSetting()
|
|
||||||
setTimeout(function() {
|
|
||||||
uni.stopPullDownRefresh()
|
|
||||||
}, 1000)
|
|
||||||
},
|
|
||||||
onTabItemTap(e) {
|
|
||||||
this.$util.addUserBehaviorNew({
|
|
||||||
outtoRoute: '/pages/index/index',
|
|
||||||
intoRoute: '/pages/userCenter/userCenter'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.line-block {
|
.line-block {
|
||||||
border-top: 13rpx solid #F5F5F5;
|
border-top: 13rpx solid #f5f5f5;
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
.uni-flex {
|
|
||||||
align-items: center;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
.content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.uni-flex {
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -1,23 +1,37 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view>
|
<view>
|
||||||
<image src="https://eshangtech.com/ShopICO/yxcl-register-pht.png" mode="aspectFit"></image>
|
<image
|
||||||
|
src="https://eshangtech.com/ShopICO/yxcl-register-pht.png"
|
||||||
|
mode="aspectFit"
|
||||||
|
></image>
|
||||||
<view v-if="showBtn">
|
<view v-if="showBtn">
|
||||||
<view class="desc" v-if="!user.WeChat_UserId">
|
<view class="desc" v-if="!user.WeChat_UserId">
|
||||||
<!-- <view class="desc">申请获取你的公开信息(昵称、头像)</view> -->
|
<!-- <view class="desc">申请获取你的公开信息(昵称、头像)</view> -->
|
||||||
<!-- <button type="primary" class="btn" open-type="getUserInfo" @getuserinfo="bindGetUserInfo">微信授权</button>-->
|
<!-- <button type="primary" class="btn" open-type="getUserInfo" @getuserinfo="bindGetUserInfo">微信授权</button>-->
|
||||||
<button type="primary" class="btn" open-type="getUserInfo" @getuserinfo="bindGetUserInfo">手机号授权</button>
|
<button
|
||||||
|
type="primary"
|
||||||
|
class="btn"
|
||||||
|
open-type="getUserInfo"
|
||||||
|
@getuserinfo="bindGetUserInfo"
|
||||||
|
>
|
||||||
|
手机号授权
|
||||||
|
</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="desc" v-else>
|
<view class="desc" v-else>
|
||||||
<button type="primary" class="btn" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">快速登录账号</button>
|
<button
|
||||||
|
type="primary"
|
||||||
|
class="btn"
|
||||||
|
open-type="getPhoneNumber"
|
||||||
|
@getphonenumber="getPhoneNumber"
|
||||||
|
>
|
||||||
|
快速登录账号
|
||||||
|
</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="login-tip-text">
|
<view class="login-tip-text">
|
||||||
该小程序仅供企业内部人员登录使用,<br/>您的手机号是核实身份的唯一凭证。
|
该小程序仅供企业内部人员登录使用,<br />您的手机号是核实身份的唯一凭证。
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="privacyMeng" v-if="showPrivacy"></view>
|
<view class="privacyMeng" v-if="showPrivacy"></view>
|
||||||
@ -25,76 +39,87 @@
|
|||||||
<view class="privacyContent">
|
<view class="privacyContent">
|
||||||
<p class="contentTitle">用户隐私保护提示</p>
|
<p class="contentTitle">用户隐私保护提示</p>
|
||||||
<view class="contentWord">
|
<view class="contentWord">
|
||||||
感谢您使用本产品,您使用本产品前应当仔细阅读并同意<text class="tips" @click="handleOpenPrivacyContract">《小程序隐私保护指引》</text>
|
感谢您使用本产品,您使用本产品前应当仔细阅读并同意<text
|
||||||
|
class="tips"
|
||||||
|
@click="handleOpenPrivacyContract"
|
||||||
|
>《小程序隐私保护指引》</text
|
||||||
|
>
|
||||||
当您点击同意并开始使用产品服务时,即表示您已理解并同意该条款内容,该条款将对您产生法律约束。如您拒绝,将无法更好的体验产品。
|
当您点击同意并开始使用产品服务时,即表示您已理解并同意该条款内容,该条款将对您产生法律约束。如您拒绝,将无法更好的体验产品。
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btnList">
|
<view class="btnList">
|
||||||
<button class="btns noAgree" @click="handleRefuse">拒绝</button>
|
<button class="btns noAgree" @click="handleRefuse">拒绝</button>
|
||||||
<button class="btns agree" id="agree-btn3" open-type="agreePrivacyAuthorization" @agreeprivacyauthorization="handleAgreePrivacyAuthorization">同意</button>
|
<button
|
||||||
|
class="btns agree"
|
||||||
|
id="agree-btn3"
|
||||||
|
open-type="agreePrivacyAuthorization"
|
||||||
|
@agreeprivacyauthorization="handleAgreePrivacyAuthorization"
|
||||||
|
>
|
||||||
|
同意
|
||||||
|
</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapActions, mapGetters,mapMutations } from 'vuex'
|
import { mapActions, mapGetters, mapMutations } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
shouldNavback: false,
|
shouldNavback: false,
|
||||||
showPrivacy:false,// 隐私弹框的东西
|
showPrivacy: false, // 隐私弹框的东西
|
||||||
showBtn:false,// 隐私权限有了之后 就会出来这俩按钮
|
showBtn: false, // 隐私权限有了之后 就会出来这俩按钮
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
computed:{
|
computed: {
|
||||||
...mapGetters({
|
...mapGetters({
|
||||||
'user':'getUser',
|
user: "getUser",
|
||||||
})
|
}),
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
let _this = this
|
let _this = this;
|
||||||
wx.getPrivacySetting({
|
wx.getPrivacySetting({
|
||||||
success: res=>{
|
success: (res) => {
|
||||||
console.log('res123123',res)
|
console.log("res123123", res);
|
||||||
if (res.needAuthorization){
|
if (res.needAuthorization) {
|
||||||
_this.showPrivacy = true
|
_this.showPrivacy = true;
|
||||||
}else{
|
} else {
|
||||||
_this.showBtn = true
|
_this.showBtn = true;
|
||||||
// if (this.user.WeChat_MiniProToken) {
|
// if (this.user.WeChat_MiniProToken) {
|
||||||
// this.memberLogin()
|
// this.memberLogin()
|
||||||
// } else {
|
// } else {
|
||||||
// this.getLoginCode()
|
// this.getLoginCode()
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
})
|
});
|
||||||
if(option.source=='detail'){
|
if (option.source == "detail") {
|
||||||
this.shouldNavback = true
|
this.shouldNavback = true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['updateUser']),
|
...mapActions(["updateUser"]),
|
||||||
...mapMutations(['setUser']),
|
...mapMutations(["setUser"]),
|
||||||
// 打开隐私协议页面
|
// 打开隐私协议页面
|
||||||
handleOpenPrivacyContract(){
|
handleOpenPrivacyContract() {
|
||||||
wx.openPrivacyContract({
|
wx.openPrivacyContract({
|
||||||
success: (success) => {
|
success: (success) => {
|
||||||
console.log('success',success)
|
console.log("success", success);
|
||||||
}, // 打开成功
|
}, // 打开成功
|
||||||
fail: () => {}, // 打开失败
|
fail: () => {}, // 打开失败
|
||||||
complete: () => {}
|
complete: () => {},
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
// 点击了同意
|
// 点击了同意
|
||||||
handleAgreePrivacyAuthorization(e){
|
handleAgreePrivacyAuthorization(e) {
|
||||||
console.log('e1',e)
|
console.log("e1", e);
|
||||||
this.showPrivacy = false
|
this.showPrivacy = false;
|
||||||
this.showBtn = true
|
this.showBtn = true;
|
||||||
},
|
},
|
||||||
// 点击了拒绝
|
// 点击了拒绝
|
||||||
handleRefuse(){
|
handleRefuse() {
|
||||||
this.showPrivacy = false
|
this.showPrivacy = false;
|
||||||
},
|
},
|
||||||
// // 拿到用户信息
|
// // 拿到用户信息
|
||||||
// handleGetUserInfo(e){
|
// handleGetUserInfo(e){
|
||||||
@ -138,81 +163,86 @@ export default {
|
|||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
getPhoneNumber (e) {
|
getPhoneNumber(e) {
|
||||||
console.log(e)
|
console.log(e);
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title:'正在加载...',
|
title: "正在加载...",
|
||||||
mask:true
|
mask: true,
|
||||||
})
|
});
|
||||||
let _this = this
|
let _this = this;
|
||||||
let _data = e.mp.detail
|
let _data = e.mp.detail;
|
||||||
let user = _this.user
|
let user = _this.user;
|
||||||
let arr = {
|
let arr = {
|
||||||
encryptedData: encodeURIComponent(_data.encryptedData),
|
encryptedData: encodeURIComponent(_data.encryptedData),
|
||||||
iv: encodeURIComponent(_data.iv)
|
iv: encodeURIComponent(_data.iv),
|
||||||
}
|
};
|
||||||
// _this.$request.$webPost('WebAPI_Push/WeChat/BusinessPhone',arr).then(function (rs) {
|
// _this.$request.$webPost('WebAPI_Push/WeChat/BusinessPhone',arr).then(function (rs) {
|
||||||
_this.$request.$get('WeChat_BusinessPhone',arr).then(function (rs) {
|
_this.$request.$get("WeChat_BusinessPhone", arr).then(function (rs) {
|
||||||
console.log('rs',rs)
|
console.log("rs", rs);
|
||||||
uni.hideLoading()
|
uni.hideLoading();
|
||||||
if (rs.Result_Code === 100) {
|
if (rs.Result_Code === 100) {
|
||||||
_this.setUser(rs.Result_Data)
|
_this.setUser(rs.Result_Data);
|
||||||
_this.updateUserFn(rs.Result_Data)
|
_this.updateUserFn(rs.Result_Data);
|
||||||
_this.$util.toNextRoute('switchTab', '/pages/index/index')
|
_this.$util.toNextRoute("switchTab", "/pages/index/index");
|
||||||
// uni.switchTab({url: '/pages/index/index'})
|
// uni.switchTab({url: '/pages/index/index'})
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({title: rs.Result_Desc || '服务器错误,请联系管理员。', icon: 'none'})
|
uni.showToast({
|
||||||
|
title: rs.Result_Desc || "服务器错误,请联系管理员。",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
async updateUserFn(data) {
|
async updateUserFn(data) {
|
||||||
this.updateUser(data)
|
this.updateUser(data);
|
||||||
},
|
},
|
||||||
bindGetUserInfo (e) { // 申请权限
|
bindGetUserInfo(e) {
|
||||||
console.log('e',e)
|
// 申请权限
|
||||||
let _this = this
|
console.log("e", e);
|
||||||
let user = _this.user
|
let _this = this;
|
||||||
|
let user = _this.user;
|
||||||
if (e.mp.detail) {
|
if (e.mp.detail) {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title:'正在加载...',
|
title: "正在加载...",
|
||||||
mask:true
|
mask: true,
|
||||||
})
|
});
|
||||||
const res = e.mp.detail
|
const res = e.mp.detail;
|
||||||
let arr = {
|
let arr = {
|
||||||
encryptedData: encodeURIComponent(res.encryptedData),
|
encryptedData: encodeURIComponent(res.encryptedData),
|
||||||
iv: encodeURIComponent(res.iv),
|
iv: encodeURIComponent(res.iv),
|
||||||
}
|
requestType: "application/x-www-form-urlencoded",
|
||||||
|
};
|
||||||
// _this.$request.$webPost('WebAPI_Push/WeChat/BusinessLicensed',arr).then(function (rs) {
|
// _this.$request.$webPost('WebAPI_Push/WeChat/BusinessLicensed',arr).then(function (rs) {
|
||||||
_this.$request.$get('WeChat_BusinessLicensed',arr).then(function (rs) {
|
_this.$request.$get("WeChat_BusinessLicensed", arr).then(function (rs) {
|
||||||
uni.hideLoading()
|
uni.hideLoading();
|
||||||
if(rs.Result_Code==100){
|
console.log("rs", rs);
|
||||||
let newUser = rs.Result_Data
|
|
||||||
newUser.WeChat_MiniProToken = _this.user.WeChat_MiniProToken
|
|
||||||
_this.setUser(newUser)
|
|
||||||
if(newUser.Membership_Phone) {
|
|
||||||
_this.updateUser(newUser)
|
|
||||||
_this.$util.toNextRoute('switchTab', '/pages/index/index')
|
|
||||||
// uni.reLaunch({url: '/pages/index/index'})
|
|
||||||
}else{
|
|
||||||
|
|
||||||
|
if (rs.Result_Code == 100) {
|
||||||
|
let newUser = rs.Result_Data;
|
||||||
|
newUser.WeChat_MiniProToken = _this.user.WeChat_MiniProToken;
|
||||||
|
_this.setUser(newUser);
|
||||||
|
if (newUser.Membership_Phone) {
|
||||||
|
_this.updateUser(newUser);
|
||||||
|
_this.$util.toNextRoute("switchTab", "/pages/index/index");
|
||||||
|
// uni.reLaunch({url: '/pages/index/index'})
|
||||||
|
} else {
|
||||||
}
|
}
|
||||||
_this.$forceUpdate()
|
_this.$forceUpdate();
|
||||||
}else{
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: rs.ResultDesc,
|
title: rs.ResultDesc,
|
||||||
icon: 'none',
|
icon: "none",
|
||||||
duration:2000
|
duration: 2000,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
this.$util.addUserBehaviorNew()
|
this.$util.addUserBehaviorNew();
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@ -244,18 +274,17 @@ image {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #888;
|
color: #888;
|
||||||
|
|
||||||
}
|
}
|
||||||
.privacyMeng{
|
.privacyMeng {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background: rgba(0,0,0,0.3);
|
background: rgba(0, 0, 0, 0.3);
|
||||||
z-index: 999998;
|
z-index: 999998;
|
||||||
}
|
}
|
||||||
.privacy{
|
.privacy {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
@ -265,43 +294,43 @@ image {
|
|||||||
border-top-right-radius: 24px;
|
border-top-right-radius: 24px;
|
||||||
border-top-left-radius: 24px;
|
border-top-left-radius: 24px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
.privacyContent{
|
.privacyContent {
|
||||||
.contentTitle{
|
.contentTitle {
|
||||||
font-size: 48rpx;
|
font-size: 48rpx;
|
||||||
font-family: Source Han Sans CN-Bold, Source Han Sans CN;
|
font-family: Source Han Sans CN-Bold, Source Han Sans CN;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
line-height: 56rpx;
|
line-height: 56rpx;
|
||||||
}
|
}
|
||||||
.contentWord{
|
.contentWord {
|
||||||
margin-top: 32rpx;
|
margin-top: 32rpx;
|
||||||
text-indent: 2em;
|
text-indent: 2em;
|
||||||
.tips {
|
.tips {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
font-family: Source Han Sans CN-Normal, Source Han Sans CN;
|
font-family: Source Han Sans CN-Normal, Source Han Sans CN;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #8BC21F;
|
color: #8bc21f;
|
||||||
line-height: 33rpx;
|
line-height: 33rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.btnList{
|
.btnList {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: 48rpx;
|
margin-top: 48rpx;
|
||||||
.btns{
|
.btns {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0 90rpx;
|
padding: 0 90rpx;
|
||||||
border-radius: 15rpx;
|
border-radius: 15rpx;
|
||||||
}
|
}
|
||||||
.noAgree{
|
.noAgree {
|
||||||
background: rgb(242,242,242);
|
background: rgb(242, 242, 242);
|
||||||
color: rgb(26,187,107);
|
color: rgb(26, 187, 107);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
.agree{
|
.agree {
|
||||||
background: rgb(26,187,107);
|
background: rgb(26, 187, 107);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|||||||
458
pages/walkAroundManager/detail.vue
Normal file
458
pages/walkAroundManager/detail.vue
Normal file
@ -0,0 +1,458 @@
|
|||||||
|
<template>
|
||||||
|
<view class="main">
|
||||||
|
<div class="pageHeader">
|
||||||
|
<div class="hederContent">
|
||||||
|
<img :src="user.Membership_Headimage" alt="" />
|
||||||
|
<div>
|
||||||
|
<p>{{ detailObj.userName || "" }}</p>
|
||||||
|
<p class="fs12">巡查人员</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="addressBox">
|
||||||
|
<div class="contentBox">
|
||||||
|
<image
|
||||||
|
src="/static/images/publicity/dingwei.png"
|
||||||
|
mode="aspectFit"
|
||||||
|
class="addressIcon"
|
||||||
|
></image>
|
||||||
|
<div>
|
||||||
|
<p class="xuncha address">{{ detailObj.template.title || "-" }}</p>
|
||||||
|
<div>
|
||||||
|
<span>巡查时间:</span><span>{{ detailObj.createdAt }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="formBox">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span
|
||||||
|
:class="
|
||||||
|
inputfocus
|
||||||
|
? 'circle circleActive circle-first '
|
||||||
|
: 'circle circleActive circle-first'
|
||||||
|
"
|
||||||
|
></span>
|
||||||
|
<div class="examineContent">
|
||||||
|
<div class="titleBox">
|
||||||
|
<i :class="inputfocus ? 'img-zds activezds' : 'img-zds'"></i>
|
||||||
|
<div
|
||||||
|
:class="inputfocus ? 'titleTextActive' : 'titleText'"
|
||||||
|
style="display: flex"
|
||||||
|
>
|
||||||
|
<i style="color: red; margin-right: 5px">*</i>巡查内容
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="inputBox">
|
||||||
|
<textarea
|
||||||
|
auto-height
|
||||||
|
v-model="uploadResult"
|
||||||
|
placeholder="请输入巡查内容"
|
||||||
|
disabled
|
||||||
|
></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tagList" v-for="(tags, i) in tagList" :key="i">
|
||||||
|
<div class="tagName">
|
||||||
|
<span
|
||||||
|
style="display: inline-block; max-width: calc(100% - 10rpx)"
|
||||||
|
>
|
||||||
|
{{ tags.question.title || "" }}
|
||||||
|
</span>
|
||||||
|
<span v-if="tags.isRequired" style="color: red">*</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tagsBox">
|
||||||
|
<div
|
||||||
|
v-for="(tag, s) in tags.choiceResponse"
|
||||||
|
:key="s"
|
||||||
|
class="tagUnit active"
|
||||||
|
>
|
||||||
|
{{ tag }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- <div class="tagsBox">
|
||||||
|
<div
|
||||||
|
v-for="(tag, s) in tags.question.options"
|
||||||
|
:key="s"
|
||||||
|
@tap="selectTag(tag, tags.question)"
|
||||||
|
:class="tag.ischecked ? 'tagUnit active ' : 'tagUnit'"
|
||||||
|
>
|
||||||
|
{{ tag.text }}
|
||||||
|
</div>
|
||||||
|
</div> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span :class="imgfocus ? 'circleActive' : 'circleActive'"></span>
|
||||||
|
<div class="examineContent">
|
||||||
|
<div class="titleBox">
|
||||||
|
<i
|
||||||
|
:class="
|
||||||
|
imgfocus
|
||||||
|
? 'img-upload activeupload'
|
||||||
|
: 'img-upload activeupload'
|
||||||
|
"
|
||||||
|
></i>
|
||||||
|
<div
|
||||||
|
style="display: flex"
|
||||||
|
:class="imgfocus ? 'titleTextActive' : 'titleTextActive'"
|
||||||
|
>
|
||||||
|
<i style="color: red; margin-right: 5px">*</i>请上传现场图片
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="uploadBox">
|
||||||
|
<div
|
||||||
|
class="uploadList"
|
||||||
|
v-for="(item, index) in imgsList"
|
||||||
|
:key="index"
|
||||||
|
>
|
||||||
|
<image :src="item" @tap="showImg2(index)" mode="aspectFill" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
let nowTime = this.$util.cutDate(new Date(), "hh:mm:ss");
|
||||||
|
return {
|
||||||
|
now_time: nowTime,
|
||||||
|
inputfocus: true, // 是否聚焦
|
||||||
|
uploadResult: "", // 巡查内容
|
||||||
|
tagList: [], // 当前显示的巡查内容
|
||||||
|
imgfocus: false, // 是否聚焦图片
|
||||||
|
radiofocus: false, // 类型的聚焦
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
name: "情况正常",
|
||||||
|
value: "0",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "急需处理",
|
||||||
|
value: "2",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
value: "0",
|
||||||
|
current: 0,
|
||||||
|
selectAnwersList: [], // 选择的答案列表
|
||||||
|
selectAnwersObj: {}, // 已经选择答案的实际对象格式 问题的id: [选项1,选项2]
|
||||||
|
detailObj: {}, //点位详情
|
||||||
|
imgsList: [],
|
||||||
|
submit: false, // 是否提交成功了
|
||||||
|
requiredList: [], // 必填项的数组
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters({
|
||||||
|
user: "getUser",
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
onLoad(query) {
|
||||||
|
console.log("query", query);
|
||||||
|
this.handleGetDetail(query.id);
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async handleGetDetail(id) {
|
||||||
|
const data = await this.$request.$webNodeGet(
|
||||||
|
`questionnaire-responses/${id}`
|
||||||
|
);
|
||||||
|
let obj = data.data;
|
||||||
|
console.log("obj", obj);
|
||||||
|
this.detailObj = obj;
|
||||||
|
this.tagList = obj.questionResponses;
|
||||||
|
console.log("this.tagList", this.tagList);
|
||||||
|
if (obj.extend) {
|
||||||
|
let extend = JSON.parse(obj.extend);
|
||||||
|
this.uploadResult = extend.uploadResult;
|
||||||
|
this.imgsList = extend.imgsList;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.main {
|
||||||
|
width: 100%;
|
||||||
|
// height: 100vh;
|
||||||
|
background-color: #fff;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-bottom: env(safe-area-inset-bottom); /* 兼容 iOS 11.2+ */
|
||||||
|
padding-bottom: constant(safe-area-inset-bottom);
|
||||||
|
.pageHeader {
|
||||||
|
height: 120rpx;
|
||||||
|
width: 100%;
|
||||||
|
background-color: rgb(246, 246, 246);
|
||||||
|
box-shadow: rgb(214, 207, 207) 4rpx 0px 20rpx;
|
||||||
|
background: url("../../static/images/mbwa/bj_logo.png") no-repeat bottom
|
||||||
|
right;
|
||||||
|
background-size: 34%;
|
||||||
|
padding-left: 30rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
.hederContent {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
img {
|
||||||
|
width: 100rpx;
|
||||||
|
height: 100rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.addressBox {
|
||||||
|
color: #727272;
|
||||||
|
padding: 30rpx;
|
||||||
|
.contentBox {
|
||||||
|
display: flex;
|
||||||
|
.addressIcon {
|
||||||
|
display: inline-block;
|
||||||
|
width: 49rpx;
|
||||||
|
height: 48rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
margin-right: 6rpx;
|
||||||
|
}
|
||||||
|
.xuncha {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #1b1c20;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.formBox {
|
||||||
|
position: relative;
|
||||||
|
margin-left: 24rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
ul {
|
||||||
|
li {
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
margin-top: 16rpx;
|
||||||
|
|
||||||
|
.circle {
|
||||||
|
background-color: #b2b2b2;
|
||||||
|
height: 16rpx;
|
||||||
|
width: 16rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
position: absolute;
|
||||||
|
top: 16rpx;
|
||||||
|
left: 1rpx;
|
||||||
|
}
|
||||||
|
.circle-first {
|
||||||
|
top: 14rpx;
|
||||||
|
}
|
||||||
|
.circle-last {
|
||||||
|
top: 46rpx;
|
||||||
|
}
|
||||||
|
.circleActive {
|
||||||
|
height: 16rpx;
|
||||||
|
width: 16rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
position: absolute;
|
||||||
|
left: 1rpx;
|
||||||
|
top: 18rpx;
|
||||||
|
background-color: #409eff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.examineContent {
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-left: 40rpx;
|
||||||
|
.titleBox {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.img-zds {
|
||||||
|
display: inline-block;
|
||||||
|
width: 32rpx;
|
||||||
|
height: 32rpx;
|
||||||
|
background: url("../../static/images/mbwa/content_img_gray.png")
|
||||||
|
no-repeat center;
|
||||||
|
background-size: contain;
|
||||||
|
margin-right: 6rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-upload {
|
||||||
|
display: inline-block;
|
||||||
|
width: 32rpx;
|
||||||
|
height: 32rpx;
|
||||||
|
background: url("../../static/images/mbwa/pic_img_gray.png")
|
||||||
|
no-repeat center;
|
||||||
|
background-size: contain;
|
||||||
|
margin-right: 6rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activezds {
|
||||||
|
background-image: url("../../static/images/mbwa/zdsgl_sm_nr.png");
|
||||||
|
}
|
||||||
|
|
||||||
|
.activeupload {
|
||||||
|
background-image: url("../../static/images/mbwa/zdsgl_sm_pic.png");
|
||||||
|
}
|
||||||
|
|
||||||
|
.titleText {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #7a7a7a;
|
||||||
|
}
|
||||||
|
.titleTextActive {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #409eff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.inputBox {
|
||||||
|
color: #939393;
|
||||||
|
font-size: 24rpx;
|
||||||
|
padding-bottom: 40rpx;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
textarea {
|
||||||
|
min-height: 50rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
line-height: 1.8;
|
||||||
|
border-bottom: 1rpx solid #eee;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
color: #727272;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tagList {
|
||||||
|
display: flex;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #606266;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
.tagName {
|
||||||
|
width: 200rpx;
|
||||||
|
margin-right: 16rpx;
|
||||||
|
font-size: 22rpx;
|
||||||
|
line-height: 2.9;
|
||||||
|
}
|
||||||
|
.tagsBox {
|
||||||
|
width: calc(100% - 200rpx);
|
||||||
|
// width: 546rpx;
|
||||||
|
padding: 0 24rpx 0 12rpx;
|
||||||
|
}
|
||||||
|
.tagUnit {
|
||||||
|
padding: 4rpx 16rpx;
|
||||||
|
background-color: #f4f4f4;
|
||||||
|
color: #606266;
|
||||||
|
border-radius: 24rpx;
|
||||||
|
margin: 8rpx;
|
||||||
|
font-size: 22rpx;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
color: #ed7043;
|
||||||
|
background-color: #fdf1ec;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.uploadBox {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: flex-start;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 20rpx 0;
|
||||||
|
/* padding-left: 54rpx; */
|
||||||
|
min-height: 160rpx;
|
||||||
|
.uploadList {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row nowrap;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #f1f1f1;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 160rpx;
|
||||||
|
height: 160rpx;
|
||||||
|
border-radius: 6rpx;
|
||||||
|
margin-top: 16rpx;
|
||||||
|
}
|
||||||
|
.uploadList:nth-child(3n-1) {
|
||||||
|
margin-left: 16rpx;
|
||||||
|
margin-right: 16rpx;
|
||||||
|
}
|
||||||
|
.uploadList image {
|
||||||
|
width: 160rpx;
|
||||||
|
height: 160rpx;
|
||||||
|
border-radius: 6rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.uploadAdd {
|
||||||
|
width: 26%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
.upload-file-add-container {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column nowrap;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
border: 1rpx dashed #c6c6c6;
|
||||||
|
height: 160rpx;
|
||||||
|
width: 160rpx;
|
||||||
|
margin-top: 15rpx;
|
||||||
|
border-radius: 6rpx;
|
||||||
|
margin-left: 12rpx;
|
||||||
|
.walk-manage-plus {
|
||||||
|
line-height: 60rpx;
|
||||||
|
width: 62rpx;
|
||||||
|
height: 62rpx;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-color: #409eff;
|
||||||
|
color: #ffffff;
|
||||||
|
font-size: 48rpx;
|
||||||
|
box-shadow: 0 2rpx 6rpx 0 #eee;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.uni-list-cell {
|
||||||
|
justify-content: unset;
|
||||||
|
margin-top: 28rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.uni-list-cell:after {
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.active .img-zds {
|
||||||
|
background-image: url("../../static/images/mbwa/zdsgl_sm_nr.png");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 80%;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: 50rpx;
|
||||||
|
background-color: #409eff;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 28rpx;
|
||||||
|
line-height: 2.8;
|
||||||
|
margin-top: 96rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
857
pages/walkAroundManager/index.vue
Normal file
857
pages/walkAroundManager/index.vue
Normal file
@ -0,0 +1,857 @@
|
|||||||
|
<template>
|
||||||
|
<view class="main">
|
||||||
|
<div class="pageHeader">
|
||||||
|
<div class="hederContent">
|
||||||
|
<img :src="user.Membership_Headimage" alt="" />
|
||||||
|
<div>
|
||||||
|
<p>{{ user.Membership_Name || "" }}</p>
|
||||||
|
<p class="fs12">巡查人员</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="addressBox">
|
||||||
|
<div class="contentBox">
|
||||||
|
<image
|
||||||
|
src="/static/images/publicity/dingwei.png"
|
||||||
|
mode="aspectFit"
|
||||||
|
class="addressIcon"
|
||||||
|
></image>
|
||||||
|
<div>
|
||||||
|
<p class="xuncha address">{{ detailObj.title || "-" }}</p>
|
||||||
|
<div>
|
||||||
|
<span>巡查时间:</span><span>{{ now_time }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="formBox">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span
|
||||||
|
:class="
|
||||||
|
inputfocus
|
||||||
|
? 'circle circleActive circle-first '
|
||||||
|
: 'circle circle-first'
|
||||||
|
"
|
||||||
|
></span>
|
||||||
|
<div class="examineContent">
|
||||||
|
<div class="titleBox">
|
||||||
|
<i :class="inputfocus ? 'img-zds activezds' : 'img-zds'"></i>
|
||||||
|
<div
|
||||||
|
:class="inputfocus ? 'titleTextActive' : 'titleText'"
|
||||||
|
style="display: flex"
|
||||||
|
>
|
||||||
|
<i style="color: red; margin-right: 5px">*</i>巡查内容
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="inputBox">
|
||||||
|
<textarea
|
||||||
|
auto-height
|
||||||
|
v-model="uploadResult"
|
||||||
|
placeholder="请输入巡查内容"
|
||||||
|
focus="true"
|
||||||
|
@focus="inputfocus = true"
|
||||||
|
@blur="inputfocus = false"
|
||||||
|
></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tagList" v-for="(tags, i) in tagList" :key="i">
|
||||||
|
<div class="tagName">
|
||||||
|
<span
|
||||||
|
style="display: inline-block; max-width: calc(100% - 10rpx)"
|
||||||
|
>
|
||||||
|
{{ tags.question.title || "" }}
|
||||||
|
</span>
|
||||||
|
<span v-if="tags.isRequired" style="color: red">*</span>
|
||||||
|
</div>
|
||||||
|
<div class="tagsBox">
|
||||||
|
<div
|
||||||
|
v-for="(tag, s) in tags.question.options"
|
||||||
|
:key="s"
|
||||||
|
@tap="selectTag(tag, tags.question)"
|
||||||
|
:class="tag.ischecked ? 'tagUnit active ' : 'tagUnit'"
|
||||||
|
>
|
||||||
|
{{ tag.text }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span :class="imgfocus ? 'circleActive' : 'circle'"></span>
|
||||||
|
<div class="examineContent">
|
||||||
|
<div class="titleBox">
|
||||||
|
<i
|
||||||
|
:class="imgfocus ? 'img-upload activeupload' : 'img-upload'"
|
||||||
|
></i>
|
||||||
|
<div
|
||||||
|
style="display: flex"
|
||||||
|
:class="imgfocus ? 'titleTextActive' : 'titleText'"
|
||||||
|
>
|
||||||
|
<i style="color: red; margin-right: 5px">*</i>请上传现场图片
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="uploadBox">
|
||||||
|
<div
|
||||||
|
class="uploadList"
|
||||||
|
v-for="(item, index) in imgsList"
|
||||||
|
:key="index"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="upload-file-remove"
|
||||||
|
@click.stop="deleteImgFunc(item, index)"
|
||||||
|
>×</span
|
||||||
|
>
|
||||||
|
<image :src="item" @tap="showImg2(index)" mode="aspectFill" />
|
||||||
|
</div>
|
||||||
|
<div class="uploadAdd" @click="submitImg">
|
||||||
|
<div class="upload-file-add-container">
|
||||||
|
<span class="walk-manage-plus">+</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<!-- <li>
|
||||||
|
<span
|
||||||
|
:class="
|
||||||
|
radiofocus
|
||||||
|
? 'circle circleActive circle-last'
|
||||||
|
: 'circle circle-last'
|
||||||
|
"
|
||||||
|
></span>
|
||||||
|
<div class="examineContent">
|
||||||
|
<radio-group
|
||||||
|
@change="radioChange"
|
||||||
|
style="display: flex"
|
||||||
|
@click="radioFocus"
|
||||||
|
@blur="radiofocus = false"
|
||||||
|
>
|
||||||
|
<label
|
||||||
|
class="uni-list-cell"
|
||||||
|
v-for="(item, index) in options"
|
||||||
|
:key="item.value"
|
||||||
|
>
|
||||||
|
<view>
|
||||||
|
<radio
|
||||||
|
:value="item.value"
|
||||||
|
color="#409eff"
|
||||||
|
:checked="index === current"
|
||||||
|
style="transform: scale(0.8)"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
<view>{{ item.name }}</view>
|
||||||
|
</label>
|
||||||
|
</radio-group>
|
||||||
|
</div>
|
||||||
|
</li> -->
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<button v-if="!submit" class="btn" @click="submitUpload">提交</button>
|
||||||
|
</div>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
let nowTime = this.$util.cutDate(new Date(), "hh:mm:ss");
|
||||||
|
return {
|
||||||
|
now_time: nowTime,
|
||||||
|
inputfocus: true, // 是否聚焦
|
||||||
|
uploadResult: "", // 巡查内容
|
||||||
|
tagList: [], // 当前显示的巡查内容
|
||||||
|
imgfocus: false, // 是否聚焦图片
|
||||||
|
radiofocus: false, // 类型的聚焦
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
name: "情况正常",
|
||||||
|
value: "0",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "急需处理",
|
||||||
|
value: "2",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
value: "0",
|
||||||
|
current: 0,
|
||||||
|
selectAnwersList: [], // 选择的答案列表
|
||||||
|
selectAnwersObj: {}, // 已经选择答案的实际对象格式 问题的id: [选项1,选项2]
|
||||||
|
detailObj: {}, //点位详情
|
||||||
|
imgsList: [],
|
||||||
|
submit: false, // 是否提交成功了
|
||||||
|
requiredList: [], // 必填项的数组
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters({
|
||||||
|
user: "getUser",
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
onLoad(query) {
|
||||||
|
this.handleGetModalData(query.id);
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 删除图片
|
||||||
|
deleteImgFunc(item, index) {
|
||||||
|
this.imgsList.splice(index, 1);
|
||||||
|
},
|
||||||
|
// 提交表单内容
|
||||||
|
async submitUpload() {
|
||||||
|
console.log("user", this.user);
|
||||||
|
console.log("this.detailObj", this.detailObj);
|
||||||
|
|
||||||
|
if (!this.uploadResult) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "请输入巡查内容!",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
console.log("selectAnwersList", this.selectAnwersList);
|
||||||
|
console.log("selectAnwersObj", this.selectAnwersObj);
|
||||||
|
console.log("requiredList", this.requiredList);
|
||||||
|
|
||||||
|
if (this.selectAnwersList && this.selectAnwersList.length > 0) {
|
||||||
|
let isAllRequired = true;
|
||||||
|
if (this.requiredList && this.requiredList.length > 0) {
|
||||||
|
this.requiredList.forEach((item) => {
|
||||||
|
if (
|
||||||
|
this.selectAnwersObj[item] &&
|
||||||
|
this.selectAnwersObj[item][0].ischecked
|
||||||
|
) {
|
||||||
|
} else {
|
||||||
|
isAllRequired = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
console.log("isAllRequired", isAllRequired);
|
||||||
|
|
||||||
|
if (!isAllRequired) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "考核结果未填写完全!",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// if (this.selectAnwersList.length !== this.tagList.length) {
|
||||||
|
// uni.showToast({
|
||||||
|
// title: "考核结果未填写完全!",
|
||||||
|
// icon: "none",
|
||||||
|
// });
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: "请选择考核结果!",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!(this.imgsList && this.imgsList.length > 0)) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "请上传现场照片!",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let extendObj = {
|
||||||
|
uploadResult: this.uploadResult,
|
||||||
|
imgsList: this.imgsList,
|
||||||
|
};
|
||||||
|
|
||||||
|
const req = {
|
||||||
|
templateId: this.detailObj.id,
|
||||||
|
userId: this.user.UserId,
|
||||||
|
userName: this.user.UserName,
|
||||||
|
extend: extendObj ? JSON.stringify(extendObj) : "",
|
||||||
|
completed: true,
|
||||||
|
placeId: 0,
|
||||||
|
placeName: this.detailObj.title,
|
||||||
|
provinceId: this.user.ProvinceCode,
|
||||||
|
provinceName: "",
|
||||||
|
serverPartId: this.detailObj.serverPartId,
|
||||||
|
serverPartName: this.detailObj.serverPartName,
|
||||||
|
questionResponses: this.selectAnwersList,
|
||||||
|
};
|
||||||
|
const data = await this.$request.$webNodePOST(
|
||||||
|
`questionnaire-responses`,
|
||||||
|
req
|
||||||
|
);
|
||||||
|
console.log("data", data);
|
||||||
|
if (data.code === 200) {
|
||||||
|
this.submit = true;
|
||||||
|
uni.showToast({
|
||||||
|
title: data.message,
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
this.$util.toNextRoute(
|
||||||
|
"redirectTo",
|
||||||
|
`/pages/walkAroundManager/statusPage?id=${data.data.id}`
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: data.message,
|
||||||
|
icon: "error",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 选中的考核内容
|
||||||
|
selectTag(item, detailItem) {
|
||||||
|
// 判断当前里面有没有自己选中的答案
|
||||||
|
let have = false;
|
||||||
|
if (this.selectAnwersList && this.selectAnwersList.length > 0) {
|
||||||
|
let haveList = this.selectAnwersList.filter(
|
||||||
|
(item) => item.questionId === detailItem.id
|
||||||
|
);
|
||||||
|
|
||||||
|
if (haveList && haveList.length > 0) {
|
||||||
|
have = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 当have为true的时候 这个问题已经作答过了
|
||||||
|
if (have) {
|
||||||
|
// 判断这个问题 是不是多选的
|
||||||
|
let [type, questionType] = detailItem.type.split("_");
|
||||||
|
// 单选
|
||||||
|
if (type === "radio") {
|
||||||
|
// 那么要去除它之前的答案
|
||||||
|
if (detailItem.options && detailItem.options.length > 0) {
|
||||||
|
detailItem.options.forEach((itemOption) => {
|
||||||
|
if (itemOption.text === item.text) {
|
||||||
|
itemOption.ischecked = true;
|
||||||
|
} else {
|
||||||
|
itemOption.ischecked = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// 这一次选的答案
|
||||||
|
let res = {
|
||||||
|
questionId: detailItem.id,
|
||||||
|
textResponse: "",
|
||||||
|
choiceResponse: [item.text],
|
||||||
|
imageResponse: "",
|
||||||
|
score: item.mark ? item.mark : 0,
|
||||||
|
};
|
||||||
|
this.selectAnwersObj[detailItem.id] = [item];
|
||||||
|
|
||||||
|
let newList = [];
|
||||||
|
if (this.selectAnwersList && this.selectAnwersList.length > 0) {
|
||||||
|
this.selectAnwersList.forEach((listItem) => {
|
||||||
|
if (listItem.questionId === detailItem.id) {
|
||||||
|
newList.push(res);
|
||||||
|
} else {
|
||||||
|
newList.push(listItem);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.selectAnwersList = newList;
|
||||||
|
} else {
|
||||||
|
// 判断点击的这个是不是已经选中了
|
||||||
|
if (item.ischecked) {
|
||||||
|
// 已经选中的话 再次点击应该去除
|
||||||
|
let old = JSON.parse(
|
||||||
|
JSON.stringify(this.selectAnwersObj[detailItem.id])
|
||||||
|
);
|
||||||
|
let newList = [];
|
||||||
|
if (old && old.length > 0) {
|
||||||
|
old.forEach((olditem) => {
|
||||||
|
if (olditem.text === item.text) {
|
||||||
|
} else {
|
||||||
|
newList.push(olditem);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.selectAnwersObj[detailItem.id] = newList;
|
||||||
|
|
||||||
|
let newselectAnwersList = [];
|
||||||
|
if (this.selectAnwersList && this.selectAnwersList.length > 0) {
|
||||||
|
this.selectAnwersList.forEach((listItem) => {
|
||||||
|
if (listItem.questionId === detailItem.id) {
|
||||||
|
let old = JSON.parse(JSON.stringify(listItem.choiceResponse));
|
||||||
|
let newList = [];
|
||||||
|
if (old && old.length > 0) {
|
||||||
|
old.forEach((olditem) => {
|
||||||
|
if (olditem === item.text) {
|
||||||
|
} else {
|
||||||
|
newList.push(olditem);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
listItem.choiceResponse = newList;
|
||||||
|
if (newList && newList.length > 0) {
|
||||||
|
newselectAnwersList.push(listItem);
|
||||||
|
}
|
||||||
|
// listItem.choiceResponse.push(item.text);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.selectAnwersList = newselectAnwersList;
|
||||||
|
item.ischecked = false;
|
||||||
|
} else {
|
||||||
|
item.ischecked = true;
|
||||||
|
let old = JSON.parse(
|
||||||
|
JSON.stringify(this.selectAnwersObj[detailItem.id])
|
||||||
|
);
|
||||||
|
old.push(item);
|
||||||
|
this.selectAnwersObj[detailItem.id] = old;
|
||||||
|
|
||||||
|
if (this.selectAnwersList && this.selectAnwersList.length > 0) {
|
||||||
|
this.selectAnwersList.forEach((listItem) => {
|
||||||
|
if (listItem.questionId === detailItem.id) {
|
||||||
|
listItem.choiceResponse.push(item.text);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// have为false 说明第一次作答 记录他点击的答案
|
||||||
|
let res = {
|
||||||
|
questionId: detailItem.id,
|
||||||
|
textResponse: "",
|
||||||
|
choiceResponse: [item.text],
|
||||||
|
imageResponse: "",
|
||||||
|
score: item.mark ? item.mark : 0,
|
||||||
|
};
|
||||||
|
this.selectAnwersObj[detailItem.id] = [item];
|
||||||
|
this.selectAnwersList.push(res);
|
||||||
|
item.ischecked = true;
|
||||||
|
}
|
||||||
|
this.$forceUpdate();
|
||||||
|
},
|
||||||
|
// 获取单个的模版数据
|
||||||
|
async handleGetModalData(id) {
|
||||||
|
const data = await this.$request.$webNodeGet(
|
||||||
|
`questionnaire-templates/${id}`
|
||||||
|
);
|
||||||
|
let obj = data.data;
|
||||||
|
console.log("obj", obj);
|
||||||
|
this.detailObj = obj;
|
||||||
|
|
||||||
|
let list = [];
|
||||||
|
if (
|
||||||
|
obj.questionnaireTemplateQuestions &&
|
||||||
|
obj.questionnaireTemplateQuestions.length > 0
|
||||||
|
) {
|
||||||
|
obj.questionnaireTemplateQuestions.forEach((item) => {
|
||||||
|
if (item.isRequired) {
|
||||||
|
list.push(item.questionId);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.requiredList = list;
|
||||||
|
this.tagList = obj.questionnaireTemplateQuestions;
|
||||||
|
},
|
||||||
|
radioFocus() {
|
||||||
|
this.radiofocus = true;
|
||||||
|
this.imgfocus = false;
|
||||||
|
},
|
||||||
|
radioChange(evt) {
|
||||||
|
this.value = evt.target.value;
|
||||||
|
for (let i = 0; i < this.options.length; i++) {
|
||||||
|
if (this.options[i].value === evt.target.value) {
|
||||||
|
this.current = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
submitImg(e) {
|
||||||
|
this.imgfocus = true;
|
||||||
|
let _this = this;
|
||||||
|
uni.chooseImage({
|
||||||
|
count: 9, //默认9
|
||||||
|
sizeType: ["original", "compressed"],
|
||||||
|
sourceType: ["album", "camera"],
|
||||||
|
success: function (rs) {
|
||||||
|
console.log("rs", rs);
|
||||||
|
|
||||||
|
let quality = 100;
|
||||||
|
if (rs.tempFiles[0].size > 1024 * 200) {
|
||||||
|
quality = ((1024 * 200) / rs.tempFiles[0].size) * 100;
|
||||||
|
}
|
||||||
|
if (quality < 100 && rs.tempFiles[0].path.indexOf(".jpg") > -1) {
|
||||||
|
uni.compressImage({
|
||||||
|
src: rs.tempFilePaths[0], // 图片路径
|
||||||
|
quality: quality, // 压缩质量
|
||||||
|
success(res) {
|
||||||
|
console.log("res", res);
|
||||||
|
let data = {};
|
||||||
|
if (res.data) {
|
||||||
|
data = JSON.parse(res.data);
|
||||||
|
}
|
||||||
|
console.log("data", data);
|
||||||
|
uni.showLoading({
|
||||||
|
title: "图片上传中...",
|
||||||
|
});
|
||||||
|
uni.uploadFile({
|
||||||
|
// url: "https://user.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA",
|
||||||
|
url: "https://es.robot-z.cn/oss/upload",
|
||||||
|
filePath: res.tempFilePath,
|
||||||
|
header: {
|
||||||
|
"Content-Type": "multipart/form-data",
|
||||||
|
},
|
||||||
|
formData: {},
|
||||||
|
fileType: "image",
|
||||||
|
name: "file",
|
||||||
|
success(res) {
|
||||||
|
console.log("res", res);
|
||||||
|
let data = {};
|
||||||
|
if (res.data) {
|
||||||
|
data = JSON.parse(res.data);
|
||||||
|
}
|
||||||
|
console.log("data", data);
|
||||||
|
uni.hideLoading();
|
||||||
|
_this.imgsList.push(
|
||||||
|
`https://es.robot-z.cn/${data.data.path}`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
fail(error) {
|
||||||
|
console.log("error", error);
|
||||||
|
_this.noPost = true;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
fail(error) {
|
||||||
|
_this.noPost = true;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
uni.showLoading({
|
||||||
|
title: "图片上传中...",
|
||||||
|
// mask: true
|
||||||
|
});
|
||||||
|
uni.uploadFile({
|
||||||
|
// url: "https://user.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA",
|
||||||
|
url: "https://es.robot-z.cn/oss/upload",
|
||||||
|
filePath: rs.tempFilePaths[0],
|
||||||
|
fileType: "image",
|
||||||
|
header: {
|
||||||
|
"Content-Type": "multipart/form-data",
|
||||||
|
},
|
||||||
|
name: "file",
|
||||||
|
success(res) {
|
||||||
|
console.log("res", res);
|
||||||
|
let data = {};
|
||||||
|
if (res.data) {
|
||||||
|
data = JSON.parse(res.data);
|
||||||
|
}
|
||||||
|
console.log("data", data);
|
||||||
|
uni.hideLoading();
|
||||||
|
_this.imgsList.push(`https://es.robot-z.cn/${data.data.path}`);
|
||||||
|
// path;
|
||||||
|
},
|
||||||
|
fail(error) {
|
||||||
|
console.log("error", error);
|
||||||
|
_this.noPost = true;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// uni.uploadFile({
|
||||||
|
// url: "https://user.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA",
|
||||||
|
// filePath: imageSrc,
|
||||||
|
// fileType: "image",
|
||||||
|
// name: "data",
|
||||||
|
// success: (res) => {
|
||||||
|
// let _data = JSON.parse(res.data);
|
||||||
|
|
||||||
|
// uni.hideLoading();
|
||||||
|
// _this.imgsList.push(imageSrc);
|
||||||
|
// _this.imgData.push(_data.Data.IMAGE_PATH);
|
||||||
|
// },
|
||||||
|
// fail: (err) => {
|
||||||
|
// uni.showModal({
|
||||||
|
// content: err.errMsg,
|
||||||
|
// showCancel: false,
|
||||||
|
// });
|
||||||
|
// },
|
||||||
|
// });
|
||||||
|
},
|
||||||
|
fail: function (err) {},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.main {
|
||||||
|
width: 100%;
|
||||||
|
// height: 100vh;
|
||||||
|
background-color: #fff;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-bottom: env(safe-area-inset-bottom); /* 兼容 iOS 11.2+ */
|
||||||
|
padding-bottom: constant(safe-area-inset-bottom);
|
||||||
|
.pageHeader {
|
||||||
|
height: 120rpx;
|
||||||
|
width: 100%;
|
||||||
|
background-color: rgb(246, 246, 246);
|
||||||
|
box-shadow: rgb(214, 207, 207) 4rpx 0px 20rpx;
|
||||||
|
background: url("../../static/images/mbwa/bj_logo.png") no-repeat bottom
|
||||||
|
right;
|
||||||
|
background-size: 34%;
|
||||||
|
padding-left: 30rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
.hederContent {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
img {
|
||||||
|
width: 100rpx;
|
||||||
|
height: 100rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.addressBox {
|
||||||
|
color: #727272;
|
||||||
|
padding: 30rpx;
|
||||||
|
.contentBox {
|
||||||
|
display: flex;
|
||||||
|
.addressIcon {
|
||||||
|
display: inline-block;
|
||||||
|
width: 49rpx;
|
||||||
|
height: 48rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
margin-right: 6rpx;
|
||||||
|
}
|
||||||
|
.xuncha {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #1b1c20;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.formBox {
|
||||||
|
position: relative;
|
||||||
|
margin-left: 24rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
ul {
|
||||||
|
li {
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
margin-top: 16rpx;
|
||||||
|
|
||||||
|
.circle {
|
||||||
|
background-color: #b2b2b2;
|
||||||
|
height: 16rpx;
|
||||||
|
width: 16rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
position: absolute;
|
||||||
|
top: 16rpx;
|
||||||
|
left: 1rpx;
|
||||||
|
}
|
||||||
|
.circle-first {
|
||||||
|
top: 14rpx;
|
||||||
|
}
|
||||||
|
.circle-last {
|
||||||
|
top: 46rpx;
|
||||||
|
}
|
||||||
|
.circleActive {
|
||||||
|
height: 16rpx;
|
||||||
|
width: 16rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
position: absolute;
|
||||||
|
left: 1rpx;
|
||||||
|
background-color: #409eff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.examineContent {
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-left: 40rpx;
|
||||||
|
.titleBox {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.img-zds {
|
||||||
|
display: inline-block;
|
||||||
|
width: 32rpx;
|
||||||
|
height: 32rpx;
|
||||||
|
background: url("../../static/images/mbwa/content_img_gray.png")
|
||||||
|
no-repeat center;
|
||||||
|
background-size: contain;
|
||||||
|
margin-right: 6rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-upload {
|
||||||
|
display: inline-block;
|
||||||
|
width: 32rpx;
|
||||||
|
height: 32rpx;
|
||||||
|
background: url("../../static/images/mbwa/pic_img_gray.png")
|
||||||
|
no-repeat center;
|
||||||
|
background-size: contain;
|
||||||
|
margin-right: 6rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activezds {
|
||||||
|
background-image: url("../../static/images/mbwa/zdsgl_sm_nr.png");
|
||||||
|
}
|
||||||
|
|
||||||
|
.activeupload {
|
||||||
|
background-image: url("../../static/images/mbwa/zdsgl_sm_pic.png");
|
||||||
|
}
|
||||||
|
|
||||||
|
.titleText {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #7a7a7a;
|
||||||
|
}
|
||||||
|
.titleTextActive {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #409eff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.inputBox {
|
||||||
|
color: #939393;
|
||||||
|
font-size: 24rpx;
|
||||||
|
padding-bottom: 40rpx;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
textarea {
|
||||||
|
min-height: 50rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
line-height: 1.8;
|
||||||
|
border-bottom: 1rpx solid #eee;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
color: #727272;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tagList {
|
||||||
|
display: flex;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #606266;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
.tagName {
|
||||||
|
width: 200rpx;
|
||||||
|
margin-right: 16rpx;
|
||||||
|
font-size: 22rpx;
|
||||||
|
line-height: 2.9;
|
||||||
|
}
|
||||||
|
.tagsBox {
|
||||||
|
width: calc(100% - 200rpx);
|
||||||
|
// width: 546rpx;
|
||||||
|
padding: 0 24rpx 0 12rpx;
|
||||||
|
}
|
||||||
|
.tagUnit {
|
||||||
|
padding: 4rpx 16rpx;
|
||||||
|
background-color: #f4f4f4;
|
||||||
|
color: #606266;
|
||||||
|
border-radius: 24rpx;
|
||||||
|
margin: 8rpx;
|
||||||
|
font-size: 22rpx;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
color: #ed7043;
|
||||||
|
background-color: #fdf1ec;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.uploadBox {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: flex-start;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 20rpx 0;
|
||||||
|
/* padding-left: 54rpx; */
|
||||||
|
min-height: 160rpx;
|
||||||
|
.uploadList {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row nowrap;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #f1f1f1;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 160rpx;
|
||||||
|
height: 160rpx;
|
||||||
|
border-radius: 6rpx;
|
||||||
|
margin-top: 16rpx;
|
||||||
|
}
|
||||||
|
.uploadList:nth-child(3n-1) {
|
||||||
|
margin-left: 16rpx;
|
||||||
|
margin-right: 16rpx;
|
||||||
|
}
|
||||||
|
.uploadList image {
|
||||||
|
width: 160rpx;
|
||||||
|
height: 160rpx;
|
||||||
|
border-radius: 6rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.uploadAdd {
|
||||||
|
width: 26%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
.upload-file-add-container {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column nowrap;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
border: 1rpx dashed #c6c6c6;
|
||||||
|
height: 160rpx;
|
||||||
|
width: 160rpx;
|
||||||
|
margin-top: 15rpx;
|
||||||
|
border-radius: 6rpx;
|
||||||
|
margin-left: 12rpx;
|
||||||
|
.walk-manage-plus {
|
||||||
|
line-height: 60rpx;
|
||||||
|
width: 62rpx;
|
||||||
|
height: 62rpx;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-color: #409eff;
|
||||||
|
color: #ffffff;
|
||||||
|
font-size: 48rpx;
|
||||||
|
box-shadow: 0 2rpx 6rpx 0 #eee;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.uni-list-cell {
|
||||||
|
justify-content: unset;
|
||||||
|
margin-top: 28rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.uni-list-cell:after {
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.active .img-zds {
|
||||||
|
background-image: url("../../static/images/mbwa/zdsgl_sm_nr.png");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 80%;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: 50rpx;
|
||||||
|
background-color: #409eff;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 28rpx;
|
||||||
|
line-height: 2.8;
|
||||||
|
margin-top: 96rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
85
pages/walkAroundManager/statusPage.vue
Normal file
85
pages/walkAroundManager/statusPage.vue
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
<template>
|
||||||
|
<view class="main">
|
||||||
|
<view class="content">
|
||||||
|
<image class="successImg" src="/static/images/submitSuccess.svg" />
|
||||||
|
<view class="btnBox">
|
||||||
|
<view class="detailBtn" @click="handleGoDetail">查看详情</view>
|
||||||
|
<view class="continue" @click="handleBackHome">继续考核</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
id: "",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad(query) {
|
||||||
|
this.id = query.id;
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 跳转查看详情
|
||||||
|
handleGoDetail() {
|
||||||
|
this.$util.toNextRoute(
|
||||||
|
"redirectTo",
|
||||||
|
`/pages/walkAroundManager/detail?id=${this.id}`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
// 跳转回到首页
|
||||||
|
handleBackHome() {
|
||||||
|
this.$util.toNextRoute("switchTab", "/pages/index/index");
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.main {
|
||||||
|
width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
background: #f6f7f8;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 32rpx;
|
||||||
|
.content {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-top: 150rpx;
|
||||||
|
.successImg {
|
||||||
|
width: 500rpx;
|
||||||
|
height: 500rpx;
|
||||||
|
}
|
||||||
|
.btnBox {
|
||||||
|
.detailBtn {
|
||||||
|
font-family: "PingFangSC";
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #feffff;
|
||||||
|
line-height: 44rpx;
|
||||||
|
text-align: left;
|
||||||
|
font-style: normal;
|
||||||
|
padding: 12rpx 36rpx;
|
||||||
|
border-radius: 48rpx;
|
||||||
|
background: #7d5632;
|
||||||
|
margin-bottom: 24rpx;
|
||||||
|
}
|
||||||
|
.continue {
|
||||||
|
font-family: "PingFangSC";
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #7d5632;
|
||||||
|
line-height: 44rpx;
|
||||||
|
text-align: left;
|
||||||
|
font-style: normal;
|
||||||
|
padding: 8rpx 32rpx;
|
||||||
|
border-radius: 48rpx;
|
||||||
|
border: 4rpx solid #7d5632;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
1
static/images/submitSuccess.svg
Normal file
1
static/images/submitSuccess.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 8.6 KiB |
114
store/store.js
114
store/store.js
@ -8,10 +8,10 @@ Vue.use(Vuex)
|
|||||||
const state = {
|
const state = {
|
||||||
visitChannels: '',
|
visitChannels: '',
|
||||||
userData: {}, // 用户基础信息
|
userData: {}, // 用户基础信息
|
||||||
toDoMsg: {},// 用户首页待办事项
|
toDoMsg: {}, // 用户首页待办事项
|
||||||
isConnect: true ,// 网络是否链接
|
isConnect: true, // 网络是否链接
|
||||||
isLoading: false, // 是否在请求数据
|
isLoading: false, // 是否在请求数据
|
||||||
isChangeMsgCount: false ,// 是否更新待办事项
|
isChangeMsgCount: false, // 是否更新待办事项
|
||||||
shouldReLoadingList: false // 是否需要更新当前列表
|
shouldReLoadingList: false // 是否需要更新当前列表
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -23,16 +23,16 @@ const getters = {
|
|||||||
getMenu(state) {
|
getMenu(state) {
|
||||||
return state.userData.AuthorityInfo
|
return state.userData.AuthorityInfo
|
||||||
},
|
},
|
||||||
getConnect(state){
|
getConnect(state) {
|
||||||
return state.isConnect
|
return state.isConnect
|
||||||
},
|
},
|
||||||
getLoading (state) {
|
getLoading(state) {
|
||||||
return state.isLoading
|
return state.isLoading
|
||||||
},
|
},
|
||||||
isChangeMsgCount (state) {
|
isChangeMsgCount(state) {
|
||||||
return state.isChangeMsgCount
|
return state.isChangeMsgCount
|
||||||
},
|
},
|
||||||
shouldReLoadingList (state) {
|
shouldReLoadingList(state) {
|
||||||
return state.shouldReLoadingList
|
return state.shouldReLoadingList
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -40,33 +40,40 @@ const getters = {
|
|||||||
|
|
||||||
const mutations = {
|
const mutations = {
|
||||||
|
|
||||||
setUser (state, data) {
|
setUser(state, data) {
|
||||||
state.userData = data
|
state.userData = data
|
||||||
},
|
},
|
||||||
setVisitChannels (state, data) {
|
setVisitChannels(state, data) {
|
||||||
state.visitChannels = data
|
state.visitChannels = data
|
||||||
},
|
},
|
||||||
|
|
||||||
shouldReLoadingList (state, data){
|
shouldReLoadingList(state, data) {
|
||||||
state.shouldReLoadingList = data
|
state.shouldReLoadingList = data
|
||||||
},
|
},
|
||||||
isConnect(state,value) {
|
isConnect(state, value) {
|
||||||
|
|
||||||
state.isConnect = value
|
state.isConnect = value
|
||||||
},
|
},
|
||||||
setUserTodoList(state,value){
|
setUserTodoList(state, value) {
|
||||||
state.toDoMsg = value
|
state.toDoMsg = value
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const actions = {
|
const actions = {
|
||||||
getLoginCode({ dispatch, state}, ){
|
getLoginCode({
|
||||||
|
dispatch,
|
||||||
|
state
|
||||||
|
}, ) {
|
||||||
uni.login({ // 登录
|
uni.login({ // 登录
|
||||||
success (res) {
|
success(res) {
|
||||||
dispatch('memberLogin',res.code) // 获取用户数据
|
dispatch('memberLogin', res.code) // 获取用户数据
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getTodoList({ dispatch, state,commit}){ // 获取用户待办事项
|
getTodoList({
|
||||||
|
dispatch,
|
||||||
|
state,
|
||||||
|
commit
|
||||||
|
}) { // 获取用户待办事项
|
||||||
let _user = state.userData
|
let _user = state.userData
|
||||||
request.$get("ToDoList", {
|
request.$get("ToDoList", {
|
||||||
userId: _user.UserId,
|
userId: _user.UserId,
|
||||||
@ -75,34 +82,47 @@ const actions = {
|
|||||||
commit('setUserTodoList', res.Data)
|
commit('setUserTodoList', res.Data)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async memberLogin({ dispatch, state,commit},_code) {
|
async memberLogin({
|
||||||
|
dispatch,
|
||||||
|
state,
|
||||||
|
commit
|
||||||
|
}, _code) {
|
||||||
let _user = state.userData
|
let _user = state.userData
|
||||||
request.$get('WeChat_Login',{
|
request.$get('WeChat_Login', {
|
||||||
// request.$webGet('WebAPI_Push/WeChat/Login',{
|
// request.$webGet('WebAPI_Push/WeChat/Login',{
|
||||||
WeChat_Code: _code || '',
|
WeChat_Code: _code || '',
|
||||||
|
|
||||||
}).then( async data=>{
|
}).then(async data => {
|
||||||
console.log('memberLogin',data)
|
console.log('memberLogin', data)
|
||||||
if (data.Result_Code === 100) {
|
if (data.Result_Code === 100) {
|
||||||
let user = data.Result_Data
|
let user = data.Result_Data
|
||||||
if (user.Membership_Id) {
|
if (user.Membership_Id) {
|
||||||
|
wx.getPrivacySetting({
|
||||||
|
success: async res => {
|
||||||
|
console.log('res123123', res)
|
||||||
|
if (res.needAuthorization) {
|
||||||
|
util.toNextRoute('navigateTo', '/pages/register/register')
|
||||||
|
} else {
|
||||||
|
commit('setUser', user)
|
||||||
|
await dispatch('updateUser', data.Result_Data)
|
||||||
|
// _this.addUserBehavior(1002) // 记录用户行为
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
commit('setUser', user)
|
commit('setUser', user)
|
||||||
await dispatch('updateUser',data.Result_Data)
|
uni.showModal({
|
||||||
// _this.addUserBehavior(1002) // 记录用户行为
|
title: '温馨提示',
|
||||||
}else{
|
|
||||||
commit('setUser', user)
|
|
||||||
uni.showModal({
|
|
||||||
title:'温馨提示',
|
|
||||||
content: '请您授权登录后再操作。',
|
content: '请您授权登录后再操作。',
|
||||||
success(res) {
|
success(res) {
|
||||||
if(res.confirm){
|
if (res.confirm) {
|
||||||
util.toNextRoute('navigateTo', '/pages/register/register')
|
util.toNextRoute('navigateTo', '/pages/register/register')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else if (data.Result_Code === 200) { // session过期
|
} else if (data.Result_Code === 200) { // session过期
|
||||||
dispatch('getLoginCode')
|
dispatch('getLoginCode')
|
||||||
} else {
|
} else {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
}
|
}
|
||||||
@ -110,17 +130,23 @@ const actions = {
|
|||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async updateUser ({dispatch, commit, state},user){
|
async updateUser({
|
||||||
|
dispatch,
|
||||||
|
commit,
|
||||||
|
state
|
||||||
|
}, user) {
|
||||||
|
|
||||||
let _user = user || state.userData
|
let _user = user || state.userData
|
||||||
let _id = _user.Membership_Id
|
let _id = _user.Membership_Id
|
||||||
console.log('_user',_user)
|
console.log('_user', _user)
|
||||||
if(!_id) return
|
if (!_id) return
|
||||||
// console.log(_user)
|
// console.log(_user)
|
||||||
request.$get('WeChat_GetBusinessMemberInfo',{Membership_Id:_id}).then(res=>{
|
request.$get('WeChat_GetBusinessMemberInfo', {
|
||||||
console.log('updateUser',res)
|
Membership_Id: _id
|
||||||
// request.$webGet('WebAPI_Push/Member/GetMemberInfo',{Membership_Id:_id,memberShipId:_id}).then(res=>{
|
}).then(res => {
|
||||||
if(res.Result_Code==100) {
|
console.log('updateUser', res)
|
||||||
|
// request.$webGet('WebAPI_Push/Member/GetMemberInfo',{Membership_Id:_id,memberShipId:_id}).then(res=>{
|
||||||
|
if (res.Result_Code == 100) {
|
||||||
let data = res.Result_Data
|
let data = res.Result_Data
|
||||||
data.WeChat_MiniProToken = _user.WeChat_MiniProToken
|
data.WeChat_MiniProToken = _user.WeChat_MiniProToken
|
||||||
data.WeChat_UserId = _user.WeChat_UserId
|
data.WeChat_UserId = _user.WeChat_UserId
|
||||||
@ -141,9 +167,9 @@ export default new Vuex.Store({
|
|||||||
CreatePersistedState({
|
CreatePersistedState({
|
||||||
storage: {
|
storage: {
|
||||||
getItem: key => uni.getStorageSync(key),
|
getItem: key => uni.getStorageSync(key),
|
||||||
setItem: (key,value) => uni.setStorageSync(key,value),
|
setItem: (key, value) => uni.setStorageSync(key, value),
|
||||||
removeItem: key => uni.removeStorageSync(key)
|
removeItem: key => uni.removeStorageSync(key)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
70
util/api.js
70
util/api.js
@ -19,7 +19,7 @@ export default {
|
|||||||
* +-------------------
|
* +-------------------
|
||||||
* @return {Promise} promise 返回promise供后续操作
|
* @return {Promise} promise 返回promise供后续操作
|
||||||
*/
|
*/
|
||||||
request: function(method, url, data, isWebApi) {
|
request: function (method, url, data, isWebApi) {
|
||||||
var promise = new Promise((resolve, reject) => {
|
var promise = new Promise((resolve, reject) => {
|
||||||
//init
|
//init
|
||||||
Store.state.isLoading = true
|
Store.state.isLoading = true
|
||||||
@ -31,29 +31,29 @@ export default {
|
|||||||
data.WeChat_AppId = 'wxa99ef047735c031e'
|
data.WeChat_AppId = 'wxa99ef047735c031e'
|
||||||
data.WeChat_MiniProToken = Store.state.userData.WeChat_MiniProToken || ''
|
data.WeChat_MiniProToken = Store.state.userData.WeChat_MiniProToken || ''
|
||||||
data.WeChatAppId = 'wxa99ef047735c031e'
|
data.WeChatAppId = 'wxa99ef047735c031e'
|
||||||
data.memberShipId = !data.memberShipId ? (Store.state.userData.Membership_Id || '') :data.memberShipId // ||'3255' 1170386 1125717 //
|
data.memberShipId = !data.memberShipId ? (Store.state.userData.Membership_Id || '') : data.memberShipId // ||'3255' 1170386 1125717 //
|
||||||
// ModuleGuid:"60ee4604-0830-4056-931d-d1f7e111810c,1d46081b-6ff8-44d5-9205-31c72bdb4328",
|
// ModuleGuid:"60ee4604-0830-4056-931d-d1f7e111810c,1d46081b-6ff8-44d5-9205-31c72bdb4328",
|
||||||
let str = ''
|
let str = ''
|
||||||
if (Store.state.userData.AuthorityInfo){
|
if (Store.state.userData.AuthorityInfo) {
|
||||||
if (Store.state.userData.AuthorityInfo['1d46081b-6ff8-44d5-9205-31c72bdb4328']===1){
|
if (Store.state.userData.AuthorityInfo['1d46081b-6ff8-44d5-9205-31c72bdb4328'] === 1) {
|
||||||
str ='1d46081b-6ff8-44d5-9205-31c72bdb4328'
|
str = '1d46081b-6ff8-44d5-9205-31c72bdb4328'
|
||||||
}
|
}
|
||||||
if (Store.state.userData.AuthorityInfo['60ee4604-0830-4056-931d-d1f7e111810c']===1){
|
if (Store.state.userData.AuthorityInfo['60ee4604-0830-4056-931d-d1f7e111810c'] === 1) {
|
||||||
if (str===''){
|
if (str === '') {
|
||||||
str = '60ee4604-0830-4056-931d-d1f7e111810c'
|
str = '60ee4604-0830-4056-931d-d1f7e111810c'
|
||||||
}else{
|
} else {
|
||||||
str +=',60ee4604-0830-4056-931d-d1f7e111810c'
|
str += ',60ee4604-0830-4056-931d-d1f7e111810c'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Store.state.userData.AuthorityInfo['27109d64-63f9-4bb9-ab90-4c2c92296c73']===1){
|
if (Store.state.userData.AuthorityInfo['27109d64-63f9-4bb9-ab90-4c2c92296c73'] === 1) {
|
||||||
if (str===''){
|
if (str === '') {
|
||||||
str = '27109d64-63f9-4bb9-ab90-4c2c92296c73'
|
str = '27109d64-63f9-4bb9-ab90-4c2c92296c73'
|
||||||
}else{
|
} else {
|
||||||
str +=',27109d64-63f9-4bb9-ab90-4c2c92296c73'
|
str += ',27109d64-63f9-4bb9-ab90-4c2c92296c73'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (str===''){
|
if (str === '') {
|
||||||
str = 0
|
str = 0
|
||||||
}
|
}
|
||||||
data.ModuleGuid = str
|
data.ModuleGuid = str
|
||||||
@ -64,14 +64,14 @@ export default {
|
|||||||
}
|
}
|
||||||
let ModuleGuid = ''
|
let ModuleGuid = ''
|
||||||
let obj = Store.state.userData.AuthorityInfo
|
let obj = Store.state.userData.AuthorityInfo
|
||||||
for (let key in obj){
|
for (let key in obj) {
|
||||||
// 经管 财务
|
// 经管 财务
|
||||||
if (key==='f0889950-f98a-40de-a369-613efeed2579' || key==='c021bbca-3c0a-478d-81e7-87e81ef80e05' ){
|
if (key === 'f0889950-f98a-40de-a369-613efeed2579' || key === 'c021bbca-3c0a-478d-81e7-87e81ef80e05') {
|
||||||
if (obj[key]===1){
|
if (obj[key] === 1) {
|
||||||
if (ModuleGuid===''){
|
if (ModuleGuid === '') {
|
||||||
ModuleGuid = key
|
ModuleGuid = key
|
||||||
}else{
|
} else {
|
||||||
ModuleGuid +=`,${key}`
|
ModuleGuid += `,${key}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -79,28 +79,32 @@ export default {
|
|||||||
if (method == 'POST' && !isWebApi) {
|
if (method == 'POST' && !isWebApi) {
|
||||||
requstOptions.header = {
|
requstOptions.header = {
|
||||||
'content-type': 'application/x-www-form-urlencoded;charset=utf-8',
|
'content-type': 'application/x-www-form-urlencoded;charset=utf-8',
|
||||||
'ServerpartCodes':Store.state.userData.UserCityAuthority,
|
'ServerpartCodes': Store.state.userData.UserCityAuthority,
|
||||||
'ProvinceCode': Store.state.userData.ProvinceCode,
|
'ProvinceCode': Store.state.userData.ProvinceCode,
|
||||||
'ModuleGuid':ModuleGuid,
|
'ModuleGuid': ModuleGuid,
|
||||||
'WeChat_AppId' : 'wxa99ef047735c031e',
|
'WeChat_AppId': 'wxa99ef047735c031e',
|
||||||
'memberShipId' : !data.memberShipId ? (Store.state.userData.Membership_Id || '') :data.memberShipId,
|
'memberShipId': !data.memberShipId ? (Store.state.userData.Membership_Id || '') : data.memberShipId,
|
||||||
'SourcePlatform': 'minProgram'
|
'SourcePlatform': 'minProgram'
|
||||||
}
|
}
|
||||||
}else{
|
} else {
|
||||||
requstOptions.header = {
|
requstOptions.header = {
|
||||||
'ServerpartCodes':Store.state.userData.UserCityAuthority,
|
'ServerpartCodes': Store.state.userData.UserCityAuthority,
|
||||||
'ProvinceCode': Store.state.userData.ProvinceCode,
|
'ProvinceCode': Store.state.userData.ProvinceCode,
|
||||||
'ModuleGuid':ModuleGuid,
|
'ModuleGuid': ModuleGuid,
|
||||||
'WeChat_AppId' : 'wxa99ef047735c031e',
|
'WeChat_AppId': 'wxa99ef047735c031e',
|
||||||
'memberShipId' : !data.memberShipId ? (Store.state.userData.Membership_Id || '') :data.memberShipId,
|
'memberShipId': !data.memberShipId ? (Store.state.userData.Membership_Id || '') : data.memberShipId,
|
||||||
'SourcePlatform': 'minProgram'
|
'SourcePlatform': 'minProgram'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
requstOptions.success = (res) => {
|
requstOptions.success = (res) => {
|
||||||
|
console.log('resdadsadsa', res);
|
||||||
|
if (res.data.code === 200) {
|
||||||
|
resolve(res.data);
|
||||||
|
}
|
||||||
//服务器返回数据
|
//服务器返回数据
|
||||||
if (res && (res.statusCode === 200 || res.statusCode === 304 || res.statusCode === 400)) {
|
else if (res && (res.statusCode === 200 || res.statusCode === 304 || res.statusCode === 400)) {
|
||||||
if (res.data && ((res.data.ResultCode != '999' && res.data.ResultCode != undefined) ||
|
if (res.data && ((res.data.ResultCode != '999' && res.data.ResultCode != undefined) ||
|
||||||
(res.data.Result_Code != '999' && res.data.Result_Code != undefined))) {
|
(res.data.Result_Code != '999' && res.data.Result_Code != undefined))) {
|
||||||
resolve(res.data);
|
resolve(res.data);
|
||||||
} else if (typeof res.data == 'object') { // 兼容招标投标模块
|
} else if (typeof res.data == 'object') { // 兼容招标投标模块
|
||||||
resolve(res.data);
|
resolve(res.data);
|
||||||
@ -135,7 +139,7 @@ export default {
|
|||||||
}
|
}
|
||||||
//网络请求
|
//网络请求
|
||||||
uni.request(requstOptions)
|
uni.request(requstOptions)
|
||||||
}).catch(function(reason, request) {
|
}).catch(function (reason, request) {
|
||||||
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: reason,
|
title: reason,
|
||||||
@ -145,4 +149,4 @@ export default {
|
|||||||
return promise;
|
return promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -3,17 +3,18 @@ export default {
|
|||||||
baseURL: 'https://user.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx', // 合作商户请求
|
baseURL: 'https://user.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx', // 合作商户请求
|
||||||
// baseURL: 'http://192.168.11.136:8000/Coop.Merchant/Handler/handler_ajax.ashx', // 合作商户请求
|
// baseURL: 'http://192.168.11.136:8000/Coop.Merchant/Handler/handler_ajax.ashx', // 合作商户请求
|
||||||
// baseURL: 'https://tcm.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx', // 合作商户请求
|
// baseURL: 'https://tcm.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx', // 合作商户请求
|
||||||
|
|
||||||
mpUrl: 'https://mp.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx', // 接口
|
mpUrl: 'https://mp.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx', // 接口
|
||||||
apiurl: 'https://api.eshangtech.com/', // web api正式接口地址
|
apiurl: 'https://api.eshangtech.com/', // web api正式接口地址
|
||||||
// EshangUrl: 'https://eshangtech.com/',
|
// EshangUrl: 'https://eshangtech.com/',
|
||||||
// apiurl: 'https://erysfeipeng.oicp.net/', // web api
|
// apiurl: 'https://erysfeipeng.oicp.net/', // web api
|
||||||
testApiurl: 'http://dev.eshangtech.com:8001/', // web api测试接口地址
|
testApiurl: 'http://dev.eshangtech.com:8001/', // web api测试接口地址
|
||||||
|
|
||||||
|
NodeApiurl: 'https://es.robot-z.cn/', // web api测试接口地址
|
||||||
|
// NodeApiurl: 'http://home.robot-z.cn:7001/',
|
||||||
mobUrl: 'http://192.168.11.125:8000/Coop.Merchant/Handler/handler_ajax.ashx', // 接口
|
mobUrl: 'http://192.168.11.125:8000/Coop.Merchant/Handler/handler_ajax.ashx', // 接口
|
||||||
testURL1: 'http://192.168.10.123:8000', // 测试ip
|
testURL1: 'http://192.168.10.123:8000', // 测试ip
|
||||||
testURL2: 'http://192.168.12.121:8010', // 测试ip
|
testURL2: 'http://192.168.12.121:8010', // 测试ip
|
||||||
testApiName: '/MobileServicePlatform/Handler/handler_ajax.ashx', // 接口
|
testApiName: '/MobileServicePlatform/Handler/handler_ajax.ashx', // 接口
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4,10 +4,10 @@ import Store from '../store/store'
|
|||||||
export default {
|
export default {
|
||||||
|
|
||||||
post: function (data) { // 合作商户请求
|
post: function (data) { // 合作商户请求
|
||||||
return Api.request('POST', ApiPath.baseURL ,data)
|
return Api.request('POST', ApiPath.baseURL, data)
|
||||||
},
|
},
|
||||||
get: function (data) { // 合作商户请求
|
get: function (data) { // 合作商户请求
|
||||||
return Api.request('GET', ApiPath.baseURL ,data)
|
return Api.request('GET', ApiPath.baseURL, data)
|
||||||
},
|
},
|
||||||
// postM: function (control,data) { // 移动业务请求
|
// postM: function (control,data) { // 移动业务请求
|
||||||
// data.action_type = control
|
// data.action_type = control
|
||||||
@ -22,24 +22,33 @@ export default {
|
|||||||
// data.action_type = control
|
// data.action_type = control
|
||||||
// return Api.request('GET', ApiPath.mpUrl ,data)
|
// return Api.request('GET', ApiPath.mpUrl ,data)
|
||||||
// },
|
// },
|
||||||
$get: function (controller,data) { // 合作商户请求
|
$get: function (controller, data) { // 合作商户请求
|
||||||
data.action_type = controller
|
data.action_type = controller
|
||||||
return this.get(data)
|
return this.get(data)
|
||||||
},
|
},
|
||||||
$post: function (controller,data) { // 合作商户请求
|
$post: function (controller, data) { // 合作商户请求
|
||||||
data.action_type = controller
|
data.action_type = controller
|
||||||
return this.post(data)
|
return this.post(data)
|
||||||
},
|
},
|
||||||
$webGet: function (controller,data) { // webapi
|
$webGet: function (controller, data) { // webapi
|
||||||
return Api.request('GET', ApiPath.apiurl +controller ,data||{},true)
|
return Api.request('GET', ApiPath.apiurl + controller, data || {}, true)
|
||||||
},
|
},
|
||||||
$webPost: function (controller,data) { // webapi
|
$webPost: function (controller, data) { // webapi
|
||||||
return Api.request('POST', ApiPath.apiurl +controller ,data||{},true)
|
return Api.request('POST', ApiPath.apiurl + controller, data || {}, true)
|
||||||
},
|
},
|
||||||
$webGetTest: function (controller,data) { // webapi
|
$webGetTest: function (controller, data) { // webapi
|
||||||
return Api.request('GET', ApiPath.testApiurl +controller ,data||{},true)
|
return Api.request('GET', ApiPath.testApiurl + controller, data || {}, true)
|
||||||
},
|
},
|
||||||
$webPostTest: function (controller,data) { // webapi
|
$webPostTest: function (controller, data) { // webapi
|
||||||
return Api.request('POST', ApiPath.testApiurl +controller ,data||{},true)
|
return Api.request('POST', ApiPath.testApiurl + controller, data || {}, true)
|
||||||
|
},
|
||||||
|
|
||||||
|
// 最新的测试
|
||||||
|
$webNodeGet: function (controller, data) {
|
||||||
|
return Api.request('GET', ApiPath.NodeApiurl + controller, data || {}, true)
|
||||||
|
},
|
||||||
|
|
||||||
|
$webNodePOST: function (controller, data) {
|
||||||
|
return Api.request('POST', ApiPath.NodeApiurl + controller, data || {}, true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user