静态代码完成,等待对接接口
parent
a0fac56a01
commit
9d82a48813
|
@ -9,7 +9,10 @@
|
|||
<view class="item font26 mar-x30 flex">
|
||||
<view class="title">商品分类<text class="color-red">*</text></view>
|
||||
<picker mode="selector" :range="cateList" @change="choiceCate" :value="cateIndex" :range-key="'name'">
|
||||
<view class="cate-name">{{cateList[cateIndex].name}}</view>
|
||||
<view class="cate-name">
|
||||
<text>{{cateList[cateIndex].name}}</text>
|
||||
<image src="/static/icon-arrow-down.png" mode=""></image>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="item font26 mar-x30 flex">
|
||||
|
@ -211,10 +214,15 @@
|
|||
}
|
||||
.release-form .item .cate-name{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
width: calc(100% - 10rpx);
|
||||
height: 76rpx;
|
||||
}
|
||||
.release-form .item image{
|
||||
width: 28rpx;
|
||||
height: 16rpx;
|
||||
}
|
||||
.release-form .item>.upload-box{
|
||||
box-sizing: border-box;
|
||||
width: calc(100% - 140rpx);
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -202,6 +202,9 @@ __webpack_require__.r(__webpack_exports__);
|
|||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default =
|
||||
{
|
||||
data: function data() {
|
||||
|
|
|
@ -1 +1 @@
|
|||
<block wx:if="{{isLoading}}"><view class="pad-x120 data-v-becb4076"><status-nav vue-id="72b219e1-1" ifReturn="{{true}}" navBarTitle="{{pageTitle}}" class="data-v-becb4076" bind:__l="__l"></status-nav><view class="notice-tips color-orange font26 border-box pad-all20 flex data-v-becb4076"><image src="/static/icon-notice.png" mode="widthFix" class="data-v-becb4076"></image>请确保商品信息及联系方式的真实性!</view><view class="release-form color-48 background-white border-box data-v-becb4076"><view class="item font26 mar-x30 flex data-v-becb4076"><view class="title data-v-becb4076">商品分类<text class="color-red data-v-becb4076">*</text></view><picker mode="selector" range="{{cateList}}" value="{{cateIndex}}" range-key="name" data-event-opts="{{[['change',[['choiceCate',['$event']]]]]}}" bindchange="__e" class="data-v-becb4076"><view class="cate-name data-v-becb4076">{{cateList[cateIndex].name}}</view></picker></view><view class="item font26 mar-x30 flex data-v-becb4076"><view class="title data-v-becb4076">商品名称<text class="color-red data-v-becb4076">*</text></view><input type="text" placeholder="请输入商品名称" placeholder-style="color:#8c8c9b" data-event-opts="{{[['input',[['__set_model',['$0','name','$event',[]],['goodsDetail']]]]]}}" value="{{goodsDetail.name}}" bindinput="__e" class="data-v-becb4076"/></view><view class="item font26 mar-x30 flex data-v-becb4076"><view class="title data-v-becb4076">商品原价<text class="color-red data-v-becb4076">*</text></view><input type="number" placeholder="请输入商品原价" placeholder-style="color:#8c8c9b" data-event-opts="{{[['input',[['__set_model',['$0','original_price','$event',[]],['goodsDetail']]]]]}}" value="{{goodsDetail.original_price}}" bindinput="__e" class="data-v-becb4076"/></view><view class="item font26 mar-x30 flex data-v-becb4076"><view class="title data-v-becb4076">商品售价<text class="color-red data-v-becb4076">*</text></view><input type="number" placeholder="请输入商品售价" placeholder-style="color:#8c8c9b" data-event-opts="{{[['input',[['__set_model',['$0','price','$event',[]],['goodsDetail']]]]]}}" value="{{goodsDetail.price}}" bindinput="__e" class="data-v-becb4076"/></view><view class="item font26 mar-x30 flex data-v-becb4076"><view class="title data-v-becb4076">商品描述<text class="color-red data-v-becb4076">*</text></view><textarea placeholder="请输入商品描述" placeholder-style="color:#8c8c9b" data-event-opts="{{[['input',[['__set_model',['$0','msg','$event',[]],['goodsDetail']]]]]}}" value="{{goodsDetail.msg}}" bindinput="__e" class="data-v-becb4076"></textarea></view><view class="item font26 mar-x30 flex data-v-becb4076"><view class="title data-v-becb4076">商品图片<text class="color-red data-v-becb4076">*</text></view><view class="upload-box border-box flex data-v-becb4076"><block wx:for="{{goodsImg}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="img radius10 border-box data-v-becb4076"><image src="{{item}}" mode="widthFix" class="data-v-becb4076"></image></view></block><view data-event-opts="{{[['tap',[['changeImg',['$event']]]]]}}" class="upload-btn radius10 border-box flex data-v-becb4076" bindtap="__e"><image src="/static/icon-release.png" mode="widthFix" class="data-v-becb4076"></image></view></view></view><view class="item font26 mar-x30 flex data-v-becb4076"><view class="title data-v-becb4076">联系方式<text class="color-red data-v-becb4076">*</text></view><input type="number" placeholder="请输入联系方式" placeholder-style="color:#8c8c9b" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['goodsDetail']]]]]}}" value="{{goodsDetail.phone}}" bindinput="__e" class="data-v-becb4076"/></view></view><view class="release-btn background-blue font32 radius10 color-ff flex data-v-becb4076">提交</view></view></block>
|
||||
<block wx:if="{{isLoading}}"><view class="pad-x120 data-v-becb4076"><status-nav vue-id="72b219e1-1" ifReturn="{{true}}" navBarTitle="{{pageTitle}}" class="data-v-becb4076" bind:__l="__l"></status-nav><view class="notice-tips color-orange font26 border-box pad-all20 flex data-v-becb4076"><image src="/static/icon-notice.png" mode="widthFix" class="data-v-becb4076"></image>请确保商品信息及联系方式的真实性!</view><view class="release-form color-48 background-white border-box data-v-becb4076"><view class="item font26 mar-x30 flex data-v-becb4076"><view class="title data-v-becb4076">商品分类<text class="color-red data-v-becb4076">*</text></view><picker mode="selector" range="{{cateList}}" value="{{cateIndex}}" range-key="name" data-event-opts="{{[['change',[['choiceCate',['$event']]]]]}}" bindchange="__e" class="data-v-becb4076"><view class="cate-name data-v-becb4076"><text class="data-v-becb4076">{{cateList[cateIndex].name}}</text><image src="/static/icon-arrow-down.png" mode class="data-v-becb4076"></image></view></picker></view><view class="item font26 mar-x30 flex data-v-becb4076"><view class="title data-v-becb4076">商品名称<text class="color-red data-v-becb4076">*</text></view><input type="text" placeholder="请输入商品名称" placeholder-style="color:#8c8c9b" data-event-opts="{{[['input',[['__set_model',['$0','name','$event',[]],['goodsDetail']]]]]}}" value="{{goodsDetail.name}}" bindinput="__e" class="data-v-becb4076"/></view><view class="item font26 mar-x30 flex data-v-becb4076"><view class="title data-v-becb4076">商品原价<text class="color-red data-v-becb4076">*</text></view><input type="number" placeholder="请输入商品原价" placeholder-style="color:#8c8c9b" data-event-opts="{{[['input',[['__set_model',['$0','original_price','$event',[]],['goodsDetail']]]]]}}" value="{{goodsDetail.original_price}}" bindinput="__e" class="data-v-becb4076"/></view><view class="item font26 mar-x30 flex data-v-becb4076"><view class="title data-v-becb4076">商品售价<text class="color-red data-v-becb4076">*</text></view><input type="number" placeholder="请输入商品售价" placeholder-style="color:#8c8c9b" data-event-opts="{{[['input',[['__set_model',['$0','price','$event',[]],['goodsDetail']]]]]}}" value="{{goodsDetail.price}}" bindinput="__e" class="data-v-becb4076"/></view><view class="item font26 mar-x30 flex data-v-becb4076"><view class="title data-v-becb4076">商品描述<text class="color-red data-v-becb4076">*</text></view><textarea placeholder="请输入商品描述" placeholder-style="color:#8c8c9b" data-event-opts="{{[['input',[['__set_model',['$0','msg','$event',[]],['goodsDetail']]]]]}}" value="{{goodsDetail.msg}}" bindinput="__e" class="data-v-becb4076"></textarea></view><view class="item font26 mar-x30 flex data-v-becb4076"><view class="title data-v-becb4076">商品图片<text class="color-red data-v-becb4076">*</text></view><view class="upload-box border-box flex data-v-becb4076"><block wx:for="{{goodsImg}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="img radius10 border-box data-v-becb4076"><image src="{{item}}" mode="widthFix" class="data-v-becb4076"></image></view></block><view data-event-opts="{{[['tap',[['changeImg',['$event']]]]]}}" class="upload-btn radius10 border-box flex data-v-becb4076" bindtap="__e"><image src="/static/icon-release.png" mode="widthFix" class="data-v-becb4076"></image></view></view></view><view class="item font26 mar-x30 flex data-v-becb4076"><view class="title data-v-becb4076">联系方式<text class="color-red data-v-becb4076">*</text></view><input type="number" placeholder="请输入联系方式" placeholder-style="color:#8c8c9b" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['goodsDetail']]]]]}}" value="{{goodsDetail.phone}}" bindinput="__e" class="data-v-becb4076"/></view></view><view class="release-btn background-blue font32 radius10 color-ff flex data-v-becb4076">提交</view></view></block>
|
|
@ -65,10 +65,15 @@ to {
|
|||
}
|
||||
.release-form .item .cate-name.data-v-becb4076{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
width: calc(100% - 10rpx);
|
||||
height: 76rpx;
|
||||
}
|
||||
.release-form .item image.data-v-becb4076{
|
||||
width: 28rpx;
|
||||
height: 16rpx;
|
||||
}
|
||||
.release-form .item>.upload-box.data-v-becb4076{
|
||||
box-sizing: border-box;
|
||||
width: calc(100% - 140rpx);
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Loading…
Reference in New Issue