29 lines
1.0 KiB
Plaintext
29 lines
1.0 KiB
Plaintext
<view class="container">
|
|
<view class="form-item">
|
|
<text class="label">物品名称</text>
|
|
<input type="text" placeholder="请输入物品名称" bindinput="onNameInput" value="{{name}}"/>
|
|
</view>
|
|
|
|
<view class="form-item">
|
|
<text class="label">物品描述</text>
|
|
<textarea placeholder="请输入物品描述" bindinput="onDescInput" value="{{description}}"></textarea>
|
|
</view>
|
|
|
|
<view class="form-item">
|
|
<text class="label">价格</text>
|
|
<input type="digit" placeholder="请输入价格" bindinput="onPriceInput"/>
|
|
</view>
|
|
|
|
<view class="form-item">
|
|
<text class="label">物品图片</text>
|
|
<view class="image-upload" bindtap="chooseImage">
|
|
<image wx:if="{{imageUrl}}" src="{{imageUrl}}" mode="aspectFill"></image>
|
|
<view wx:else class="upload-placeholder">
|
|
<text>点击上传图片</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<button class="submit-btn" type="primary" bindtap="submit">保存</button>
|
|
<button class="submit-btn" type="primary" bindtap="goBack">取消</button>
|
|
</view> |