多商户首页优化

master
gongfuxiang 2024-03-27 14:42:55 +08:00
parent 6ab3f3920a
commit ad6da0c0d4
1 changed files with 31 additions and 16 deletions

View File

@ -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 @@
</script>
<style>
@import './detail.css';
</style>
</style>