Browse Source

fix

master
Soleilw 1 year ago
parent
commit
03b5e31e75

+ 1
- 1
api/index.js View File

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

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

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

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

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


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

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

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

@@ -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'

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

@@ -54,6 +54,9 @@ Page({
*/
onShow() {
let self = this;
self.setData({
applyForList: []
})
self.getApplyForList(self.data.searchParams);
},


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

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

Loading…
Cancel
Save