浏览代码

小程序:商家端-商品添加api

panyong 2 年之前
父节点
当前提交
1789fbd1c0

二进制
htmldev/wxMini/image/common/arrow_0.png


+ 0 - 0
htmldev/wxMini/image/businessGoodsEdit/selected.png → htmldev/wxMini/image/common/selected.png


+ 0 - 0
htmldev/wxMini/image/businessGoodsEdit/unselected.png → htmldev/wxMini/image/common/unselected.png


+ 5 - 7
htmldev/wxMini/pages/login/login.scss

@@ -79,13 +79,12 @@ input {
     display: flex;
     align-items: center;
     height: 34rpx;
-    padding: 0 19rpx 0 50rpx;
+    padding: 0 19rpx 0 39rpx;
   }
 
   image {
-    width: 17rpx;
-    height: 18rpx;
-    background: pink;
+    width: 34rpx;
+    height: 34rpx;
   }
 
   .text-wrap {
@@ -154,8 +153,7 @@ input {
   }
 
   image {
-    width: 21rpx;
-    height: 24rpx;
-    background: pink;
+    width: 24rpx;
+    height: 22rpx;
   }
 }

+ 3 - 3
htmldev/wxMini/pages/login/login.wxml

@@ -30,10 +30,10 @@
       class="checked-wrap"
       bind:tap="bindChange">
       <image
-        src=""
+        src="../../image/common/unselected.png"
         wx:if="{{!checked}}"></image>
       <image
-        src=""
+        src="../../image/common/selected.png"
         wx:if="{{checked}}"></image>
     </view>
     <view class="text-wrap">
@@ -61,7 +61,7 @@
         open-type="getPhoneNumber"
         bindgetphonenumber="getPhoneNumber">
         <text>微信登陆</text>
-        <image src=""></image>
+        <image src="../../image/common/arrow_0.png"></image>
       </button>
     </view>
   </view>

+ 26 - 10
htmldev/wxMini/pages/mine/mine.scss

@@ -54,17 +54,33 @@
 }
 
 .business-account {
-  display: flex;
-  justify-content: space-between;
-  flex-direction: column;
-  width: 690rpx;
-  min-height: 232rpx;
-  padding: 37rpx 34rpx 29rpx;
+  position: relative;
+  left: 0;
+  top: 0;
   margin-bottom: 20rpx;
-  border-radius: 20rpx;
-  background-position: center center;
-  background-size: 100% 100%;
-  background-repeat: no-repeat;
+
+  image {
+    position: absolute;
+    left: 0;
+    top: 0;
+    right: 0;
+    bottom: 0;
+    width: 100%;
+    height: 100%;
+  }
+
+  & > view {
+    position: relative;
+    left: 0;
+    top: 0;
+    z-index: 1;
+    display: flex;
+    justify-content: space-between;
+    flex-direction: column;
+    width: 690rpx;
+    min-height: 232rpx;
+    padding: 37rpx 34rpx 29rpx;
+  }
 
   .describe {
     line-height: 48rpx;

+ 16 - 14
htmldev/wxMini/pages/mine/mine.wxml

@@ -43,23 +43,25 @@
   <view class="main">
     <view
       class="business-account"
-      style="background-image: url('../../image/mine/bg.png');"
       wx:if="{{true}}">
-      <view class="describe">已有商家账号</view>
-      <view class="box">
-        <view class="business-account-name-wrap">
-          <view class="business-account-name">绍兴吧啦供应商</view>
-          <view class="dashboard">
-            <view>上架商品:23</view>
-            <view>今日销量:10</view>
+      <image src="../../image/mine/bg.png"></image>
+      <view>
+        <view class="describe">已有商家账号</view>
+        <view class="box">
+          <view class="business-account-name-wrap">
+            <view class="business-account-name">绍兴吧啦供应商</view>
+            <view class="dashboard">
+              <view>上架商品:23</view>
+              <view>今日销量:10</view>
+            </view>
           </view>
+          <button
+            class="btn"
+            type="default"
+            data-page="businessHome"
+            bind:tap="jump">商户管理
+          </button>
         </view>
-        <button
-          class="btn"
-          type="default"
-          data-page="businessHome"
-          bind:tap="jump">商户管理
-        </button>
       </view>
     </view>
     <!-- todo -->