Browse Source

fix

master
Soleilw 1 year ago
parent
commit
03b5e31e75

+ 1
- 1
api/index.js View File

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: '请先登录',

+ 10
- 3
pages/home/guide/detail/index.js View File

}, },


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'
})
}
} }
}) })

+ 4
- 10
pages/home/index/index.js View File

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',
})
}, },



+ 4
- 0
pages/home/publicity/index/index.js View File

* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onShow(options) { onShow(options) {
let self = this;
self.setData({
publicityList: []
})
this.getPublicityList(this.data.searchParams); this.getPublicityList(this.data.searchParams);
}, },
getPublicityList(val) { getPublicityList(val) {

+ 6
- 4
pages/info/index/index.js View File

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'

+ 3
- 0
pages/my/schedule/index.js View File

*/ */
onShow() { onShow() {
let self = this; let self = this;
self.setData({
applyForList: []
})
self.getApplyForList(self.data.searchParams); self.getApplyForList(self.data.searchParams);
}, },



+ 1
- 1
pages/my/schedule/index.wxml View File

<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">

Loading…
Cancel
Save