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> --> <!-- <view class="loading-text" @click="getCouponList">{{ loadingText }}</view> -->
</scroll-view> </scroll-view>
</view> </view>
<!-- #ifdef H5 -->
<authorize></authorize>
<!-- #endif -->
</view> </view>
</template> </template>
<script> <script>
@ -65,6 +67,7 @@
getStoreListByMerchant, getStoreListByMerchant,
getMerchantList getMerchantList
} from "../../../Utils/Api.js"; } from "../../../Utils/Api.js";
import authorize from '../../../components/Authorize';
let app = getApp(); let app = getApp();
export default { export default {
data() { data() {
@ -130,7 +133,8 @@
// //
getUserLocation(long, lat) { getUserLocation(long, lat) {
let vm = this; 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; let locationObj = lat + ',' + long;
this.$jsonp(url, { this.$jsonp(url, {
key: '7UMBZ-HFEHX-HSD4Q-Z3QY6-OQKN7-2QBDB', key: '7UMBZ-HFEHX-HSD4Q-Z3QY6-OQKN7-2QBDB',

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

Loading…
Cancel
Save