瀏覽代碼

首页添加兑换按钮

wangxin 6 年之前
父節點
當前提交
4939376def
共有 4 個文件被更改,包括 18 次插入1 次删除
  1. 1 1
      app.json
  2. 二進制
      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"
   ],

二進制
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;
 }