修改商品显示问题

This commit is contained in:
于肖磊
2024-10-09 11:19:37 +08:00
parent 6e51456be9
commit da9856c530
2 changed files with 5 additions and 10 deletions

View File

@ -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

View File

@ -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 {
// 开启购物车抛物线效果则展示提示操作