Handy_Cao vor 3 Jahren
Ursprung
Commit
457dfde983

+ 5 - 4
GuangZuan/miniprogram/pages/circle/index.wxml

@@ -38,17 +38,18 @@
     </view>
     <!-- 取消收藏 --> 
     <view slot="right" class="van-swipe-cell__right">
-      <view class="item detail" id="detail {{idx}}" style="background-color: yellowgreen; color: white;" bindtap="onCancelFavorite">取消</view>
+      <view class="item detail" id="detail {{ idx }}" style="background-color: yellowgreen; color: white;" bindtap="onCancelFavorite">取消</view>
     </view>
   </van-swipe-cell>
 </scroll-view>
 
+<!-- 无数据 --> 
+<van-empty wx:if="{{ isEmpty }}" class="custom-image" description="无数据"/>
+
 <!--  底部视图  -->
-<view class="buttom_view" style="padding-bottom: {{safeBottom+48}}px;">
+<view class="buttom_view" style="padding-bottom: {{ safeBottom+48 }}px;">
     <van-button id="new" round color="#226FD9" block style="width: 90%;" bind:click="onButtonPressed">对比</van-button>
 </view>
 
-<!-- 无数据 --> 
-<van-empty wx:if="{{isEmpty}}" class="custom-image" description="无数据"/>
 <!-- toast --> 
 <van-toast id="van-toast" />

+ 2 - 1
GuangZuan/miniprogram/pages/home/index.json

@@ -6,5 +6,6 @@
     "van-grid-item": "@vant/weapp/grid-item/index"
   },
   "navigationBarTitleText": "首页",
-  "navigationStyle": "custom"
+  "navigationStyle": "custom",
+  "enablePullDownRefresh": false
 }

+ 4 - 3
GuangZuan/miniprogram/pages/mine/index.ts

@@ -25,7 +25,7 @@ Page({
     /// 微信头像 
     avatarUrl: "",
     /// 微信昵称
-    nickName: loginQuery().userInfo.customername,
+    nickName: '',
     /// 资金账户信息
     ta: <GuangZuan.TaAccount>({}),
     /// 登录账号
@@ -82,11 +82,12 @@ Page({
     /// 获取微信头像
     let url = wx.getStorageSync('avatarUrl')
     if (url) {
-      this.setData({ avatarUrl: url })
+      this.setData({  avatarUrl: url })
     }
     this.setData({
       /// 设置账户信息
-      ta: taAccount(accountid())
+      ta: taAccount(accountid()),
+      nickName: loginQuery().userInfo.customername 
     })
     /// 查询签约信息
     this.queryBankAccountSign()

+ 4 - 3
GuangZuan/miniprogram/utils/message/index.ts

@@ -34,9 +34,10 @@ export function showLoading(fn?: () => void, text = '正在加载...'): void {
  */
 export function hideLoading(fn?: () => void, text?: string, icon: Icon = 'none'): void {
   wx.hideLoading({
-      success: () => {
-          if (text) showToast(text, icon)
-          if (fn) fn()
+      success: () => {},
+      complete:() => {
+        if (text) showToast(text, icon)
+        if (fn) fn()
       }
   })
 }