mirror of
https://gitee.com/zongzhige/shopxo-uniapp.git
synced 2026-07-08 06:35:26 +08:00
修改商品显示问题
This commit is contained in:
@ -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
|
||||
|
||||
@ -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 {
|
||||
// 开启购物车抛物线效果则展示提示操作
|
||||
|
||||
Reference in New Issue
Block a user