@@ -3,7 +3,28 @@ | |||||
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" | "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" | ||||
}, | }, | ||||
//这个pages里只放这五个页面,新增页面时请对应的放到下面的分包里 | //这个pages里只放这五个页面,新增页面时请对应的放到下面的分包里 | ||||
"pages": [{ | |||||
"pages": [ | |||||
{ | |||||
"path" : "pages/mine/registerForm", | |||||
"style" : | |||||
{ | |||||
"navigationBarTitleText": "访客登记表", | |||||
"navigationBarBackgroundColor": "#2671E2", | |||||
"navigationBarTextStyle": "white" | |||||
} | |||||
}, | |||||
{ | |||||
"path" : "pages/mine/registerResult", | |||||
"style" : | |||||
{ | |||||
"navigationBarTitleText": "访客登记表", | |||||
"navigationBarBackgroundColor": "#2671E2", | |||||
"navigationBarTextStyle": "white" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "pages/index/guide", | "path": "pages/index/guide", | ||||
"style": { | "style": { | ||||
"navigationBarBackgroundColor": "#008EF2", | "navigationBarBackgroundColor": "#008EF2", | ||||
@@ -16,7 +37,8 @@ | |||||
"style": { | "style": { | ||||
"navigationBarTitleText": "智控管家", | "navigationBarTitleText": "智控管家", | ||||
"navigationBarBackgroundColor": "#2671E2", | "navigationBarBackgroundColor": "#2671E2", | ||||
"navigationBarTextStyle": "white" | |||||
"navigationBarTextStyle": "white", | |||||
"enablePullDownRefresh":true | |||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
@@ -31,7 +53,8 @@ | |||||
"style": { | "style": { | ||||
"navigationBarTitleText": "学习", | "navigationBarTitleText": "学习", | ||||
"navigationBarBackgroundColor": "#2671E2", | "navigationBarBackgroundColor": "#2671E2", | ||||
"navigationBarTextStyle": "white" | |||||
"navigationBarTextStyle": "white", | |||||
"enablePullDownRefresh":true | |||||
} | } | ||||
},{ | },{ | ||||
"path": "pages/index/personal", | "path": "pages/index/personal", | ||||
@@ -43,432 +66,475 @@ | |||||
} | } | ||||
], | ], | ||||
//这下面是分包 | //这下面是分包 | ||||
"subPackages": [ | |||||
{ | |||||
"root": "pages/login",//登录相关 | |||||
"name": "login", | |||||
"pages": [ | |||||
{ | |||||
"path": "index" | |||||
}, | |||||
{ | |||||
"path": "Verification", | |||||
"style": { | |||||
"navigationBarTitleText": "验证码登录", | |||||
"navigationBarBackgroundColor": "#008EF2", | |||||
"navigationBarTextStyle": "white", | |||||
"navigationStyle": "custom" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "yinzhongmalogin", | |||||
"style": { | |||||
"navigationBarTitleText": "验证码登录", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Setthepassword", | |||||
"style": { | |||||
"navigationBarTitleText": "设置密码", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Verifythelogin", | |||||
"style": { | |||||
"navigationBarTitleText": "验证码登录", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
} | |||||
// "subPackages": [ | |||||
// { | |||||
// "root": "pages/login",//登录相关 | |||||
// "name": "login", | |||||
// "pages": [ | |||||
// { | |||||
// "path": "index" | |||||
// }, | |||||
// { | |||||
// "path": "Verification", | |||||
// "style": { | |||||
// "navigationBarTitleText": "验证码登录", | |||||
// "navigationBarBackgroundColor": "#008EF2", | |||||
// "navigationBarTextStyle": "white", | |||||
// "navigationStyle": "custom" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "yinzhongmalogin", | |||||
// "style": { | |||||
// "navigationBarTitleText": "验证码登录", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Setthepassword", | |||||
// "style": { | |||||
// "navigationBarTitleText": "设置密码", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Verifythelogin", | |||||
// "style": { | |||||
// "navigationBarTitleText": "验证码登录", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// } | |||||
] | |||||
}, | |||||
{ | |||||
"root": "pages/mine",//个人中心 | |||||
"name": "mine", | |||||
"pages": [ | |||||
{ | |||||
"path": "details", | |||||
"style": { | |||||
"navigationBarTitleText": "详情", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "details2", | |||||
"style": { | |||||
"navigationBarTitleText": "详情", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "detailsNew", | |||||
"style": { | |||||
"navigationBarTitleText": "详情", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "calibration", | |||||
"style": { | |||||
"navigationBarTitleText": "校验", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "ScoringPlaylist", | |||||
"style": { | |||||
"navigationBarTitleText": "匹配标签", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
// ] | |||||
// }, | |||||
// { | |||||
// "root": "pages/mine",//个人中心 | |||||
// "name": "mine", | |||||
// "pages": [ | |||||
// { | |||||
// "path": "details", | |||||
// "style": { | |||||
// "navigationBarTitleText": "详情", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "details2", | |||||
// "style": { | |||||
// "navigationBarTitleText": "详情", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "detailsNew", | |||||
// "style": { | |||||
// "navigationBarTitleText": "详情", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "calibration", | |||||
// "style": { | |||||
// "navigationBarTitleText": "校验", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "ScoringPlaylist", | |||||
// "style": { | |||||
// "navigationBarTitleText": "匹配标签", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
{ | |||||
"path": "Myprofile", | |||||
"style": { | |||||
"navigationBarTitleText": "编辑资料", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "nickname", | |||||
"style": { | |||||
"navigationBarTitleText": "编辑昵称", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "signature", | |||||
"style": { | |||||
"navigationBarTitleText": "编辑签名", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Changehepassword", | |||||
"style": { | |||||
"navigationBarTitleText": "修改密码", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "subscribe", | |||||
"style": { | |||||
"navigationBarTitleText": "消息订阅", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
// { | |||||
// "path": "Myprofile", | |||||
// "style": { | |||||
// "navigationBarTitleText": "编辑资料", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "nickname", | |||||
// "style": { | |||||
// "navigationBarTitleText": "编辑昵称", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "signature", | |||||
// "style": { | |||||
// "navigationBarTitleText": "编辑签名", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Changehepassword", | |||||
// "style": { | |||||
// "navigationBarTitleText": "修改密码", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "subscribe", | |||||
// "style": { | |||||
// "navigationBarTitleText": "消息订阅", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
{ | |||||
"path": "reception/addreception", | |||||
"style": { | |||||
"navigationBarTitleText": "新增接待", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "reception/consultant", | |||||
"style": { | |||||
"navigationBarTitleText": "选择顾问", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "consultanonduty/index", | |||||
"style": { | |||||
"navigationBarTitleText": "值班顾问", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "equipment/index", | |||||
"style": { | |||||
"navigationBarTitleText": "设备管理", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path" : "messageList", | |||||
"style" :{ | |||||
"navigationBarTitleText": "消息", | |||||
"navigationBarBackgroundColor": "#2671E2", | |||||
"navigationBarTextStyle": "white" | |||||
} | |||||
// { | |||||
// "path": "reception/addreception", | |||||
// "style": { | |||||
// "navigationBarTitleText": "新增接待", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "reception/consultant", | |||||
// "style": { | |||||
// "navigationBarTitleText": "选择顾问", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "consultanonduty/index", | |||||
// "style": { | |||||
// "navigationBarTitleText": "值班顾问", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black", | |||||
// "enablePullDownRefresh":true | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "equipment/index", | |||||
// "style": { | |||||
// "navigationBarTitleText": "设备管理", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black", | |||||
// "enablePullDownRefresh":true | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path" : "messageList", | |||||
// "style" :{ | |||||
// "navigationBarTitleText": "消息", | |||||
// "navigationBarBackgroundColor": "#2671E2", | |||||
// "navigationBarTextStyle": "white" | |||||
// } | |||||
} | |||||
,{ | |||||
"path" : "selectBuilding", | |||||
"style" : | |||||
{ | |||||
"navigationBarTitleText": "切换项目", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
// } | |||||
// ,{ | |||||
// "path" : "selectBuilding", | |||||
// "style" : | |||||
// { | |||||
// "navigationBarTitleText": "切换项目", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
} | |||||
] | |||||
}, | |||||
{ | |||||
"root": "pages/learning",//学习 | |||||
"name": "learning", | |||||
"pages": [ | |||||
{ | |||||
"path": "Thefulltext/index", | |||||
"style": { | |||||
"navigationBarTitleText": "全文学习", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Thefulltext/index2", | |||||
"style": { | |||||
"navigationBarTitleText": "全文学习", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Thefulltext/search", | |||||
"style": { | |||||
"navigationBarTitleText": "搜索", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Keywordsearch", | |||||
"style": { | |||||
"navigationBarTitleText": "搜索", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Equinoctiallearning", | |||||
"style": { | |||||
"navigationBarTitleText": "分点学习", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Equinoctial/index", | |||||
"style": { | |||||
"navigationBarTitleText": "分点学习", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Equinoctial/index2", | |||||
"style": { | |||||
"navigationBarTitleText": "分点学习", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
} | |||||
// } | |||||
// ,{ | |||||
// "path" : "registerCode", | |||||
// "style" : | |||||
// { | |||||
// "navigationBarTitleText": "访客登记码", | |||||
// "navigationBarBackgroundColor": "#2671E2", | |||||
// "navigationBarTextStyle": "white" | |||||
// } | |||||
// } | |||||
// ,{ | |||||
// "path" : "registerForm", | |||||
// "style" : | |||||
// { | |||||
// "navigationBarTitleText": "访客登记表", | |||||
// "navigationBarBackgroundColor": "#2671E2", | |||||
// "navigationBarTextStyle": "white" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path" : "registerResult", | |||||
// "style" : | |||||
// { | |||||
// "navigationBarTitleText": "访客登记表", | |||||
// "navigationBarBackgroundColor": "#2671E2", | |||||
// "navigationBarTextStyle": "white" | |||||
// } | |||||
// } | |||||
// ] | |||||
// }, | |||||
// { | |||||
// "root": "pages/learning",//学习 | |||||
// "name": "learning", | |||||
// "pages": [ | |||||
// { | |||||
// "path": "Thefulltext/index", | |||||
// "style": { | |||||
// "navigationBarTitleText": "全文学习", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Thefulltext/index2", | |||||
// "style": { | |||||
// "navigationBarTitleText": "全文学习", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Thefulltext/search", | |||||
// "style": { | |||||
// "navigationBarTitleText": "搜索", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Keywordsearch", | |||||
// "style": { | |||||
// "navigationBarTitleText": "搜索", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Equinoctiallearning", | |||||
// "style": { | |||||
// "navigationBarTitleText": "分点学习", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black", | |||||
// "enablePullDownRefresh":true | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Equinoctial/index", | |||||
// "style": { | |||||
// "navigationBarTitleText": "分点学习", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Equinoctial/index2", | |||||
// "style": { | |||||
// "navigationBarTitleText": "分点学习", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// } | |||||
] | |||||
}, | |||||
{ | |||||
"root": "pages/center",//中心逻辑的模块都放到这里 | |||||
"name": "center", | |||||
"pages": [ | |||||
{ | |||||
"path": "Piabodata/index", | |||||
"style": { | |||||
"navigationBarTitleText": "销讲数据", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Piabodata/Groupcontrast", | |||||
"style": { | |||||
"navigationBarTitleText": "集团对比", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Piabodata/Theteamcompared", | |||||
"style": { | |||||
"navigationBarTitleText": "团队对比", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Piabodata/selectTeam", | |||||
"style": { | |||||
"navigationBarTitleText": "选择团队", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Piabodata/selectGroup", | |||||
"style": { | |||||
"navigationBarTitleText": "选择项目", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Piabodata/Userinsightinto", | |||||
"style": { | |||||
"navigationBarTitleText": "客户画像", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Piabodata/TrendAnalysis", | |||||
"style": { | |||||
"navigationBarTitleText": "趋势分析", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Piabodata/StaffAnalysis", | |||||
"style": { | |||||
"navigationBarTitleText": "员工分析", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
// ] | |||||
// }, | |||||
// { | |||||
// "root": "pages/center",//中心逻辑的模块都放到这里 | |||||
// "name": "center", | |||||
// "pages": [ | |||||
// { | |||||
// "path": "Piabodata/index", | |||||
// "style": { | |||||
// "navigationBarTitleText": "销讲数据", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black", | |||||
// "enablePullDownRefresh":true | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Piabodata/Groupcontrast", | |||||
// "style": { | |||||
// "navigationBarTitleText": "集团对比", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black", | |||||
// "enablePullDownRefresh":true | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Piabodata/Theteamcompared", | |||||
// "style": { | |||||
// "navigationBarTitleText": "团队对比", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black", | |||||
// "enablePullDownRefresh":true | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Piabodata/selectTeam", | |||||
// "style": { | |||||
// "navigationBarTitleText": "选择团队", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Piabodata/selectGroup", | |||||
// "style": { | |||||
// "navigationBarTitleText": "选择项目", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Piabodata/Userinsightinto", | |||||
// "style": { | |||||
// "navigationBarTitleText": "客户画像", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black", | |||||
// "enablePullDownRefresh":true | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Piabodata/TrendAnalysis", | |||||
// "style": { | |||||
// "navigationBarTitleText": "趋势分析", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black", | |||||
// "enablePullDownRefresh":true | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Piabodata/StaffAnalysis", | |||||
// "style": { | |||||
// "navigationBarTitleText": "员工分析", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black", | |||||
// "enablePullDownRefresh":true | |||||
// } | |||||
// }, | |||||
{ | |||||
"path": "Piabodata/Customerportrait/Detailsofthesearch", | |||||
"style": { | |||||
"navigationBarTitleText": "搜索", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Piabodata/Customerportrait/Receivedetailabout", | |||||
"style": { | |||||
"navigationBarTitleText": "详情", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Piabodata/Customerportrait/Receivingrecords", | |||||
"style": { | |||||
"navigationBarTitleText": "列表", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "Piabodata/Employeesstatistics", | |||||
"style": { | |||||
"navigationBarTitleText": "顾问排名", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
// { | |||||
// "path": "Piabodata/Customerportrait/Detailsofthesearch", | |||||
// "style": { | |||||
// "navigationBarTitleText": "搜索", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Piabodata/Customerportrait/Receivedetailabout", | |||||
// "style": { | |||||
// "navigationBarTitleText": "详情", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Piabodata/Customerportrait/Receivingrecords", | |||||
// "style": { | |||||
// "navigationBarTitleText": "列表", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "Piabodata/Employeesstatistics", | |||||
// "style": { | |||||
// "navigationBarTitleText": "顾问排名", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black", | |||||
// "enablePullDownRefresh":true | |||||
// } | |||||
// }, | |||||
{ | |||||
"path": "records/index", | |||||
"style": { | |||||
"navigationBarTitleText": "接待记录", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "records/recordSearch", | |||||
"style": { | |||||
"navigationBarTitleText": "搜索", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "prohibited/index", | |||||
"style": { | |||||
"navigationBarTitleText": "违禁记录", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "consumer/index", | |||||
"style": { | |||||
"navigationBarTitleText": "客户管理", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "consumer/consumerSearch", | |||||
"style": { | |||||
"navigationBarTitleText": "搜索", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "consumer/consumerDetail", | |||||
"style": { | |||||
"navigationBarTitleText": "客户详情", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "consumer/remind", | |||||
"style": { | |||||
"navigationBarTitleText": "添加提醒", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "consumer/edit", | |||||
"style": { | |||||
"navigationBarTitleText": "编辑客户", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "consumer/newFollowup/newFollowup", | |||||
"style": { | |||||
"navigationBarTitleText": "写跟进", | |||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
} | |||||
] | |||||
} | |||||
], | |||||
// { | |||||
// "path": "records/index", | |||||
// "style": { | |||||
// "navigationBarTitleText": "接待记录", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black", | |||||
// "enablePullDownRefresh":true | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "records/recordSearch", | |||||
// "style": { | |||||
// "navigationBarTitleText": "搜索", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "prohibited/index", | |||||
// "style": { | |||||
// "navigationBarTitleText": "违禁记录", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black", | |||||
// "enablePullDownRefresh":true | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "consumer/index", | |||||
// "style": { | |||||
// "navigationBarTitleText": "客户管理", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black", | |||||
// "enablePullDownRefresh":true | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "consumer/consumerSearch", | |||||
// "style": { | |||||
// "navigationBarTitleText": "搜索", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "consumer/consumerDetail", | |||||
// "style": { | |||||
// "navigationBarTitleText": "客户详情", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "consumer/remind", | |||||
// "style": { | |||||
// "navigationBarTitleText": "添加提醒", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "consumer/edit", | |||||
// "style": { | |||||
// "navigationBarTitleText": "编辑客户", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// }, | |||||
// { | |||||
// "path": "consumer/newFollowup/newFollowup", | |||||
// "style": { | |||||
// "navigationBarTitleText": "写跟进", | |||||
// "navigationBarBackgroundColor": "#FFFFFF", | |||||
// "navigationBarTextStyle": "black" | |||||
// } | |||||
// } | |||||
// ] | |||||
// } | |||||
// ], | |||||
"permission": { | "permission": { | ||||
"scope.userLocation": { | "scope.userLocation": { | ||||
@@ -201,6 +201,12 @@ | |||||
this.houseId = uni.getStorageSync('buildingID').id; | this.houseId = uni.getStorageSync('buildingID').id; | ||||
this.init() | this.init() | ||||
}, | }, | ||||
onPullDownRefresh() { | |||||
this.init() | |||||
setTimeout(function () { | |||||
uni.stopPullDownRefresh(); | |||||
}, 1000); | |||||
}, | |||||
methods: { | methods: { | ||||
init(){ | init(){ | ||||
this.newlisttabinfo1={ | this.newlisttabinfo1={ | ||||
@@ -300,6 +300,19 @@ | |||||
this.getSectionList() | this.getSectionList() | ||||
}, | |||||
onPullDownRefresh(){ | |||||
let that=this | |||||
uni.$on('updateGroup',function(data){ | |||||
console.log(data) | |||||
that.houseId=data.arr.join(',') | |||||
// 获取销奖能力 | |||||
that.getPowerList() | |||||
}) | |||||
this.getSectionList() | |||||
setTimeout(function () { | |||||
uni.stopPullDownRefresh(); | |||||
}, 1000); | |||||
}, | }, | ||||
methods: { | methods: { | ||||
// 获取部门列表 | // 获取部门列表 | ||||
@@ -242,6 +242,12 @@ | |||||
// 请求接口获取所有置业顾问员工的列表 | // 请求接口获取所有置业顾问员工的列表 | ||||
this.getStaffList() | this.getStaffList() | ||||
}, | }, | ||||
onPullDownRefresh() { | |||||
this.getStaffList() | |||||
setTimeout(function () { | |||||
uni.stopPullDownRefresh(); | |||||
}, 1000); | |||||
}, | |||||
methods: { | methods: { | ||||
//是否对比 | //是否对比 | ||||
checkboxChange(){ | checkboxChange(){ | ||||
@@ -471,6 +471,23 @@ | |||||
this.getSectionList() | this.getSectionList() | ||||
}, | }, | ||||
onPullDownRefresh() { | |||||
let that=this | |||||
uni.$on('update',function(data){ | |||||
// console.log(data) | |||||
that.deptids=data.arr.join(',') | |||||
// 获取销奖能力 | |||||
that.getPowerList() | |||||
}) | |||||
// 获取项目id | |||||
this.houseId = uni.getStorageSync('buildingID').id; | |||||
// this.buildingname = uni.getStorageSync('buildingID').name; | |||||
// 请求接口获取所有置业顾问员工的列表 | |||||
this.getSectionList() | |||||
setTimeout(function () { | |||||
uni.stopPullDownRefresh(); | |||||
}, 1000); | |||||
}, | |||||
methods: { | methods: { | ||||
//是否对比 | //是否对比 | ||||
checkboxChange(){ | checkboxChange(){ | ||||
@@ -322,6 +322,12 @@ | |||||
this.pamect.houseId = uni.getStorageSync('buildingID').id; | this.pamect.houseId = uni.getStorageSync('buildingID').id; | ||||
this.init() | this.init() | ||||
}, | }, | ||||
onPullDownRefresh() { | |||||
this.init() | |||||
setTimeout(function () { | |||||
uni.stopPullDownRefresh(); | |||||
}, 1000); | |||||
}, | |||||
watch: { | watch: { | ||||
Showhiddenunits(newValue, oldValue) { | Showhiddenunits(newValue, oldValue) { | ||||
this.showCanvas = !newValue | this.showCanvas = !newValue | ||||
@@ -106,6 +106,12 @@ | |||||
this.buildingID=uni.getStorageSync('buildingID').id; | this.buildingID=uni.getStorageSync('buildingID').id; | ||||
this.gitinit() | this.gitinit() | ||||
}, | }, | ||||
onPullDownRefresh() { | |||||
this.gitinit() | |||||
setTimeout(function () { | |||||
uni.stopPullDownRefresh(); | |||||
}, 1000); | |||||
}, | |||||
methods: { | methods: { | ||||
anclick(i){ | anclick(i){ | ||||
console.log(i) | console.log(i) | ||||
@@ -336,6 +336,23 @@ | |||||
// 获取维度 | // 获取维度 | ||||
this.getindexZxl() | this.getindexZxl() | ||||
}, | }, | ||||
onPullDownRefresh(){ | |||||
// 获取员工 | |||||
this.getStaffList() | |||||
// 获取团队 | |||||
this.getSectionList() | |||||
// 获取团队是否显示权限 | |||||
// 获取简报 | |||||
this.getReport() | |||||
// 获取接待趋势 | |||||
this.getRtrent() | |||||
// 获取维度 | |||||
this.getindexZxl() | |||||
setTimeout(function () { | |||||
uni.stopPullDownRefresh(); | |||||
}, 1000); | |||||
}, | |||||
methods: { | methods: { | ||||
queryHaveDept() { | queryHaveDept() { | ||||
return new Promise((resolve, reject) => { | return new Promise((resolve, reject) => { | ||||
@@ -26,7 +26,9 @@ | |||||
更多筛选<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | 更多筛选<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="count" v-if="recordList.length > 0"> | |||||
筛选结果:<text>{{totalRecords}} </text>条 | |||||
</view> | |||||
<view class="content"> | <view class="content"> | ||||
<view v-if="recordList.length==0" style="width: 100%;height: 100%;display: flex;align-items: center;"> | <view v-if="recordList.length==0" style="width: 100%;height: 100%;display: flex;align-items: center;"> | ||||
<view style="width: 100%;padding-top: 200rpx;background: #FFFFFF;"> | <view style="width: 100%;padding-top: 200rpx;background: #FFFFFF;"> | ||||
@@ -116,8 +118,14 @@ | |||||
<view class="screen-record-text"> | <view class="screen-record-text"> | ||||
客户等级 | 客户等级 | ||||
</view> | </view> | ||||
<view class="screen-record-tab"> | |||||
<view :class="[screen.record==0?'screen-record-chose':'screen-record-nochose']" @click="recordclick(0)"> | |||||
<view class="screen-record-tab"> | |||||
<block v-for="(item,index) in levelList" :key="index"> | |||||
<view :class="[item.isShow?'screen-record-chose':'screen-record-nochose']" | |||||
@click="choiceLevel(index,item.value)"> | |||||
{{item.label}} | |||||
</view> | |||||
</block> | |||||
<!-- <view :class="[screen.record==0?'screen-record-chose':'screen-record-nochose']" @click="recordclick(0)"> | |||||
A | A | ||||
</view> | </view> | ||||
<view :class="[screen.record==1?'screen-record-chose':'screen-record-nochose']" @click="recordclick(1)"> | <view :class="[screen.record==1?'screen-record-chose':'screen-record-nochose']" @click="recordclick(1)"> | ||||
@@ -128,7 +136,7 @@ | |||||
</view> | </view> | ||||
<view :class="[screen.record==3?'screen-record-chose':'screen-record-nochose']" @click="recordclick(3)"> | <view :class="[screen.record==3?'screen-record-chose':'screen-record-nochose']" @click="recordclick(3)"> | ||||
D | D | ||||
</view> | |||||
</view> --> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<!-- <view class="screen-record"> | <!-- <view class="screen-record"> | ||||
@@ -148,7 +156,13 @@ | |||||
到访次数 | 到访次数 | ||||
</view> | </view> | ||||
<view class="screen-record-tab"> | <view class="screen-record-tab"> | ||||
<view :class="[screen.visitRecord==1?'screen-record-chose':'screen-record-nochose']" @click="screenvisitRecord(1)"> | |||||
<block v-for="(item,index) in visitList" :key="index"> | |||||
<view :class="[item.isShow?'screen-record-chose':'screen-record-nochose']" | |||||
@click="choice(index,item.value)"> | |||||
{{item.label}} | |||||
</view> | |||||
</block> | |||||
<!-- <view :class="[screen.visitRecord==1?'screen-record-chose':'screen-record-nochose']" @click="screenvisitRecord(1)"> | |||||
首次到访 | 首次到访 | ||||
</view> | </view> | ||||
<view :class="[screen.visitRecord==2?'screen-record-chose':'screen-record-nochose']" @click="screenvisitRecord(2)"> | <view :class="[screen.visitRecord==2?'screen-record-chose':'screen-record-nochose']" @click="screenvisitRecord(2)"> | ||||
@@ -159,7 +173,7 @@ | |||||
</view> | </view> | ||||
<view :class="[screen.visitRecord==4?'screen-record-chose':'screen-record-nochose']" @click="screenvisitRecord(4)"> | <view :class="[screen.visitRecord==4?'screen-record-chose':'screen-record-nochose']" @click="screenvisitRecord(4)"> | ||||
3次以上 | 3次以上 | ||||
</view> | |||||
</view> --> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="screen-foot"> | <view class="screen-foot"> | ||||
@@ -225,8 +239,8 @@ | |||||
screen:{ | screen:{ | ||||
agentId:'', | agentId:'', | ||||
agentIdtext:'', | agentIdtext:'', | ||||
visitRecord:'', | |||||
record:null, | |||||
visitRecord:[], | |||||
record:[], | |||||
cunsumerTips:'', | cunsumerTips:'', | ||||
cunsumerTipsid:'', | cunsumerTipsid:'', | ||||
clientStage:'', | clientStage:'', | ||||
@@ -249,7 +263,43 @@ | |||||
soltishow:false, | soltishow:false, | ||||
staTime:'', | staTime:'', | ||||
endtime:'', | endtime:'', | ||||
orderBy:'' | |||||
orderBy:'', | |||||
totalRecords:'', | |||||
visitList: [{ | |||||
label: '首次到访', | |||||
value: 1, | |||||
isShow: false, | |||||
}, { | |||||
label: '2次到访', | |||||
value: 2, | |||||
isShow: false, | |||||
}, { | |||||
label: '3次到访', | |||||
value: 3, | |||||
isShow: false, | |||||
}, { | |||||
label: '3次以上', | |||||
value: 4, | |||||
isShow: false, | |||||
}, ], | |||||
levelList: [{ | |||||
label: 'A', | |||||
value: 0, | |||||
isShow: false, | |||||
}, { | |||||
label: 'B', | |||||
value: 1, | |||||
isShow: false, | |||||
}, { | |||||
label: 'C', | |||||
value: 2, | |||||
isShow: false, | |||||
}, { | |||||
label: 'D', | |||||
value: 3, | |||||
isShow: false, | |||||
}, ], | |||||
isRefresh:false | |||||
} | } | ||||
}, | }, | ||||
onLoad(options) { | onLoad(options) { | ||||
@@ -260,6 +310,7 @@ | |||||
this.buildingID = uni.getStorageSync('buildingID').id; | this.buildingID = uni.getStorageSync('buildingID').id; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[] | this.recordList=[] | ||||
this.isRefresh = false; | |||||
this.getMyCustom() | this.getMyCustom() | ||||
this.getFreeList() | this.getFreeList() | ||||
this.getfindKeywordsList() | this.getfindKeywordsList() | ||||
@@ -267,6 +318,14 @@ | |||||
this.isnorefresh=''; | this.isnorefresh=''; | ||||
} | } | ||||
}, | }, | ||||
onPullDownRefresh(){ | |||||
this.isRefresh = true; | |||||
this.nextPage = 1; | |||||
this.getMyCustom() | |||||
setTimeout(() => { | |||||
uni.stopPullDownRefresh() | |||||
}, 1000) | |||||
}, | |||||
onReachBottom() { | onReachBottom() { | ||||
if(this.totalRecord==this.nextPage){ | if(this.totalRecord==this.nextPage){ | ||||
uni.showToast({ | uni.showToast({ | ||||
@@ -277,10 +336,37 @@ | |||||
return | return | ||||
}else{ | }else{ | ||||
this.nextPage+=1; | this.nextPage+=1; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
} | } | ||||
}, | }, | ||||
methods:{ | methods:{ | ||||
choice(index,e) { | |||||
if (this.visitList[index].isShow == true) { | |||||
this.visitList[index].isShow = false; | |||||
for (var i = 0; i < this.screen.visitRecord.length; i++) { | |||||
if (this.screen.visitRecord[i] === e) { | |||||
this.screen.visitRecord.splice(i, 1); | |||||
} | |||||
} | |||||
} else { | |||||
this.visitList[index].isShow = true; | |||||
this.screen.visitRecord.push(e) | |||||
} | |||||
}, | |||||
choiceLevel(index,e) { | |||||
if (this.levelList[index].isShow == true) { | |||||
this.levelList[index].isShow = false; | |||||
for (var i = 0; i < this.screen.record.length; i++) { | |||||
if (this.screen.record[i] === e) { | |||||
this.screen.record.splice(i, 1); | |||||
} | |||||
} | |||||
} else { | |||||
this.levelList[index].isShow = true; | |||||
this.screen.record.push(e) | |||||
} | |||||
}, | |||||
tapsoltishow(){ | tapsoltishow(){ | ||||
this.soltishow=true; | this.soltishow=true; | ||||
}, | }, | ||||
@@ -295,6 +381,7 @@ | |||||
this.orderBy=e[0].value; | this.orderBy=e[0].value; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
//选择录音时长 | //选择录音时长 | ||||
@@ -303,6 +390,7 @@ | |||||
this.activeTotal2=index; | this.activeTotal2=index; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
//时间选择 | //时间选择 | ||||
@@ -316,6 +404,7 @@ | |||||
this.endtime=''; | this.endtime=''; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
} | } | ||||
}, | }, | ||||
@@ -326,6 +415,7 @@ | |||||
this.activeTotal=4; | this.activeTotal=4; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
recordclick(i){ | recordclick(i){ | ||||
@@ -387,20 +477,23 @@ | |||||
orderBy:orderBy | orderBy:orderBy | ||||
} | } | ||||
}; | }; | ||||
if (this.screen.visitRecord > 0) { | |||||
parames.query.visitRecord = this.screen.visitRecord; | |||||
if (this.screen.visitRecord.length > 0) { | |||||
parames.query.visitRecords = this.screen.visitRecord.join(','); | |||||
} | } | ||||
if(this.screen.record==0){ | |||||
parames.query.levels= ["1"] | |||||
}else if(this.screen.record==1){ | |||||
parames.query.levels= ["2"] | |||||
}else if(this.screen.record==2){ | |||||
parames.query.levels= ["3"] | |||||
}else if(this.screen.record==3){ | |||||
parames.query.levels= ["4"] | |||||
}else{ | |||||
parames.query.levels='' | |||||
if (this.screen.record.length > 0) { | |||||
parames.query.level = this.screen.record.join(','); | |||||
} | } | ||||
// if(this.screen.record==0){ | |||||
// parames.query.levels= ["1"] | |||||
// }else if(this.screen.record==1){ | |||||
// parames.query.levels= ["2"] | |||||
// }else if(this.screen.record==2){ | |||||
// parames.query.levels= ["3"] | |||||
// }else if(this.screen.record==3){ | |||||
// parames.query.levels= ["4"] | |||||
// }else{ | |||||
// parames.query.levels='' | |||||
// } | |||||
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); | this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); | ||||
this.$u.post("/customer/customerManagement", parames).then(data => { | this.$u.post("/customer/customerManagement", parames).then(data => { | ||||
var list = data.results || []; | var list = data.results || []; | ||||
@@ -421,8 +514,13 @@ | |||||
}) | }) | ||||
} | } | ||||
}) | }) | ||||
this.recordList = [...this.recordList, ...list]; | |||||
if(this.isRefresh){ | |||||
this.recordList = list; | |||||
}else{ | |||||
this.recordList = [...this.recordList, ...list]; | |||||
} | |||||
this.totalRecord=data.totalPage; | this.totalRecord=data.totalPage; | ||||
this.totalRecords = data.totalRecord; | |||||
}) | }) | ||||
}, | }, | ||||
//获取顾问列表 | //获取顾问列表 | ||||
@@ -488,16 +586,22 @@ | |||||
agentId:'', | agentId:'', | ||||
agentIdtext:'', | agentIdtext:'', | ||||
visitRecord:'', | visitRecord:'', | ||||
record:null, | |||||
record:[], | |||||
cunsumerTips:'', | cunsumerTips:'', | ||||
cunsumerTipsid:'', | cunsumerTipsid:'', | ||||
clientStage:'', | clientStage:'', | ||||
clientStageName:'' | clientStageName:'' | ||||
} | } | ||||
this.visitList.map(i=>{ | |||||
i.isShow = false | |||||
}) | |||||
this.levelList.map(i=>{ | |||||
i.isShow = false | |||||
}) | |||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.screenShow=false; | this.screenShow=false; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
//筛选确认 | //筛选确认 | ||||
@@ -505,6 +609,7 @@ | |||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.screenShow=false; | this.screenShow=false; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
goSearch(){ | goSearch(){ | ||||
@@ -527,7 +632,18 @@ | |||||
height: 100%; | height: 100%; | ||||
background: #F8F8F8; | background: #F8F8F8; | ||||
} | } | ||||
.count { | |||||
width: 100%; | |||||
height: 90rpx; | |||||
display: flex; | |||||
align-items: center; | |||||
justify-content: center; | |||||
background-color: #FBE4E4; | |||||
text { | |||||
color: #F71616; | |||||
} | |||||
} | |||||
.timeview{ | .timeview{ | ||||
height: 80rpx; | height: 80rpx; | ||||
line-height: 80rpx; | line-height: 80rpx; | ||||
@@ -14,6 +14,9 @@ | |||||
顾问<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | 顾问<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="count" v-if="recordList.length > 0"> | |||||
筛选结果:<text>{{totalRecords}} </text>条 | |||||
</view> | |||||
<view class="content"> | <view class="content"> | ||||
<view v-if="recordList.length==0" style="width: 100%;height: 100%;display: flex;align-items: center;background: #FFFFFF;"> | <view v-if="recordList.length==0" style="width: 100%;height: 100%;display: flex;align-items: center;background: #FFFFFF;"> | ||||
<view style="width: 100%;padding-top: 200rpx;"> | <view style="width: 100%;padding-top: 200rpx;"> | ||||
@@ -93,8 +96,9 @@ | |||||
timeshow:false, | timeshow:false, | ||||
soltishow:false, | soltishow:false, | ||||
orderBy:'', | orderBy:'', | ||||
userInfo:{} | |||||
userInfo:{}, | |||||
totalRecords:'', | |||||
isRefresh:false | |||||
} | } | ||||
}, | }, | ||||
onLoad(options) { | onLoad(options) { | ||||
@@ -113,6 +117,7 @@ | |||||
this.buildingID = uni.getStorageSync('buildingID').id; | this.buildingID = uni.getStorageSync('buildingID').id; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.isRefresh = false; | |||||
this.getMyCustom() | this.getMyCustom() | ||||
this.getFreeList(); | this.getFreeList(); | ||||
this.isnorefresh=''; | this.isnorefresh=''; | ||||
@@ -121,6 +126,14 @@ | |||||
pages[0].$vm.path='/pages/index/index' | pages[0].$vm.path='/pages/index/index' | ||||
console.log(pages[0].$vm.path) | console.log(pages[0].$vm.path) | ||||
}, | }, | ||||
onPullDownRefresh(){ | |||||
this.nextPage=1; | |||||
this.isRefresh = true; | |||||
this.getMyCustom() | |||||
setTimeout(function () { | |||||
uni.stopPullDownRefresh(); | |||||
}, 1000); | |||||
}, | |||||
onReachBottom() { | onReachBottom() { | ||||
if(this.totalRecord==this.nextPage){ | if(this.totalRecord==this.nextPage){ | ||||
uni.showToast({ | uni.showToast({ | ||||
@@ -131,6 +144,7 @@ | |||||
return | return | ||||
}else{ | }else{ | ||||
this.nextPage+=1; | this.nextPage+=1; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
} | } | ||||
}, | }, | ||||
@@ -147,6 +161,7 @@ | |||||
this.orderBy=e[0].value; | this.orderBy=e[0].value; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
//时间选择 | //时间选择 | ||||
@@ -160,6 +175,7 @@ | |||||
this.endtime=''; | this.endtime=''; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
} | } | ||||
}, | }, | ||||
@@ -170,6 +186,7 @@ | |||||
this.activeTotal=4; | this.activeTotal=4; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
tapThevisiting(item) { | tapThevisiting(item) { | ||||
@@ -254,8 +271,13 @@ | |||||
this.$u.post("/customer/findbypage", parames).then(data => { | this.$u.post("/customer/findbypage", parames).then(data => { | ||||
var list = data.results || []; | var list = data.results || []; | ||||
this.recordList = [...this.recordList, ...list]; | |||||
if(this.isRefresh){ | |||||
this.recordList = list; | |||||
}else{ | |||||
this.recordList = [...this.recordList, ...list]; | |||||
} | |||||
this.totalRecord=data.totalPage; | this.totalRecord=data.totalPage; | ||||
this.totalRecords = data.totalRecord; | |||||
}) | }) | ||||
}, | }, | ||||
//获取顾问列表 | //获取顾问列表 | ||||
@@ -274,6 +296,7 @@ | |||||
this.recordList=[]; | this.recordList=[]; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.selectshow=false; | this.selectshow=false; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
@@ -291,6 +314,18 @@ | |||||
height: 100%; | height: 100%; | ||||
background: #F8F8F8; | background: #F8F8F8; | ||||
} | } | ||||
.count { | |||||
width: 100%; | |||||
height: 90rpx; | |||||
display: flex; | |||||
align-items: center; | |||||
justify-content: center; | |||||
background-color: #FBE4E4; | |||||
text { | |||||
color: #F71616; | |||||
} | |||||
} | |||||
.timeview{ | .timeview{ | ||||
height: 80rpx; | height: 80rpx; | ||||
line-height: 80rpx; | line-height: 80rpx; | ||||
@@ -27,6 +27,9 @@ | |||||
更多筛选<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | 更多筛选<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="count" v-if="recordList.length > 0"> | |||||
筛选结果:<text>{{totalRecords}} </text>条 | |||||
</view> | |||||
<view class="content"> | <view class="content"> | ||||
<view v-if="recordList.length==0" style="width: 100%;height: 100%;display: flex;align-items: center;background: #FFFFFF;"> | <view v-if="recordList.length==0" style="width: 100%;height: 100%;display: flex;align-items: center;background: #FFFFFF;"> | ||||
<view style="width: 100%;padding-top: 200rpx;"> | <view style="width: 100%;padding-top: 200rpx;"> | ||||
@@ -78,7 +81,7 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<u-popup v-model="screenShow" mode="top" height="780"> | |||||
<u-popup v-model="screenShow" mode="top" height="880"> | |||||
<view class="screen"> | <view class="screen"> | ||||
<!-- 顾问选择 --> | <!-- 顾问选择 --> | ||||
<view class="screen-counselor"> | <view class="screen-counselor"> | ||||
@@ -111,6 +114,9 @@ | |||||
<view :class="[screen.validInvalid==1?'screen-record-chose':'screen-record-nochose']" @click="screenvisivalidInvalid(1)"> | <view :class="[screen.validInvalid==1?'screen-record-chose':'screen-record-nochose']" @click="screenvisivalidInvalid(1)"> | ||||
无效接待 | 无效接待 | ||||
</view> | </view> | ||||
<view :class="[screen.validInvalid==2?'screen-record-chose':'screen-record-nochose']" @click="screenvisivalidInvalid(2)"> | |||||
无录音 | |||||
</view> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="screen-record"> | <view class="screen-record"> | ||||
@@ -131,7 +137,13 @@ | |||||
到访次数 | 到访次数 | ||||
</view> | </view> | ||||
<view class="screen-record-tab"> | <view class="screen-record-tab"> | ||||
<view :class="[screen.visitRecord==1?'screen-record-chose':'screen-record-nochose']" @click="recordclick(1)"> | |||||
<block v-for="(item,index) in visitList" :key="index"> | |||||
<view :class="[item.isShow?'screen-record-chose':'screen-record-nochose']" | |||||
@click="choice(index,item.value)"> | |||||
{{item.label}} | |||||
</view> | |||||
</block> | |||||
<!-- <view :class="[screen.visitRecord==1?'screen-record-chose':'screen-record-nochose']" @click="recordclick(1)"> | |||||
首次到访 | 首次到访 | ||||
</view> | </view> | ||||
<view :class="[screen.visitRecord==2?'screen-record-chose':'screen-record-nochose']" @click="recordclick(2)"> | <view :class="[screen.visitRecord==2?'screen-record-chose':'screen-record-nochose']" @click="recordclick(2)"> | ||||
@@ -142,7 +154,7 @@ | |||||
</view> | </view> | ||||
<view :class="[screen.visitRecord==4?'screen-record-chose':'screen-record-nochose']" @click="recordclick(4)"> | <view :class="[screen.visitRecord==4?'screen-record-chose':'screen-record-nochose']" @click="recordclick(4)"> | ||||
3次以上 | 3次以上 | ||||
</view> | |||||
</view> --> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="screen-foot"> | <view class="screen-foot"> | ||||
@@ -208,7 +220,7 @@ | |||||
agentId:'',//顾问id | agentId:'',//顾问id | ||||
record:'0', | record:'0', | ||||
markAdvisor:null, | markAdvisor:null, | ||||
visitRecord:null, | |||||
visitRecord:[], | |||||
validInvalid:null, | validInvalid:null, | ||||
clientStage:'', | clientStage:'', | ||||
clientStageName:'' | clientStageName:'' | ||||
@@ -228,6 +240,25 @@ | |||||
orderBy:'', | orderBy:'', | ||||
methodsisshow:false, | methodsisshow:false, | ||||
userInfo:{}, | userInfo:{}, | ||||
visitList: [{ | |||||
label: '首次到访', | |||||
value: 1, | |||||
isShow: false, | |||||
}, { | |||||
label: '2次到访', | |||||
value: 2, | |||||
isShow: false, | |||||
}, { | |||||
label: '3次到访', | |||||
value: 3, | |||||
isShow: false, | |||||
}, { | |||||
label: '3次以上', | |||||
value: 4, | |||||
isShow: false, | |||||
}, ], | |||||
totalRecords: '', | |||||
isRefresh:false | |||||
} | } | ||||
}, | }, | ||||
onLoad(options) { | onLoad(options) { | ||||
@@ -260,6 +291,7 @@ | |||||
this.buildingID = uni.getStorageSync('buildingID').id; | this.buildingID = uni.getStorageSync('buildingID').id; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.isRefresh = false; | |||||
this.getMyCustom() | this.getMyCustom() | ||||
this.getFreeList(); | this.getFreeList(); | ||||
this.isnorefresh=''; | this.isnorefresh=''; | ||||
@@ -267,6 +299,14 @@ | |||||
this.getCustomPhase() | this.getCustomPhase() | ||||
}, | }, | ||||
onPullDownRefresh(){ | |||||
this.isRefresh = true; | |||||
this.nextPage = 1; | |||||
this.getMyCustom() | |||||
setTimeout(function () { | |||||
uni.stopPullDownRefresh(); | |||||
}, 1000); | |||||
}, | |||||
onReachBottom() { | onReachBottom() { | ||||
if(this.totalRecord==this.nextPage){ | if(this.totalRecord==this.nextPage){ | ||||
uni.showToast({ | uni.showToast({ | ||||
@@ -278,9 +318,23 @@ | |||||
}else{ | }else{ | ||||
this.nextPage+=1; | this.nextPage+=1; | ||||
this.getMyCustom(); | this.getMyCustom(); | ||||
this.isRefresh = false; | |||||
} | } | ||||
}, | }, | ||||
methods:{ | methods:{ | ||||
choice(index,e) { | |||||
if (this.visitList[index].isShow == true) { | |||||
this.visitList[index].isShow = false; | |||||
for (var i = 0; i < this.screen.visitRecord.length; i++) { | |||||
if (this.screen.visitRecord[i] === e) { | |||||
this.screen.visitRecord.splice(i, 1); | |||||
} | |||||
} | |||||
} else { | |||||
this.visitList[index].isShow = true; | |||||
this.screen.visitRecord.push(e) | |||||
} | |||||
}, | |||||
getCustomPhase(){ | getCustomPhase(){ | ||||
this.phaseList=[] | this.phaseList=[] | ||||
this.$u.post("/customer/lifeTrackDefineList",{houseId:this.buildingID}).then(res => { | this.$u.post("/customer/lifeTrackDefineList",{houseId:this.buildingID}).then(res => { | ||||
@@ -312,6 +366,7 @@ | |||||
this.orderBy=e[0].value; | this.orderBy=e[0].value; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
//选择录音时长 | //选择录音时长 | ||||
@@ -320,6 +375,7 @@ | |||||
this.activeTotal2=index; | this.activeTotal2=index; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
//时间选择 | //时间选择 | ||||
@@ -333,6 +389,7 @@ | |||||
this.endtime=''; | this.endtime=''; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
} | } | ||||
}, | }, | ||||
@@ -343,6 +400,7 @@ | |||||
this.activeTotal=4; | this.activeTotal=4; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
tapThevisiting(item) { | tapThevisiting(item) { | ||||
@@ -433,13 +491,14 @@ | |||||
time:1, | time:1, | ||||
staTime:this.staTime, | staTime:this.staTime, | ||||
endtime:this.endtime, | endtime:this.endtime, | ||||
visitRecord:this.screen.visitRecord, | |||||
visitRecords:this.screen.visitRecord.join(','), | |||||
markAdvisor:this.screen.markAdvisor, | markAdvisor:this.screen.markAdvisor, | ||||
dateType:dateType, | dateType:dateType, | ||||
recDurationInterval:recDurationInterval, | recDurationInterval:recDurationInterval, | ||||
orderBy:orderBy, | orderBy:orderBy, | ||||
validInvalid:this.screen.validInvalid, | |||||
validInvalid:this.screen.validInvalid==2?null:this.screen.validInvalid, | |||||
clientStage:this.screen.clientStage, | clientStage:this.screen.clientStage, | ||||
recording:this.screen.validInvalid==2?0:null | |||||
} | } | ||||
}; | }; | ||||
if(this.screen.agentId){ | if(this.screen.agentId){ | ||||
@@ -449,8 +508,13 @@ | |||||
this.$u.post("/customer/findbypage", parames).then(data => { | this.$u.post("/customer/findbypage", parames).then(data => { | ||||
var list = data.results || []; | var list = data.results || []; | ||||
this.recordList = [...this.recordList, ...list]; | |||||
if(this.isRefresh){ | |||||
this.recordList = list; | |||||
}else{ | |||||
this.recordList = [...this.recordList, ...list]; | |||||
} | |||||
this.totalRecord=data.totalPage; | this.totalRecord=data.totalPage; | ||||
this.totalRecords = data.totalRecord; | |||||
}) | }) | ||||
}, | }, | ||||
//获取顾问列表 | //获取顾问列表 | ||||
@@ -472,6 +536,7 @@ | |||||
this.screenShow=false; | this.screenShow=false; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
reset(){ | reset(){ | ||||
@@ -479,11 +544,16 @@ | |||||
counselorName:'', | counselorName:'', | ||||
record:'0', | record:'0', | ||||
markAdvisor:null, | markAdvisor:null, | ||||
visitRecord:null, | |||||
visitRecord:[], | |||||
validInvalid:null, | validInvalid:null, | ||||
clientStage:'', | clientStage:'', | ||||
clientStageName:'' | |||||
clientStageName:'', | |||||
recording:null, | |||||
visitRecords:"", | |||||
} | } | ||||
this.visitList.map(i=>{ | |||||
i.isShow = false | |||||
}) | |||||
this.screenShow=false; | this.screenShow=false; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
@@ -515,6 +585,7 @@ | |||||
this.screenShow=false; | this.screenShow=false; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.isRefresh = false; | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
goSearch(){ | goSearch(){ | ||||
@@ -532,6 +603,18 @@ | |||||
height: 100%; | height: 100%; | ||||
background: #F8F8F8; | background: #F8F8F8; | ||||
} | } | ||||
.count { | |||||
width: 100%; | |||||
height: 90rpx; | |||||
display: flex; | |||||
align-items: center; | |||||
justify-content: center; | |||||
background-color: #FBE4E4; | |||||
text { | |||||
color: #F71616; | |||||
} | |||||
} | |||||
.timeview{ | .timeview{ | ||||
height: 80rpx; | height: 80rpx; | ||||
line-height: 80rpx; | line-height: 80rpx; | ||||
@@ -306,6 +306,45 @@ | |||||
this.initworkThisWeek() | this.initworkThisWeek() | ||||
this.initrealTimeStatistics() | this.initrealTimeStatistics() | ||||
}, | }, | ||||
onPullDownRefresh() { | |||||
this.getMenu() | |||||
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); | |||||
if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) { | |||||
this.methodsisshow = false; | |||||
} else { | |||||
this.methodsisshow = true; | |||||
} | |||||
if (this.userInfo.zkProperties.length == 1) { | |||||
this.buildingID = uni.getStorageSync('buildingID').id; | |||||
this.buildingname = uni.getStorageSync('buildingID').name; | |||||
this.buildingishow = false; | |||||
} else { | |||||
this.buildingishow = true; | |||||
this.buildingname = uni.getStorageSync('buildingID').name; | |||||
this.buildingID = uni.getStorageSync('buildingID').id; | |||||
this.userInfo.zkProperties.forEach(item => { | |||||
item.label = item.propertyName; | |||||
item.value = item.id | |||||
}) | |||||
this.lpanlist = this.userInfo.zkProperties | |||||
} | |||||
if (this.userInfo.dataCode == 6) { | |||||
// this.Myworkcard = true; | |||||
this.equipmentisshow = false; | |||||
this.iniodianloang() | |||||
} else { | |||||
this.equipmentisshow = true; | |||||
// this.Myworkcard = false; | |||||
this.initequipment() | |||||
// this.waitForOperation() | |||||
} | |||||
this.initworkThisWeek() | |||||
this.initrealTimeStatistics() | |||||
setTimeout(() => { | |||||
uni.stopPullDownRefresh() | |||||
}, 3000) | |||||
}, | |||||
methods: { | methods: { | ||||
//获取权限 | //获取权限 | ||||
getMenu(){ | getMenu(){ | ||||
@@ -76,6 +76,13 @@ | |||||
this.buildingID=uni.getStorageSync('buildingID').id; | this.buildingID=uni.getStorageSync('buildingID').id; | ||||
this.clocktab(i) | this.clocktab(i) | ||||
}, | }, | ||||
onPullDownRefresh() { | |||||
var i=uni.getStorageSync('fendianindex') | |||||
this.clocktab(i) | |||||
setTimeout(function () { | |||||
uni.stopPullDownRefresh(); | |||||
}, 1000); | |||||
}, | |||||
methods: { | methods: { | ||||
//全部学习跳转 | //全部学习跳转 | ||||
quclick(item){ | quclick(item){ | ||||
@@ -50,6 +50,15 @@ | |||||
<image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image> | <image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="line" @click="scan"> | |||||
<view class="title" style="width: 220rpx;"> | |||||
<image src="/static/images/reg.png" style="width: 36rpx;height: 36rpx;" mode=""></image> | |||||
访客登记码 | |||||
</view> | |||||
<view class="right"> | |||||
<image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image> | |||||
</view> | |||||
</view> | |||||
<view class="line" @click="Changehepassword"> | <view class="line" @click="Changehepassword"> | ||||
<view class="title"> | <view class="title"> | ||||
<image src="/static/images/password.png" style="width: 36rpx;height: 36rpx;" mode=""></image> | <image src="/static/images/password.png" style="width: 36rpx;height: 36rpx;" mode=""></image> | ||||
@@ -101,6 +110,11 @@ | |||||
this.mobile = userInfos.loginName | this.mobile = userInfos.loginName | ||||
}, | }, | ||||
methods: { | methods: { | ||||
scan(){ | |||||
uni.navigateTo({ | |||||
url:"../mine/registerCode" | |||||
}) | |||||
}, | |||||
//拨打电话 | //拨打电话 | ||||
phone() { | phone() { | ||||
wx.makePhoneCall({ | wx.makePhoneCall({ | ||||
@@ -38,6 +38,12 @@ | |||||
this.biaoqian=options.biaoqian | this.biaoqian=options.biaoqian | ||||
this.ceninit() | this.ceninit() | ||||
}, | }, | ||||
onPullDownRefresh() { | |||||
this.ceninit() | |||||
setTimeout(function () { | |||||
uni.stopPullDownRefresh(); | |||||
}, 1000); | |||||
}, | |||||
methods: { | methods: { | ||||
quclick(item) { | quclick(item) { | ||||
uni.showLoading({ | uni.showLoading({ | ||||
@@ -67,6 +67,13 @@ | |||||
this.changeAgentListShow() | this.changeAgentListShow() | ||||
this.changePausedAgentListShow() | this.changePausedAgentListShow() | ||||
}, | }, | ||||
onPullDownRefresh() { | |||||
this.changeAgentListShow() | |||||
this.changePausedAgentListShow() | |||||
setTimeout(function () { | |||||
uni.stopPullDownRefresh(); | |||||
}, 1000); | |||||
}, | |||||
computed: { | computed: { | ||||
activeAgentList() { | activeAgentList() { | ||||
return this.activeTotal == 1 ? this.agentList : this.pausedAgentList | return this.activeTotal == 1 ? this.agentList : this.pausedAgentList | ||||
@@ -1,9 +1,9 @@ | |||||
<template> | <template> | ||||
<view class="cented"> | <view class="cented"> | ||||
<view style="width: 690rpx;margin: 0 auto;margin-top: 20rpx;"> | <view style="width: 690rpx;margin: 0 auto;margin-top: 20rpx;"> | ||||
<u-search @search='shecs()' :show-action='false' placeholder="请输入设备编号或领用人进行搜索" v-model="imei"></u-search> | |||||
<u-search @search='shecs()' :show-action='false' placeholder="请输入设备编号或领用人进行搜索" v-model="imei"></u-search> | |||||
</view> | </view> | ||||
<view class="tab-box"> | <view class="tab-box"> | ||||
<!-- <view class="tab-item-wrap"> | <!-- <view class="tab-item-wrap"> | ||||
<view v-for="(item, index) in tablist" :key="index" :class="activeClass == index ? 'bottom' : ''" @tap="clocktab(index)"> | <view v-for="(item, index) in tablist" :key="index" :class="activeClass == index ? 'bottom' : ''" @tap="clocktab(index)"> | ||||
@@ -11,12 +11,12 @@ | |||||
<view class="bottomLine" v-if="activeClass == index"></view> | <view class="bottomLine" v-if="activeClass == index"></view> | ||||
</view> | </view> | ||||
</view> --> | </view> --> | ||||
<u-tabs-swiper ref="tabs" font-size="30" :bold="true" swiper-width="700" :current="activeClass" | |||||
@change="clocktab()" inactive-color="#b1b1b1" active-color="#008ef2" :list="tablist" :is-scroll="true"> | |||||
<u-tabs-swiper ref="tabs" font-size="30" :bold="true" swiper-width="700" :current="activeClass" @change="clocktab()" | |||||
inactive-color="#b1b1b1" active-color="#008ef2" :list="tablist" :is-scroll="true"> | |||||
</u-tabs-swiper> | </u-tabs-swiper> | ||||
</view> | </view> | ||||
<view class="infoet"> | <view class="infoet"> | ||||
<view class="infoviewbox" v-for="(item,index) in newListdata" :key="index"> | <view class="infoviewbox" v-for="(item,index) in newListdata" :key="index"> | ||||
<view class="infobox1"> | <view class="infobox1"> | ||||
@@ -28,29 +28,23 @@ | |||||
<view class="you11" v-if="item.electricity<20"> | <view class="you11" v-if="item.electricity<20"> | ||||
<view class="youimg" :style="{ height: item.electricity + '%' }"></view> | <view class="youimg" :style="{ height: item.electricity + '%' }"></view> | ||||
</view> | </view> | ||||
<view class="you2">电量: | |||||
<view class="you2">电量: | |||||
<text v-if="item.electricity>20">{{item.electricity}}%</text> | <text v-if="item.electricity>20">{{item.electricity}}%</text> | ||||
<text v-if="item.electricity<20" style="color: red;">{{item.electricity}}%</text> | <text v-if="item.electricity<20" style="color: red;">{{item.electricity}}%</text> | ||||
</view> | </view> | ||||
<view class="you3"> | <view class="you3"> | ||||
<image v-if="item.signalDevice==''" class="youimg" | |||||
src="../../../static/images/newimg/xinhao0.png" mode=""></image> | |||||
<image v-if="item.signalDevice<20 && item.signalDevice>0" class="youimg" | |||||
src="../../../static/images/newimg/xinhao1.png" mode=""></image> | |||||
<image v-if="item.signalDevice<50 && item.signalDevice>20" class="youimg" | |||||
src="../../../static/images/newimg/xinhao2.png" mode=""></image> | |||||
<image v-if="item.signalDevice<70 && item.signalDevice>50" class="youimg" | |||||
src="../../../static/images/newimg/xinhao3.png" mode=""></image> | |||||
<image v-if="item.signalDevice<90 && item.signalDevice>70" class="youimg" | |||||
src="../../../static/images/newimg/xinhao4.png" mode=""></image> | |||||
<image v-if="item.signalDevice<=100 && item.signalDevice>90" class="youimg" | |||||
src="../../../static/images/newimg/xinhao5.png" mode=""></image> | |||||
<image v-if="item.signalDevice==''" class="youimg" src="../../../static/images/newimg/xinhao0.png" mode=""></image> | |||||
<image v-if="item.signalDevice<20 && item.signalDevice>0" class="youimg" src="../../../static/images/newimg/xinhao1.png" mode=""></image> | |||||
<image v-if="item.signalDevice<50 && item.signalDevice>20" class="youimg" src="../../../static/images/newimg/xinhao2.png" mode=""></image> | |||||
<image v-if="item.signalDevice<70 && item.signalDevice>50" class="youimg" src="../../../static/images/newimg/xinhao3.png" mode=""></image> | |||||
<image v-if="item.signalDevice<90 && item.signalDevice>70" class="youimg" src="../../../static/images/newimg/xinhao4.png" mode=""></image> | |||||
<image v-if="item.signalDevice<=100 && item.signalDevice>90" class="youimg" src="../../../static/images/newimg/xinhao5.png" mode=""></image> | |||||
</view> | </view> | ||||
<view class="you4" v-if="item.signalDevice=='' ">信号:0</view> | <view class="you4" v-if="item.signalDevice=='' ">信号:0</view> | ||||
<view class="you4" v-else>信号:{{item.signalDevice}}</view> | <view class="you4" v-else>信号:{{item.signalDevice}}</view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="infobox2"> | <view class="infobox2"> | ||||
<view class="box2-zuo">设备编号</view> | <view class="box2-zuo">设备编号</view> | ||||
@@ -59,12 +53,15 @@ | |||||
<view class="infobox2"> | <view class="infobox2"> | ||||
<view class="box2-zuo">录音状态</view> | <view class="box2-zuo">录音状态</view> | ||||
<view class="box2-you" v-if="item.audioStatus=='false'">关闭</view> | <view class="box2-you" v-if="item.audioStatus=='false'">关闭</view> | ||||
<view class="box2-you" v-if="item.audioStatus=='true'">开启</view> | |||||
<view class="box2-you" v-if="!item.audioStatus">关闭</view> | |||||
<view class="box2-you" v-if="item.audioStatus=='true'">开启</view> | |||||
<view class="box2-you" v-if="item.audioStatus=='' ">关闭</view> | |||||
</view> | </view> | ||||
<view class="infobox2"> | <view class="infobox2"> | ||||
<view class="box2-zuo">待上传</view> | <view class="box2-zuo">待上传</view> | ||||
<view class="box2-you"> | |||||
<view class="box2-you"><!-- | |||||
<template v-if="item.audioUploadStatus=='false'">无上传</template> | |||||
<template v-if="item.audioUploadStatus=='true'">上传中</template> | |||||
<template v-if="item.audioUploadStatus=='' ">无上传</template> --> | |||||
<template v-if="item.fileCount && item.fileCount > 0"> | <template v-if="item.fileCount && item.fileCount > 0"> | ||||
<text class="stayupload">{{ item.fileCount }}条</text> | <text class="stayupload">{{ item.fileCount }}条</text> | ||||
</template> | </template> | ||||
@@ -91,7 +88,8 @@ | |||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
tablist: [{ | |||||
tablist: [ | |||||
{ | |||||
name: "全部(0)", | name: "全部(0)", | ||||
}, | }, | ||||
{ | { | ||||
@@ -108,29 +106,35 @@ | |||||
} | } | ||||
], | ], | ||||
activeClass: 0, | activeClass: 0, | ||||
pageNum: 1, | |||||
pageSize: 20, | |||||
imei: "", | |||||
orgcode: "", | |||||
newListdata: [], | |||||
buildingID: '', | |||||
jump: '' | |||||
pageNum:1, | |||||
pageSize:20, | |||||
imei:"", | |||||
orgcode:"", | |||||
newListdata:[], | |||||
buildingID:'', | |||||
jump:'' | |||||
}; | }; | ||||
}, | }, | ||||
onReachBottom() { | onReachBottom() { | ||||
this.pageNum += 1; | |||||
this.pageNum +=1; | |||||
this.init() | this.init() | ||||
}, | }, | ||||
onPullDownRefresh(){ | |||||
this.init() | |||||
setTimeout(function () { | |||||
uni.stopPullDownRefresh(); | |||||
}, 1000); | |||||
}, | |||||
onLoad(options) { | onLoad(options) { | ||||
if (options.active) { | |||||
this.activeClass = options.active | |||||
} else { | |||||
this.activeClass = 0 | |||||
if(options.active){ | |||||
this.activeClass=options.active | |||||
}else{ | |||||
this.activeClass=0 | |||||
} | } | ||||
this.newListdata = [] | |||||
this.pageNum = 1; | |||||
this.pageSize = 20; | |||||
this.init() | |||||
this.newListdata=[] | |||||
this.pageNum=1; | |||||
this.pageSize=20; | |||||
this.init() | |||||
}, | }, | ||||
filters: { | filters: { | ||||
formatDate: (dateTimeStamp) => { | formatDate: (dateTimeStamp) => { | ||||
@@ -140,114 +144,113 @@ | |||||
var day = hour * 24; | var day = hour * 24; | ||||
var halfamonth = day * 15; | var halfamonth = day * 15; | ||||
var month = day * 30; | var month = day * 30; | ||||
var now = new Date().getTime(); | |||||
var now = new Date().getTime(); | |||||
var diffValue = now - newDate; | var diffValue = now - newDate; | ||||
if (diffValue < 0) { | |||||
return; | |||||
} | |||||
var monthC = diffValue / month; | |||||
var weekC = diffValue / (7 * day); | |||||
var dayC = diffValue / day; | |||||
var hourC = diffValue / hour; | |||||
var minC = diffValue / minute; | |||||
if(diffValue < 0){return;} | |||||
var monthC =diffValue/month; | |||||
var weekC =diffValue/(7*day); | |||||
var dayC =diffValue/day; | |||||
var hourC =diffValue/hour; | |||||
var minC =diffValue/minute; | |||||
var result = ''; | var result = ''; | ||||
if (weekC >= 1) { | |||||
result = "1周前"; | |||||
} else if (dayC >= 1) { | |||||
result = "" + parseInt(dayC) + "天前"; | |||||
} else if (hourC >= 1) { | |||||
result = "" + parseInt(hourC) + "小时前"; | |||||
} else if (minC >= 1) { | |||||
result = "" + parseInt(minC) + "分钟前"; | |||||
} else { | |||||
result = "刚刚"; | |||||
if(weekC>=1){ | |||||
result= "1周前"; | |||||
}else if(dayC>=1){ | |||||
result=""+ parseInt(dayC) +"天前"; | |||||
} else if(hourC>=1){ | |||||
result=""+ parseInt(hourC) +"小时前"; | |||||
} | |||||
else if(minC>=1){ | |||||
result=""+ parseInt(minC) +"分钟前"; | |||||
}else{ | |||||
result="刚刚"; | |||||
} | } | ||||
return result; | return result; | ||||
} | } | ||||
}, | }, | ||||
methods: { | methods: { | ||||
shecs() { | |||||
this.newListdata = [] | |||||
this.pageNum = 1; | |||||
this.pageSize = 20; | |||||
this.init() | |||||
shecs(){ | |||||
this.newListdata=[] | |||||
this.pageNum=1; | |||||
this.pageSize=20; | |||||
this.init() | |||||
}, | }, | ||||
// tab | // tab | ||||
clocktab(index) { | clocktab(index) { | ||||
this.activeClass = index; | |||||
this.newListdata = [] | |||||
this.pageNum = 1; | |||||
this.pageSize = 20; | |||||
this.activeClass=index; | |||||
this.newListdata=[] | |||||
this.pageNum=1; | |||||
this.pageSize=20; | |||||
this.init() | this.init() | ||||
}, | }, | ||||
init() { | |||||
this.buildingID = uni.getStorageSync('buildingID').id; | |||||
init(){ | |||||
this.buildingID=uni.getStorageSync('buildingID').id; | |||||
const parames = { | const parames = { | ||||
pageNum: this.pageNum, | pageNum: this.pageNum, | ||||
pageSize: this.pageSize, | pageSize: this.pageSize, | ||||
query: { | |||||
imei: this.imei, | |||||
onLine: this.activeClass, | |||||
propertyId: this.buildingID, | |||||
orderType: 1 | |||||
query:{ | |||||
imei:this.imei, | |||||
onLine:this.activeClass, | |||||
propertyId:this.buildingID, | |||||
orderType:1 | |||||
} | } | ||||
} | } | ||||
if (this.activeClass == 0) { | |||||
parames.query.onLine = null | |||||
if(this.activeClass==0){ | |||||
parames.query.onLine=null | |||||
} | } | ||||
this.$u.post("/equipment/apiFindByPage", parames).then(res => { | this.$u.post("/equipment/apiFindByPage", parames).then(res => { | ||||
this.tablist[0].name = "全部(" + res.allCount + ")"; | |||||
this.tablist[1].name = "在线(" + res.eqOnLineCount + ")"; | |||||
this.tablist[2].name = "低电量(" + res.lowElectricityCount + ")"; | |||||
this.tablist[3].name = "今日活跃(" + res.activeCount + ")"; | |||||
this.tablist[4].name = "离线(" + res.eqOffLineCount + ")"; | |||||
if (res.obj.list.results == null) { | |||||
if (this.pageNum == 1) { | |||||
this.tablist[0].name="全部("+res.allCount+")"; | |||||
this.tablist[1].name="在线("+res.eqOnLineCount+")"; | |||||
this.tablist[2].name="低电量("+res.lowElectricityCount+")"; | |||||
this.tablist[3].name="今日活跃("+res.activeCount+")"; | |||||
this.tablist[4].name="离线("+res.eqOffLineCount+")"; | |||||
if(res.obj.list.results==null){ | |||||
if (this.pageNum == 1){ | |||||
return | return | ||||
} else { | |||||
}else{ | |||||
uni.showToast({ | uni.showToast({ | ||||
title: '已经到底了!', | |||||
duration: 2000 | |||||
title: '已经到底了!', | |||||
duration: 2000 | |||||
}); | }); | ||||
} | } | ||||
} else { | |||||
res.obj.list.results.forEach(item => { | |||||
if (item.onLine == 0) { | |||||
item.signalDevice = 0 | |||||
}else{ | |||||
res.obj.list.results.forEach(item=>{ | |||||
if(item.onLine==0){ | |||||
item.signalDevice=0 | |||||
} | } | ||||
if (item.electricity == '') { | |||||
item.electricity = 0 | |||||
if(item.electricity==''){ | |||||
item.electricity=0 | |||||
} | } | ||||
if (item.electricity > 100) { | |||||
item.electricity = 100 | |||||
if(item.electricity>100){ | |||||
item.electricity=100 | |||||
} | } | ||||
let num = this.ascformatDate(item.updateTime) | |||||
if (num > 12) { | |||||
item.electricity = 0 | |||||
let num=this.ascformatDate(item.updateTime) | |||||
if(num>12){ | |||||
item.electricity=0 | |||||
} | } | ||||
}) | }) | ||||
if (this.pageNum == 1) { | if (this.pageNum == 1) { | ||||
this.newListdata = res.obj.list.results | |||||
this.newListdata=res.obj.list.results | |||||
} else { | } else { | ||||
this.newListdata = [...this.newListdata, ...res.obj.list.results]; | |||||
this.newListdata = [...this.newListdata, ...res.obj.list.results]; | |||||
} | } | ||||
} | } | ||||
}) | }) | ||||
}, | }, | ||||
ascformatDate(dateTimeStamp) { | |||||
ascformatDate(dateTimeStamp){ | |||||
let newDate = new Date(dateTimeStamp.replace(/-/g, '/')).getTime(); | let newDate = new Date(dateTimeStamp.replace(/-/g, '/')).getTime(); | ||||
let minute = 1000 * 60; | let minute = 1000 * 60; | ||||
let hour = minute * 60; | let hour = minute * 60; | ||||
let day = hour * 24; | let day = hour * 24; | ||||
let halfamonth = day * 15; | let halfamonth = day * 15; | ||||
let month = day * 30; | let month = day * 30; | ||||
let now = new Date().getTime(); | |||||
let now = new Date().getTime(); | |||||
let diffValue = now - newDate; | let diffValue = now - newDate; | ||||
let result = diffValue / hour; | |||||
let result =diffValue/hour; | |||||
return result; | return result; | ||||
} | } | ||||
}, | }, | ||||
@@ -372,7 +375,6 @@ | |||||
background-color: #333333; | background-color: #333333; | ||||
} | } | ||||
} | } | ||||
.you11 { | .you11 { | ||||
width: 20rpx; | width: 20rpx; | ||||
height: 28rpx; | height: 28rpx; | ||||
@@ -381,7 +383,7 @@ | |||||
background-size: 100% 100%; | background-size: 100% 100%; | ||||
display: flex; | display: flex; | ||||
flex-direction: column-reverse; | flex-direction: column-reverse; | ||||
.youimg { | .youimg { | ||||
width: 100%; | width: 100%; | ||||
background-color: red; | background-color: red; | ||||
@@ -396,7 +398,6 @@ | |||||
color: #333333; | color: #333333; | ||||
margin-left: 6rpx; | margin-left: 6rpx; | ||||
} | } | ||||
.you22 { | .you22 { | ||||
width: 114rpx; | width: 114rpx; | ||||
height: 30rpx; | height: 30rpx; | ||||
@@ -453,7 +454,7 @@ | |||||
font-size: 24rpx; | font-size: 24rpx; | ||||
color: #333333; | color: #333333; | ||||
text-indent: 30rpx; | text-indent: 30rpx; | ||||
.stayupload { | .stayupload { | ||||
color: #F41313; | color: #F41313; | ||||
} | } | ||||
@@ -0,0 +1,142 @@ | |||||
<template> | |||||
<view class="registerCode"> | |||||
<view class="registerImg"> | |||||
<image :src="qrCodeUrl+'/customer/getQrCode?appid='+appid+'&page=pages/mine/registerForm&scene='+projectId" mode=""></image> | |||||
</view> | |||||
<view class="registerBtn" @click="down"> | |||||
保存图片到手机 | |||||
</view> | |||||
</view> | |||||
</template> | |||||
<script> | |||||
let domain = require("@/utils/domain") | |||||
export default { | |||||
data() { | |||||
return { | |||||
qrCodeUrl: "", | |||||
projectId:"", | |||||
appid:"", | |||||
}; | |||||
}, | |||||
onShow() { | |||||
this.projectId = uni.getStorageSync('buildingID').id; | |||||
this.appid = uni.getAccountInfoSync().miniProgram.appId; | |||||
this.qrCodeUrl = domain.baseUrl; | |||||
}, | |||||
methods: { | |||||
down() { | |||||
let url = this.qrCodeUrl+'/customer/getQrCode?appid='+this.appid+'&page=pages/mine/registerForm&scene='+this.projectId | |||||
console.log(url) | |||||
uni.getImageInfo({ | |||||
src:url, | |||||
success: (res) => { | |||||
console.log(res) | |||||
uni.saveImageToPhotosAlbum({ | |||||
filePath:res.path, | |||||
success: () => { | |||||
uni.showToast({ | |||||
title: "保存成功", | |||||
icon: "none" | |||||
}) | |||||
}, | |||||
fail: () => { | |||||
uni.showToast({ | |||||
title: "保存失败", | |||||
icon: "none" | |||||
}) | |||||
} | |||||
}) | |||||
} | |||||
}) | |||||
// uni.getSetting({ | |||||
// success:(res)=> { | |||||
// if(Object.keys(res.authSetting).length>0){ | |||||
// if(res.authSetting['scope.writePhotosAlbum']==undefined){ | |||||
// uni.openSetting({ | |||||
// success: (res) => { | |||||
// console.log("设置权限1",res.authSetting) | |||||
// } | |||||
// }) | |||||
// }else{ | |||||
// if(!res.authSetting['scope.writePhotosAlbum']){ | |||||
// uni.openSetting({ | |||||
// success: (res) => { | |||||
// console.log("设置权限1",res.authSetting) | |||||
// } | |||||
// }) | |||||
// } | |||||
// } | |||||
// }else{ | |||||
// return | |||||
// } | |||||
// } | |||||
// }) | |||||
// uni.downloadFile({ | |||||
// url, | |||||
// success: (res) => { | |||||
// console.log(res) | |||||
// uni.downloadFile({ | |||||
// url, //图片地址 | |||||
// success: (res) => { | |||||
// console.log('downloadFile success', res) | |||||
// if (res.statusCode === 200) { | |||||
// console.log('downloadFile res.statusCode === 200', res) | |||||
// uni.saveImageToPhotosAlbum({ | |||||
// filePath: res.tempFilePath, | |||||
// success: function() { | |||||
// uni.showToast({ | |||||
// title: "保存成功", | |||||
// icon: "none" | |||||
// }) | |||||
// }, | |||||
// fail: function() { | |||||
// uni.showToast({ | |||||
// title: "保存失败", | |||||
// icon: "none" | |||||
// }) | |||||
// } | |||||
// }) | |||||
// } else { | |||||
// console.log('downloadFile res.statusCode !== 200', res) | |||||
// } | |||||
// } | |||||
// }) | |||||
// } | |||||
// }); | |||||
} | |||||
}, | |||||
} | |||||
</script> | |||||
<style lang="scss"> | |||||
.registerCode { | |||||
.registerImg { | |||||
width: 300rpx; | |||||
height: 300rpx; | |||||
margin: 130rpx auto; | |||||
image { | |||||
width: 100%; | |||||
height: 100%; | |||||
} | |||||
} | |||||
.registerBtn { | |||||
width: 80%; | |||||
height: 80rpx; | |||||
background: #3384fd; | |||||
color: #FFFFFF; | |||||
border-radius: 10rpx; | |||||
line-height: 80rpx; | |||||
text-align: center; | |||||
font-size: 30rpx; | |||||
margin: 50rpx auto; | |||||
} | |||||
} | |||||
</style> |
@@ -0,0 +1,329 @@ | |||||
<template> | |||||
<view class="cented-box"> | |||||
<view class="chented" style="margin-bottom: 26rpx;"> | |||||
<view class="title" style="border: none;"> | |||||
<view class="titletext">姓名</view> | |||||
<view class="titletext2"> | |||||
<input maxlength="10" class="titletext-input" style="color: #333333;" v-model="parames.name" | |||||
placeholder-class="titletext-input" placeholder-style="color:#B2B2B2;" type="text" | |||||
placeholder="请输入客户姓名(必填)" /> | |||||
</view> | |||||
<view class="titleimg"> | |||||
<!-- <image class="titleimg1" src="../../../static/images/arrow.png" mode=""></image> --> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<view class="chented"> | |||||
<view class="title"> | |||||
<view class="titletext">性别</view> | |||||
<view class="titletext2 displayclick" style="display: flex;align-items: center;padding-left: 10rpx;"> | |||||
<view class="sexRadio" @click="changeSex(1)" :class="{active:parames.sex == 1}">男士</view> | |||||
<view class="sexRadio" @click="changeSex(2)" :class="{active:parames.sex == 2}">女士</view> | |||||
</view> | |||||
</view> | |||||
<view class="title"> | |||||
<view class="titletext">到访人数</view> | |||||
<view class="titletext2" style="display: flex;align-items: center;justify-content: space-around;"> | |||||
<view class="num" v-for="i in 6" :key="i" :class="{active:parames.howMany == i+1}" | |||||
@click="changeHowMany(i+1)"> | |||||
{{i + 1}} | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<view class="title" @click="Buildingselection()"> | |||||
<view class="titletext">到访途径</view> | |||||
<view class="titletext2" | |||||
style="font-size: 30rpx;font-weight: 400;color: #B2B2B2;line-height: 110rpx;padding-left: 10rpx;"> | |||||
<!-- {{parames.sourceName||'请选择客户来源'}} --> | |||||
<text v-if="parames.sourceName" style="color: #333333;">{{parames.sourceName}}</text> | |||||
<text v-else>请选择客户来源</text> | |||||
</view> | |||||
<view class="titleimg"> | |||||
<image class="titleimg1" src="../../static/images/arrow.png" mode=""></image> | |||||
</view> | |||||
</view> | |||||
<!-- <view class="title" style="border: none;" @click="Buildingselection()"> | |||||
<view class="titletext">咨询业务</view> | |||||
<view class="titletext2" | |||||
style="font-size: 30rpx;font-weight: 400;color: #B2B2B2;line-height: 110rpx;padding-left: 10rpx;"> | |||||
<text v-if="parames.sourceName" style="color: #333333;">{{parames.sourceName}}</text> | |||||
<text v-else>请选择咨询业务</text> | |||||
</view> | |||||
<view class="titleimg"> | |||||
<image class="titleimg1" src="../../static/images/arrow.png" mode=""></image> | |||||
</view> | |||||
</view> --> | |||||
</view> | |||||
<button class="clive" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" v-if="verifyPass">提交</button> | |||||
<view class="clive" @click="save" v-else>提交</view> | |||||
<view v-if="Showhiddenunits"> | |||||
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="list" | |||||
@cancel="cancel" @confirm="confirm"></u-select> | |||||
</view> | |||||
</view> | |||||
</template> | |||||
<script> | |||||
var app = getApp(); | |||||
var config = require("@/config"); | |||||
let domain = require("@/utils/domain") | |||||
export default { | |||||
data() { | |||||
return { | |||||
Showhiddenunits: false, | |||||
list: [{ | |||||
label: '自然到访', | |||||
value: '自然到访' | |||||
}, | |||||
{ | |||||
label: '渠道推荐', | |||||
value: '渠道推荐' | |||||
}, | |||||
], | |||||
parames: { | |||||
name: '', | |||||
sex: 1, | |||||
sourceName: null, | |||||
howMany: 1, | |||||
projectId: '', | |||||
phone:'', | |||||
projectId:'', | |||||
projectName:'xxx' | |||||
}, | |||||
daitiReceptionobj: {}, | |||||
verifyPass:false, | |||||
qrCodeUrl:'' | |||||
}; | |||||
}, | |||||
onLoad(options){ | |||||
const sceneStr = decodeURIComponent(options.scene); | |||||
console.log(options) | |||||
this.parames.projectId = sceneStr | |||||
}, | |||||
watch:{ | |||||
parames:{ | |||||
deep:true, | |||||
handler(newV){ | |||||
if (newV.name.length == 0) { | |||||
this.verifyPass = false; | |||||
}else{ | |||||
this.verifyPass = true; | |||||
} | |||||
} | |||||
} | |||||
}, | |||||
methods: { | |||||
save() { | |||||
if (this.parames.name.length == 0) { | |||||
uni.showToast({ | |||||
icon: "none", | |||||
title: "姓名不能为空" | |||||
}) | |||||
return; | |||||
} | |||||
}, | |||||
getPhoneNumber(e){ | |||||
this.qrCodeUrl = domain.baseUrl | |||||
if(e.detail.errMsg=="getPhoneNumber:ok"){ | |||||
let data = { | |||||
code:e.detail.code, | |||||
appid:uni.getAccountInfoSync().miniProgram.appId, | |||||
} | |||||
uni.request({ | |||||
url:this.qrCodeUrl + '/code/loginSessionKey', | |||||
method:"GET", | |||||
data, | |||||
success:(res)=> { | |||||
console.log(res.data.data) | |||||
let phoneNum = JSON.parse(res.data.data).phone_info.phoneNumber | |||||
this.parames.phone = phoneNum | |||||
if(this.parames.phone!=null && this.parames.phone!=""){ | |||||
if(this.parames.name.length>8){ | |||||
uni.showToast({ | |||||
icon: "none", | |||||
title: "不能超过8个汉字" | |||||
}) | |||||
}else{ | |||||
uni.request({ | |||||
url:this.qrCodeUrl + '/customer/codeAdd', | |||||
method:"POST", | |||||
data:this.parames, | |||||
header: { | |||||
'content-type': 'application/json', | |||||
'Access-Token': uni.getStorageSync('weapp_session_login_data').token | |||||
}, | |||||
success: (addres) => { | |||||
if(addres.data.code == 10000){ | |||||
uni.reLaunch({ | |||||
url:'/pages/mine/registerResult' | |||||
}) | |||||
}else{ | |||||
uni.showToast({ | |||||
icon: "none", | |||||
title: addres.data.message | |||||
}) | |||||
} | |||||
} | |||||
}) | |||||
} | |||||
} | |||||
} | |||||
}) | |||||
}else{ | |||||
return; | |||||
} | |||||
}, | |||||
changeSex(sex) { | |||||
this.parames.sex = sex; | |||||
}, | |||||
changeHowMany(num) { | |||||
this.parames.howMany = num; | |||||
}, | |||||
Buildingselection() { | |||||
this.Showhiddenunits = true; | |||||
}, | |||||
cancel() { | |||||
this.Showhiddenunits = false; | |||||
}, | |||||
confirm(e) { | |||||
this.parames.sourceName = e[0].value; | |||||
this.Showhiddenunits = false; | |||||
}, | |||||
} | |||||
}; | |||||
</script> | |||||
<style lang="scss" scoped> | |||||
.sexRadio { | |||||
color: #BFBFBF; | |||||
border: 1rpx solid #BFBFBF; | |||||
font-size: 24upx; | |||||
width: 120rpx; | |||||
height: 60rpx; | |||||
text-align: center; | |||||
display: flex; | |||||
align-items: center; | |||||
justify-content: center; | |||||
&:last-child { | |||||
margin-left: 20rpx; | |||||
} | |||||
&.active { | |||||
background: #2B6FFF; | |||||
color: #fff; | |||||
border-color: #2B6FFF; | |||||
} | |||||
} | |||||
.num { | |||||
width: 50rpx; | |||||
height: 50rpx; | |||||
background: rgba(43, 110, 253, 0.1); | |||||
color: #2B6EFD; | |||||
font-size: 30rpx; | |||||
display: flex; | |||||
align-items: center; | |||||
justify-content: center; | |||||
&.active { | |||||
background: #2B6EFD; | |||||
color: #FFFFFF; | |||||
} | |||||
} | |||||
.cented-box { | |||||
background: #F8F8F8; | |||||
width: 100%; | |||||
height: 100vh; | |||||
} | |||||
.Pinspeak { | |||||
width: 100%; | |||||
height: 92rpx; | |||||
border-bottom: 1rpx solid #E0E0E0; | |||||
font-size: 32rpx; | |||||
font-weight: bold; | |||||
color: #333333; | |||||
text-indent: 30rpx; | |||||
line-height: 92rpx; | |||||
background: #FFFFFF; | |||||
margin-top: 20rpx; | |||||
padding-left: 10rpx; | |||||
} | |||||
.chented { | |||||
width: 100%; | |||||
padding-left: 30rpx; | |||||
padding-right: 30rpx; | |||||
background-color: #FFFFFF; | |||||
.title { | |||||
width: 100%; | |||||
height: 110rpx; | |||||
border-bottom: 1rpx solid #E0E0E0; | |||||
display: flex; | |||||
align-items: center; | |||||
.titletext { | |||||
width: 21%; | |||||
height: 110rpx; | |||||
font-size: 30rpx; | |||||
font-weight: 400; | |||||
color: #333333; | |||||
line-height: 110rpx; | |||||
text-indent: 10rpx; | |||||
} | |||||
.titletext2 { | |||||
width: 71%; | |||||
height: 110rpx; | |||||
} | |||||
.titletext-input { | |||||
width: 100%; | |||||
height: 110rpx; | |||||
font-size: 30rpx; | |||||
font-weight: 400; | |||||
color: #B2B2B2; | |||||
line-height: 110rpx; | |||||
padding-left: 10rpx; | |||||
} | |||||
.titleimg { | |||||
width: 8%; | |||||
text-align: right; | |||||
.titleimg1 { | |||||
width: 16rpx; | |||||
height: 36rpx; | |||||
} | |||||
} | |||||
} | |||||
} | |||||
.clive { | |||||
position: absolute; | |||||
bottom: 32rpx; | |||||
left: 30rpx; | |||||
right: 30rpx; | |||||
width: 690rpx; | |||||
height: 88rpx; | |||||
background: #2671E2; | |||||
text-align: center; | |||||
line-height: 88rpx; | |||||
color: #FFFFFF; | |||||
border-radius: 8rpx; | |||||
font-size: 32rpx; | |||||
} | |||||
</style> |
@@ -0,0 +1,45 @@ | |||||
<template> | |||||
<view class="registerCode"> | |||||
<view class="registerImg"> | |||||
<image src="../../static/images/scuess.png" mode=""></image> | |||||
</view> | |||||
<view class="registerBtn"> | |||||
提交成功 | |||||
</view> | |||||
</view> | |||||
</template> | |||||
<script> | |||||
export default { | |||||
data() { | |||||
return { | |||||
}; | |||||
} | |||||
} | |||||
</script> | |||||
<style lang="scss"> | |||||
.registerCode{ | |||||
.registerImg{ | |||||
width: 300rpx; | |||||
height: 300rpx; | |||||
margin: 130rpx auto; | |||||
image{ | |||||
width: 100%; | |||||
height: 100%; | |||||
} | |||||
} | |||||
.registerBtn{ | |||||
width: 80%; | |||||
height: 80rpx; | |||||
background: #3384fd; | |||||
color: #FFFFFF; | |||||
border-radius: 10rpx; | |||||
line-height: 80rpx; | |||||
text-align: center; | |||||
font-size: 30rpx; | |||||
margin: 50rpx auto; | |||||
} | |||||
} | |||||
</style> |
@@ -0,0 +1,35 @@ | |||||
var crypto = require('crypto') | |||||
function WXBizDataCrypt(appId, sessionKey) { | |||||
this.appId = appId | |||||
this.sessionKey = sessionKey | |||||
} | |||||
WXBizDataCrypt.prototype.decryptData = function (encryptedData, iv) { | |||||
// base64 decode | |||||
var sessionKey = new Buffer(this.sessionKey, 'base64') | |||||
encryptedData = new Buffer(encryptedData, 'base64') | |||||
iv = new Buffer(iv, 'base64') | |||||
try { | |||||
// 解密 | |||||
var decipher = crypto.createDecipheriv('aes-128-cbc', sessionKey, iv) | |||||
// 设置自动 padding 为 true,删除填充补位 | |||||
decipher.setAutoPadding(true) | |||||
var decoded = decipher.update(encryptedData, 'binary', 'utf8') | |||||
decoded += decipher.final('utf8') | |||||
decoded = JSON.parse(decoded) | |||||
} catch (err) { | |||||
throw new Error('Illegal Buffer') | |||||
} | |||||
if (decoded.watermark.appid !== this.appId) { | |||||
throw new Error('Illegal Buffer') | |||||
} | |||||
return decoded | |||||
} | |||||
module.exports = WXBizDataCrypt |
@@ -1,6 +1,8 @@ | |||||
// http.js使用域名 | // http.js使用域名 | ||||
// const baseUrl = 'http://192.168.31.57:8080/autoSR/api';// 本地 | // const baseUrl = 'http://192.168.31.57:8080/autoSR/api';// 本地 | ||||
// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站/ | |||||
// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 | |||||
// const baseUrl = 'http://192.168.31.92:8080/api';// sh | |||||
// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 测试站 | |||||
// const baseUrl = 'http://192.168.31.167:8080/autoSR/api'; // 长龙 | // const baseUrl = 'http://192.168.31.167:8080/autoSR/api'; // 长龙 | ||||
// const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 | // const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 | ||||
// const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | // const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | ||||