Commit 730c5544f75454e2c85c0d3076e25fb75314271f

Authored by 杨泽宇
1 parent d40f7595

prod publish

src/html/index.html
@@ -44,7 +44,6 @@ @@ -44,7 +44,6 @@
44 <el-input v-model.trim="form.lyricist" :maxlength="15" placeholder="请输入作词人名字"></el-input> 44 <el-input v-model.trim="form.lyricist" :maxlength="15" placeholder="请输入作词人名字"></el-input>
45 </el-form-item> 45 </el-form-item>
46 <el-form-item :label="labels.songwriter" class="diy-flex-50" prop="songwriter"> 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 <el-input v-model.trim="form.songwriter" :maxlength="15" placeholder="请输入作曲人名字"></el-input> 47 <el-input v-model.trim="form.songwriter" :maxlength="15" placeholder="请输入作曲人名字"></el-input>
49 </el-form-item> 48 </el-form-item>
50 <el-form-item :label="labels.redact" class="diy-flex-50" prop="redact"> 49 <el-form-item :label="labels.redact" class="diy-flex-50" prop="redact">
src/js/audios.js
@@ -4,7 +4,6 @@ require(&#39;./../css/test.css&#39;) @@ -4,7 +4,6 @@ require(&#39;./../css/test.css&#39;)
4 const Audio = { 4 const Audio = {
5 data() { 5 data() {
6 return { 6 return {
7 - testLabel: '唱\xa0\xa0\xa0\xa0\xa0\xa0\xa0歌',  
8 form: { 7 form: {
9 channelId: null, 8 channelId: null,
10 songName: null, 9 songName: null,
@@ -144,8 +143,8 @@ const Audio = { @@ -144,8 +143,8 @@ const Audio = {
144 videoId: null, 143 videoId: null,
145 144
146 multipleCategory: 100005, 145 multipleCategory: 100005,
147 - tag: 'test',  
148 - // tag: this.getChannelText(this.form.channelId), 146 + // tag: 'test',
  147 + tag: this.getChannelText(this.form.channelId),
149 ts: this.getTs(), 148 ts: this.getTs(),
150 timestamp: this.getTimeStamp(), 149 timestamp: this.getTimeStamp(),
151 masterId: all.secretUrls.masterIdMaster, 150 masterId: all.secretUrls.masterIdMaster,
@@ -344,7 +343,8 @@ const Audio = { @@ -344,7 +343,8 @@ const Audio = {
344 this.form.lyric = this.form.lyric ? this.form.lyric.trim() : ""; 343 this.form.lyric = this.form.lyric ? this.form.lyric.trim() : "";
345 all 344 all
346 .request({ 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 method: "post", 348 method: "post",
349 params: this.form, 349 params: this.form,
350 withCredentials: true, 350 withCredentials: true,
src/js/config.js
@@ -12,8 +12,8 @@ const urls = { @@ -12,8 +12,8 @@ const urls = {
12 }; 12 };
13 13
14 const secretUrls = { 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 auth: "/getUploadAuth", 17 auth: "/getUploadAuth",
18 init: "/uploadFileInit", 18 init: "/uploadFileInit",
19 callback: "/uploadCallback", 19 callback: "/uploadCallback",
webpack.config.js
@@ -10,7 +10,7 @@ module.exports = { @@ -10,7 +10,7 @@ module.exports = {
10 entry: path.join(__dirname, "src", "/js/audios.js"), //__dirname指的是当前目录,是目录形成绝对路径 10 entry: path.join(__dirname, "src", "/js/audios.js"), //__dirname指的是当前目录,是目录形成绝对路径
11 output: { 11 output: {
12 //输入的文件名 12 //输入的文件名
13 - filename: "bundlenew.js", 13 + filename: "prod.js",
14 // filename: '[name].[hash:7].js', 14 // filename: '[name].[hash:7].js',
15 publicPath: "/", 15 publicPath: "/",
16 //输入的路径 webpack会自动打包生成 16 //输入的路径 webpack会自动打包生成
@@ -24,7 +24,7 @@ module.exports = { @@ -24,7 +24,7 @@ module.exports = {
24 //文件中找到的路径 24 //文件中找到的路径
25 template: path.join(__dirname, "src", "html/index.html"), 25 template: path.join(__dirname, "src", "html/index.html"),
26 //打包输出的路径 26 //打包输出的路径
27 - filename: "audio.html", 27 + filename: "prod.html",
28 }), 28 }),
29 new CleanWebpackPlugin(), 29 new CleanWebpackPlugin(),
30 ], 30 ],