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.
77 lines
3.5 KiB
77 lines
3.5 KiB
<!--pages/user/editNeeds/index.wxml--> |
|
<view class="edit-needs-box"> |
|
<view class="form-box"> |
|
<form catchsubmit="submit"> |
|
<view class="form-item chose-box acea-row row-between"> |
|
<view class="label">我是供应/需求</view> |
|
<view class="pick-box"> |
|
<picker bindchange="bindPickerChange" value="{{form.resourceType}}" name="resourceType" range="{{typeArr}}"> |
|
<view class="picker">{{typeArr[form.resourceType]}}</view> |
|
</picker> |
|
</view> |
|
</view> |
|
<view class="form-item"> |
|
<view class="label">供应/需求标题<text class="red">*</text></view> |
|
<view class="inp-box"> |
|
<input type="text" placeholder="我供应/需求..." value="{{form.title}}" name="title" /> |
|
</view> |
|
</view> |
|
<view class="form-item"> |
|
<view class="label">供应/需求类型<text class="red">*</text></view> |
|
<view class="inp-box"><input type="text" placeholder="我供应/需求..." value="{{form.resourceCagetoryId}}" name="resourceCagetoryId" /></view> |
|
</view> |
|
<view class="form-item"> |
|
<view class="label acea-row row-between"> |
|
<view>供应/需求内容<text class="red">*</text></view> |
|
<view class="colO">看看别人怎么写></view> |
|
</view> |
|
<view class="area-box"> |
|
<textarea placeholder="请详细描述您的供应/需求" value="{{form.detailedDescription}}" name="detailedDescription"></textarea> |
|
</view> |
|
</view> |
|
<view class="form-item"> |
|
<view class="label">补充内容/添加图片</view> |
|
<view class="upload-box acea-row"> |
|
<image src="{{item}}" mode='aspectFill' wx:for="{{form.resourceImgs}}" wx:key="index"></image> |
|
<image src="../../../images/upload.png" bindtap="upImgs"></image> |
|
</view> |
|
</view> |
|
<view class="form-item"> |
|
<view class="label acea-row row-between"> |
|
<view>供应/需求预算<text class="red">*</text></view> |
|
<view class="tab-box acea-row "> |
|
<view class="tab-item {{active == 1 ? 'tab-a' : ''}}" data-i="1" bindtap="tabClick">明确预算</view> |
|
<view class="tab-item {{active == 2 ? 'tab-a' : ''}}" data-i="2" bindtap="tabClick">价格可议</view> |
|
</view> |
|
</view> |
|
<view class="inp-box acea-row-nowrap" wx:if="{{active == 1}}"> |
|
<input type="text" placeholder="请输入预算" value="{{form.capital}}" name="capital" /> |
|
<text>元</text> |
|
</view> |
|
</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 bindchange="startTimeChange" value="{{form.resourceStartTime}}" name="resourceStartTime" mode="date"> |
|
<view class="picker">{{form.resourceStartTime || '请选择'}}</view> |
|
</picker> |
|
<image src="../../../images/home/arrow-r.png"></image> |
|
</view> |
|
<text class="m14">至</text> |
|
<view class="timepick-box"> |
|
<picker bindchange="endTimeChange" value="{{form.resourceEndTime}}" name="resourceEndTime" mode="date"> |
|
<view class="picker">{{form.resourceEndTime || '请选择'}}</view> |
|
</picker> |
|
<image src="../../../images/home/arrow-r.png"></image> |
|
</view> |
|
</view> |
|
</view> |
|
<button class="submit-btn" formType="submit" data-type="1">保存并提交</button> |
|
<button class="submit-btn" formType="submit" data-type="0">保存到草稿箱</button> |
|
</form> |
|
</view> |
|
|
|
</view>
|
|
|