增加定位功能

This commit is contained in:
Gao xiaosong
2020-06-13 01:38:36 +08:00
parent b23f9a2272
commit ba199ff02d
15 changed files with 170 additions and 117 deletions

View File

@ -130,6 +130,7 @@
</template>
<script>
// import { swiper, swiperSlide } from "vue-awesome-swiper";
import { mapState, mapMutations, mapActions } from 'vuex';
import GoodList from '@/components/GoodList';
import PromotionGood from '@/components/PromotionGood';
@ -233,6 +234,7 @@
};
},
onShow: function() {
this.getLocation()
let that = this;
uni.showLoading({
title: '加载中'
@ -257,6 +259,7 @@
});
},
methods: {
...mapActions(["getLocation"]),
goRoll(item){
if(item.uniapp_url){
this.$yrouter.push(item.uniapp_url)