124 lines
6.0 KiB
Plaintext
124 lines
6.0 KiB
Plaintext
<!-- 导航栏 -->
|
||
<cu-custom style="color:#fff;z-index:20;" ><view slot="content" style="color:#fff;">发布宝贝</view></cu-custom>
|
||
|
||
<!-- background -->
|
||
<view class="bg" style="margin-top:{{customBar}}px;"></view>
|
||
|
||
<!-- titleBg -->
|
||
<view class="titleBg" style="height:{{customBar}}px; width:100%;"></view>
|
||
|
||
<!-- card -->
|
||
<view class="card">
|
||
<view class="icon-shop card-icon-1" style="font-size:80rpx;"></view>
|
||
<view class="card-title">主体信息</view>
|
||
<form >
|
||
<!-- <input type="text" placeholder="宝贝名" placeholder-style="color:#eda7a4;" bindinput="input" data-inputtype="{{1}}"></input> -->
|
||
<input type="text" placeholder="宝贝名" placeholder-style="color:#a4c5ed;" bindinput="input" data-inputtype="{{1}}" value="{{title}}"></input>
|
||
<textarea show-confirm-bar="{{false}}" bindinput="input" data-inputtype="{{2}}" value="{{details}}">
|
||
<view wx:if="{{!details}}" class="placeholder">宝贝描述</view>
|
||
</textarea>
|
||
</form>
|
||
</view>
|
||
<!-- link -->
|
||
<view class="link-box">
|
||
<view class="link-item">
|
||
<view class="link-dote-top"></view>
|
||
<view class="link-line"></view>
|
||
<view class="link-dote-bottom"></view>
|
||
</view>
|
||
<view class="link-item">
|
||
<view class="link-dote-top"></view>
|
||
<view class="link-line"></view>
|
||
<view class="link-dote-bottom"></view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="card" style="padding-bottom:16rpx;">
|
||
<view class="icon-same card-icon-1" style="font-size:80rpx;"></view>
|
||
<view class="card-title">详细信息</view>
|
||
<form >
|
||
<!-- <input type="number" placeholder="定价,可以填0赠与有缘人呦~" placeholder-style="color:#eda7a4;" bindinput="input" data-inputtype="{{3}}"></input> -->
|
||
<input type="number" placeholder="定价,可以填0赠与有缘人呦~" placeholder-style="color:#a4c5ed;" bindinput="input" data-inputtype="{{3}}" value="{{price}}"></input>
|
||
<view class="labal">地址(单选)</view>
|
||
<view class="tag-box">
|
||
<view style="width:150rpx;" class="tag {{adds=='长理东区'?'cur':''}}" bindtap="input" data-inputtype="{{4}}" data-tagtype="长理东区">长理东区</view>
|
||
<view style="width:150rpx;" class="tag {{adds=='长理南区'?'cur':''}}" bindtap="input" data-inputtype="{{4}}" data-tagtype="长理南区">长理南区</view>
|
||
<view style="width:150rpx;" class="tag {{adds=='长理西区'?'cur':''}}" bindtap="input" data-inputtype="{{4}}" data-tagtype="长理西区">长理西区</view>
|
||
</view>
|
||
<view class="labal">类型(单选)</view>
|
||
<view class="tag-box">
|
||
<view class="tag {{tag=='图书'?'cur':''}}" bindtap="input" data-inputtype="{{5}}" data-tagtype="图书">图书</view>
|
||
<view class="tag {{tag=='电子'?'cur':''}}" bindtap="input" data-inputtype="{{5}}" data-tagtype="电子">电子</view>
|
||
<view class="tag {{tag=='体育'?'cur':''}}" bindtap="input" data-inputtype="{{5}}" data-tagtype="体育">体育</view>
|
||
<view class="tag {{tag=='乐器'?'cur':''}}" bindtap="input" data-inputtype="{{5}}" data-tagtype="乐器">乐器</view>
|
||
<view class="tag {{tag=='生活'?'cur':''}}" bindtap="input" data-inputtype="{{5}}" data-tagtype="生活">生活</view>
|
||
</view>
|
||
<view class="cu-bar bg-white margin-top">
|
||
<!-- <view class="action" style="color:#fa4639;"> -->
|
||
<view class="action" style="color:#449ffc;">
|
||
图片上传
|
||
</view>
|
||
<!-- <view class="action" style="color:#fa4639;"> -->
|
||
<view class="action" style="color:#449ffc;">
|
||
{{imgList.length}}/4
|
||
</view>
|
||
</view>
|
||
<view class="cu-form-group">
|
||
<view class="grid col-4 grid-square flex-sub">
|
||
<view class="padding-xs bg-img" style="background-image:url({{imgList[index]}})" wx:for="{{imgList}}" wx:key="index" bindtap="ViewImage" data-url="{{imgList[index]}}">
|
||
<view class="cu-tag bg-red" catchtap="DelImg" data-index="{{index}}">
|
||
<text class="icon-close" style="color:#fff;"></text>
|
||
</view>
|
||
</view>
|
||
<view class="padding-xs" style="border:1px #e1effd solid;" bindtap="ChooseImage" wx:if="{{imgList.length<4}}">
|
||
<!-- <view class="padding-xs" style="border:1px #fce2e1 solid;" bindtap="ChooseImage" wx:if="{{imgList.length<4}}"> -->
|
||
<!-- <text class="icon-cameraadd" style="color:#fa4639;"></text> -->
|
||
<text class="icon-cameraadd" style="color:#449ffc;"></text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</form>
|
||
</view>
|
||
|
||
<form bindsubmit='judge'>
|
||
<button class='submit' form-type='submit'>我填完了</button>
|
||
</form>
|
||
|
||
<view class="cu-modal {{showSubmit?'show':''}}" style="z-index:10000;">
|
||
<view class="cu-dialog">
|
||
<view class="cu-bar bg-white justify-end">
|
||
<view class="content">确认</view>
|
||
<view class="action" bindtap="hideModal">
|
||
<text class="icon-close text-red"></text>
|
||
</view>
|
||
</view>
|
||
<view class="padding-xl">
|
||
下一步将进入审核,是否确认提交
|
||
</view>
|
||
<view class="cu-bar bg-white justify-end">
|
||
<form class="action" bindsubmit='judgeHasSign'>
|
||
<button class="cu-btn cancel-button" bindtap="hideModal" >取消</button>
|
||
<button class="cu-btn confirm-button margin-left" form-type="submit">确定</button>
|
||
</form>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="cu-modal {{showError?'show':''}}" style="z-index:10000;">
|
||
<view class="cu-dialog">
|
||
<view class="cu-bar bg-white justify-end">
|
||
<view class="content">错误</view>
|
||
<view class="action" bindtap="hideModal">
|
||
<text class="icon-close text-red"></text>
|
||
</view>
|
||
</view>
|
||
<view class="padding-xl">
|
||
除了图片每一项都是必填项,请检查。
|
||
</view>
|
||
<view class="cu-bar bg-white justify-end">
|
||
<form class="action" >
|
||
<button class="cu-btn confirm-button margin-left" bindtap="hideModal" form-type="submit">确定</button>
|
||
</form>
|
||
</view>
|
||
</view>
|
||
</view> |