From 7c06941d59e63b4ea1d3a96c69872f15b47782aa Mon Sep 17 00:00:00 2001 From: cc_zbp <487602586@qq.com> Date: Wed, 24 May 2023 18:25:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E4=BB=93=E5=95=86=E5=93=81=E5=88=86?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api.js | 17 +- config/app.js | 3 +- libs/order.js | 54 +- pages.json | 6 + pages/goods_details/index.vue | 9 +- pages/nongKe/cloud_entrepot/index.vue | 133 +++- pages/nongKe/goods_list/index.vue | 1008 +++++++++++++++++++++++++ pages/store/home/index.vue | 34 +- pages/supply_chains/supply_chains.vue | 8 +- 9 files changed, 1185 insertions(+), 87 deletions(-) create mode 100644 pages/nongKe/goods_list/index.vue diff --git a/api/api.js b/api/api.js index 586a609..17cf5dc 100644 --- a/api/api.js +++ b/api/api.js @@ -1,4 +1,19 @@ import request from "@/utils/request.js"; + +/** + * 获取云仓分类 + * + */ +export function cloudWarehouse(data) { + return request.get("store/product/cloudWarehouse", data); +} +/** + * 获取云仓分类 + * + */ +export function getCityCloundShop(data) { + return request.get("city/get_cloud_shop", data); +} /** * 商品扫码枪查询商品是否存在 * @@ -19,7 +34,7 @@ export function get_cloud_shop(street_code) { return request.get(`city/get_cloud_shop?street_code=${street_code}`, {}, { noAuth: true }); } export function post_product_import(id) { - return request.post(`micro/product_import`,{ id: id }, { noAuth: true }); + return request.post(`micro/product_import`, { id: id }, { noAuth: true }); } /** * 公共接口 ,优惠券接口 , 行业此讯 , 手机号码注册 diff --git a/config/app.js b/config/app.js index 94b6bed..f541cb0 100644 --- a/config/app.js +++ b/config/app.js @@ -9,7 +9,8 @@ let httpApiThree // 网络接口修改此字符 小程序域名要求https // let httpApi = 'http://192.168.31.110:8324' // 测试 if (process.env.NODE_ENV === "development") { - httpApi = "https://crmeb-test.shop.lihaink.cn" + // httpApi = "https://crmeb-test.shop.lihaink.cn" + httpApi = "http://192.168.0.109:8325" // #ifdef MP-WEIXIN httpApiTwo = "http://cms.com" httpApiThree = 'http://ceshi-oa.lihaink.cn' diff --git a/libs/order.js b/libs/order.js index c434121..f187ad6 100644 --- a/libs/order.js +++ b/libs/order.js @@ -7,30 +7,30 @@ // +---------------------------------------------------------------------- // | Author: CRMEB Team // +---------------------------------------------------------------------- -export function goShopDetail(item,uid) { - return new Promise(resolve => { - if (item.product_type === 1) { - uni.navigateTo({ - url: `/pages/activity/goods_seckill_details/index?id=${item.product_id}&time=${item.stop_time}` - }) - } else if (item.product_type === 2) { - uni.navigateTo({ - url: `/pages/activity/presell_details/index?id=${item.activity_id}` - }) - } else if (item.product_type === 0 || item.product_type === 10) { - uni.navigateTo({ - url: `/pages/goods_details/index?id=${item.product_id}` - }) - }else if (item.product_type === 4) { - uni.navigateTo({ - url: `/pages/activity/combination_details/index?id=${item.activity_id}` - }) - }else if (item.product_type === 40) { - uni.navigateTo({ - url: `/pages/activity/combination_status/index?id=${item.activity_id}` - }) - }else { - resolve(item); - } - }); -} +export function goShopDetail(item, uid) { + return new Promise(resolve => { + if (item.product_type === 1) { + uni.navigateTo({ + url: `/pages/activity/goods_seckill_details/index?id=${item.product_id}&time=${item.stop_time}` + }) + } else if (item.product_type === 2) { + uni.navigateTo({ + url: `/pages/activity/presell_details/index?id=${item.activity_id}` + }) + } else if (item.product_type === 0 || item.product_type === 10) { + uni.navigateTo({ + url: `/pages/goods_details/index?id=${item.product_id}&referer=${item.referer}` + }) + } else if (item.product_type === 4) { + uni.navigateTo({ + url: `/pages/activity/combination_details/index?id=${item.activity_id}` + }) + } else if (item.product_type === 40) { + uni.navigateTo({ + url: `/pages/activity/combination_status/index?id=${item.activity_id}` + }) + } else { + resolve(item); + } + }); +} \ No newline at end of file diff --git a/pages.json b/pages.json index 00f8750..87af6d9 100644 --- a/pages.json +++ b/pages.json @@ -169,6 +169,12 @@ "navigationBarTitleText": "", "enablePullDownRefresh": true } + }, { + "path": "goods_list/index", + "style": { + "navigationBarTitleText": "里海云仓", + "enablePullDownRefresh": true + } }, { "path": "supply_chain/goods_list", diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue index f94facc..3e71e54 100644 --- a/pages/goods_details/index.vue +++ b/pages/goods_details/index.vue @@ -275,7 +275,8 @@ - {{description.content.title}} + {{description.content.title}} + @@ -571,7 +572,8 @@ show: false, params: [] }, - product_type: 0 + product_type: 0, + referer: '' }; }, computed: { @@ -580,6 +582,7 @@ ])), }, onLoad(options) { + this.referer = options.referer if (options.product_type) { this.product_type = options.product_type } @@ -1336,7 +1339,7 @@ that.isOpen = that.attr.cartAttr = false; if (news) { uni.navigateTo({ - url: '/pages/users/order_confirm/index?cartId=' + res.data.cart_id + url: `/pages/users/order_confirm/index?cartId=${res.data.cart_id}&referer=${that.referer}` }); } else { that.$util.Tips({ diff --git a/pages/nongKe/cloud_entrepot/index.vue b/pages/nongKe/cloud_entrepot/index.vue index ddd84c4..5931f37 100644 --- a/pages/nongKe/cloud_entrepot/index.vue +++ b/pages/nongKe/cloud_entrepot/index.vue @@ -1,88 +1,159 @@ + \ No newline at end of file diff --git a/pages/store/home/index.vue b/pages/store/home/index.vue index 68db3b7..495d896 100644 --- a/pages/store/home/index.vue +++ b/pages/store/home/index.vue @@ -418,15 +418,6 @@