|
@@ -27,7 +27,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="goods-det">
|
|
<view class="goods-det">
|
|
|
<view class="goods-det-top" style="margin-bottom:4upx;">
|
|
<view class="goods-det-top" style="margin-bottom:4upx;">
|
|
|
- <view class="goods-name" style="font-size:29upx;font-weight:bold;">{{ goodsItem.name||'' }}</view>
|
|
|
|
|
|
|
+ <view class="goods-name" style="font-size:29upx;font-weight:bold; overflow: hidden;text-overflow: ellipsis;white-space: nowrap;width:350upx;">{{ goodsItem.name||'' }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="operate-wrap" style="margin-bottom:15upx;">
|
|
<view class="operate-wrap" style="margin-bottom:15upx;">
|
|
|
<view class="goods-price" style="font-size:23upx;">¥{{ goodsItem.price?parseFloat(goodsItem.price):0 }}</view>
|
|
<view class="goods-price" style="font-size:23upx;">¥{{ goodsItem.price?parseFloat(goodsItem.price):0 }}</view>
|
|
@@ -35,7 +35,7 @@
|
|
|
<view class="operate-wrap">
|
|
<view class="operate-wrap">
|
|
|
<view style="font-size:23upx;">
|
|
<view style="font-size:23upx;">
|
|
|
<text>库存</text> <text style="font-weight:bold;margin-left:8upx;">{{goodsItem.stock}}</text>
|
|
<text>库存</text> <text style="font-weight:bold;margin-left:8upx;">{{goodsItem.stock}}</text>
|
|
|
- <text style="margin-left:12upx;color:#CCCCCC;">已售 {{ goodsItem.actualSold }}</text>
|
|
|
|
|
|
|
+ <text style="margin-left:18upx;color:#CCCCCC;">已售 {{ goodsItem.actualSold }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -112,12 +112,16 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
moreToDo(item){
|
|
moreToDo(item){
|
|
|
let that=this;
|
|
let that=this;
|
|
|
- let doList = ['打1个标签', '打2个标签','打5个标签', '打10个标签','打20个标签']
|
|
|
|
|
|
|
+ let doList = ['打1个标签', '打2个标签','打5个标签', '打10个标签','设置为散花']
|
|
|
let doNum = [1,2,5,10,20]
|
|
let doNum = [1,2,5,10,20]
|
|
|
uni.showActionSheet({
|
|
uni.showActionSheet({
|
|
|
itemList: doList,
|
|
itemList: doList,
|
|
|
success: function (respond) {
|
|
success: function (respond) {
|
|
|
let index = respond.tapIndex
|
|
let index = respond.tapIndex
|
|
|
|
|
+ if(index == 4){
|
|
|
|
|
+ that.$msg('开发中')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
let currentNum = Number(doNum[index])
|
|
let currentNum = Number(doNum[index])
|
|
|
print({id:item.id,num:currentNum}).then(res=>{
|
|
print({id:item.id,num:currentNum}).then(res=>{
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|