shish 6 سال پیش
والد
کامیت
7f87101dab
2فایلهای تغییر یافته به همراه42 افزوده شده و 33 حذف شده
  1. 40 31
      mall/src/components/module/app-vip.vue
  2. 2 2
      mall/src/pages/order/buy.vue

+ 40 - 31
mall/src/components/module/app-vip.vue

@@ -1,40 +1,49 @@
 <template>
-	<div class="app-vip-module">
-		<img class="vip-img" :src="`${this.$constant.imgUrl}/retail/interest/vip.png`" alt mode="widthFix" />
-		<div class="vip-text">{{ text }}</div>
-	</div>
+  <div class="app-vip-module">
+    <img
+      class="vip-img"
+      :src="`${this.$constant.imgUrl}/retail/interest/vip.png`"
+      alt
+      mode="widthFix"
+    />
+    <div class="vip-text">{{ text }}</div>
+  </div>
 </template>
 
 <script>
 export default {
-	name: 'app-vip-module',
-	props: {
-		text: {
-			type: String,
-			default: 'VIP'
-		}
-	},
-	data() {
-		return {
-			constant: this.$constant
-		}
-	}
-}
+  name: "app-vip-module",
+  props: {
+    text: {
+      type: String,
+      default: "VIP"
+    }
+  },
+  data() {
+    return {
+      constant: this.$constant
+    };
+  },
+  onLoad(option) {
+    console.log("查看constance....");
+    console.log(this.$constant);
+  }
+};
 </script>
 
 <style lang="scss" scoped>
-	.app-vip-module {
-		position: relative;
-        width: 104px;
-		.vip-img {
-            width: 100%;
-		}
-		.vip-text {
-			position: absolute;
-			top: 2px;
-			left: 46px;
-			color: #fff;
-			transform: scale(0.9);
-		}
-	}
+.app-vip-module {
+  position: relative;
+  width: 104px;
+  .vip-img {
+    width: 100%;
+  }
+  .vip-text {
+    position: absolute;
+    top: 2px;
+    left: 46px;
+    color: #fff;
+    transform: scale(0.9);
+  }
+}
 </style>

+ 2 - 2
mall/src/pages/order/buy.vue

@@ -115,10 +115,10 @@
 				tabIndex: 0,
 				tabs: [
 					{
-						name: '送'
+						name: '帮我送'
 					},
 					{
-						name: '我要自提'
+						name: '到店取'
 					}
 				],
 				showAlert: false,