反馈修改完成-1128
parent
c9594b5184
commit
67e36a2629
|
@ -3,7 +3,7 @@
|
|||
<view class="item background-white radius20 mar-s20" @tap.top="goDetail(item.id)" v-for="(item,index) in goodsList" :key="index">
|
||||
<view class="cover radius20">
|
||||
<image class="img" :src="item.cover" mode="widthFix"></image>
|
||||
<view v-if="isOperate" class="hide-btn font24 color-ff radius20 flex" :class="item.status==1?'background-8c':'background-blue'" @tap.stop="changeStateEv(item.id,index)">{{item.status==1?'已下架':'已展示'}}</view>
|
||||
<view v-if="isOperate" class="hide-btn font24 color-ff radius20 flex" :class="item.status==1?'background-8c':'background-blue'" @tap.stop="changeStateEv(item.id,index)">{{item.status==1?'已下架':'已上架'}}</view>
|
||||
</view>
|
||||
<text class="name font28 clips1">{{item.name}}</text>
|
||||
<view class="price flex">
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
</view>
|
||||
<view class="detail-btns background-white border-box flex" v-if="type=='release'">
|
||||
<view class="btn font30 color-ff radius35 flex" :class="goodsDetail.status==0?'background-orange':'background-8c'" @tap="changeStateEv(goodsDetail.id)">
|
||||
{{goodsDetail.status==0?'下架':'展示'}}
|
||||
{{goodsDetail.status==0?'已上架':'已下架'}}
|
||||
</view>
|
||||
<view class="btn background-blue font30 color-ff radius35 flex" @tap="editEv(goodsDetail.id)">编辑</view>
|
||||
</view>
|
||||
|
@ -138,7 +138,7 @@
|
|||
this.$toolAll.tools.showToast('已下架');
|
||||
}else{
|
||||
this.goodsDetail.status = 0;
|
||||
this.$toolAll.tools.showToast('已展示');
|
||||
this.$toolAll.tools.showToast('已上架');
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
this.$toolAll.tools.showToast('已下架');
|
||||
}else{
|
||||
this.goodsList[index].status = 0;
|
||||
this.$toolAll.tools.showToast('已展示');
|
||||
this.$toolAll.tools.showToast('已上架');
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
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
|
@ -1 +1 @@
|
|||
<view class="goods-list flex data-v-108270a4"><block wx:for="{{goodsList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['goodsList','',index,'id']]]]]]]}}" class="item background-white radius20 mar-s20 data-v-108270a4" bindtap="__e"><view class="cover radius20 data-v-108270a4"><image class="img data-v-108270a4" src="{{item.cover}}" mode="widthFix"></image><block wx:if="{{isOperate}}"><view data-event-opts="{{[['tap',[['changeStateEv',['$0',index],[[['goodsList','',index,'id']]]]]]]}}" class="{{['hide-btn','font24','color-ff','radius20','flex','data-v-108270a4',item.status==1?'background-8c':'background-blue']}}" catchtap="__e">{{item.status==1?'已下架':'已展示'}}</view></block></view><text class="name font28 clips1 data-v-108270a4">{{item.name}}</text><view class="price flex data-v-108270a4"><block wx:if="{{item.original_price!==''}}"><text class="text color-8c font24 data-v-108270a4">{{"¥"+item.original_price}}</text></block><text class="text color-red font28 data-v-108270a4">{{"¥"+item.price}}</text></view></view></block></view>
|
||||
<view class="goods-list flex data-v-108270a4"><block wx:for="{{goodsList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['goodsList','',index,'id']]]]]]]}}" class="item background-white radius20 mar-s20 data-v-108270a4" bindtap="__e"><view class="cover radius20 data-v-108270a4"><image class="img data-v-108270a4" src="{{item.cover}}" mode="widthFix"></image><block wx:if="{{isOperate}}"><view data-event-opts="{{[['tap',[['changeStateEv',['$0',index],[[['goodsList','',index,'id']]]]]]]}}" class="{{['hide-btn','font24','color-ff','radius20','flex','data-v-108270a4',item.status==1?'background-8c':'background-blue']}}" catchtap="__e">{{item.status==1?'已下架':'已上架'}}</view></block></view><text class="name font28 clips1 data-v-108270a4">{{item.name}}</text><view class="price flex data-v-108270a4"><block wx:if="{{item.original_price!==''}}"><text class="text color-8c font24 data-v-108270a4">{{"¥"+item.original_price}}</text></block><text class="text color-red font28 data-v-108270a4">{{"¥"+item.price}}</text></view></view></block></view>
|
|
@ -304,7 +304,7 @@ var _default =
|
|||
_this2.$toolAll.tools.showToast('已下架');
|
||||
} else {
|
||||
_this2.goodsDetail.status = 0;
|
||||
_this2.$toolAll.tools.showToast('已展示');
|
||||
_this2.$toolAll.tools.showToast('已上架');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1 +1 @@
|
|||
<block wx:if="{{isLoading}}"><view class="{{['data-v-f0a9f5ba',type==''?'':'pad-x120']}}"><status-nav vue-id="6db62043-1" ifReturn="{{true}}" navBarTitle="商品详情" class="data-v-f0a9f5ba" bind:__l="__l"></status-nav><view class="notice-tips color-orange font26 border-box pad-all20 flex data-v-f0a9f5ba"><image src="/static/icon-notice.png" mode="widthFix" class="data-v-f0a9f5ba"></image>交易前请务必核实对方的身份及信息!</view><view class="goods-detail data-v-f0a9f5ba"><view class="goods-info background-white pad-zy20 border-box data-v-f0a9f5ba"><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品名称</view><view class="msg data-v-f0a9f5ba">{{goodsDetail.name}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品分类</view><view class="msg data-v-f0a9f5ba">{{goodsDetail.category_name}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品原价</view><view class="msg color-8c data-v-f0a9f5ba" style="text-decoration:line-through;">{{"¥"+(goodsDetail.original_price!==''?goodsDetail.original_price:'未填写')}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品售价</view><view class="msg data-v-f0a9f5ba">{{"¥"+goodsDetail.price}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">联系方式</view><block wx:if="{{showPhone}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="msg data-v-f0a9f5ba" bindtap="__e">{{goodsDetail.phone}}</view></block><block wx:else><view class="msg data-v-f0a9f5ba"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="see-phone color-ff font24 background-blue radius20 flex data-v-f0a9f5ba" bindtap="__e">查看联系方式</view></view></block></view></view><view class="goods-content background-white pad-all20 mar-s20 font28 border-box data-v-f0a9f5ba"><view class="goods-describe color-8c data-v-f0a9f5ba">{{goodsDetail.msg}}</view><view class="goods-img data-v-f0a9f5ba"><block wx:for="{{goodsImg}}" wx:for-item="item" wx:for-index="index" wx:key="index"><image src="{{item}}" mode="widthFix" class="data-v-f0a9f5ba"></image></block></view></view></view><block wx:if="{{type=='release'}}"><view class="detail-btns background-white border-box flex data-v-f0a9f5ba"><view data-event-opts="{{[['tap',[['changeStateEv',['$0'],['goodsDetail.id']]]]]}}" class="{{['btn','font30','color-ff','radius35','flex','data-v-f0a9f5ba',goodsDetail.status==0?'background-orange':'background-8c']}}" bindtap="__e">{{''+(goodsDetail.status==0?'下架':'展示')+''}}</view><view data-event-opts="{{[['tap',[['editEv',['$0'],['goodsDetail.id']]]]]}}" class="btn background-blue font30 color-ff radius35 flex data-v-f0a9f5ba" bindtap="__e">编辑</view></view></block></view></block>
|
||||
<block wx:if="{{isLoading}}"><view class="{{['data-v-f0a9f5ba',type==''?'':'pad-x120']}}"><status-nav vue-id="6db62043-1" ifReturn="{{true}}" navBarTitle="商品详情" class="data-v-f0a9f5ba" bind:__l="__l"></status-nav><view class="notice-tips color-orange font26 border-box pad-all20 flex data-v-f0a9f5ba"><image src="/static/icon-notice.png" mode="widthFix" class="data-v-f0a9f5ba"></image>交易前请务必核实对方的身份及信息!</view><view class="goods-detail data-v-f0a9f5ba"><view class="goods-info background-white pad-zy20 border-box data-v-f0a9f5ba"><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品名称</view><view class="msg data-v-f0a9f5ba">{{goodsDetail.name}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品分类</view><view class="msg data-v-f0a9f5ba">{{goodsDetail.category_name}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品原价</view><view class="msg color-8c data-v-f0a9f5ba" style="text-decoration:line-through;">{{"¥"+(goodsDetail.original_price!==''?goodsDetail.original_price:'未填写')}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品售价</view><view class="msg data-v-f0a9f5ba">{{"¥"+goodsDetail.price}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">联系方式</view><block wx:if="{{showPhone}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="msg data-v-f0a9f5ba" bindtap="__e">{{goodsDetail.phone}}</view></block><block wx:else><view class="msg data-v-f0a9f5ba"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="see-phone color-ff font24 background-blue radius20 flex data-v-f0a9f5ba" bindtap="__e">查看联系方式</view></view></block></view></view><view class="goods-content background-white pad-all20 mar-s20 font28 border-box data-v-f0a9f5ba"><view class="goods-describe color-8c data-v-f0a9f5ba">{{goodsDetail.msg}}</view><view class="goods-img data-v-f0a9f5ba"><block wx:for="{{goodsImg}}" wx:for-item="item" wx:for-index="index" wx:key="index"><image src="{{item}}" mode="widthFix" class="data-v-f0a9f5ba"></image></block></view></view></view><block wx:if="{{type=='release'}}"><view class="detail-btns background-white border-box flex data-v-f0a9f5ba"><view data-event-opts="{{[['tap',[['changeStateEv',['$0'],['goodsDetail.id']]]]]}}" class="{{['btn','font30','color-ff','radius35','flex','data-v-f0a9f5ba',goodsDetail.status==0?'background-orange':'background-8c']}}" bindtap="__e">{{''+(goodsDetail.status==0?'已上架':'已下架')+''}}</view><view data-event-opts="{{[['tap',[['editEv',['$0'],['goodsDetail.id']]]]]}}" class="btn background-blue font30 color-ff radius35 flex data-v-f0a9f5ba" bindtap="__e">编辑</view></view></block></view></block>
|
|
@ -249,7 +249,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
_this2.$toolAll.tools.showToast('已下架');
|
||||
} else {
|
||||
_this2.goodsList[index].status = 0;
|
||||
_this2.$toolAll.tools.showToast('已展示');
|
||||
_this2.$toolAll.tools.showToast('已上架');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue