bug修复

This commit is contained in:
13405411873 2025-05-12 13:59:02 +08:00
parent fb72a18e24
commit 0990b25d1d
10 changed files with 48 additions and 31 deletions

View File

@ -38,11 +38,6 @@
},
initConfig() {
this.globalData.config = config
},
checkLogin() {
if (!getToken()) {
this.$tab.reLaunch('/pages/login')
}
}
}
}

View File

@ -1,8 +1,8 @@
// 应用全局配置
module.exports = {
//baseUrl: 'https://3w823u8516.vicp.fun/noticeApi',
//baseUrl: 'https://www.ddtg.site/noticeApi',
baseUrl: 'http://192.168.1.31:8088',
baseUrl: 'https://www.ddtg.site/noticeApi',
//baseUrl: 'http://192.168.1.6:8088',
// 应用信息
appInfo: {
// 应用名称

View File

@ -12,6 +12,8 @@
</view>
<!-- 操作按钮 -->
<view class="opt-button-box">
<view style="flex: 1;display: flex;align-items: self-start;">报名卡片{{item.cardName}}</view>
<view class="opt-item" v-if="item.signStatus=='已通过'&&item.isEvaluate == 0" @click="evaluate(item)">评价
</view>
<view class="opt-item" @click="goDetail(item)">查看详情</view>

View File

@ -202,7 +202,8 @@
import constant from '@/utils/constant';
import store from '@/store'
import {
changeUserType
changeUserType,
showConfirm
} from '@/utils/common.js'
import {
treeCity
@ -569,11 +570,8 @@
goDetail(item) {
let userInfo = getJSONData(constant.userInfo)
if (!userInfo) {
store.dispatch('LogOut').then(res => {
uni.reLaunch({
url: '/pages/login'
})
})
console.log(572);
this.$tab.navigateTo(`/pages/notice/detail?id=${item.id}`)
} else {
let userType = getUserType()

View File

@ -13,8 +13,7 @@
<view class="left-text">
<view class="text-item">
<image class="dl-icon" src="@/static/index/money.png" mode="aspectFit"></image>
<view v-if="null==item.feeUp" class="dl-content">奖励无稿费</view>
<view v-else class="dl-content">奖励¥{{item.feeDown}}-{{item.feeUp}}</view>
<view class="dl-content">奖励¥{{item.feeDown}}-{{item.feeUp==null?'无上限':item.feeUp}}</view>
</view>
<view class="text-item">
<image class="dl-icon" src="@/static/index/my.png" mode="aspectFit"></image>
@ -59,8 +58,9 @@
<view class="left-text">
<view class="text-item">
<image class="dl-icon" src="@/static/index/money.png" mode="aspectFit"></image>
<view v-if="null==dataObj.feeUp" class="dl-content">奖励无稿费</view>
<view v-else class="dl-content">奖励¥{{dataObj.feeDown}}-{{dataObj.feeUp}}</view>
<view class="dl-content">奖励¥{{dataObj.feeDown}}-{{dataObj.feeUp==null?'无上限':dataObj.feeUp}}
</view>
</view>
<view class="text-item">
<image class="dl-icon" src="@/static/index/my.png" mode="aspectFit"></image>
@ -70,7 +70,7 @@
</view>
<view class="text-item" style="border-bottom: 1rpx solid #F4F4F4;padding-bottom: 10rpx;">
<image class="dl-icon" src="@/static/index/xing.png" mode="aspectFit"></image>
<view class="dl-content">类型{{dataObj.bloggerTypesText}}</view>
<view class="dl-content">类型{{dataObj.bloggerTypesText||'无限制'}}</view>
</view>
<view class="text-item" style="padding-top: 10rpx;">
<view class="item-box">

View File

@ -117,6 +117,12 @@
} else {
console.error('Component not found');
}
if (this.$refs.myNotice) {
this.$refs.myNotice.search()
}
if (this.$refs.myNoticeTg) {
this.$refs.myNoticeTg.search()
}
});
this.refreshUserType()
setTimeout(() => {

View File

@ -134,6 +134,7 @@
},
//
async getPhone(e) {
console.log(this.ifAgree, 137);
if (!this.ifAgree) {
toast("请先阅读并同意《隐私协议》《用户服务协议》")
return

View File

@ -61,7 +61,8 @@
<script>
import {
toast
toast,
showConfirm
} from '@/utils/common.js'
import {
getJSONData
@ -130,10 +131,15 @@
goDetail(item) {
let userInfo = getJSONData(constant.userInfo)
if (!userInfo) {
store.dispatch('LogOut').then(res => {
uni.reLaunch({
url: '/pages/login'
})
showConfirm('登录状态已过期,您可以继续留在该页面,或者重新登录?').then(res => {
if (res.confirm) {
store.dispatch('LogOut').then(res => {
console.log('跳转');
uni.navigateTo({
url: '/pages/login'
})
})
}
})
} else {

View File

@ -363,6 +363,7 @@
},
onShow() {
console.log(366);
if (null != getJSONData(constant.userInfo)) {
this.userInfo = getJSONData(constant.userInfo)
}

View File

@ -44,9 +44,17 @@ const request = config => {
const code = res.data.code || 200
const msg = errorCode[code] || res.data.msg || errorCode['default']
if (code === 401) {
uni.navigateTo({
url: '/pages/login?canBack=true'
showConfirm('登录状态已过期,您可以继续留在该页面,或者重新登录?').then(res => {
if (res.confirm) {
store.dispatch('LogOut').then(res => {
console.log('跳转');
uni.navigateTo({
url: '/pages/login?canBack=true'
})
})
}
})
} else if (code === 500) {
toast(msg)
reject(msg)