Commit 8f230e94 authored by lei's avatar lei

fix:主页跳转路径

parent 61bdd9b3
...@@ -70,7 +70,7 @@ window.onload = function () { ...@@ -70,7 +70,7 @@ window.onload = function () {
className: 'yinhuan', className: 'yinhuan',
title: '隐患整改', title: '隐患整改',
remark: '', remark: '',
navTo: 'yinhuanzhenggai', navTo: 'yh-check',
}, },
{ {
className: 'shangjia', className: 'shangjia',
...@@ -82,7 +82,7 @@ window.onload = function () { ...@@ -82,7 +82,7 @@ window.onload = function () {
className: 'zicha', className: 'zicha',
title: '安全自查', title: '安全自查',
remark: '', remark: '',
navTo: 'checkrecord', navTo: 'check_info',
}, },
], ],
// 修改默认菜单结构为最小化配置 // 修改默认菜单结构为最小化配置
...@@ -112,10 +112,13 @@ window.onload = function () { ...@@ -112,10 +112,13 @@ window.onload = function () {
success: function (data) { success: function (data) {
// 获取到data为二维码的url路径,从这里取请求参数,商户id,在下面跳转本地系统路径 // 获取到data为二维码的url路径,从这里取请求参数,商户id,在下面跳转本地系统路径
// alert('扫码成功'+JSON.stringify(data)) // alert('扫码成功'+JSON.stringify(data))
// location.href = 'shanghu_home.html' // location.href = 'shanghu_home.html'
// let param = {
gemhoUtil.navigatePage(`src/_checkrecord.html`) // accessType: 'saoma',
// merId: data,
// }
// let url = gemhoUtil.setParameter(`_shanghu_home.html`, param)
// gemhoUtil.navigatePage(url, '跳转中...')
//成功回调 //成功回调
}, },
fail: function (data) { fail: function (data) {
...@@ -124,17 +127,22 @@ window.onload = function () { ...@@ -124,17 +127,22 @@ window.onload = function () {
}, },
}) })
} else { } else {
this.userInfo.userType === 'shop' this.userInfo.userType === 'shop' && toData === 'checkrecord'
? (toData = 'checkrecord') ? (toData = 'checkrecord')
: (toData = 'shanghu_list') : (toData = 'shanghu_list')
let param = { let param = {
// id: itme.id,
// unitName: itme.unitName,
// smallPlaceTypeName: itme.smallPlaceTypeName,
// pageName: '_shanghu_list',
accessType: this.accessType, accessType: this.accessType,
} }
let url = gemhoUtil.setParameter(`_${toData}.html`, param) if (this.userInfo.userType === 'shop') {
param = {
accessType: 'shop',
merId: this.userInfo.userId,
unitName: this.userInfo.unitName,
smallPlaceTypeName: this.userInfo.smallPlaceTypeName,
}
}
let url = gemhoUtil.setParameter(`src/_${toData}.html`, param)
gemhoUtil.navigatePage(url, '跳转中...') gemhoUtil.navigatePage(url, '跳转中...')
// gemhoUtil.navigatePage(`src/_${toData}.html`) // gemhoUtil.navigatePage(`src/_${toData}.html`)
} }
...@@ -218,7 +226,8 @@ window.onload = function () { ...@@ -218,7 +226,8 @@ window.onload = function () {
result.data.merchantInfoNumVo?.smallPlaceTypeName, // result.data.merchantInfoNumVo?.smallPlaceTypeName, //
unitName: result.data.merchantInfoNumVo?.unitName, // unitName: result.data.merchantInfoNumVo?.unitName, //
role: 'dudao', role: 'dudao',
roleName: result.data.roleDeptNameVo.roleName, roleName: result.data.roleDeptNameVo?.roleName,
merId: result.data.merchantInfoNumVo?.merId, //
} }
gemhoUtil.setCookie('userType', this.userInfo.userType) gemhoUtil.setCookie('userType', this.userInfo.userType)
// 生成最终菜单列表 // 生成最终菜单列表
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* 请求拦截、相应拦截、错误统一处理 * 请求拦截、相应拦截、错误统一处理
*/ */
// 环境的切换 // 环境的切换
axios.defaults.baseURL = 'http://192.168.2.37:8080' axios.defaults.baseURL = 'http://192.168.2.16:8080'
axios.defaults.timeout = 50000 axios.defaults.timeout = 50000
// post请求头 // post请求头
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8' // axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
......
...@@ -26,7 +26,7 @@ window.addEventListener('load', function () { ...@@ -26,7 +26,7 @@ window.addEventListener('load', function () {
}, },
created() { created() {
let urlParams = gemhoUtil.getUrlParams() let urlParams = gemhoUtil.getUrlParams()
this.merId = urlParams.id this.merId = urlParams.merId
this.unitName = urlParams.unitName this.unitName = urlParams.unitName
this.smallPlaceTypeName = urlParams.smallPlaceTypeName this.smallPlaceTypeName = urlParams.smallPlaceTypeName
this.init() this.init()
......
...@@ -26,7 +26,7 @@ window.addEventListener('load', function () { ...@@ -26,7 +26,7 @@ window.addEventListener('load', function () {
}, },
viewDetail(itme) { viewDetail(itme) {
let param = { let param = {
id: itme.id, merId: itme.id,
unitName: itme.unitName, unitName: itme.unitName,
smallPlaceTypeName: itme.smallPlaceTypeName, smallPlaceTypeName: itme.smallPlaceTypeName,
pageName: '_shanghu_list', pageName: '_shanghu_list',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment