feat(userData): 移除无用字段,处理用户昵称保存报错的问题,订单列表高级筛选问题修复

This commit is contained in:
ywk 2025-04-07 18:00:26 +08:00
parent 27f7a374f4
commit 36461e76b6
4 changed files with 109 additions and 91 deletions

14
App.vue
View File

@ -12,14 +12,14 @@ export default {
//
const whiteList = [
'pages/shareRegist/index',
'pages/shareRegist/success',
// 'pages/shareRegist/index',
// 'pages/shareRegist/success',
'pages/login/index',
'pages/wechatPay/bfPay/',
'pages/wechatPay/hfPay/',
'pages/shareArea/hiList',
'pages/shareArea/hiOrder',
'pages/pay/hiPay'
// 'pages/wechatPay/bfPay/',
// 'pages/wechatPay/hfPay/',
// 'pages/shareArea/hiList',
// 'pages/shareArea/hiOrder',
// 'pages/pay/hiPay'
]
if (whiteList.indexOf(url) !== -1) {
} else {

View File

@ -23,24 +23,34 @@
<!-- <view class="kuang">
{{userInfo.pkAwardsVal}}
</view> -->
<view class="btom_inder">
<!-- <view class="btom_inder">
<view class="jxbox">
<!-- <image
<image
class="jximg"
@click="goRoad(1)"
:src="userInfo.gradeIcon"
mode=""
></image> -->
></image>
</view>
<!-- <view class="jxbox">
<view class="jxbox">
<image class="jximg" @click="goRoad(2)" :src="userInfo.awardsIcon" mode=""></image>
</view>
</view> -->
<view class="grade_left">
<view class="gra_left1" v-if="userData.registerAuthority">
<image
class="gra_icon"
src="@/static/images/fw_icon.png"
mode=""
></image>
<view class="">
{{ userData.registerAuthorityVal }}
</view>
</view>
<view class="cmem">
<view class="tTit2"
>{{ '结算等级' }}:{{ userInfo.pkGradeVal }}</view
>
</view>
</view>
<!-- <view class="cmem">
<view class="grade_left">
<view class="gra_left1" v-if="userData.registerAuthority">
<image
@ -63,7 +73,7 @@
</view>
</view>
</view>
</view>
</view> -->
</view>
</view>
<view class="top_right" @click="goTo('/pages/userData/index')">
@ -86,13 +96,17 @@
<view class="jxTit1">{{ awardsList.maxAwardsName }}</view>
</view>
<view class="jxTit">
<view>{{ '结算等级' }}</view>
<view class="jxTit1">{{ userInfo.pkGradeVal }}</view>
</view>
<!-- <view class="jxTit">
<view>{{ '上月奖衔' }}</view>
<view class="jxTit1">{{ awardsList.awardsName }}</view>
</view>
<view class="jxTit" v-if="awardsList.historyAwards">
</view> -->
<!-- <view class="jxTit" v-if="awardsList.historyAwards">
<view>{{ '历史荣誉' }}</view>
<view class="yt1">{{ awardsList.historyAwards }} </view>
</view>
</view> -->
</view>
<view class="ju_grade" v-if="!ifSpecial">
<!-- <view class="ju_title">
@ -1185,7 +1199,7 @@ export default {
font-size: 12px;
color: #fb3024;
font-weight: 400;
margin-left: 20rpx;
// margin-left: 20rpx;
.gra_left1 {
background: #ffffff;
border: 1rpx solid #ffffff;
@ -1201,9 +1215,9 @@ export default {
margin-right: 6rpx;
}
}
.gra_left1:last-child {
margin-left: 20rpx;
}
// .gra_left1:last-child {
// margin-left: 20rpx;
// }
}
.grade_flex {

View File

@ -10,36 +10,27 @@
<view class="index_header">
<view>{{'我的订单'}}</view>
</view>
<view class="shareImg"
@click="rightOpen">
<img src="@/static/images/serach_999.png"
alt="">
<!-- <view class="clearFilter" @click="clearFilter">
清除筛选
</view> -->
<view
class="shareImg"
@click="rightOpen"
>
<img
src="@/static/images/serach_999.png"
alt=""
/>
</view>
<view class="zhan1"></view>
<view class="con_top">
<!-- <view class="seach">
<view class="seach_i" @tap="goSeach">
<u--input prefixIcon="search" v-model="select.queryStr" prefixIconStyle="font-size: 22px;color: #909399;height:32px" border="none" placeholder="请输入关键字" suffixIconStyle="color: #909399"></u--input>
</view>
<view class="seatch_r" @click="getDataList">
<u-icon name="search" size="22" color="#fff"></u-icon>
</view>
</view> -->
<!-- 日期区间 -->
<!-- <view class="timeSlide">
<view class="timeA">{{'日期区间'}}</view>
<view class="timeB" @click="openDate(0)">{{ select.creationTimeStart?select.creationTimeStart:'开始时间' }}</view>
<view class="timeA">{{'至'}}</view>
<view class="timeB" @click="openDate(1)">{{ select.creationTimeEnd?select.creationTimeEnd:'结束时间' }}</view>
</view>
<view class="hui"></view> -->
<view class="tab">
<view v-for="(item, index) in orderStatusList"
:key="index"
@click="isTab = item.value"
class="tab_i">
<view>{{ item.label }}</view>
<view :class="[isTab===item.value?'heng':'heng1']">
<view :class="isTab===item.value?'heng':'heng1'">
</view>
</view>
</view>
@ -48,6 +39,7 @@
<view class="zhan"></view>
<view v-for="(item, index) in orderLists"
:key="index"
class="orderList_i">
<view @click.stop="getDetails(item)">
<view class="disFlex atm just mbt10">
@ -508,6 +500,7 @@ export default {
getDataList(index) {
if (index) {
this.queryParams.pageNum = 1
this.orderLists = []
}
this.rightShow = false
api
@ -546,6 +539,14 @@ export default {
height: 40rpx;
}
}
.clearFilter {
position: fixed;
top: 28rpx;
right: 90rpx;
z-index: 1000000000;
color: #999;
font-size: 28rpx;
}
.zhan1 {
height: 50px;

View File

@ -139,27 +139,30 @@
</view>
</view>
</view>
<u-button type="success"
<!-- <u-button type="success"
shape="circle"
class="btn"
@click="submit"
>{{'保存'}}</u-button>
<view style="height: 20rpx;"></view>
<u-popup :show="downShow"
<view style="height: 20rpx;"></view> -->
<u-popup
:show="downShow"
mode="bottom"
closeOnClickOverlay
closeable
round="10"
@close="close">
@close="close"
>
<view class="title">修改昵称</view>
<view class="kung">
<u--input
:maxlength="40"
placeholder="请输入内容"
placeholder="请输入昵称"
v-model="userInfo.nickName"
></u--input>
>
</u--input>
</view>
<u-button @click="submit" type="error" text="确定"></u-button>
<u-button :disabled="!userInfo.nickName" class="btn" @click="submit" type="error" text="确 定"></u-button>
</u-popup>
</view>
</template>
@ -211,7 +214,7 @@ export default {
});
},
fail: err => {
this.myToast('上传失败', 'none');
uni.$u.toast('上传失败', 'none');
}
});
},