Browse Source

fix: 修复HTTP失败处理和UI显示问题

- 在http.js中添加错误日志输出并修复加载状态显示
- 移除rentingDetail.vue中的投诉信息显示
- 在allUser.vue中添加默认头像和昵称显示
- 在index.vue中调整动态信息显示并移除订阅按钮
master
主管理员 1 day ago
parent
commit
7399c9e0c0
4 changed files with 12 additions and 12 deletions
  1. +2
    -2
      api/http.js
  2. +6
    -6
      pages/index/index.vue
  3. +2
    -2
      pages_order/mine/allUser.vue
  4. +2
    -2
      pages_order/renting/rentingDetail.vue

+ 2
- 2
api/http.js View File

@ -49,8 +49,8 @@ function http(uri, data, callback, method = 'GET', showLoading, title, req) {
callback(res.data)
},
fail: () => {
fail: (e) => {
console.log(e);
uni.showLoading({})
setTimeout(()=>{
uni.hideLoading()


+ 6
- 6
pages/index/index.vue View File

@ -26,7 +26,7 @@
{{ headInfo.name }}
</view>
<!-- <view class="dynamics">
<view class="dynamics">
{{headInfo.num}}动态
<text>|</text>
@ -42,15 +42,15 @@
<text>|</text>
{{headInfo.jobNum}}工作
<text>|</text>
<!-- <text>|</text>
{{headInfo.jdNum}}景点
<text>|</text>
{{headInfo.shopNum}}美食
<text>|</text>
{{headInfo.activityNum}}活动
</view> -->
{{headInfo.activityNum}}活动 -->
</view>
<view class="dynamics">
江华便民生活好帮手
</view>
@ -68,11 +68,11 @@
<uv-icon color="#fff" size="30rpx" name="list-dot"></uv-icon>
</view>
</view>
<view>
<!-- <view>
<view class="join2" @click="join2">
订阅通知
</view>
</view>
</view> -->
</view>
</view>


+ 2
- 2
pages_order/mine/allUser.vue View File

@ -10,11 +10,11 @@
<view class="fansList">
<view class="fanst" v-for="(item,index) in list">
<view class=" profilepicture">
<image :src="item.headImage" mode="aspectFill"></image>
<image :src="item.headImage || '/static/image/logo.jpg'" mode="aspectFill"></image>
</view>
<view class="name">
<view class="namea">
{{ item.nickName }}
{{ item.nickName || '匿名墙友' }}
</view>
<view class="nameb">
<!-- 感悟哲理积极面对人生传递正能量 -->


+ 2
- 2
pages_order/renting/rentingDetail.vue View File

@ -74,7 +74,7 @@
<span class="font-c">{{ detail.showings }}</span>
</view>
</view>
<view class="flex-sb">
<!-- <view class="flex-sb">
<view>
<span class="font-b">投诉</span>
<span class="font-c">
@ -82,7 +82,7 @@
{{ detail.phone }}
</span>
</view>
</view>
</view> -->
<view class="flex-sb">
<view>
<span class="font-b">小区</span>


Loading…
Cancel
Save