dev_202412
yujialong 1 year ago
parent 77012b78a6
commit c811ffc914
  1. 15
      src/const/oss.js
  2. 11
      src/pages/match/details/index.vue
  3. 8
      src/pages/match/list/index.vue

@ -0,0 +1,15 @@
/**
* 阿里云oss配置
* */
export default {
// oss账号信息
config: {
region: 'oss-cn-shenzhen',
accessKeyId: 'LTAI4FzqQHnk4rozqLZ8jCNj',
accessKeySecret: 'mveW7B1OyFoKUkHm8WsxmrjHmkJWHq',
bucket: 'huoran'
},
// 上传成功url前置部分(成功回调没有返回url)
preUrl: 'https://huoran.oss-cn-shenzhen.aliyuncs.com/'
}

@ -692,6 +692,7 @@ import util from '@/libs/util'
import Setting from "@/setting"
import Const from '@/const/match'
import OSS from 'ali-oss'
import OssConfig from '@/const/oss'
export default {
name: 'matchdetail',
data () {
@ -945,7 +946,7 @@ export default {
this.statusList[4] = '进入' + e.stageName
curStage = e
}
} else if (this.offlineCanEntry(e)) { // 线()
} else if (this.offlineCanEntry(e) && form.competitionRegistration) { // 线()
//
//
//
@ -1154,6 +1155,7 @@ export default {
},
//
intervalRank () {
this.getRank()
// this.rankTimer = setInterval(this.getRank, 1000)
},
@ -1437,12 +1439,7 @@ export default {
},
initOss () {
this.client = new OSS({
region: 'oss-cn-shenzhen',
accessKeyId: 'LTAI4FzqQHnk4rozqLZ8jCNj',
accessKeySecret: 'mveW7B1OyFoKUkHm8WsxmrjHmkJWHq',
bucket: 'huoran'
})
this.client = new OSS(OssConfig.config)
},
//
beforeUpload (file) {

@ -338,6 +338,7 @@ import Setting from "@/setting"
import util from "@/libs/util"
import Bus from '@/libs/bus'
import OSS from 'ali-oss'
import OssConfig from '@/const/oss'
export default {
name: "match",
data () {
@ -768,12 +769,7 @@ export default {
initOss () {
this.client = new OSS({
region: 'oss-cn-shenzhen',
accessKeyId: 'LTAI4FzqQHnk4rozqLZ8jCNj',
accessKeySecret: 'mveW7B1OyFoKUkHm8WsxmrjHmkJWHq',
bucket: 'huoran'
})
this.client = new OSS(OssConfig.config)
},
//
beforeUpload (file) {

Loading…
Cancel
Save