diff --git a/project/fengdu/app/AppIntegratingSupermarket/components/addGoods.vue b/project/fengdu/app/AppIntegratingSupermarket/components/addGoods.vue index 9d279fff..994d4367 100644 --- a/project/fengdu/app/AppIntegratingSupermarket/components/addGoods.vue +++ b/project/fengdu/app/AppIntegratingSupermarket/components/addGoods.vue @@ -15,7 +15,8 @@ + :selectList="dict.getDict('integralSGType')" + @change="onChange"> @@ -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) { diff --git a/project/shuzipingchang/app/AppIntegratingSupermarket/components/addGoods.vue b/project/shuzipingchang/app/AppIntegratingSupermarket/components/addGoods.vue index 9d279fff..994d4367 100644 --- a/project/shuzipingchang/app/AppIntegratingSupermarket/components/addGoods.vue +++ b/project/shuzipingchang/app/AppIntegratingSupermarket/components/addGoods.vue @@ -15,7 +15,8 @@ + :selectList="dict.getDict('integralSGType')" + @change="onChange"> @@ -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) {