diff --git a/pages/plugins/shop/detail/detail.vue b/pages/plugins/shop/detail/detail.vue index b994cb5a..54bd5dee 100644 --- a/pages/plugins/shop/detail/detail.vue +++ b/pages/plugins/shop/detail/detail.vue @@ -238,7 +238,8 @@ params: params, user: app.globalData.get_user_cache_info(), }); - }, + }, + onShow() { // 调用公共事件方法 app.globalData.page_event_onshow_handle(); @@ -248,7 +249,8 @@ // 初始化配置 this.init_config(); - }, + }, + // 下拉刷新 onPullDownRefresh() { if(this.data_list_loding_status === 1) { @@ -256,7 +258,8 @@ } else { this.get_data(); } - }, + }, + methods: { // 初始化配置 init_config(status) { @@ -349,7 +352,8 @@ app.globalData.showToast(this.$t('common.internet_error_tips')); }, }); - }, + }, + // 店铺收藏事件 shop_favor_event(e) { var user = app.globalData.get_user_info(this, 'shop_favor_event'); @@ -383,24 +387,28 @@ }, }); } - }, + }, + // 搜索输入事件 search_keywords_event(e) { this.setData({ search_keywords_value: e.detail.value || '', }); - }, + }, + // 搜索事件 search_button_event(e) { var value = e.currentTarget.dataset.value || null; app.globalData.url_open(value + 'keywords=' + this.search_keywords_value || ''); - }, + }, + // 导航分类事件 header_service_event(e) { this.setData({ header_service_status: !this.header_service_status, }); - }, + }, + // 导航分类事件 nav_shop_category_event(e) { var temp_nav = this.shop_navigation; @@ -411,12 +419,14 @@ shop_navigation: temp_nav, nav_category_status: !this.nav_category_status, }); - }, + }, + // 导航分类事件 shop_category_event(e) { var value = e.currentTarget.dataset.value || null; app.globalData.url_open('/pages/plugins/shop/search/search?shop_id=' + this.shop.id + '&category_id=' + value); - }, + }, + // 导航事件 nav_event(e) { // 存在子级则做子级显示隐藏处理 @@ -438,23 +448,28 @@ } else { app.globalData.url_event(e); } - }, + }, + // url事件 url_event(e) { app.globalData.url_event(e); - }, + }, + // 剪切板 text_copy_event(e) { app.globalData.text_copy_event(e); - }, + }, + // 电话 tel_event(e) { app.globalData.call_tel(e.currentTarget.dataset.value || null); - }, + }, + // 图片预览 image_show_event(e) { app.globalData.image_show_event(e); - }, + }, + // 进入客服系统 chat_event() { app.globalData.chat_entry_handle(this.shop.chat_info.chat_url); @@ -464,4 +479,4 @@ + \ No newline at end of file