Преглед на файлове

客户详情与公告优化

shish преди 1 година
родител
ревизия
bab7ab9b4b
променени са 5 файла, в които са добавени 69 реда и са изтрити 11 реда
  1. 10 6
      ghsApp/src/admin/custom/visit.vue
  2. 5 2
      ghsApp/src/admin/home/member.vue
  3. 9 2
      ghsApp/src/admin/home/workbench.vue
  4. 43 0
      ghsApp/src/admin/notice/warning.vue
  5. 2 1
      ghsApp/src/pages.json

+ 10 - 6
ghsApp/src/admin/custom/visit.vue

@@ -23,12 +23,16 @@
                   余额<span class="amount_num" style="color:#3385FF;">{{Math.abs(item.remainDebtAmount)}}</span>
                 </span>
 
-                <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 10000" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">没有下过单</text>
-                <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 7" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">超1周未下单</text>
-                <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 30" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">超1个月未下单</text>
-                <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 180" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">超半年未下单</text>
-                <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 365" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">超1年未下单</text>
-
+                <block v-if="item.passStatus == 1">
+                  <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 10000" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">没有下过单</text>
+                  <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 7" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">超1周未下单</text>
+                  <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 30" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">超1个月未下单</text>
+                  <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 180" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">超半年未下单</text>
+                  <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 365" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">超1年未下单</text>
+                </block>
+                <block v-else>
+                  <text style="font-size:28upx;margin-left:20upx;color:#3385FF;font-weight:bold;">待审核</text>
+                </block>
               </div>
             </div>
           </div>

+ 5 - 2
ghsApp/src/admin/home/member.vue

@@ -39,13 +39,16 @@
                     余额<span class="amount_num" style="color:#3385FF;">{{ Math.abs(item.remainDebtAmount) }}</span>
                   </span>
                 </span>
-
+              <block v-if="item.passStatus == 1">
                 <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 10000" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">没有下过单</text>
                 <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 7" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">超1周未下单</text>
                 <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 30" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">超1个月未下单</text>
                 <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 180" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">超半年未下单</text>
                 <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 365" style="font-size:24upx;margin-left:20upx;color:green;font-weight:bold;">超1年未下单</text>
-
+              </block>
+              <block v-else>
+                <text style="font-size:28upx;margin-left:20upx;color:#3385FF;font-weight:bold;">待审核</text>
+              </block>
               </div>
             </div>
           </div>

+ 9 - 2
ghsApp/src/admin/home/workbench.vue

@@ -140,7 +140,9 @@
 			</div>
 		</div>
 
-		<view v-if="!$util.isEmpty(data.warning)" style="color:red;font-size:36upx;font-weight:bold;text-align: center;margin-bottom:15upx;">{{ data.warning }}</view>
+		<view v-if="!$util.isEmpty(data.warning)" @click.stop="goWarning(data)" style="color:red;font-size:36upx;font-weight:bold;text-align:center;margin-bottom:15upx;">
+			{{ data.warning }}
+		</view>
 
 		<view class="module-com">
 
@@ -469,10 +471,15 @@ export default {
 		},
 		getSuccess(){
 			this.closeRenew();
-			this.$util.pageTo({ url: "/admin/shop/renewSuccess"})
+			this.$util.pageTo({ url: "/admin/notice/warning"})
 		},
 		getError(){
 
+		},
+		goWarning(info){
+			if(!this.$util.isEmpty(info.warningUrl)){
+				this.$util.pageTo({ url:info.warningUrl})
+			}
 		},
 		getShopName(){
 			currentShop().then(res => {

+ 43 - 0
ghsApp/src/admin/notice/warning.vue

@@ -0,0 +1,43 @@
+<template>
+    <view>
+        <view style="padding:40upx 20upx 40upx 20upx;height:auto;width:95vw;font-size:36upx;">
+            <view style="margin-top:20upx;">
+				<video id="myVideo" show-mute-btn="true" :src="videoUrl" object-fit="contain" style="width:700upx;height:1100upx;"></video>
+			</view>
+			<view style="margin-top:40upx;text-align:center;">
+        		<button class="admin-button-com big blue" @click="goBack" style="width:200upx;">返回</button>
+			</view>
+        </view>
+    </view>
+</template>
+<script>
+import { APIHOST } from '@/config'
+export default {
+    name: "fee",
+    data(){
+        return {
+            videoUrl:''
+        }
+    },
+    computed: {
+    },
+    components: {
+    },
+    onLoad(){
+    },
+    onUnload() {
+    },
+    methods: {
+        init(){
+            this.videoUrl = APIHOST+'/jc/warning.mp4'
+			this.videoContext = uni.createVideoContext('myVideo',this)
+			this.videoContext.play()
+        },
+        goBack(){
+            uni.navigateBack()
+        }
+    }
+};
+</script>
+<style lang="scss" scoped>
+</style>

+ 2 - 1
ghsApp/src/pages.json

@@ -30,7 +30,8 @@
 			"root": "admin/notice",
 			"pages": [
 				{"path": "index","style": {"navigationBarTitleText": "通知"}},
-				{"path": "fee","style": {"navigationBarTitleText": "详情"}}
+				{"path": "fee","style": {"navigationBarTitleText": "详情"}},
+				{"path": "warning","style": {"navigationBarTitleText": "详情"}}
 			]
 		},
 		{