Browse Source

修改了阿里云oss配置

master
longjieli 6 months ago
parent
commit
03fb65a810
3 changed files with 18 additions and 21 deletions
  1. +11
    -12
      config.js
  2. +6
    -8
      pages.json
  3. +1
    -1
      pages/login/wxUserInfo.vue

+ 11
- 12
config.js View File

@ -1,4 +1,3 @@
import Vue from 'vue'
import api from '@/api/api.js'
import utils from './utils/utils.js'
@ -12,30 +11,30 @@ const type = 'dev'
// 环境配置
const config = {
dev : {
baseUrl : 'http://www.gcosc.fun:82',
dev: {
baseUrl: 'http://www.gcosc.fun:82',
},
prod : {
baseUrl : 'http://xxx.xxx.xxx/xxx',
prod: {
baseUrl: 'http://xxx.xxx.xxx/xxx',
}
}
// 默认配置
const defaultConfig = {
mapKey : 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU',
aliOss : {
url : 'https://oss.mxqih.top/',
config : {
mapKey: 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU',
aliOss: {
url: 'https://tennis-oss.xzaiyp.top/',
config: {
//桶的地址
region: 'oss-cn-guangzhou',
//id
accessKeyId:'LTAI5tNycA46YTwm383dRvMV',
accessKeyId: 'LTAI5tNycA46YTwm383dRvMV',
//密钥
accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
accessKeySecret: 'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
//桶的名字
bucket: 'zhuoqiu-image',
endpoint:'oss-cn-guangzhou.aliyuncs.com'
endpoint: 'oss-cn-guangzhou.aliyuncs.com',
}
},
}


+ 6
- 8
pages.json View File

@ -1,6 +1,10 @@
{
"pages": [
{
"pages": [{
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "登录"
}
}, {
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "打卡"
@ -12,12 +16,6 @@
"navigationBarTitleText": "我的"
}
},
{
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "登录"
}
},
{
"path": "pages/login/wxUserInfo",
"style": {


+ 1
- 1
pages/login/wxUserInfo.vue View File

@ -20,7 +20,7 @@
</view>
<view class="">
<image
:src="userInfo.headImage ? userInfo.headImage : 'https://oss.mxqih.top/2024-10-22/c2d91371-915f-4822-bc54-0da5706cd090.jpeg'"
:src="userInfo.headImage ? userInfo.headImage : 'https://tennis-oss.xzaiyp.top/2024-10-22/29ce46a1-33f2-4fda-8203-aaf441c678aa.png'"
style="width: 70rpx;height: 70rpx;border-radius: 50%;" mode="widthFix"></image>
<!-- <image src="@/static/login/logo.png" v-else style="width: 70rpx;height: 70rpx;border-radius: 50%;" mode="widthFix"></image> -->
</view>


Loading…
Cancel
Save