diff --git a/api/requesta.js b/api/requesta.js
new file mode 100644
index 0000000..18eae4c
--- /dev/null
+++ b/api/requesta.js
@@ -0,0 +1,8 @@
+import request from "@/utils/requesta.js";
+
+export function getCityCloundShop(data) {
+ return request.get("city/get_cloud_shop", data);
+}
+export function cloudWarehouse(data) {
+ return request.get("store/product/cloudWarehouse", data);
+}
\ No newline at end of file
diff --git a/components/zbpSwiper.vue b/components/zbpSwiper.vue
index dc15f5e..a0a1e90 100644
--- a/components/zbpSwiper.vue
+++ b/components/zbpSwiper.vue
@@ -140,12 +140,12 @@
this.$emit('change', e)
this.street = e.value[1].name
this.$nextTick(() => {
- this.$bus.$emit('value-updated',e.value[1].name + ',' +e.value[1].code);
-
+ this.$bus.$emit('value-updated', e.value[1].name + ',' + e.value[1].code);
+
})
-
-
-
+
+
+
},
changeHandler(e) {
const {
diff --git a/components/zbpSwiperb.vue b/components/zbpSwiperb.vue
new file mode 100644
index 0000000..d0949dc
--- /dev/null
+++ b/components/zbpSwiperb.vue
@@ -0,0 +1,353 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{street}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/nongKe/cloud_entrepot/index.vue b/pages/nongKe/cloud_entrepot/index.vue
index afb0697..c279578 100644
--- a/pages/nongKe/cloud_entrepot/index.vue
+++ b/pages/nongKe/cloud_entrepot/index.vue
@@ -177,7 +177,6 @@
height="400.09rpx">
暂无商品
-
@@ -244,17 +243,19 @@
+
+
+
+
- 暂无商家
-
+ 当前区域暂无云仓
-
-
@@ -266,7 +267,7 @@
import {
cloudWarehouse,
getCityCloundShop
- } from '@/api/api.js'
+ } from '@/api/requesta.js'
import {
Toast
} from '@/libs/uniApi';
@@ -335,7 +336,7 @@
}
},
onLoad(e) {
- this.cartFn()
+ // this.cartFn()
this.appInfo = this.$appInfo.safeAreaInsets
this.winHeight = this.$appInfo.windowHeight
this.street_code = e.street
@@ -344,7 +345,7 @@
// console.log(this.appInfo, "手机信息")
},
onShow() {
- this.cartFn()
+ // this.cartFn()
},
// 分页
onReachBottom() {
diff --git a/utils/requesta.js b/utils/requesta.js
new file mode 100644
index 0000000..8aa7a8f
--- /dev/null
+++ b/utils/requesta.js
@@ -0,0 +1,76 @@
+// +----------------------------------------------------------------------
+// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
+// +----------------------------------------------------------------------
+// | Author: CRMEB Team
+// +----------------------------------------------------------------------
+import {
+ HTTP_REQUEST_URL,
+ HEADER,
+ TOKENNAME
+} from '@/config/app';
+import {
+ checkLogin
+} from '../libs/login';
+import store from '../store';
+
+
+
+/**
+ * 发送请求
+ */
+function baseRequest(url, method, data, {
+ noAuth = false,
+ noVerify = false
+}) {
+ let Url = HTTP_REQUEST_URL,
+ header = HEADER;
+
+
+
+ if (store.state.app.token) header[TOKENNAME] = 'Bearer ' + store.state.app.token;
+
+ return new Promise((reslove, reject) => {
+ uni.request({
+ url: Url + '/api/' + url,
+ method: method || 'GET',
+ header: header,
+ data: data || {},
+ success: (res) => {
+ // #ifdef APP-PLUS
+ // console.log('app', Url + '/api/' + url, res.data);
+ // #endif
+ if (noVerify)
+ reslove(res.data, res);
+ else if (res.data.status == 200)
+ reslove(res.data, res);
+ else if ([410000, 410001, 410002, 40000].indexOf(res.data.status) !== -1) {
+
+ reject(res.data);
+ } else if (res.data.status == 501) {
+ uni.reLaunch({
+ url: '/pages/error/index'
+ })
+ reject(res.data);
+ } else
+ reject(res.data.message || '系统错误');
+ },
+ fail: (message) => {
+ reject('请求失败');
+ }
+ })
+ });
+}
+
+const request = {};
+
+['options', 'get', 'post', 'put', 'head', 'delete', 'trace', 'connect'].forEach((method) => {
+ request[method] = (api, data, opt) => baseRequest(api, method, data, opt || {})
+});
+
+
+
+export default request;
\ No newline at end of file