门店优化

master
gongfuxiang 2024-11-08 20:09:59 +08:00
parent 8c9e35afdb
commit e6a89f7e21
5 changed files with 21 additions and 10 deletions

View File

@ -2805,8 +2805,8 @@
...{
name: result.name || null,
address: result.address || null,
lat: result.latitude || null,
lng: result.longitude || null,
lat: result.lat || null,
lng: result.lng || null,
status: result.status || 1,
},
};
@ -2879,8 +2879,8 @@
var address = {
name: i18n.t('shopxo-uniapp.app.tghyu3'),
address: '',
latitude: res.latitude || null,
longitude: res.longitude || null,
lat: res.latitude || null,
lng: res.longitude || null,
status: 1,
};
uni.setStorageSync(cache_key, address);

View File

@ -70,7 +70,11 @@ export default {
},
propIsChoiceBackType: {
type: String,
default: 'back',
default: '',
},
propIsOpenRealstoreRedirect: {
type: Boolean,
default: true,
},
propData: {
type: Object,
@ -216,7 +220,7 @@ export default {
break;
//
case 'realstore-detail' :
app.globalData.url_open('/pages/plugins/realstore/detail/detail?id='+data.id, true);
app.globalData.url_open(data.url, this.propIsOpenRealstoreRedirect);
break;
}
} else {

View File

@ -104,7 +104,11 @@ export default {
uni.chooseLocation({
success: (res) => {
//
res['status'] = 1;
res['status'] = 1;
res['lat'] = res.latitude;
res['lng'] = res.longitude;
delete res['latitude'];
delete res['longitude'];
uni.setStorageSync(this.cache_key, res);
// 

View File

@ -91,9 +91,9 @@
<block v-if="data_list.length > 0">
<view class="padding-horizontal-main">
<!-- 导航 -->
<component-title :propTitle="data_base.home_data_list_title || $t('index.index.1vf378')" propMoreUrl="/pages/plugins/realstore/search/search"></component-title>
<component-title :propTitle="data_base.home_data_list_title || $t('index.index.1vf378')" :propMoreUrl="'/pages/plugins/realstore/search/search'+(is_force_choice_realstore == 1 ? '?is_choice_mode=1&choice_mode_back_type=realstore-detail&is_open_realstore_redirect=0' : '')"></component-title>
<!-- 数据列表 -->
<component-realstore-list :propData="{data: data_list}" :propFavorUser="favor_user"></component-realstore-list>
<component-realstore-list :propData="{data: data_list}" :propFavorUser="favor_user" :propIsChoice="is_force_choice_realstore == 1" propIsChoiceBackType="realstore-detail" :propIsOpenRealstoreRedirect="false"></component-realstore-list>
</view>
<!-- 结尾 -->
<component-bottom-line :propStatus="data_bottom_line_status"></component-bottom-line>

View File

@ -43,7 +43,7 @@
<!-- 列表 -->
<scroll-view :scroll-y="true" :scroll-top="scroll_top" :scroll-with-animation="true" class="scroll-box scroll-box-ece-nav" :class="show_type_mode == 1 ? 'map' : ''" @scrolltolower="scroll_lower" lower-threshold="60">
<view v-if="(data_list || null) != null && data_list.length > 0" class="padding-top-main padding-horizontal-main">
<component-realstore-list :propData="{data: data_list}" :propRealstoreDetailQuery="realstore_detail_query" :propFavorUser="favor_user" :propIsChoice="is_choice_mode == 1" :propIsChoiceBackType="choice_mode_back_type"></component-realstore-list>
<component-realstore-list :propData="{data: data_list}" :propRealstoreDetailQuery="realstore_detail_query" :propFavorUser="favor_user" :propIsChoice="is_choice_mode == 1" :propIsChoiceBackType="choice_mode_back_type" :propIsOpenRealstoreRedirect="is_open_realstore_redirect"></component-realstore-list>
</view>
<view v-else>
<!-- 提示信息 -->
@ -91,6 +91,8 @@
is_choice_mode: 0,
// backrealstore-detail
choice_mode_back_type: 'back',
// 01
is_open_realstore_redirect: true,
// 01
show_type_mode: 0,
//
@ -133,6 +135,7 @@
params: params,
is_choice_mode: parseInt(params.is_choice_mode || 0),
choice_mode_back_type: (params.choice_mode_back_type === undefined) ? 'back' : (params.choice_mode_back_type || ''),
is_open_realstore_redirect: (params.is_open_realstore_redirect === undefined) ? true : parseInt(params.is_open_realstore_redirect || 0) == 1,
show_type_mode: parseInt(params.show_type_mode || 0),
search_keywords_value: params.keywords || "",
nav_active_value: params.category_id || 0,