|
@@ -56,22 +56,35 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="text item">
|
|
<div class="text item">
|
|
|
<el-image v-if="markerInfo.photoUrl !== null" :src="markerInfo.photoUrl" min-width="40" height="30" />
|
|
<el-image v-if="markerInfo.photoUrl !== null" :src="markerInfo.photoUrl" min-width="40" height="30" />
|
|
|
- <br>
|
|
|
|
|
- <label>
|
|
|
|
|
- 商品 <span v-text="markerInfo.itemId" />
|
|
|
|
|
- </label>
|
|
|
|
|
- <br>
|
|
|
|
|
- <label>
|
|
|
|
|
- SKU <span v-text="markerInfo.sku" />
|
|
|
|
|
- </label>
|
|
|
|
|
- <br>
|
|
|
|
|
- <label>
|
|
|
|
|
- 评论 <span style="color: blue" v-text="markerInfo.replyContent" />
|
|
|
|
|
- </label>
|
|
|
|
|
- <br>
|
|
|
|
|
- <!-- <label v-if="markerInfo.appendContent !== undefined || markerInfo.appendContent !== null">
|
|
|
|
|
- 追加 <span style="color: blue" v-text="markerInfo.appendContent"/>
|
|
|
|
|
- </label>-->
|
|
|
|
|
|
|
+ <div v-if="markerInfo.type === 2">
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ ID
|
|
|
|
|
+ <a style="text-decoration-line: none" target="_blank" :href="`https://item.taobao.com/item.htm?id=${markerInfo.itemId}`">
|
|
|
|
|
+ <span style="color: blue">{{ markerInfo.itemId }}</span>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ SKU <span style="color: blue" v-text="markerInfo.sku" />
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ 评论 <span style="color: blue" v-text="markerInfo.replyContent" />
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row v-if="markerInfo.appendContent !== undefined || markerInfo.appendContent !== null">
|
|
|
|
|
+ 追评 <span style="color: blue" v-text="markerInfo.appendContent" />
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div v-if="markerInfo.type === 4">
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ ID
|
|
|
|
|
+ <router-link style="text-decoration-line: none" target="_blank" :to="`/image/${markerInfo.itemId}`">
|
|
|
|
|
+ <span style="color: blue">{{ markerInfo.itemId }}</span>
|
|
|
|
|
+ </router-link>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -79,7 +92,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { getGeoItems, getMapMarkers, getMarkerInfo } from '@/api/map'
|
|
|
|
|
|
|
+import { getPhotoItems, getPhotoMarks, getMarkerInfo } from '@/api/map'
|
|
|
|
|
|
|
|
import Vue from 'vue'
|
|
import Vue from 'vue'
|
|
|
import VueAMap from 'vue-amap'
|
|
import VueAMap from 'vue-amap'
|
|
@@ -156,7 +169,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
getItems() {
|
|
getItems() {
|
|
|
- getGeoItems().then(resp => {
|
|
|
|
|
|
|
+ getPhotoItems().then(resp => {
|
|
|
if (resp.code === 0) {
|
|
if (resp.code === 0) {
|
|
|
this.selectOptions = resp.data
|
|
this.selectOptions = resp.data
|
|
|
}
|
|
}
|
|
@@ -187,16 +200,16 @@ export default {
|
|
|
})
|
|
})
|
|
|
this.massMarks = massMarks
|
|
this.massMarks = massMarks
|
|
|
|
|
|
|
|
- this.getMapMarkersWrapper(this.selectedOption)
|
|
|
|
|
- // this.getMapMarkersWrapper1(type)
|
|
|
|
|
|
|
+ this.getPhotoMarksWrapper(this.selectedOption)
|
|
|
|
|
+ // this.getPhotoMarksWrapper1(type)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
zoomchange(e) {
|
|
zoomchange(e) {
|
|
|
console.log('当前缩放级别: ' + this.amap.getZoom())
|
|
console.log('当前缩放级别: ' + this.amap.getZoom())
|
|
|
},
|
|
},
|
|
|
- getMapMarkersWrapper(type) {
|
|
|
|
|
|
|
+ getPhotoMarksWrapper(type) {
|
|
|
this.markers = []
|
|
this.markers = []
|
|
|
- getMapMarkers(type).then(res => {
|
|
|
|
|
|
|
+ getPhotoMarks(type).then(res => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
this.$notify({
|
|
this.$notify({
|
|
|
message: '加载了 ' + res.data.length + ' 条数据',
|
|
message: '加载了 ' + res.data.length + ' 条数据',
|
|
@@ -227,9 +240,9 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 渲染海量点
|
|
// 渲染海量点
|
|
|
- getMapMarkersWrapper1(type) {
|
|
|
|
|
|
|
+ getPhotoMarksWrapper1(type) {
|
|
|
this.massMarks.setData([])
|
|
this.massMarks.setData([])
|
|
|
- getMapMarkers(type).then(res => {
|
|
|
|
|
|
|
+ getPhotoMarks(type).then(res => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
this.$notify({
|
|
this.$notify({
|
|
|
message: '加载了 ' + res.data.length + ' 条数据',
|
|
message: '加载了 ' + res.data.length + ' 条数据',
|
|
@@ -305,7 +318,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
onChange() {
|
|
onChange() {
|
|
|
- this.getMapMarkersWrapper(this.selectedOption)
|
|
|
|
|
|
|
+ this.getPhotoMarksWrapper(this.selectedOption)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|