瀏覽代碼

购物车

yann 6 月之前
父節點
當前提交
3ade48d843
共有 5 個文件被更改,包括 30 次插入4 次删除
  1. 0 1
      app.json
  2. 4 2
      pages/cart/cart.json
  3. 9 1
      pages/cart/cart.wxml
  4. 16 0
      pages/cart/cart.wxss
  5. 1 0
      pages/index/index.json

+ 0 - 1
app.json

@@ -20,7 +20,6 @@
     "pageOrientation": "portrait"
   },
   "style": "v2",
-  "renderer": "skyline",
   "rendererOptions": {
     "skyline": {
       "defaultDisplayBlock": true,

+ 4 - 2
pages/cart/cart.json

@@ -1,4 +1,6 @@
 {
-  "navigationStyle": "custom",
-  "usingComponents": {}
+  "navigationBarTitleText":"购物车",
+  "usingComponents": {
+    "product-list":"/components/product-list/product-list"
+  }
 }

+ 9 - 1
pages/cart/cart.wxml

@@ -1,3 +1,11 @@
 <view>
-  cart
+    <!-- 推荐 -->
+    <view class="recommend">
+        <view class="divider">
+           <text class="line"></text>
+           <text class="text">更多个性化推荐</text>
+           <text class="line"></text>
+        </view>
+        <product-list position="hot"></product-list>
+    </view>
 </view>

+ 16 - 0
pages/cart/cart.wxss

@@ -0,0 +1,16 @@
+
+.divider{
+    margin: 30rpx 0;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+}
+.divider .text{
+    margin: 0 20rpx;
+}
+.line{
+    width: 200rpx;
+    height: 2rpx;
+    background: #CFCFCF;
+    display: inline-block;
+}

+ 1 - 0
pages/index/index.json

@@ -1,4 +1,5 @@
 {
+  "navigationStyle": "custom",
   "usingComponents": {
     "header":"/components/header/header",
     "product-list":"/components/product-list/product-list"