| const http = {}; | const http = {}; | ||||
| http.get = function get(url, data, cb) { | http.get = function get(url, data, cb) { | ||||
| console.log(getApi(), url, data) | 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')) { | if (!wx.getStorageSync('token')) { | ||||
| wx.showToast({ | wx.showToast({ | ||||
| title: '请先登录', | title: '请先登录', |
| }, | }, | ||||
| toApplyFor() { | 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' | |||||
| }) | |||||
| } | |||||
| } | } | ||||
| }) | }) |
| this.getPublicityList(this.data.searchParams); | this.getPublicityList(this.data.searchParams); | ||||
| }, | }, | ||||
| toApplyFor() { | 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', | |||||
| }) | |||||
| }, | }, | ||||
| * 生命周期函数--监听页面加载 | * 生命周期函数--监听页面加载 | ||||
| */ | */ | ||||
| onShow(options) { | onShow(options) { | ||||
| let self = this; | |||||
| self.setData({ | |||||
| publicityList: [] | |||||
| }) | |||||
| this.getPublicityList(this.data.searchParams); | this.getPublicityList(this.data.searchParams); | ||||
| }, | }, | ||||
| getPublicityList(val) { | getPublicityList(val) { |
| const reqInterface = require("../../../api/models"); | const reqInterface = require("../../../api/models"); | ||||
| const reg = require("../../../utils/regHelper"); | const reg = require("../../../utils/regHelper"); | ||||
| import { | |||||
| matchValue | |||||
| } from '../../../utils/dataHelper' | |||||
| const {matchValue, imagePrefix} = require("../../../utils/dataHelper"); | |||||
| Page({ | Page({ | ||||
| /** | /** | ||||
| * 页面的初始数据 | * 页面的初始数据 | ||||
| */ | */ | ||||
| data: { | data: { | ||||
| api: '', | |||||
| id: '', | id: '', | ||||
| info: { | info: { | ||||
| // 基本信息 | // 基本信息 | ||||
| */ | */ | ||||
| onShow() { | onShow() { | ||||
| let self = this; | let self = this; | ||||
| self.setData({ | |||||
| api: imagePrefix() | |||||
| }) | |||||
| // 获取退休年龄 | // 获取退休年龄 | ||||
| reqInterface.GetBladeSystemDictDictionary({ | reqInterface.GetBladeSystemDictDictionary({ | ||||
| code: 'retire_age' | code: 'retire_age' |
| */ | */ | ||||
| onShow() { | onShow() { | ||||
| let self = this; | let self = this; | ||||
| self.setData({ | |||||
| applyForList: [] | |||||
| }) | |||||
| self.getApplyForList(self.data.searchParams); | self.getApplyForList(self.data.searchParams); | ||||
| }, | }, | ||||
| <view class="label">申请人:</view> | <view class="label">申请人:</view> | ||||
| <view>{{item.name}}</view> | <view>{{item.name}}</view> | ||||
| </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> | ||||
| <view class="card-body"> | <view class="card-body"> | ||||
| <view class="card-body-info"> | <view class="card-body-info"> |