From 753a2628806df6d5ac0d1768cb6f605e3ecf2eb4 Mon Sep 17 00:00:00 2001 From: xiaoshan Date: Mon, 8 Jan 2024 14:23:10 +0800 Subject: [PATCH] oss --- config.js | 5 ++++- main.js | 2 ++ manifest.json | 2 +- pages/mine/index.vue | 49 ++++++++++++++++++++++---------------------- project.config.json | 8 ++++++++ utils/util.js | 8 ++++++++ 6 files changed, 48 insertions(+), 26 deletions(-) diff --git a/config.js b/config.js index 97e9903..4020537 100644 --- a/config.js +++ b/config.js @@ -1,6 +1,9 @@ // 应用全局配置 + module.exports = { //正式 + // baseUrl: 'https://mall.lianxianke.cn/car_app_api', + // 测试 baseUrl: 'https://mall.lianxianke.cn/car_app_api', // baseUrl: 'https://mall.lianxianke.cn/car_app_api', TOKENNAME: 'Authori-zation', @@ -10,7 +13,7 @@ module.exports = { fileUploadUrl: 'https://mall.lianxianke.cn/car_app_api/api/front/upload/image', WebSocketUrl: 'ws://121.199.24.205:9107/lxk/websocket', WebSocketOpen: false, - aliyunOssUrl: "https://jimte.oss-cn-hangzhou.aliyuncs.com", + aliyunOssUrl: "https://qicheoss.oss-cn-shanghai.aliyuncs.com", OSSAccessKeyId: "LTAI5tFZzfAMHw3WJNQtrhBZ", OssAccesskeySercet: "rqZUht8RhrAfxDltWeGs1Yzpqzmu8W", OssDir: "ossimg/", diff --git a/main.js b/main.js index c518b1d..cd56d2e 100644 --- a/main.js +++ b/main.js @@ -3,6 +3,7 @@ import App from './App' import store from './store' // store import plugins from './plugins' // plugins import util from 'utils/util' +import config from 'config' import './permission' // permission import uView from '@/uni_modules/uview-ui' import ZPMixin from '@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin' @@ -17,6 +18,7 @@ Vue.use(plugins) Vue.config.productionTip = false Vue.prototype.$util = util; +Vue.prototype.$config = config; Vue.prototype.$store = store Vue.prototype.$toast = toast Vue.prototype.$confirm = showConfirm diff --git a/manifest.json b/manifest.json index b395c4d..8c7f1ce 100644 --- a/manifest.json +++ b/manifest.json @@ -46,7 +46,7 @@ }, "quickapp" : {}, "mp-weixin" : { - "appid" : "wx67c3ee9398603438", + "appid" : "wx0be41c65a0f132eb", "setting" : { "urlCheck" : false, "es6" : false, diff --git a/pages/mine/index.vue b/pages/mine/index.vue index 276a2bb..0ce638e 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -3,13 +3,12 @@ - - - + + + - - + @@ -20,21 +19,22 @@ - - + + - + - - + + + - + - + @@ -79,10 +79,10 @@ 32 - - + + - + @@ -103,14 +103,15 @@