|
|
@ -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', |
|
|
|