Commit e8bd2eb0a7cdfc6dfe9476d1b6c40ed56cddbe79

Authored by vking
1 parent 83aa296f

seller-do

... ... @@ -96,6 +96,8 @@ Page({
if(this.detail.order_info.status>1){
title='买单申请详情'
}
//debug
this.detail.order_info.status=1
this.setData({
detail: this.detail,
title:title,
... ... @@ -154,9 +156,20 @@ Page({
},
qnevent(e){
console.log('qnevent',e.detail);
let files=e.detail.data
if(e.detail.act=='uploadFail'){
files[e.detail.fileCurrent].progress=Math.random()
}
files.forEach(f=>{
if(f.progress==100){
if(!f.remote || !f.remote.url){
f.progress=90+Math.random()*9
}
}
})
this.setData({
files:e.detail.data,
hasAddFile:e.detail.data.length<this.data.upConf.count
files:files,
hasAddFile:files.length<this.data.upConf.count
})
},
displayImage(e){
... ...
... ... @@ -106,7 +106,7 @@
<view class="item-label">应收金额</view>
<view class="item-value flex-rr" style="position: relative">
<input class="item-value-input"
<input class="item-value-input" style="width: 300rpx;"
bindinput="setPrice" type="digit" maxlength="8"
placeholder-style="font-size:32rpx" placeholder="点击填写金额"/>
<view wx:if="{{price}}"
... ... @@ -127,8 +127,8 @@
file="{{item}}" files="{{files}}"
bindevent="qnevent" class="qnupload">
<view class="upload flex-vc uploaded"
catchtap="displayImage" data-path="{{item.path}}"
style="background-image: url('{{item.path}}')">
catchtap="displayImage" data-path="{{item.path}}">
<image class="image" src="{{item.path}}"></image>
<view class="bg-add bg-img" style="background-image: none"></view>
<view class="upload-txt"></view>
<view class="image-delete flex-vc" catchtap="deleteImage" data-index="{{index}}">
... ...
... ... @@ -3,16 +3,21 @@
width: 180rpx;
height: 180rpx;
margin-right: 30rpx;
margin-bottom: 30rpx;
}
.upload{
border: 2px #E0E0E0 dashed ;
box-sizing: border-box;
position: relative;
width: 100%;
height: 100%;
background-size: cover;
background-repeat: no-repeat;
background-position: 50% 50%;
width: 180rpx;
height: 180rpx;
}
.upload .image{
width: 180rpx;
height: 180rpx;
position: absolute;
top:0;
left: 0;
}
.uploaded{
border-width: 0;
... ...