首页汇率切换模仿价格不改变原因修复
parent
6109195f09
commit
afa5936bb0
|
|
@ -45,6 +45,12 @@
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
name: 'recommend-hot',
|
name: 'recommend-hot',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
theme_view: app.globalData.get_theme_value_view(),
|
||||||
|
data_goods_list: [],
|
||||||
|
};
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
propCurrencySymbol: {
|
propCurrencySymbol: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|
@ -65,11 +71,12 @@
|
||||||
default: 1000,
|
default: 1000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
data() {
|
// 属性值改变监听
|
||||||
return {
|
watch: {
|
||||||
theme_view: app.globalData.get_theme_value_view(),
|
// 数据
|
||||||
data_goods_list: [],
|
propData(value, old_value) {
|
||||||
};
|
this.set_data(value);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.set_data(this.propData);
|
this.set_data(this.propData);
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@
|
||||||
|
|
||||||
<!-- 魔方 - 插件 -->
|
<!-- 魔方 - 插件 -->
|
||||||
<view v-if="pv.plugins == 'magic' && (plugins_magic_data || null) != null">
|
<view v-if="pv.plugins == 'magic' && (plugins_magic_data || null) != null">
|
||||||
<component-magic-list :propData="plugins_magic_data" :propCurrencySymbol="currency_symbol"></component-magic-list>
|
<component-magic-list :propData="{...plugins_magic_data, ...{random: random_value}}" :propCurrencySymbol="currency_symbol"></component-magic-list>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</block>
|
</block>
|
||||||
|
|
@ -328,6 +328,8 @@
|
||||||
cart_total: 0,
|
cart_total: 0,
|
||||||
message_total: 0,
|
message_total: 0,
|
||||||
right_icon_list: [],
|
right_icon_list: [],
|
||||||
|
// 增加随机数,避免无法监听数据列表内部数据更新
|
||||||
|
random_value: 0,
|
||||||
// 基础配置
|
// 基础配置
|
||||||
common_shop_notice: null,
|
common_shop_notice: null,
|
||||||
home_index_floor_data_type: 0,
|
home_index_floor_data_type: 0,
|
||||||
|
|
@ -524,6 +526,7 @@
|
||||||
cart_total: data.cart_total.buy_number || 0,
|
cart_total: data.cart_total.buy_number || 0,
|
||||||
message_total: parseInt(data.message_total || 0),
|
message_total: parseInt(data.message_total || 0),
|
||||||
right_icon_list: data.right_icon_list || [],
|
right_icon_list: data.right_icon_list || [],
|
||||||
|
random_value: Math.random(),
|
||||||
data_list_loding_status: data.data_list.length == 0 ? 0 : 3,
|
data_list_loding_status: data.data_list.length == 0 ? 0 : 3,
|
||||||
plugins_sort_list: data.plugins_sort_list || [],
|
plugins_sort_list: data.plugins_sort_list || [],
|
||||||
plugins_seckill_data: data.plugins_seckill_data || null,
|
plugins_seckill_data: data.plugins_seckill_data || null,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue