From b944d5e8fba771c222ef4bd86ec07c79db7c2d31 Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Mon, 13 Nov 2023 11:17:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.js | 6 +- manifest.json | 30 ++-- pages.json | 8 + pages/goods/list.vue | 30 ++-- pages/reg/reg.vue | 322 +++++++++++++++++++++++++++++++++++++++++ utils/request/index.js | 2 +- 6 files changed, 367 insertions(+), 31 deletions(-) create mode 100644 pages/reg/reg.vue diff --git a/config.js b/config.js index 26808a7..edd6d72 100644 --- a/config.js +++ b/config.js @@ -10,13 +10,13 @@ module.exports = { // apiUrl: "http://58.30.231.137:8022/", // apiUrl: "http://10.24.4.156/api/", // product env - // apiUrl: "http://10.24.4.14:80/kk", + // apiUrl: "http://10.24.4.14:80/", apiUrl: "./kk/", - /** + /** * 是否启用商城设置缓存 * 将减少用户端重复请求; 正式运营时请设为true, 开启后商城设置同步前端需10分钟缓存 */ - enabledSettingCache: false, + enabledSettingCache: true, } diff --git a/manifest.json b/manifest.json index 9efcbb5..dbafb14 100644 --- a/manifest.json +++ b/manifest.json @@ -107,20 +107,20 @@ "mode" : "history", "base" : "./" }, - "devServer": { - "https": false, - "disableHostCheck" : true, - // "port": 8080, - "proxy":{ - "/kk" : { - "target" : "http://10.24.4.14", //请求的目标域名 - "changeOrigin" : true, - "secure" : true, - "pathRewrite" : { - "^/kk" : "/" - } - } - } - } + "devServer" : { + "https" : false, + "disableHostCheck" : true, + // "port": 8080, + "proxy" : { + "/kk" : { + "target" : "http://10.24.4.14", //请求的目标域名 + "changeOrigin" : true, + "secure" : true, + "pathRewrite" : { + "^/kk" : "/" + } + } + } + } } } diff --git a/pages.json b/pages.json index 9f76911..720af1c 100644 --- a/pages.json +++ b/pages.json @@ -233,6 +233,14 @@ "style": { "navigationBarTitleText": "申请售后" } + }, + { + "path" : "pages/reg/reg", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh" : false + } } ], "globalStyle": { diff --git a/pages/goods/list.vue b/pages/goods/list.vue index be74a76..9667c1e 100644 --- a/pages/goods/list.vue +++ b/pages/goods/list.vue @@ -2,7 +2,7 @@ - + @@ -11,7 +11,7 @@ - + - + @@ -158,21 +158,27 @@ }, /** - * 获取商品列表 + * 获取标的列表 * @param {number} pageNo 页码 */ getGoodsList(pageNo = 1) { const app = this - console.log(app.options) + // console.log(app.options) + // {"authorization":"","record_type":"","entrust_name":"", + // "entrust_user_name":"深圳国夏文化数字科技有限公司","source_type":"","order_type":"createtime", + // "order":"desc","goods_status":1,"page":1,"limit":8} const param = { - sortType: app.sortType, - sortPrice: Number(app.sortPrice), - categoryId: app.options.categoryId || 0, - goodsName: app.options.search || '', - page: pageNo + "pay_type":2,"goods_status":1,"page":1,"limit":6 + // order: 'desc', + // order_type: 'createtime', + // entrust_user_name: app.options.k, + // goods_status: '1', + // page: pageNo, + // limit: 4 } return new Promise((resolve, reject) => { - GoodsApi.list(param) + GoodsApi.soglist(param) + //GoodsApi.list(param) .then(result => { // 合并新数据 const newList = result.data.list diff --git a/pages/reg/reg.vue b/pages/reg/reg.vue new file mode 100644 index 0000000..821f8b8 --- /dev/null +++ b/pages/reg/reg.vue @@ -0,0 +1,322 @@ + + + + + diff --git a/utils/request/index.js b/utils/request/index.js index b1d42b7..c3355a0 100644 --- a/utils/request/index.js +++ b/utils/request/index.js @@ -21,7 +21,7 @@ const $http = new request({ 'Content-Type': 'application/json;charset=UTF-8' }, // 请求超时时间, 单位ms(默认15000) - timeout: 60000, + timeout: 360000000, // 默认配置(可不写) config: { // 是否自动提示错误