diff --git a/components/diy/diy.vue b/components/diy/diy.vue index 0559bab3..a4089d57 100644 --- a/components/diy/diy.vue +++ b/components/diy/diy.vue @@ -108,7 +108,6 @@ import componentNoData from '@/components/no-data/no-data'; import componentBottomLine from '@/components/bottom-line/bottom-line'; import componentGoodsBuy from '@/components/goods-buy/goods-buy'; -import props from '../../uni_modules/uv-sticky/components/uv-sticky/props'; // 状态栏高度 var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0)); // #ifdef MP-TOUTIAO diff --git a/components/diy/goods-list.vue b/components/diy/goods-list.vue index 298f0400..60b80d1b 100644 --- a/components/diy/goods-list.vue +++ b/components/diy/goods-list.vue @@ -226,23 +226,19 @@ }, watch: { propkey(val) { - this.setData({ - form: this.propValue.content, - new_style: this.propValue.style, - }); this.init(); } }, created() { - this.setData({ - form: this.propValue.content, - new_style: this.propValue.style, - }); this.init(); }, methods: { isEmpty, init() { + this.setData({ + form: this.propValue.content, + new_style: this.propValue.style, + }); let new_list = []; // 指定商品并且指定商品数组不为空 if (!isEmpty(this.form.data_list) && this.form.data_type == '0') { @@ -434,7 +430,7 @@ } if (this.form.shop_button_effect == '0') { app.globalData.goods_data_cache_handle(goods.id, goods); - + app.globalData.url_open(goods.goods_url); } else { // 开启购物车抛物线效果则展示提示操作