diff --git a/config.js b/config.js index d0c4112..686a4bf 100644 --- a/config.js +++ b/config.js @@ -28,18 +28,32 @@ const config = { // 默认配置 const defaultConfig = { mapKey : 'SNGBZ-K6AKJ-5X2FI-XYKCM-DEZXZ-FGBA3', + // aliOss: { + // url: 'https://image.hhlm1688.com/', + // config: { + // //桶的地址 + // region: 'oss-cn-guangzhou', + // //id + // accessKeyId: 'LTAI5tQSs47izVy8DLVdwUU9', + // //密钥 + // accessKeySecret: 'qHI7C3PaXYZySr84HTToviC71AYlFq', + // //桶的名字 + // bucket: 'hanhaiimage', + // endpoint: 'oss-cn-shenzhen.aliyuncs.com', + // } + // }, aliOss: { - url: 'https://image.hhlm1688.com/', + url: 'https://img.cywhyc.com.cn/', config: { //桶的地址 - region: 'oss-cn-guangzhou', + region: 'oss-cn-shanghai', //id - accessKeyId: 'LTAI5tQSs47izVy8DLVdwUU9', + accessKeyId: 'LTAI5t6zzrU86ADa5wW6yFrp', //密钥 - accessKeySecret: 'qHI7C3PaXYZySr84HTToviC71AYlFq', + accessKeySecret: '2BddrzvyjiACTIDeuS2cCqrqAQuwco', //桶的名字 - bucket: 'hanhaiimage', - endpoint: 'oss-cn-shenzhen.aliyuncs.com', + bucket: 'cywhyc', + endpoint: 'oss-cn-shanghai.aliyuncs.com', } }, dict : { diff --git a/pages_order/auth/wxUserInfo.vue b/pages_order/auth/wxUserInfo.vue index b852f46..ef512fc 100644 --- a/pages_order/auth/wxUserInfo.vue +++ b/pages_order/auth/wxUserInfo.vue @@ -53,8 +53,12 @@ methods: { onChooseAvatar(res) { let self = this + uni.showLoading({ + title: '上传头像中...' + }) self.$Oss.ossUpload(res.target.avatarUrl) .then(url => { + uni.hideLoading() self.userInfo.headImage = url }) }, diff --git a/store/store.js b/store/store.js index 247c5bd..085fdac 100644 --- a/store/store.js +++ b/store/store.js @@ -248,6 +248,7 @@ const store = new Vuex.Store({ success(r) { if(r.confirm){ uni.removeStorageSync('token') + state.userInfo = {} uni.redirectTo({ url: '/pages/index/index' })