@@ -27,7 +27,7 @@ function queryData(data) { | |||
const http = {}; | |||
http.get = function get(url, data, cb) { | |||
console.log(getApi(), url, data) | |||
if (url != '/blade-auth/token' && url != '/grants/wechat/consumerinfopublic/list' && url != '/grants/wechat/consumerinfopublic/detail') { | |||
if (url != '/blade-auth/token' && url != '/grants/wechat/consumerinfopublic/list' && url != '/grants/wechat/consumerinfopublic/detail' && url != '/grants/wechat/guide') { | |||
if (!wx.getStorageSync('token')) { | |||
wx.showToast({ | |||
title: '请先登录', |
@@ -26,8 +26,15 @@ Page({ | |||
}, | |||
toApplyFor() { | |||
wx.navigateTo({ | |||
url: '/pages/info/index/index', | |||
}) | |||
if(wx.getStorageSync('token')) { | |||
wx.navigateTo({ | |||
url: '/pages/info/index/index', | |||
}) | |||
} else { | |||
wx.showToast({ | |||
title: '请先登录', | |||
icon: 'none' | |||
}) | |||
} | |||
} | |||
}) |
@@ -54,16 +54,10 @@ Page({ | |||
this.getPublicityList(this.data.searchParams); | |||
}, | |||
toApplyFor() { | |||
if(wx.getStorageSync('token')) { | |||
wx.navigateTo({ | |||
url: '/pages/home/guide/detail/index', | |||
}) | |||
} else { | |||
wx.showToast({ | |||
title: '请先登录', | |||
icon: 'none' | |||
}) | |||
} | |||
wx.navigateTo({ | |||
url: '/pages/home/guide/detail/index', | |||
}) | |||
}, | |||
@@ -20,6 +20,10 @@ Page({ | |||
* 生命周期函数--监听页面加载 | |||
*/ | |||
onShow(options) { | |||
let self = this; | |||
self.setData({ | |||
publicityList: [] | |||
}) | |||
this.getPublicityList(this.data.searchParams); | |||
}, | |||
getPublicityList(val) { |
@@ -1,14 +1,14 @@ | |||
const reqInterface = require("../../../api/models"); | |||
const reg = require("../../../utils/regHelper"); | |||
import { | |||
matchValue | |||
} from '../../../utils/dataHelper' | |||
const {matchValue, imagePrefix} = require("../../../utils/dataHelper"); | |||
Page({ | |||
/** | |||
* 页面的初始数据 | |||
*/ | |||
data: { | |||
api: '', | |||
id: '', | |||
info: { | |||
// 基本信息 | |||
@@ -91,8 +91,10 @@ Page({ | |||
*/ | |||
onShow() { | |||
let self = this; | |||
self.setData({ | |||
api: imagePrefix() | |||
}) | |||
// 获取退休年龄 | |||
reqInterface.GetBladeSystemDictDictionary({ | |||
code: 'retire_age' |
@@ -54,6 +54,9 @@ Page({ | |||
*/ | |||
onShow() { | |||
let self = this; | |||
self.setData({ | |||
applyForList: [] | |||
}) | |||
self.getApplyForList(self.data.searchParams); | |||
}, | |||
@@ -19,7 +19,7 @@ | |||
<view class="label">申请人:</view> | |||
<view>{{item.name}}</view> | |||
</view> | |||
<view bind:tap="toApplyFor" style="color: #1677ff;" data-id="{{item.id}}" wx:if="{{item.consumerInfoCheckVOList[0].statusName == '不通过' || item.status == 0}}">修改资料</view> | |||
<view bind:tap="toApplyFor" style="color: #1677ff;" data-id="{{item.id}}" wx:if="{{(item.consumerInfoCheckVOList[0].statusName == '不通过' && item.status == 2) || item.status == 0}}">修改资料</view> | |||
</view> | |||
<view class="card-body"> | |||
<view class="card-body-info"> |