Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
a57b71dc
Commit
a57b71dc
authored
Aug 14, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 退款售后_上传样式
parent
61f879eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
5 deletions
+35
-5
uploadImg.wxml
src/component/uploadImg/uploadImg.wxml
+14
-1
uploadImg.wxss
src/component/uploadImg/uploadImg.wxss
+21
-4
No files found.
src/component/uploadImg/uploadImg.wxml
View file @
a57b71dc
<!--component/uploadImg/uploadImg.wxml-->
<view class="page-upload-img">
<view class="upload-img-wrap" wx:for="{{pics}}" wx:key="{{index}}">
<!--
<view class="upload-img-wrap" wx:for="{{pics}}" wx:key="{{index}}">
<image class="upload-img" src="{{item}}"></image>
</view>
<view class="upload-wrap" bindtap="uploadImg" wx:if="{{pics.length < 5}}">
<view class="upload-text">+图片</view>
</view>-->
<view class="flex-wrp" style="padding-bottom:{{pics.length >= 4 ? '100px;' : '0px'}};">
<view class="flex-item bc_green" wx:for="{{pics}}" wx:key="{{index}}">
<image class="item-img" src="{{item}}"></image>
</view>
<view class="flex-item bc_green">
<view class="upload-wrap" bindtap="uploadImg" wx:if="{{pics.length < 5}}">
<view class="upload-text">+图片</view>
</view>
</view>
</view>
</view>
src/component/uploadImg/uploadImg.wxss
View file @
a57b71dc
...
...
@@ -4,8 +4,8 @@
flex-wrap: wrap;
}
.upload-wrap{
width: 160rpx;
height: 160rpx;
/* width: 160rpx;
height: 160rpx;
*/
border-radius: 5rpx;
border: 1px solid rgba(216, 216, 216, 1);
line-height: 160rpx;
...
...
@@ -21,4 +21,22 @@
}
.upload-img-wrap{
margin-right: 20rpx;
}
\ No newline at end of file
}
.item-img {
width: 100%;
height: 160rpx;
}
.flex-wrp {
width: 100%;
height: 160rpx;
display: flex;
flex-wrap: wrap;
flex-direction: row;
}
.flex-item {
margin-bottom: 20rpx;
width: 21%;
height: 160rpx;
margin-left: 20rpx;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment