Parcourir la source

feat():init

geek il y a 4 ans
Parent
commit
07e593200d

+ 1 - 1
.env.development

@@ -3,4 +3,4 @@ ENV = 'development'
 
 # base api
 VUE_APP_BASE_API = '/index'
-VUE_APP_BASE_PROJECT = '/soa-mdl/'
+VUE_APP_BASE_PROJECT = ''

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
dist/index.html


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
dist/static/css/chunk-5441e347.5b6949d1.css


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
dist/static/css/chunk-a4efc1e6.546878c2.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
dist/static/css/chunk-fd9f34b2.5b6949d1.css


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
dist/static/css/chunk-feccc6a6.546878c2.css


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
dist/static/js/app.d670b29a.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
dist/static/js/chunk-5441e347.4824ba99.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
dist/static/js/chunk-a4efc1e6.1abee65f.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
dist/static/js/chunk-fd9f34b2.6240a523.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
dist/static/js/chunk-feccc6a6.d603f48e.js


+ 15 - 6
src/views/setting/components/ArticleDetail.vue

@@ -15,7 +15,7 @@
           <el-input v-model="postForm.channel_name" placeholder="" style="width: 300px;" />
         </el-form-item>
         <el-form-item prop="channel_id" style="" label="频道id">
-          <el-input v-model="postForm.channel_id" placeholder="" style="width: 300px;" />
+          <el-input v-model="postForm.channel_id" placeholder="" style="width: 300px;" @input="onInputInput()" />
         </el-form-item>
         <el-form-item prop="channel_auth_code" style="" label="频道授权码">
           <el-input v-model="postForm.channel_auth_code" placeholder="" style="width: 300px;" />
@@ -24,10 +24,12 @@
           </el-button>
         </el-form-item>
         <el-form-item prop="redirct_url" style="" label="会畅授权跳转链接">
-          <el-input v-model="postForm.redirct_url" placeholder="" style="width: 600px;" />
+          <el-input v-model="postForm.redirct_url" placeholder="https://webcast.bizconfstreaming.com/soa-mdl?channelId=频道id" style="width: 600px;" />
+          <span style="margin-left: 10px;color: fuchsia;">(根据频道id自动设置)</span>
         </el-form-item>
         <el-form-item prop="auth_redirct_url" style="" label="乙方跳转链接">
-          <el-input v-model="postForm.auth_redirct_url" placeholder="" style="width: 600px;" />
+          <el-input v-model="postForm.auth_redirct_url" placeholder="https://webcast.bizconfstreaming.com/soa-mdl/index/user/login?channelId=频道id" style="width: 600px;" />
+          <span style="margin-left: 10px;color: fuchsia;">(根据频道id自动设置)</span>
         </el-form-item>
         <el-row>
           <el-button v-if="!isEdit" v-loading="loading" type="success" @click="submitForm">
@@ -50,7 +52,10 @@ import { fetchSetting, updateSetting, getAuthCode, createChannel } from '@/api/s
 
 const defaultForm = {
   channel_id: '',
-  channel_auth_code: ''
+  channel_auth_code: '',
+  channel_name: '',
+  auth_redirct_url: '',
+  redirct_url: ''
 }
 
 export default {
@@ -108,6 +113,10 @@ export default {
         console.log(err)
       })
     },
+    onInputInput() {
+      this.postForm.auth_redirct_url = 'https://webcast.bizconfstreaming.com/soa-mdl/index/user/login?channelId=' + this.postForm.channel_id
+      this.postForm.redirct_url = 'https://webcast.bizconfstreaming.com/soa-mdl?channelId=' + this.postForm.channel_id
+    },
     updateArticle() {
       updateSetting(this.postForm).then(response => {
         this.$notify({
@@ -122,9 +131,9 @@ export default {
       })
     },
     getAuthCode() {
-      if (!this.postForm.channel_id || this.postForm.channel_id.length === 0) {
+      if (!this.postForm.channel_id || this.postForm.channel_name.length === 0 || this.postForm.channel_id.length === 0) {
         this.$message({
-          message: '获取授权码前,必须填写频道id',
+          message: '获取授权码前,必须填写频道id和频道名称',
           type: 'warning'
         })
         return