wangxin 7 роки тому
батько
коміт
4939376def
4 змінених файлів з 18 додано та 1 видалено
  1. 1 1
      app.json
  2. BIN
      static/img/cash.png
  3. 3 0
      template/home/index.wxml
  4. 14 0
      template/home/index.wxss

+ 1 - 1
app.json

@@ -1,8 +1,8 @@
 {
   "pages": [
+    "template/home/index",
     "template/pay/index",
     "template/carts/index",
-    "template/home/index",
     "template/login/index",
     "template/view/index"
   ],

BIN
static/img/cash.png


+ 3 - 0
template/home/index.wxml

@@ -7,4 +7,7 @@
           <view class="button" catchtap='addCarts' data-id="{{item.id}}" data-name="{{item.name}}"><button class="nxh__button" type="primary" size="mini">购买</button></view>
         </view>
     </view>
+    <view class='cash'>
+      <image src='/static/img/cash.png'></image>
+    </view>
 </view>

+ 14 - 0
template/home/index.wxss

@@ -1,3 +1,6 @@
+.page {
+  padding-bottom: 30rpx;
+}
 .page__hd
 {
   margin-top:28rpx;
@@ -34,4 +37,15 @@
 {
   display: flex;
   width: 180rpx;
+}
+.cash {
+  position: fixed;
+  bottom: 30rpx;
+  right: 325rpx;
+}
+.cash image {
+  width: 100rpx;
+  height: 100rpx;
+  background: #fff;
+  border-radius: 50rpx;
 }