门店自动进入优化

master
gongfuxiang 2024-11-08 20:31:17 +08:00
parent e6a89f7e21
commit a78f053d05
2 changed files with 22 additions and 6 deletions

View File

@ -202,7 +202,7 @@ export default {
realstore_item_event(e) {
//
if(this.propIsChoice) {
//
//
var data = this.data_list[e.currentTarget.dataset.index];
uni.setStorageSync(app.globalData.data.cache_realstore_detail_choice_key, {
data: data,

View File

@ -300,7 +300,7 @@
if(this.is_first == 1) {
//
if(app.globalData.data.get_user_location_status != 1 && parseInt(this.data_base.is_home_auto_user_location || 0) == 1) {
app.globalData.get_user_location(this, 'user_back_choice_location', true);
app.globalData.get_user_location(this, 'user_back_auto_location', true);
}
//
@ -318,6 +318,12 @@
this.setData({
location_tips_close_status: false
});
//
uni.setStorageSync(app.globalData.data.cache_realstore_detail_choice_key, {
data: temp_realstore,
status: 0
});
//
app.globalData.url_open(temp_realstore.url);
}
}
@ -361,6 +367,20 @@
}
},
//
user_back_auto_location(e) {
//
if ((this.$refs.choice_location || null) != null) {
this.$refs.choice_location.init();
}
//
this.setData({
is_first: 1,
});
//
this.user_back_choice_location(e);
},
//
user_back_choice_location(e) {
//
@ -368,10 +388,6 @@
user_location: e,
location_tips_close_status: e.status != 1
});
//
if ((this.$refs.choice_location || null) != null) {
this.$refs.choice_location.init();
}
//
this.get_data();
},