1.提交代码 添加首页和分类授权

yj-dev
杨杰 4 years ago
parent 9eee0ab595
commit 9f7f96f7c5
  1. 8
      pages/tabBar/category/category.vue
  2. 4
      pages/tabBar/home/home.vue

@ -56,7 +56,9 @@
<!-- <view class="loading-text" @click="getCouponList">{{ loadingText }}</view> -->
</scroll-view>
</view>
<!-- #ifdef H5 -->
<authorize></authorize>
<!-- #endif -->
</view>
</template>
<script>
@ -65,6 +67,7 @@
getStoreListByMerchant,
getMerchantList
} from "../../../Utils/Api.js";
import authorize from '../../../components/Authorize';
let app = getApp();
export default {
data() {
@ -130,7 +133,8 @@
//
getUserLocation(long, lat) {
let vm = this;
let url = 'https://apis.map.qq.com/ws/geocoder/v1?coord_type=5&get_poi=1&output=jsonp&poi_options=page_size=1;page_index=1';
let url =
'https://apis.map.qq.com/ws/geocoder/v1?coord_type=5&get_poi=1&output=jsonp&poi_options=page_size=1;page_index=1';
let locationObj = lat + ',' + long;
this.$jsonp(url, {
key: '7UMBZ-HFEHX-HSD4Q-Z3QY6-OQKN7-2QBDB',

@ -105,6 +105,9 @@
</view>
<!-- <view class="loading-text">{{ loadingText }}</view> -->
</view>
<!-- #ifdef H5 -->
<authorize></authorize>
<!-- #endif -->
</view>
</template>
@ -115,6 +118,7 @@
getCouponList,
getH5UserInfo
} from "../../../Utils/Api.js"; //api
import authorize from '../../../components/Authorize';
let app = getApp();
export default {
data() {

Loading…
Cancel
Save