|
|
@@ -138,7 +138,10 @@
|
|
|
<button class="action-button" @click="shareItem()">分享商品</button>
|
|
|
</view>
|
|
|
<view class="action-button-item">
|
|
|
- <button class="action-button" @click="chooseItemPoster()">生成海报</button>
|
|
|
+ <button class="action-button" @click="fetchItemPoster('hd')">批发海报</button>
|
|
|
+ </view>
|
|
|
+ <view class="action-button-item">
|
|
|
+ <button class="action-button" @click="fetchItemPoster('sk')">零售海报</button>
|
|
|
</view>
|
|
|
<view class="action-button-item">
|
|
|
<button class="action-button" @click="orderRecord()">下单记录</button>
|
|
|
@@ -491,15 +494,6 @@ export default {
|
|
|
sendStock(){
|
|
|
this.pageTo({url: '/admin/item/sendStock?id='+this.currentInfo.id+'&price='+this.currentInfo.price+'&stock='+this.currentInfo.stock+'&name='+this.currentInfo.name,type:2})
|
|
|
},
|
|
|
- chooseItemPoster() {
|
|
|
- const that = this
|
|
|
- uni.showActionSheet({
|
|
|
- itemList: ['批发海报', '零售海报'],
|
|
|
- success(res) {
|
|
|
- that.fetchItemPoster(res.tapIndex === 0 ? 'hd' : 'sk')
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
selectFlowerNumFn(){
|
|
|
this.showClassImg = true
|
|
|
this.$refs.globalClassImgRef.open('top')
|