Commit 730c5544f75454e2c85c0d3076e25fb75314271f
1 parent
d40f7595
prod publish
Showing
4 changed files
with
8 additions
and
9 deletions
src/html/index.html
| ... | ... | @@ -44,7 +44,6 @@ |
| 44 | 44 | <el-input v-model.trim="form.lyricist" :maxlength="15" placeholder="请输入作词人名字"></el-input> |
| 45 | 45 | </el-form-item> |
| 46 | 46 | <el-form-item :label="labels.songwriter" class="diy-flex-50" prop="songwriter"> |
| 47 | - <!-- <label slot="label" class="el-form-item__label" style="width: 120px;">首重</label> --> | |
| 48 | 47 | <el-input v-model.trim="form.songwriter" :maxlength="15" placeholder="请输入作曲人名字"></el-input> |
| 49 | 48 | </el-form-item> |
| 50 | 49 | <el-form-item :label="labels.redact" class="diy-flex-50" prop="redact"> | ... | ... |
src/js/audios.js
| ... | ... | @@ -4,7 +4,6 @@ require('./../css/test.css') |
| 4 | 4 | const Audio = { |
| 5 | 5 | data() { |
| 6 | 6 | return { |
| 7 | - testLabel: '唱\xa0\xa0\xa0\xa0\xa0\xa0\xa0歌', | |
| 8 | 7 | form: { |
| 9 | 8 | channelId: null, |
| 10 | 9 | songName: null, |
| ... | ... | @@ -144,8 +143,8 @@ const Audio = { |
| 144 | 143 | videoId: null, |
| 145 | 144 | |
| 146 | 145 | multipleCategory: 100005, |
| 147 | - tag: 'test', | |
| 148 | - // tag: this.getChannelText(this.form.channelId), | |
| 146 | + // tag: 'test', | |
| 147 | + tag: this.getChannelText(this.form.channelId), | |
| 149 | 148 | ts: this.getTs(), |
| 150 | 149 | timestamp: this.getTimeStamp(), |
| 151 | 150 | masterId: all.secretUrls.masterIdMaster, |
| ... | ... | @@ -344,7 +343,8 @@ const Audio = { |
| 344 | 343 | this.form.lyric = this.form.lyric ? this.form.lyric.trim() : ""; |
| 345 | 344 | all |
| 346 | 345 | .request({ |
| 347 | - url: "http://cmstest.cnlive.com:8768/contentApi/audioSave", | |
| 346 | + // url: "http://cmstest.cnlive.com:8768/contentApi/audioSave", | |
| 347 | + url: 'https://cms.cnlive.com/api/contentApi/audioSave', | |
| 348 | 348 | method: "post", |
| 349 | 349 | params: this.form, |
| 350 | 350 | withCredentials: true, | ... | ... |
src/js/config.js
| ... | ... | @@ -12,8 +12,8 @@ const urls = { |
| 12 | 12 | }; |
| 13 | 13 | |
| 14 | 14 | const secretUrls = { |
| 15 | - // base: "https://api.cnlive.com/open/api2/vod_epg/videoPgc", | |
| 16 | - base: "http://test.open.cnlive.com/openapi/api2/vod_epg/videoPgc", | |
| 15 | + base: "https://api.cnlive.com/open/api2/vod_epg/videoPgc", | |
| 16 | + // base: "http://test.open.cnlive.com/openapi/api2/vod_epg/videoPgc", | |
| 17 | 17 | auth: "/getUploadAuth", |
| 18 | 18 | init: "/uploadFileInit", |
| 19 | 19 | callback: "/uploadCallback", | ... | ... |
webpack.config.js
| ... | ... | @@ -10,7 +10,7 @@ module.exports = { |
| 10 | 10 | entry: path.join(__dirname, "src", "/js/audios.js"), //__dirname指的是当前目录,是目录形成绝对路径 |
| 11 | 11 | output: { |
| 12 | 12 | //输入的文件名 |
| 13 | - filename: "bundlenew.js", | |
| 13 | + filename: "prod.js", | |
| 14 | 14 | // filename: '[name].[hash:7].js', |
| 15 | 15 | publicPath: "/", |
| 16 | 16 | //输入的路径 webpack会自动打包生成 |
| ... | ... | @@ -24,7 +24,7 @@ module.exports = { |
| 24 | 24 | //文件中找到的路径 |
| 25 | 25 | template: path.join(__dirname, "src", "html/index.html"), |
| 26 | 26 | //打包输出的路径 |
| 27 | - filename: "audio.html", | |
| 27 | + filename: "prod.html", | |
| 28 | 28 | }), |
| 29 | 29 | new CleanWebpackPlugin(), |
| 30 | 30 | ], | ... | ... |