diff --git a/components/shoppinglist/shoppinglist.vue b/components/shoppinglist/shoppinglist.vue
index 24de335..a125106 100644
--- a/components/shoppinglist/shoppinglist.vue
+++ b/components/shoppinglist/shoppinglist.vue
@@ -173,30 +173,21 @@
//价格
producrprice(e, i, item) {
this.bought[i].price = e.detail.value
- this.$set(item, 'check', false);
- for (let i in this.checkedArr) {
- if (this.checkedArr[i].product_id == item.product_id) {
- this.checkedArr.splice(i, 1)
-
- }
- }
-
-
-
+ // this.$set(item, 'check', false);
+ // for (let i in this.checkedArr) {
+ // if (this.checkedArr[i].product_id == item.product_id) {
+ // this.checkedArr.splice(i, 1)
+ // }
+ // }
},
incrementTotal(e, i, item) {
// console.log(e, i, item)
- this.$set(item, 'check', false);
- for (let i in this.checkedArr) {
- if (this.checkedArr[i].product_id == item.product_id) {
- this.checkedArr.splice(i, 1)
- }
- }
-
-
-
-
-
+ // this.$set(item, 'check', false);
+ // for (let i in this.checkedArr) {
+ // if (this.checkedArr[i].product_id == item.product_id) {
+ // this.checkedArr.splice(i, 1)
+ // }
+ // }
},
// picker修改事件
bindPickerChange: function(e, storage, num) {
@@ -300,8 +291,6 @@
this.checked = []
this.checkedArr.forEach((item, index) => {
this.checkedArr.push(item)
-
-
})
},
/*点击选中与否*/
@@ -318,7 +307,6 @@
this.checkedArr.push(item)
} else {
this.checkedArr.splice(this.checkedArr.findIndex(itemn => ((itemn.product_id == item.product_id))), 1)
-
}
},
diff --git a/pages.json b/pages.json
index fea5fbe..ab34caf 100644
--- a/pages.json
+++ b/pages.json
@@ -79,6 +79,12 @@
}
}
},
+ {
+ "path": "pages/nongKe/supply_chain/shopping_trolley",
+ "style": {
+ "navigationBarTitleText": "采购车"
+ }
+ },
{
"path": "pages/moreProject/moreProject",
"style": {
@@ -1456,12 +1462,18 @@
"text": "消息"
},
{
- "pagePath": "pages/product/list/index",
- "iconPath": "static/tabbar_icon/c.png",
- "selectedIconPath": "static/tabbar_icon/c-a.png",
- "text": "商品"
+ "pagePath": "pages/nongKe/supply_chain/shopping_trolley",
+ "iconPath": "static/tabbar_icon/d.png",
+ "selectedIconPath": "static/tabbar_icon/d-a.png",
+ "text": "采购车"
}
// {
+ // "pagePath": "pages/product/list/index",
+ // "iconPath": "static/tabbar_icon/c.png",
+ // "selectedIconPath": "static/tabbar_icon/c-a.png",
+ // "text": "商品"
+ // },
+ // {
// "pagePath": "pages/supply_chains/supply_chains",
// "iconPath": "static/tabbar_icon/d.png",
// "selectedIconPath": "static/tabbar_icon/d-a.png",
diff --git a/pages/index/index.vue b/pages/index/index.vue
index a328445..026791d 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1018,7 +1018,7 @@
switch (item.type) {
case 1:
- uni.switchTab({
+ uni.navigateTo({
url: '/pages/product/list/index'
})
break;
@@ -1029,9 +1029,12 @@
})
break;
case 3:
+ // uni.navigateTo({
+ // url: '/pages/users/supply_procurement/index?type_id=12&isDetail=1&product_type=98&cate_id=' +
+ // this.userInfoData.mer_info.category_id
+ // })
uni.navigateTo({
- url: '/pages/users/supply_procurement/index?type_id=12&isDetail=1&product_type=98&cate_id=' +
- this.userInfoData.mer_info.category_id
+ url: `/pages/nongKe/supply_chain/supplierA?tit=1&type_id=12&isDetail=1&product_type=98&cate_id=${this.userInfoData.mer_info.category_id}`
})
break;
case 4:
diff --git a/pages/nongKe/supply_chain/merchant.vue b/pages/nongKe/supply_chain/merchant.vue
index e137b68..86113da 100644
--- a/pages/nongKe/supply_chain/merchant.vue
+++ b/pages/nongKe/supply_chain/merchant.vue
@@ -38,7 +38,7 @@
- 采购清单
+ 采购清单
diff --git a/pages/nongKe/supply_chain/shopping_trolley.vue b/pages/nongKe/supply_chain/shopping_trolley.vue
index 64c020f..9f6802f 100644
--- a/pages/nongKe/supply_chain/shopping_trolley.vue
+++ b/pages/nongKe/supply_chain/shopping_trolley.vue
@@ -26,6 +26,7 @@
优惠券
+ 支持先货后款
+ 供货采购
@@ -30,6 +31,8 @@
+
+
@@ -47,12 +50,12 @@
-->
-
+
-
@@ -433,6 +436,18 @@
}, mapGetters(['viewColor'])),
},
methods: {
+ // 切换状态
+ changeTabs(e){
+ if(e.index==0){
+ this.credit_buy = ''
+ this.sotreParam.page = 1;
+ }else if(e.index==1){
+ this.credit_buy = 1
+ this.sotreParam.page = 1;
+ }
+ this.storeList = [];
+ this.storeMerchantList();
+ },
navGo(id) {
uni.navigateTo({
url: `/pages/nongKe/supply_chain/supplierA?type_id=10&?merchant_category_id=${id}`
@@ -877,9 +892,9 @@
margin: 20rpx 0;
flex-wrap: wrap;
// margin-top: 50rpx;
- padding-top: 50rpx;
+ padding-top: 142rpx;
/* #ifdef H5 */
- padding-top: 100rpx;
+ padding-top: 180rpx;
/* #endif */
text {
diff --git a/static/tabbar_icon/d-a.png b/static/tabbar_icon/d-a.png
new file mode 100644
index 0000000..69ef41b
Binary files /dev/null and b/static/tabbar_icon/d-a.png differ
diff --git a/static/tabbar_icon/d.png b/static/tabbar_icon/d.png
new file mode 100644
index 0000000..c5b9561
Binary files /dev/null and b/static/tabbar_icon/d.png differ