mirror of
https://gitee.com/zongzhige/shopxo-uniapp.git
synced 2026-07-09 06:50:39 +08:00
修改iframe参数更新时的
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
<view v-if="is_show_heading_title == '1'" class="head-title flex-row bg-white" :style="heading_title_style + (overall_config.type_value == 'default' ? '' : ('width:' + overall_config.custom_width * 2 + 'rpx;'))">{{ form_name }}</view>
|
||||
<view class="data-list bg-white" :style="overall_config.type_value == 'default' ? '' : ('width:' + overall_config.custom_width * 2 + 'rpx;height:' + overall_config.custom_height * 2 + 'rpx')">
|
||||
<!-- form表单子组件显示 -->
|
||||
<form-input-base ref="componentForm" :propConfig="propValue.config" :propDataFormId="propDataFormId" @onSubmitEvent="submit_event" />
|
||||
<form-input-base ref="componentForm" :propKey="propKey" :propConfig="propValue.config" :propDataFormId="propDataFormId" @onSubmitEvent="submit_event" />
|
||||
</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
@ -25,7 +25,7 @@
|
||||
<view v-if="is_show_heading_title == '1'" class="head-title flex-row bg-white" :style="heading_title_style + (overall_config.type_value == 'default' ? '' : ('width:' + overall_config.custom_width * 2 + 'rpx;'))">{{ form_name }}</view>
|
||||
<view class="data-list bg-white" :style="overall_config.type_value == 'default' ? '' : ('width:' + overall_config.custom_width * 2 + 'rpx;height:' + overall_config.custom_height * 2 + 'rpx')">
|
||||
<!-- form表单子组件显示 -->
|
||||
<form-input-base ref="componentForm" :propConfig="propValue.config" :propDataFormId="propDataFormId" @onSubmitEvent="submit_event" />
|
||||
<form-input-base ref="componentForm" :propKey="propKey" :propConfig="propValue.config" :propDataFormId="propDataFormId" @onSubmitEvent="submit_event" />
|
||||
</view>
|
||||
</scroll-view>
|
||||
<!-- #endif -->
|
||||
|
||||
@ -56,6 +56,7 @@
|
||||
this.setData({
|
||||
params: app.globalData.launch_params_handle(params),
|
||||
});
|
||||
this.init();
|
||||
},
|
||||
|
||||
onShow() {
|
||||
@ -68,21 +69,20 @@
|
||||
// 设置顶部导航的默认颜色
|
||||
this.set_navigation_bar_color();
|
||||
},
|
||||
created() {
|
||||
window.addEventListener('message', function(event) {
|
||||
console.log(event.data); // 处理接收到的数据
|
||||
var upd_data = {
|
||||
data: event.data || null,
|
||||
data_list_loding_msg: '',
|
||||
data_list_loding_status: 0,
|
||||
data_bottom_line_status: true,
|
||||
random_value: Math.random(),
|
||||
};
|
||||
this.setData(upd_data);
|
||||
});
|
||||
},
|
||||
|
||||
methods: {
|
||||
// 初始化
|
||||
init() {
|
||||
const this_ = this;
|
||||
window.addEventListener('message', function(event) {
|
||||
this_.setData({
|
||||
data: event.data || null,
|
||||
data_list_loding_msg: '',
|
||||
data_list_loding_status: 0,
|
||||
data_bottom_line_status: true,
|
||||
random_value: Math.random(),
|
||||
});
|
||||
});
|
||||
},
|
||||
// 初始化公共
|
||||
init_common() {
|
||||
// 公共onshow事件
|
||||
|
||||
Reference in New Issue
Block a user