From 17e1984eb80c6ec16ae205fd6dcd790e98d2cf2d Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Sun, 16 Jun 2024 01:17:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=A4=9A=E8=AF=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 4 +- components/binding-list/binding-list.vue | 35 +++++++++++----- components/icon-nav/icon-nav.vue | 36 ++++++++++------ components/magic-list/magic-list.vue | 2 +- components/realstore-list/realstore-list.vue | 35 +++++++++------- components/shop-list/shop-list.vue | 29 +++++++++---- lang/en.json | 1 + lang/zh.json | 2 +- pages/goods-detail/goods-detail.vue | 7 +++- pages/index/index.vue | 10 ++--- pages/login/login.vue | 22 +++++----- pages/password/password.vue | 5 ++- pages/personal/personal.vue | 2 +- pages/plugins/binding/index/index.vue | 18 ++++---- pages/plugins/blog/form/form.vue | 41 ++++++++++++------- .../extraction-apply/extraction-apply.vue | 6 +-- .../recommend-form/recommend-form.css | 2 +- .../recommend-form/recommend-form.vue | 8 ++-- .../distribution/visit-form/visit-form.vue | 6 +-- .../invoice-saveinfo/invoice-saveinfo.vue | 6 +-- pages/plugins/realstore/index/index.vue | 7 +++- pages/plugins/realstore/search/search.vue | 2 +- .../user-qrcode-saveinfo.vue | 10 ++--- pages/setup/setup.vue | 2 + pages/user-address-save/user-address-save.vue | 28 ++++++------- .../user-order-comments.vue | 4 +- 26 files changed, 198 insertions(+), 132 deletions(-) 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 @@