You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
3.7 KiB

<view class="edit-needs-box"><view class="form-box"><form data-event-opts="{{[['submit',[['submit',['$event']]]]]}}" bindsubmit="__e"><view class="form-item chose-box acea-row row-between"><view class="label">我是供应/需求</view><view>{{''+(form.resourceType==1?'供应':'需求')+''}}</view></view><view class="form-item"><view class="label">{{(form.resourceType==1?'供应':'需求')+"标题"}}<text class="red">*</text></view><view class="inp-box"><input type="text" placeholder="{{'我'+(form.resourceType==1?'供应':'需求')+'...'}}" name="title" value="{{form.title}}"/></view></view><view class="form-item"><view class="label">{{(form.resourceType==1?'供应':'需求')+"类型"}}<text class="red">*</text></view><view class="inp-box acea-row-nowrap row-between row-middle"><picker class="pick-box" value="{{idx}}" range="{{resourcesList}}" range-key="cagetoryName" mode="selector" data-event-opts="{{[['change',[['resourcesChange',['$event']]]]]}}" bindchange="__e"><view class="picker">{{resourcesList[resourcesIdx].cagetoryName||'请选择'}}</view></picker><image class="arrow-d" src="/static/images/home/arrow-r.png"></image></view></view><view class="form-item"><view class="label acea-row row-between"><view>{{(form.resourceType==1?'供应':'需求')+"内容"}}<text class="red">*</text></view></view><view class="area-box"><textarea placeholder="{{'请详细描述您的'+(form.resourceType==1?'供应':'需求')}}" name="detailedDescription" value="{{form.detailedDescription}}"></textarea></view></view><view class="form-item"><view class="label">补充内容/添加图片</view><view class="upload-box acea-row"><block wx:for="{{form.resourceImgs}}" wx:for-item="item" wx:for-index="index" wx:key="index"><image src="{{item}}" mode="aspectFill"></image></block><image src="/static/images/upload.png" data-event-opts="{{[['tap',[['upImgs',['$event']]]]]}}" bindtap="__e"></image></view></view><view class="form-item"><view class="label acea-row row-between"><view>{{(form.resourceType==1?'供应':'需求')+"预算"}}<text class="red">*</text></view><view class="tab-box acea-row "><view class="{{['tab-item '+(active==1?'tab-a':'')]}}" data-i="1" data-event-opts="{{[['tap',[['tabClick',['$event']]]]]}}" bindtap="__e">明确预算</view><view class="{{['tab-item '+(active==2?'tab-a':'')]}}" data-i="2" data-event-opts="{{[['tap',[['tabClick',['$event']]]]]}}" bindtap="__e">价格可议</view></view></view><block wx:if="{{active==1}}"><view class="inp-box acea-row-nowrap"><input type="text" placeholder="请输入预算" name="capital" data-event-opts="{{[['input',[['capitalChange',['$event']]]]]}}" value="{{form.capital}}" bindinput="__e"/><text>元</text></view></block></view><view class="form-item"><view class="label acea-row row-between"><view>展示时间</view></view><view class="time-box acea-row row-middle"><view class="timepick-box"><picker value="{{form.resourceStartTime}}" name="resourceStartTime" mode="date" data-event-opts="{{[['change',[['startTimeChange',['$event']]]]]}}" bindchange="__e"><view class="picker">{{form.resourceStartTime||'请选择'}}</view></picker><image class="arrow-d" src="/static/images/home/arrow-r.png"></image></view><text class="m14">至</text><view class="timepick-box"><picker value="{{form.resourceEndTime}}" name="resourceEndTime" mode="date" data-event-opts="{{[['change',[['endTimeChange',['$event']]]]]}}" bindchange="__e"><view class="picker">{{form.resourceEndTime||'请选择'}}</view></picker><image class="arrow-d" src="/static/images/home/arrow-r.png"></image></view></view></view><button class="submit-btn" form-type="submit" data-type="1">保存并提交</button><button class="submit-btn" form-type="submit" data-type="0">保存到草稿箱</button></form></view></view>