Browse Source

添加图片上传

wangyong 5 years ago
parent
commit
127420d242

+ 2 - 2
customized/pages/boxMade/boxMadeImg/boxMadeImg.wxml

@@ -26,8 +26,8 @@
   <!-- 上传后的图片 -->
   <view class='upload-box'>
     <view class='f-box'>
-      <!-- <view class='upload-list'><button hover-class="none" class='upload-btn f-box f-align-items-center'>点击上传图片</button></view> -->
-      <scroll-view class="scroll-view_H f-box" scroll-x style="width: 100%">
+      <view class='upload-list' bindtap='uploadImg'><button hover-class="none" class='upload-btn f-box f-align-items-cente'>点击上传图片</button></view>
+      <scroll-view class="scroll-view_H f-box" scroll-x>
         <view wx:for="{{imageArray}}" wx:for-index="idx" wx:for-item="itemName" class='scroll-item {{itemName.id === imageId ? "active" : ""}}'><image src="{{host}}{{itemName.customGoodsImg}}" data-id='{{itemName.id}}' data-src='{{host}}{{itemName.customGoodsImg}}' mode="aspectFit" bindtap='selectImgBtn'></image></view>
       </scroll-view>
     </view>

+ 3 - 2
customized/pages/boxMade/boxMadeImg/boxMadeImg.wxss

@@ -29,9 +29,9 @@ page{
 .upload-btn{
   width:120rpx;
   height:120rpx;
-  line-height:50rpx;
+  line-height:36rpx;
   background:none;
-  font-size:30rpx;
+  font-size:26rpx;
 }
 .upload-btn::after{
   border:none;
@@ -64,6 +64,7 @@ page{
 }
 .scroll-view_H{
   white-space: nowrap;
+  width:586rpx;
 }
 .scroll-item{
   display:inline-block;

+ 2 - 2
customized/pages/made/madeImg/madeImg.wxml

@@ -25,8 +25,8 @@
   <!-- 上传后的图片 -->
   <view class='upload-box'>
     <view class='f-box'>
-      <!-- <view class='upload-list'><button hover-class="none" class='upload-btn f-box f-align-items-center'>点击上传图片</button></view> -->
-      <scroll-view class="scroll-view_H f-box" scroll-x style="width: 100%">
+      <view class='upload-list' bindtap='uploadImg'><button hover-class="none" class='upload-btn f-box f-align-items-center'>点击上传图片</button></view>
+      <scroll-view class="scroll-view_H f-box" scroll-x>
         <view wx:for="{{imageArray}}" wx:for-index="idx" wx:for-item="itemName" class='scroll-item {{itemName.id === imageId ? "active" : ""}}'><image src="{{host}}{{itemName.customGoodsImg}}" data-id='{{itemName.id}}' data-src='{{host}}{{itemName.customGoodsImg}}' mode="aspectFit" bindtap='selectImgBtn'></image></view>
       </scroll-view>
     </view>

+ 3 - 2
customized/pages/made/madeImg/madeImg.wxss

@@ -32,9 +32,9 @@ page{
 .upload-btn{
   width:180rpx;
   height:180rpx;
-  line-height:50rpx;
+  line-height:36rpx;
   background:none;
-  font-size:30rpx;
+  font-size:26rpx;
 }
 .upload-btn::after{
   border:none;
@@ -67,6 +67,7 @@ page{
 }
 .scroll-view_H{
   white-space: nowrap;
+  width:586rpx;
 }
 .scroll-item{
   display:inline-block;

+ 2 - 2
customized/pages/oneMade/oneMadeImg/oneMadeImg.wxml

@@ -26,8 +26,8 @@
   <!-- 上传后的图片 -->
   <view class='upload-box'>
     <view class='f-box'>
-      <!-- <view class='upload-list'><button hover-class="none" class='upload-btn f-box f-align-items-center'>点击上传图片</button></view> -->
-      <scroll-view class="scroll-view_H f-box" scroll-x style="width: 100%">
+      <view class='upload-list' bindtap='uploadImg'><button hover-class="none" class='upload-btn f-box f-align-items-center'>点击上传图片</button></view>
+      <scroll-view class="scroll-view_H f-box" scroll-x>
         <view wx:for="{{imageArray}}" wx:for-index="idx" wx:for-item="itemName" class='scroll-item {{itemName.id === imageId ? "active" : ""}}'><image src="{{host}}{{itemName.customGoodsImg}}" data-id='{{itemName.id}}' data-src='{{host}}{{itemName.customGoodsImg}}' mode="aspectFit" bindtap='selectImgBtn'></image></view>
       </scroll-view>
     </view>

+ 3 - 2
customized/pages/oneMade/oneMadeImg/oneMadeImg.wxss

@@ -35,9 +35,9 @@ page{
 .upload-btn{
   width:120rpx;
   height:120rpx;
-  line-height:50rpx;
+  line-height:36rpx;
   background:none;
-  font-size:30rpx;
+  font-size:26rpx;
 }
 .upload-btn::after{
   border:none;
@@ -70,6 +70,7 @@ page{
 }
 .scroll-view_H{
   white-space: nowrap;
+  width:586rpx;
 }
 .scroll-item{
   display:inline-block;

+ 1 - 1
readme.md

@@ -17,4 +17,4 @@
       y = -高度/2
       fillRect(x,y,宽度,高度)
 ### 缺少详情页,字体加粗、字体定制
-v:3.1.0
+v:3.1.1