From 73b7c5222b7a6ecff3ea2541ccad214af54694f5 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Tue, 23 May 2023 10:45:39 +0800 Subject: [PATCH] bug --- .../components/addGoods.vue | 14 ++++++++++++-- .../components/addGoods.vue | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) 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) {