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.

79 lines
3.9 KiB

<!--miniprogram/pages/detail/detail.wxml-->
<scroll-view scroll-y="true" bindscrolltolower="lower" scroll-top="{{main_top}}" style="height:100vh" scroll-top="{{main_top}}" enable-back-to-top="true">
<view class="container4">
<view class="author">
<view class="a-head">
<image src="{{head_cut}}"></image>
</view>
<view class="a-content">
<view class="a-name">{{authorname}}</view>
<view class="c-time">{{content.date}}</view>
</view>
</view>
<view class="title">#{{content.type}}</view>
<image class="title_img" wx:if="{{content.type=='二手闲置'}}" src="../../images/recycle.png"></image>
<image class="title_img" wx:if="{{content.type=='兼职实习'}}" src="../../images/partjob.png"></image>
<image class="title_img" wx:if="{{content.type=='校园资讯'}}" src="../../images/college.png"></image>
<view class="title">#{{content.z_type}}\n</view>
<!-- <view class="content">
<text>{{content.content}}</text>
</view> -->
<view class="content" wx:if="{{content.type=='二手闲置'}}">
<view><text>物品名称:</text> {{content.recycle.obj_name}}</view>
<view><text>数量(个):</text>{{content.recycle.obj_num}}</view>
<view><text>价格(¥):</text>{{content.recycle.obj_price}}</view>
<view><text>交易地点:</text>{{content.recycle.obj_address}}</view>
<view><text>联系方式:</text>{{content.recycle.obj_contact}}</view>
<view wx:if="{{content.recycle.obj_note}}"><text>备注:\n</text><text>{{content.recycle.obj_note}}</text></view>
</view>
<view class="content" wx:if="{{content.type=='兼职实习'}}">
<view><text>工作单位:</text>{{content.partjob.unit}}</view>
<view><text>岗位名称:</text>{{content.partjob.name}}</view>
<view><text>工作时间:</text>{{content.partjob.time}}</view>
<view><text>工作地点:</text>{{content.partjob.address}}</view>
<view><text>工作内容:\n</text> <text>{{content.partjob.content}}</text></view>
<view><text>工作要求:\n</text> <text>{{content.partjob.require}}</text></view>
<view><text>薪资及发放方式:</text>{{content.partjob.salary}}</view>
<view><text>报名方式:</text>{{content.partjob.sign_way}}</view>
<view wx:if="{{content.partjob.note}}"><text>备注:\n</text> <text>{{content.partjob.note}}</text></view>
</view>
<view class="content" wx:if="{{content.type=='校园资讯'}}">
<view style="line-height:50rpx"><text>{{content.college}}</text></view>
</view>
<view class="photo" wx:if="{{content.img}}">
<image mode="widthFix" src="{{content.img}}" bindtap="preview" data-src="{{content.img}}"></image>
</view>
<view class="split"></view>
</view>
<view class="comment1">
<view class="c-title">全部评论</view>
<view class="c-content clear" wx:for="{{comment}}">
<view class="c-content1">
<view class="h-cut">
<image src="{{item.img}}"></image>
</view>
</view>
<view class="c-content2">
<view class="c-name">{{item.username}}</view>
<text>\n</text>
<view class="c-mess">
<text>{{item.content}}</text>
</view>
<text>\n</text>
<view class="c-time">{{item.date}}</view>
</view>
</view>
<view class="c-bottom">{{comment==''?'还没有人评论过,快来抢沙发吧~':'欢迎关注微信公众号:广中医专线一'}}</view>
</view>
</scroll-view>
<form catchsubmit="formSubmit">
<view class="input">
<view class="input1">
<textarea type="text" name="com_content" value="{{commentinput}}"
style="height:68rpx;line-height:10rpx;width:auto"></textarea>
</view>
<button class="input2" wx:if="{{canIUseGetUserProfile&&userInfo==''}}" bindtap="getUserProfile">评论</button>
<button class="input2" wx:if="{{canIUseGetUserProfile&&userInfo}}" formType="submit" >评论</button>
</view>
</form>