mer_id添加
This commit is contained in:
parent
e1ac056450
commit
e4950a2686
@ -815,7 +815,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
iptCartNum: function(e) {
|
iptCartNum: function(e) {
|
||||||
this.$set(this.attr.productSelect, 'cart_num', e);
|
console.log(e);
|
||||||
|
console.log(this.productValue[this.attrValue]);
|
||||||
|
let productSelect = this.productValue[this.attrValue]
|
||||||
|
if ( e > productSelect.stock) {
|
||||||
|
console.log('1');
|
||||||
|
e = productSelect.stock
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
|
this.$set(this.attr.productSelect, 'cart_num', e);
|
||||||
},
|
},
|
||||||
// 后退
|
// 后退
|
||||||
returns: function() {
|
returns: function() {
|
||||||
|
@ -156,7 +156,7 @@
|
|||||||
Toast("暂无搜索商品,请添加!")
|
Toast("暂无搜索商品,请添加!")
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/product/addGoods/index'
|
url: `/pages/product/addGoods/index?mer_id=${rq.mer_id}`
|
||||||
})
|
})
|
||||||
}, 2000)
|
}, 2000)
|
||||||
return
|
return
|
||||||
@ -183,6 +183,7 @@
|
|||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
if (this.stype == 1) {
|
if (this.stype == 1) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
url: `/pages/product/addGoods/index?mer_id=${this.mer_id}`
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
<view class="container">
|
<view class="container">
|
||||||
<input-goods-detils @getProductContent="getProductContent" title="填写商品描述" :prodectContent="goodsDis" :maxLength="200"></input-goods-detils>
|
<input-goods-detils @getProductContent="getProductContent" title="填写商品描述" :prodectContent="goodsDis" :maxLength="200"></input-goods-detils>
|
||||||
<view class="handle"><view class="handle_button" @click="save">保存</view></view>
|
<view class="handle"><view class="handle_button" @click="save">保存</view></view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,8 +71,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 选择标签
|
// 选择标签
|
||||||
selectTap(item, index) {
|
selectTap(item, index) {
|
||||||
|
console.log(item);
|
||||||
this.selectIndex = index;
|
this.selectIndex = index;
|
||||||
this.selectClassifiedData = serialize(item.children);
|
this.selectClassifiedData = serialize(item.children);
|
||||||
|
console.log(index);
|
||||||
|
if(this.tapList.length == 1){
|
||||||
|
console.log('123');
|
||||||
|
// this.selectClassifiedData = serialize(this.classifiedData);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 点击请选择
|
// 点击请选择
|
||||||
pleaseSelect() {
|
pleaseSelect() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user