Commit 007e8ff6 authored by ganjingcun's avatar ganjingcun

new template

parent bc619a43
......@@ -100,6 +100,11 @@ var webpackConfig = merge(baseWebpackConfig, {
to: path.join(config.build.assetsSubDirectory, ".."),
ignore: ['.*']
},
{
from: path.resolve(__dirname, '../static/deck.html'),
to: path.join(config.build.assetsSubDirectory, ".."),
ignore: ['.*']
},
])
]
})
......
......@@ -30,6 +30,14 @@
<!--<el-input v-model="form.date" placeholder="请输入" auto-complete="off" width="10px"></el-input>-->
</el-form-item>
<el-form-item label="模版选择" :label-width="formLabelWidth">
<el-select v-model="value" placeholder="请选择">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="ydk文件" :label-width="formLabelWidth">
<el-upload class="upload-demo" :action="uploadUrl" :on-change="handleChange" :on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload"
:file-list="fileList3">
......@@ -64,6 +72,14 @@
data() {
return {
fileList3: [],
options: [{
value: '1',
label: '默认'
}, {
value: '2',
label: 'KONAMI'
}],
value: '1',
isIE: false,
......@@ -184,10 +200,21 @@
print: this.checked2,
}
var request = querystring.stringify(opt);
// var baseUrl = "http://localhost:8081"
var baseUrl = "https://mycard.moe/ygopro/arena"
var url = `${baseUrl}/konami.html?${request}`;
var template = "deck"
if (this.value === "1") {
template = "deck"
}
if (this.value === "2") {
template = "konami"
}
var request = querystring.stringify(opt);
var url = `${baseUrl}/${template}.html?${request}`;
window.open(url, "_blank");
},
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment