Parcourir la source

客户列表优化

shish il y a 5 ans
Parent
commit
a1179ad23b

+ 4 - 26
ghsApp/src/admin/home/member.vue

@@ -1,13 +1,5 @@
 <template>
   <div class="app-main app-content">
-    <app-tabs
-      :tabs="tabs"
-      :isFixed="true"
-      :currentTab="tabIndex"
-      :height="100"
-      @change="change"
-      itemWidth="50%"
-    />
     <block v-if="!$util.isEmpty(list.data)">
       <block v-for="(item, index) in list.data" :key="index">
         <tui-list-cell
@@ -89,17 +81,7 @@ export default {
   mixins: [list],
   data() {
     return {
-      tabIndex: 0,
-      tabs: [
-        {
-          name: "全部",
-          value: 0,
-        },
-        {
-          name: "会员",
-          value: 0,
-        },
-      ],
+      tabIndex: 0
     };
   },
   onPullDownRefresh() {
@@ -124,18 +106,15 @@ export default {
     },
     // 列表
     _list() {
-      let type = JSON.parse(JSON.stringify(this.tabIndex));
-      type = type == 0 ? -1 : type;
       return getList({
         search: "",
         page: this.list.page,
-        type: type,
         ...this.form,
       }).then((res) => {
         this.completes(res);
-        if (this.$util.isEmpty(res.data)) return false;
-        this.tabs[0].value = res.data.allNum;
-        this.tabs[1].value = res.data.isOpenNum;
+        if (this.$util.isEmpty(res.data)){
+          return false;
+        }
       });
     },
     change(e) {
@@ -159,7 +138,6 @@ export default {
 
 <style lang="scss" scoped>
 .app-content {
-  padding-top: 120px;
   padding-bottom: 20px;
 }
 .tabs-wrap {

+ 0 - 40
ghsApp/src/admin/home/workbench.vue

@@ -186,36 +186,6 @@ export default {
 			],
 			// tab按钮
 			tabsData: [
-				// {
-				//   name: "商品",
-				//   img: `${this.$constant.imgUrl}/retail/admin/tab-icon-1.png`,
-				//   url: "/admin/goodsManage/list"
-				// },
-				// {
-				//   name: "老带新",
-				//   img: `${this.$constant.imgUrl}/retail/admin/tab-icon-2.png`,
-				//   url: "/admin/interest/invite"
-				// },
-				// {
-				//   name: "优惠券",
-				//   img: `${this.$constant.imgUrl}/retail/admin/tab-icon-3.png`,
-				//   url: "/admin/coupon/list"
-				// },
-				// {
-				//   name: "广告",
-				//   img: `${this.$constant.imgUrl}/retail/admin/tab-icon-4.png`,
-				//   url: "/admin/ad/list"
-				// },
-				// {
-				//   name: "图库",
-				//   img: `${this.$constant.imgUrl}/retail/admin/tab-icon-1.png`,
-				//   url: "/admin/goodsManage/img-store"
-				// },
-				// {
-				//   name: "数据统计",
-				//   img: `${this.$constant.imgUrl}/retail/admin/tab-icon-5.png`,
-				//   url: "/admin/statistics/demo"
-				// },
 				{
 					name: "库存预警",
 					img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`,
@@ -272,16 +242,6 @@ export default {
 					url: "/admin/home/apply",
 					type:4
 				}
-				// {
-				//   name: "进货",
-				//   img: `${this.$constant.imgUrl}/retail/admin/tab-icon-7.png`,
-				//   url: "/admin/shop/list"
-				// },
-				// {
-				//   name: "设置",
-				//   img: `${this.$constant.imgUrl}/retail/admin/tab-icon-8.png`,
-				//   url: "/admin/setting/list"
-				// }
 			],
 			// 总览
 			totalData: [

+ 0 - 1
ghsApp/src/components/module/app-commodity.vue

@@ -85,7 +85,6 @@ export default {
 			this.$emit("remove", this.info);
 		},
 		changePriceEvent(event) {
-			console.log(value)
 			const {
 				detail: { value }
 			} = event;