Commit 799f551f authored by xinzhedeai's avatar xinzhedeai

fix:检查单选项34的JSON.stringify parse问题处理。

parent 88656e2f
......@@ -198,11 +198,10 @@ window.onload = function() {
this.showShop = false //是否显示店铺
}
console.log('菜单', result.data.modules)
// console.log('菜单', result.data.modules)
// 生成最终菜单列表
this.menuList = result.data.modules
gemhoUtil.setCookie('yesItemIds', JSON.stringify(result.data.itemIds))
gemhoUtil.setCookie('yesItemIds',result.data.itemIds.join(','))
resolve();
}
})
......
......@@ -25,8 +25,9 @@
var VUE = null
// 隐患选择是的时候的编号特殊处理
// const YES_YH_NO = [8, 9, 12, 22, 28, 31, 32, 33, 34, 35]
const YES_YH_NO = JSON.parse(gemhoUtil.getCookie('yesItemIds'))
// split之后 ["8", "9", "12", "14", "22", "23", "28", "34", "35", "36"] 为字符串,需要转化为数字类型。
const YES_YH_NO = gemhoUtil.getCookie('yesItemIds').split(',').map(item => item*1)
// console.log(YES_YH_NO, 'yesno')
window.onload = function () {
......@@ -457,7 +458,7 @@ window.onload = function () {
},
},
(res) => {
console.log('接口回调数据1111template', res)
// console.log('接口回调数据1111template', res)
if (!res) { // 中台返回为undefined 重新请求
vant.Toast.clear()
setTimeout(() => {
......
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