Pārlūkot izejas kodu

1. 花掌柜收银--客户有余额就显示余额 2. 花掌柜(hdApp)调整更多功能的展示位置 3. 红包管理tab处显示红包数量

shizhongqi 3 mēneši atpakaļ
vecāks
revīzija
61c3d3595f

+ 4 - 0
hdApp/src/admin/hb/list.vue

@@ -121,6 +121,10 @@ export default {
     getHbList() {
       let status = this.tabs[this.tabIndex].status
       return hbList({ status: status, page: this.list.page, limit: this.list.pageSize, customId: this.customId }).then((res) => {
+        const tab = this.tabs.find(t => t.status === status)
+        if (tab) {
+          tab.value = Number(res.data.totalNum) || 0
+        }
         this.completes(res)
       })
     },

+ 6 - 0
hdApp/src/admin/home/mall.vue

@@ -219,6 +219,12 @@
               </view>
               <view class="icon-text">红包管理</view>
             </view>
+            <view class="icon-item" @click="goPage({url: '/admin/home/apply'})">
+              <view class="icon-wrapper">
+                <view class="icon-emoji">⚙️</view>
+              </view>
+              <view class="icon-text">更多</view>
+            </view>
           </view>
         </view>
       </view>

+ 0 - 7
hdApp/src/admin/home/me.vue

@@ -90,10 +90,6 @@
                   <text class="item-label" style="color: #049E2C; font-weight: 500;">视频教程</text>
                   <i class="iconfont iconxiangyou"></i>
                 </view>
-                <view class="menu-item" @click="moreFunction()">
-                  <text class="item-label">更多功能</text>
-                  <i class="iconfont iconxiangyou"></i>
-                </view>
               </view>
             </view>
 
@@ -340,9 +336,6 @@ export default {
     closeAccount(){
       this.$util.pageTo({ url: '/admin/home/close'})
     },
-    moreFunction(){
-      this.$util.pageTo({ url: '/admin/home/apply'})
-    },
     loginOut(){
       let that = this
       that.$util.confirmModal({content:'确认退出?'},() => {

+ 1 - 1
hdPad/src/pages/home/components/settlePop.vue

@@ -6,7 +6,7 @@
                 <view class="item-list_box">
                     <view :key="item.id" @tap="changeHasPay(item.id)" v-for="item in hasPayList" :class="[form.hasPay===item.id?'active':'']"> {{item.name}} </view>    
                 </view>
-                <view v-if="Number(balance)>Number(form.modifyPrice)" style="color:blue;font-size:15upx;font-weight:bold;margin-bottom:7upx;">客户余额充足 ¥{{balance?parseFloat(balance):0}},已用余额支付</view>
+                <view v-if="Number(balance)>0" style="color:blue;font-size:15upx;font-weight:bold;margin-bottom:7upx;">客户余额 ¥{{balance?parseFloat(balance):0}}</view>
             </view>
 
             <view class="select-item_box" v-if="form.hasPay == 1" style="border:1upx solid #CCCCCC;margin-bottom:15upx;">