diff --git a/App.vue b/App.vue index 7854bc71..1be8a636 100644 --- a/App.vue +++ b/App.vue @@ -7,10 +7,10 @@ data: { // 基础配置 // 数据接口请求地址 - request_url: 'https://d1.shopxo.vip/', + request_url: 'http://shopxo.com/', // 静态资源地址(如系统根目录不在public目录下面请在静态地址后面加public目录、如:https://d1.shopxo.vip/public/) - static_url: 'https://d1.shopxo.vip/', + static_url: 'http://shopxo.com/', // 系统类型(默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立) system_type: 'default', diff --git a/components/binding-list/binding-list.vue b/components/binding-list/binding-list.vue index 0af5b7e0..e992fa71 100644 --- a/components/binding-list/binding-list.vue +++ b/components/binding-list/binding-list.vue @@ -72,22 +72,35 @@ type: [String, Object], default: null, }, - propDataList: { - type: Array, - default: () => [], - }, + propData: { + type: Object, + default: () => { + return {}; + }, + } }, // 属性值改变监听 - watch: {}, + watch: { + // 数据 + propData(value, old_value) { + this.init(); + } + }, // 页面被展示 - created: function (e) { - var config = ((this.propConfig || null) == null ? app.globalData.get_config('plugins_base.binding.data') : this.propConfig) || {}; - this.setData({ - config: config, - data_list: this.propDataList, - }); + created: function(e) { + this.init(); }, methods: { + // 初始化 + init() { + var config = ((this.propConfig || null) == null ? app.globalData.get_config('plugins_base.binding.data') : this.propConfig) || {}; + var data_list = ((this.propData || null) == null || (this.propData.data || null) == null || this.propData.data.length == 0) ? [] : this.propData.data; + this.setData({ + config: config, + data_list: data_list, + }); + }, + // url事件 url_event(e) { app.globalData.url_event(e); diff --git a/components/icon-nav/icon-nav.vue b/components/icon-nav/icon-nav.vue index 6843da13..9a14a4d5 100644 --- a/components/icon-nav/icon-nav.vue +++ b/components/icon-nav/icon-nav.vue @@ -1,11 +1,11 @@