This commit is contained in:
yanran200730
2023-05-23 10:45:39 +08:00
parent 6d435d32d7
commit 73b7c5222b
2 changed files with 24 additions and 4 deletions

View File

@@ -15,7 +15,8 @@
<ai-select
v-model="form.type"
placeholder="请选择商品类型"
:selectList="dict.getDict('integralSGType')">
:selectList="dict.getDict('integralSGType')"
@change="onChange">
</ai-select>
</el-form-item>
<el-form-item style="width: 100%" label="商品类型说明" prop="typeExplain">
@@ -78,7 +79,8 @@
typeExplain: '',
title: '',
description: '',
jdUrl: 'pages/gold/item/pages/detail/index?sku=60626768856&sourceType=wx-zhongwei&ea_ptag=17078.27.755',
type: '',
jdUrl: '',
jdAppid: 'wx91d27dbf599dff74',
retailPrice: undefined,
picUrl: []
@@ -111,6 +113,14 @@
})
},
onChange () {
if (this.form.type === '2') {
this.form.jdUrl = 'pages/gold/item/pages/detail/index?sku=60626768856&sourceType=wx-zhongwei&ea_ptag=17078.27.755'
} else {
this.form.jdUrl = ''
}
},
confirm () {
this.$refs.form.validate((valid) => {
if (valid) {

View File

@@ -15,7 +15,8 @@
<ai-select
v-model="form.type"
placeholder="请选择商品类型"
:selectList="dict.getDict('integralSGType')">
:selectList="dict.getDict('integralSGType')"
@change="onChange">
</ai-select>
</el-form-item>
<el-form-item style="width: 100%" label="商品类型说明" prop="typeExplain">
@@ -78,7 +79,8 @@
typeExplain: '',
title: '',
description: '',
jdUrl: 'pages/gold/item/pages/detail/index?sku=60626768856&sourceType=wx-zhongwei&ea_ptag=17078.27.755',
type: '',
jdUrl: '',
jdAppid: 'wx91d27dbf599dff74',
retailPrice: undefined,
picUrl: []
@@ -111,6 +113,14 @@
})
},
onChange () {
if (this.form.type === '2') {
this.form.jdUrl = 'pages/gold/item/pages/detail/index?sku=60626768856&sourceType=wx-zhongwei&ea_ptag=17078.27.755'
} else {
this.form.jdUrl = ''
}
},
confirm () {
this.$refs.form.validate((valid) => {
if (valid) {