Browse Source

小程序:自定义商品组件重命名

panyong 2 years ago
parent
commit
cb9d9378cb

+ 0 - 0
htmldev/wxMini/components/goods-item/index.js → htmldev/wxMini/components/goods-item-large/index.js


+ 0 - 0
htmldev/wxMini/components/goods-item/index.json → htmldev/wxMini/components/goods-item-large/index.json


+ 0 - 0
htmldev/wxMini/components/goods-item/index.wxml → htmldev/wxMini/components/goods-item-large/index.wxml


+ 0 - 0
htmldev/wxMini/components/goods-item/index.wxss → htmldev/wxMini/components/goods-item-large/index.wxss


+ 1 - 1
htmldev/wxMini/pages/businessDetail/businessDetail.json

@@ -1,6 +1,6 @@
 {
   "usingComponents": {
     "customer-tab": "../../components/customer-tab/index",
-    "goods-item": "../../components/goods-item"
+    "goods-item-large": "../../components/goods-item-large"
   }
 }

+ 2 - 2
htmldev/wxMini/pages/businessDetail/businessDetail.wxml

@@ -32,9 +32,9 @@
   class="waterfall"
   hidden="{{currentNav === '1'}}">
   <view class="waterfall-left">
-    <goods-item/>
+    <goods-item-large/>
   </view>
   <view class="waterfall-right">
-    <goods-item/>
+    <goods-item-large/>
   </view>
 </view>

+ 1 - 2
htmldev/wxMini/pages/goodsDetail/goodsDetail.json

@@ -1,6 +1,5 @@
 {
   "usingComponents": {
-    "customer-tab": "../../components/customer-tab/index",
-    "goods-item": "../../components/goods-item"
+    "customer-tab": "../../components/customer-tab/index"
   }
 }

+ 1 - 1
htmldev/wxMini/pages/guide/guide.json

@@ -1,7 +1,7 @@
 {
   "usingComponents": {
     "van-loading": "@vant/weapp/loading/index",
-    "goods-item": "../../components/goods-item"
+    "goods-item-large": "../../components/goods-item-large"
   },
   "backgroundTextStyle": "dark",
   "enablePullDownRefresh": true,

+ 2 - 2
htmldev/wxMini/pages/guide/guide.wxml

@@ -32,10 +32,10 @@
     class="waterfall"
     hidden="{{currentNav === '1'}}">
     <view class="waterfall-left">
-      <goods-item/>
+      <goods-item-large/>
     </view>
     <view class="waterfall-right">
-      <goods-item/>
+      <goods-item-large/>
     </view>
   </view>
 </view>

+ 1 - 1
htmldev/wxMini/pages/home/home.json

@@ -2,7 +2,7 @@
   "usingComponents": {
     "van-tab": "@vant/weapp/tab/index",
     "van-tabs": "@vant/weapp/tabs/index",
-    "goods-item": "../../components/goods-item"
+    "goods-item-large": "../../components/goods-item-large"
   },
   "navigationBarTitleText": "学习111",
   "backgroundColor": "#F6F6F6",

+ 6 - 4
htmldev/wxMini/pages/home/home.wxml

@@ -14,7 +14,8 @@
 
   <!-- 轮播 -->
   <view class="page-section">
-    <swiper indicator-dots="{{true}}" indicator-color="rgba(151, 209, 79, 1)" indicator-active-color="#FFF" autoplay="{{false}}">
+    <swiper indicator-dots="{{true}}" indicator-color="rgba(151, 209, 79, 1)" indicator-active-color="#FFF"
+            autoplay="{{false}}">
       <block wx:for="{{background}}" wx:key="*this">
         <swiper-item>
           <view class="swiper-item {{item}}">
@@ -51,17 +52,18 @@
     <image class="media" src=""></image>
   </view>
   <view class="excellent-goods-title">优秀产品</view>
-  <van-tabs active="{{ currentCategory }}" color="transparent" title-active-color="#FFFFFF" title-inactive-color="#858597" tab-class="my-tab-class" tab-active-class="my-tab-active-class">
+  <van-tabs active="{{ currentCategory }}" color="transparent" title-active-color="#FFFFFF"
+            title-inactive-color="#858597" tab-class="my-tab-class" tab-active-class="my-tab-active-class">
     <van-tab title="{{item.name}}" wx:for="{{category}}" wx:key="id" name="{{item.id}}">
     </van-tab>
   </van-tabs>
   <!--瀑布流-->
   <view class="waterfall">
     <view class="waterfall-left">
-      <goods-item />
+      <goods-item-large/>
     </view>
     <view class="waterfall-right">
-      <goods-item />
+      <goods-item-large/>
     </view>
   </view>
 </view>