|
@@ -22,6 +22,8 @@ $(function () {
|
|
$.post("/subscribepay/afterPay/setUserInfo", {pageType: "other_buyerclass", other: index}, function (r) {
|
|
$.post("/subscribepay/afterPay/setUserInfo", {pageType: "other_buyerclass", other: index}, function (r) {
|
|
if (r.flag) {
|
|
if (r.flag) {
|
|
checkedflag_other = true;
|
|
checkedflag_other = true;
|
|
|
|
+ console.log("index:"+index)
|
|
|
|
+ console.log(reqData)
|
|
reqData.otherbuyerclass = index;
|
|
reqData.otherbuyerclass = index;
|
|
sessionStorage.setItem('sub_vip_state', JSON.stringify(reqData))
|
|
sessionStorage.setItem('sub_vip_state', JSON.stringify(reqData))
|
|
}
|
|
}
|
|
@@ -107,6 +109,7 @@ $(function () {
|
|
sessionStorage.setItem('sub_vip_state', globalStateStr);
|
|
sessionStorage.setItem('sub_vip_state', globalStateStr);
|
|
sessionStorage.setItem('vip_index_read', true);
|
|
sessionStorage.setItem('vip_index_read', true);
|
|
globalState = JSON.parse(globalStateStr);
|
|
globalState = JSON.parse(globalStateStr);
|
|
|
|
+ reqData = JSON.parse(globalStateStr);
|
|
init(res.data)
|
|
init(res.data)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -242,9 +245,9 @@ $(function () {
|
|
|
|
|
|
// 其他采购单位行业问号点击事件
|
|
// 其他采购单位行业问号点击事件
|
|
$('.other .icon-bangzhu').on('click', function () {
|
|
$('.other .icon-bangzhu').on('click', function () {
|
|
- var str = '每条信息的采购单位行业属性由机器自动识别,会存在少数无法识别的情况,此时将归类为“其他”。'
|
|
|
|
|
|
+ var str = '每条信息的采购单位行业属性由机器自动识别,会存在少数无法识别的情况,此时将归类为“其它”。'
|
|
weui.alert(str, {
|
|
weui.alert(str, {
|
|
- title: '“其他”采购单位',
|
|
|
|
|
|
+ title: '“其它”采购单位',
|
|
className: 'jy-alert',
|
|
className: 'jy-alert',
|
|
buttons: [{
|
|
buttons: [{
|
|
label: '我知道了'
|
|
label: '我知道了'
|
|
@@ -311,7 +314,7 @@ $(function () {
|
|
} else {
|
|
} else {
|
|
$this.removeClass('checked');
|
|
$this.removeClass('checked');
|
|
setotherbuyerclass(0);
|
|
setotherbuyerclass(0);
|
|
- weui.toast('“其他”采购单位已关闭', {
|
|
|
|
|
|
+ weui.toast('“其它”采购单位已关闭', {
|
|
duration: 1500,
|
|
duration: 1500,
|
|
className: 'jy-toast other-buyerclass',
|
|
className: 'jy-toast other-buyerclass',
|
|
callback: function () {
|
|
callback: function () {
|
|
@@ -600,7 +603,7 @@ $(function () {
|
|
var selectTime = "";
|
|
var selectTime = "";
|
|
|
|
|
|
function init(state) {
|
|
function init(state) {
|
|
- console.log(state.ohterbuyerclass)
|
|
|
|
|
|
+ console.log(state)
|
|
// init 已选择的区域和行业
|
|
// init 已选择的区域和行业
|
|
var selectedAreaAndInd = getBuySet(state.area, state.industry);
|
|
var selectedAreaAndInd = getBuySet(state.area, state.industry);
|
|
setSelectedAreaAndInd(selectedAreaAndInd);
|
|
setSelectedAreaAndInd(selectedAreaAndInd);
|
|
@@ -650,6 +653,7 @@ $(function () {
|
|
}
|
|
}
|
|
|
|
|
|
// 初始化“其他"开关
|
|
// 初始化“其他"开关
|
|
|
|
+ console.log(state.otherbuyerclass)
|
|
if (state.otherbuyerclass==1||state.otherbuyerclass==null) {
|
|
if (state.otherbuyerclass==1||state.otherbuyerclass==null) {
|
|
$('.switch_other').addClass('checked')
|
|
$('.switch_other').addClass('checked')
|
|
} else {
|
|
} else {
|