Commit b44b43dc by 前端

Merge branch 'map_1.1' into 'master'

上线合并

See merge request !31
2 parents f3304556 9317622f
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
"build": "^0.1.4", "build": "^0.1.4",
"core-js": "^3.6.4", "core-js": "^3.6.4",
"dayjs": "^1.10.5", "dayjs": "^1.10.5",
"glsk-map-jssdk": "^0.1.1",
"glsx-common": "^2.1.0", "glsx-common": "^2.1.0",
"glsx-map-sdk": "^0.2.0",
"lib-flexible": "^0.3.2", "lib-flexible": "^0.3.2",
"number-precision": "^1.6.0", "number-precision": "^1.6.0",
"postcss-loader": "^6.2.0", "postcss-loader": "^6.2.0",
......
import GlMap from 'glsx-map-sdk' import GlMap from 'glsk-map-jssdk'
export default new GlMap() export default new GlMap()
\ No newline at end of file \ No newline at end of file
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
module.exports = { module.exports = {
title: '加载中...', title: '加载中...',
request: { request: {
baseURL: '//scrm.test.glsx.com.cn', // 本地测试项目地址, baseURL: '//scrm.dev.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
......
...@@ -433,7 +433,7 @@ export default { ...@@ -433,7 +433,7 @@ export default {
let userSelectGoodsList = [] let userSelectGoodsList = []
if (data.goodsList) { if (data.goodsList) {
let goodsNumber = 1 let goodsNumber = 1
if(data.goodsList.length > 1) goodsNumber = 0 if (data.goodsList.length > 1) goodsNumber = 0
data.goodsList.map(e => { data.goodsList.map(e => {
let obj = { let obj = {
goodsImage: e.goodsImage, goodsImage: e.goodsImage,
...@@ -563,8 +563,8 @@ export default { ...@@ -563,8 +563,8 @@ export default {
if (data.distance) this.openLocation() if (data.distance) this.openLocation()
else { else {
wxConfig.getLocation().then(res => { wxConfig.getLocation().then(res => {
mapApi.calculateDistance([res.latitude, res.longitude], [data.activityAddressLat, data.activityAddressLng]).then(({ elements: [address] }) => { mapApi.calculateDistance([res.latitude, res.longitude], [data.activityAddressLat, data.activityAddressLng]).then(({elements}) => {
this.detail.distance = Number((address.distance / 1000)).toFixed(2) this.detail.distance = Number((elements.distance / 1000)).toFixed(2)
this.distanceKey = Date.now() this.distanceKey = Date.now()
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!