shish vor 11 Monaten
Ursprung
Commit
9015cf4711

+ 1 - 1
hdApp/src/admin/member/detail.vue

@@ -58,7 +58,7 @@
         
         <view class="contact-content">
           <view class="contact-row">
-            <text class="contact-label">店长</text>
+            <text class="contact-label">姓名</text>
             <text class="contact-value">{{data.name}}</text>
           </view>
           

+ 26 - 23
hdPad/src/pages/home/components/customInfo.vue

@@ -47,37 +47,37 @@
           <text class="value">{{customInfo.totalConsumption || '136'}}</text>
         </view>
         
-        <view class="info-item action-item" @tap="goToDetail('orders')">
+        <view class="info-item action-item" @tap="goDebtOrder()">
           <text class="label">挂账订单</text>
           <text class="arrow">></text>
         </view>
         
-        <view class="info-item action-item" @tap="goToDetail('notes')">
+        <view class="info-item action-item" @tap="goSettle()">
           <text class="label">结账记录</text>
           <text class="arrow">></text>
         </view>
         
-        <view class="info-item action-item" @tap="goToDetail('balance')">
+        <view class="info-item action-item" @tap="goBalance()">
           <text class="label">余额变动</text>
           <text class="arrow">></text>
         </view>
         
-        <view class="info-item action-item" @tap="goToDetail('recharge')">
+        <view class="info-item action-item" @tap="goRecharge()">
           <text class="label">充值记录</text>
           <text class="arrow">></text>
         </view>
         
-        <view class="info-item action-item" @tap="goToDetail('consumption')">
+        <view class="info-item action-item" @tap="goOrder()">
           <text class="label">下单记录</text>
           <text class="arrow">></text>
         </view>
         
-        <view class="info-item action-item" @tap="goToDetail('level')">
+        <view class="info-item action-item" @tap="goLevel()">
           <text class="label">等级变动</text>
           <text class="arrow">></text>
         </view>
         
-        <view class="info-item action-item" @tap="goToDetail('debt')">
+        <view class="info-item action-item" @tap="goDebt()">
           <text class="label">欠款变动</text>
           <text class="arrow">></text>
         </view>
@@ -131,23 +131,26 @@ export default {
         }
       })
     },
-    
-    editInfo(field) {
-      this.editField = field
-      this.editMode = true
-      // 这里可以添加编辑逻辑,如弹出编辑框等
-      uni.showToast({
-        title: `编辑${field}`,
-        icon: 'none'
-      })
+    goDebt(){
+
     },
-    
-    goToDetail(type) {
-      // 导航到详情页面
-      uni.showToast({
-        title: `查看${type}详情`,
-        icon: 'none'
-      })
+    goSettle(){
+
+    },
+    goBalance(){
+      this.$emit('goBalance',this.customInfo)
+    },
+    goRecharge(){
+
+    },
+    goOrder(){
+
+    },
+    goDebtOrder(){
+
+    },
+    goLevel(){
+
     }
   }
 }

+ 4 - 1
hdPad/src/pages/home/custom.vue

@@ -9,7 +9,7 @@
                 <customList ref="customListRef" @getCustomInfo="getCustomInfo"></customList>
             </view>
             <view class="custom-info">
-                <customInfo ref="customInforRef" :selectCustomId="selectCustomId" @calcFn="calcFn" @finishNotice="finishNotice"></customInfo>
+                <customInfo ref="customInforRef" :selectCustomId="selectCustomId" @goBalance="goBalance"></customInfo>
             </view>
             <view class="custom-asset">
 
@@ -39,6 +39,9 @@ export default {
         ...mapGetters(["getLoginInfo"])
     },
     methods: {
+        goBalance(info){
+            console.log(info)
+        },
         getCustomInfo(item){
             this.selectCustomId = Number(item.id)
             this.currentJobId = Number(item.id)