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.

54 lines
3.0 KiB

<!--miniprogram/pages/publish/publish.wxml-->
<view class="container2">
<form catchsubmit="formSubmit">
<picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}" name="type">
<view class="picker" >
标题:<text>{{array[index]}}</text>
</view>
</picker>
<view wx:if="{{type=='recycle'}}">
<view class="input1">物品名称:<input name="obj_name" value="{{recycle.obj_name}}" /></view>
<view class="input1">数量(个):<input type="number" name="obj_num" value="{{recycle.obj_num}}"/></view>
<view class="input1">价格(¥):<input type="number" name="obj_price" value="{{recycle.obj_price}}"/></view>
<view class="input1">交易地点:<input name="obj_address" value="{{recycle.obj_address}}"/></view>
<view class="input1">联系方式:<input name="obj_contact" value="{{recycle.obj_contact}}"/></view>
<view class="input2">
<textarea name="note" cols="30" rows="10" placeholder="若有备注信息,请在此输入.." placeholder-style="color:#ddd" maxlength="500" value="{{recycle.obj_note}}" style="margin:0" ></textarea>
</view>
</view>
<view wx:if="{{type=='partjob'}}">
<view class="input1">工作单位:<input name="unit" value="{{partjob.unit}}"/></view>
<view class="input1">岗位名称:<input name="name" value="{{partjob.name}}"/></view>
<view class="input1">工作时间:<input name="time" value="{{partjob.time}}"/></view>
<view class="input1">工作地点:<input name="address" value="{{partjob.address}}"/></view>
<view class="input2">工作内容:
<textarea name="content" cols="30" rows="10" maxlength="500" value="{{partjob.content}}" ></textarea>
</view>
<view class="input2">工作要求:
<textarea name="require" cols="30" rows="10" maxlength="500" value="{{partjob.require}}" ></textarea>
</view>
<view class="input1">薪资及发放方式:<input name="salary" value="{{partjob.salary}}"/></view>
<view class="input1">报名方式:<input name="sign_way" value="{{partjob.sign_way}}"/></view>
<view class="input2">
<textarea name="note" cols="30" rows="10" placeholder="若有备注信息,请在此输入.." placeholder-style="color:#ddd" maxlength="500" value="{{partjob.note}}" style="margin:0" ></textarea>
</view>
</view>
<view wx:if="{{type=='college'}}">
<view class="input2">
<textarea name="college" cols="30" rows="10" placeholder="请在此输入信息..." placeholder-style="color:#ddd" maxlength="500" value="{{college}}" style="margin:0" ></textarea>
</view>
</view>
<view class="photo" wx:if="{{photo_src}}">
<image src="{{photo_src}}" mode="widthFix"></image>
</view>
<view class="upload">
<image src="../../images/upload.png" alt="" bindtap="upload"></image>
<text>上传图片</text>
</view>
<button class="submit" formType="submit" wx:if="{{canIUseGetUserProfile}}">发布</button>
</form>
</view>