You need to sign in or sign up before continuing.
Commit beb76636 authored by “yiyousong”'s avatar “yiyousong”

feat:添加移动应用时添加微信小程序选项

parent 4a3e39cb
......@@ -82,9 +82,10 @@
</a-button> -->
</a-form-model-item>
<a-form-model-item label="应用类型" prop="appType">
<a-radio-group v-model="form.appType">
<a-radio-group v-model="form.appType" @change="changeAppType">
<a-radio :value="1"> 应用程序 </a-radio>
<a-radio :value="2"> URL </a-radio>
<a-radio :value="3" v-if="form.type != 1"> 微信小程序 </a-radio>
</a-radio-group>
</a-form-model-item>
<a-form-model-item
......@@ -200,7 +201,7 @@ export default {
appIconPath: "", // 应用图标
appThemeName: undefined, // 应用主题名称
type: "", // 类型(1.终端应用,2.移动端应用)
appType: 1, // 类型(1.应用程序,2.url)
appType: 1, // 类型(1.应用程序,2.url,3.微信小程序)
shelves: 0,
fileName: "", // 文件名称
filePath: "", // 文件相对路径地址
......@@ -250,6 +251,7 @@ export default {
],
},
fileList: [],
beFrom: "", // 来自终端还是移动端
};
},
computed: {
......@@ -351,6 +353,13 @@ export default {
changeSite(value, label) {
this.form.siteName = label[0];
},
// 改变类型
changeAppType(e) {
let val = e.target.value;
if (val == 1) {
this.form.url = "";
}
},
},
};
</script>
......
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