Browse Source

最近未消费

shish 2 years ago
parent
commit
fd3807741f

+ 2 - 0
ghsApp/src/admin/custom/selectCustom.vue

@@ -29,6 +29,8 @@
                   余额<span class="amount_num" style="color:#3385FF;">{{Math.abs(item.remainDebtAmount)}}</span>
                 </span>
 
+                <text v-if="item.overSevenUnExpend && item.overSevenUnExpend == 1" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">超1周未下单</text>
+
               </div>
 <image :src="`${constant.imgUrl}/icon/scan/scan.png`" mode="widthFix" @click.stop="selectCurrent(item,1)" v-if="getMyShopInfo && getMyShopInfo.scan == 1"
 style="position:absolute;right:0upx;top:20upx;width:60upx;"></image>

+ 15 - 8
ghsApp/src/admin/custom/visit.vue

@@ -14,17 +14,22 @@
               </div>
               <div class="tui-msg-content">
                 <span>{{ item.visitTime.substr(5,11) }}</span>
-                <span v-if="item.debtAmount > 0" class="debt-amount">欠款:<span class="amount_num">{{item.debtAmount}}</span></span>
+
+                <span v-if="Number(item.remainDebtAmount) > 0" class="debt-amount">
+                  欠款<span class="amount_num">{{item.remainDebtAmount}}</span>
+                </span>
+
+                <span v-if="Number(item.remainDebtAmount) < 0" class="debt-amount">
+                  余额<span class="amount_num" style="color:#3385FF;">{{Math.abs(item.remainDebtAmount)}}</span>
+                </span>
+
+                <text v-if="item.overSevenUnExpend && item.overSevenUnExpend == 1" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">超1周未下单</text>
+
               </div>
             </div>
           </div>
           <div class="tui-msg-right">
-            <badge-module
-              type="danger"
-              :dot="item.level == 3 ? true : false"
-              v-if="item.messageNum > 0"
-              >{{ item.messageNum }}</badge-module
-            >
+            <badge-module type="danger" :dot="item.level == 3 ? true : false" v-if="item.messageNum > 0" >{{ item.messageNum }}</badge-module >
           </div>
         </tui-list-cell>
       </block>
@@ -242,9 +247,11 @@ export default {
     line-height: 1;
     color: #9397a4;
     .debt-amount{
-      margin-left:40upx;
+      margin-left:20upx;
       .amount_num{
         color:red;
+        margin-left:6upx;
+        font-weight:bold;
       }
     }
   }

+ 1 - 1
ghsApp/src/admin/home/member.vue

@@ -37,8 +37,8 @@
                   <span v-if="Number(item.remainDebtAmount)<0" class="debt-amount">
                     余额<span class="amount_num" style="color:#3385FF;">{{ Math.abs(item.remainDebtAmount) }}</span>
                   </span>
-
                 </span>
+                <text v-if="item.overSevenUnExpend && item.overSevenUnExpend == 1" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">超1周未下单</text>
               </div>
             </div>
           </div>

+ 1 - 0
ghsApp/src/pagesClient/member/detail.vue

@@ -84,6 +84,7 @@
 
             <tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="pageTo({url:'/admin/order/itemOrder?customId='+userInfo.id})">
               <div class="tui-title">下单记录</div>
+              <view style="font-size:24upx;">最后次下单 {{ userInfo.recentExpend ? userInfo.recentExpend.substr(5,11) : '' }}</view>
             </tui-list-cell>
 
             <tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="pageTo({ url: '/admin/custom/debtChange',query: {customId: userInfo.id}})">