地址
This commit is contained in:
@@ -15,6 +15,11 @@
|
||||
<u-select v-model="showType" :list="$dict.getDict('wyGirdNewsType')" value-name="dictValue" label-name="dictName"
|
||||
@confirm="selectType"></u-select>
|
||||
</u-form-item>
|
||||
<u-form-item label="地址" prop="address">
|
||||
<div class="right">
|
||||
<span class="color-999">{{ forms.address }}</span>
|
||||
</div>
|
||||
</u-form-item>
|
||||
<u-form-item label="图片(最多9张)" prop="files" class="avatars" label-position="top">
|
||||
<AiUploader :def.sync="forms.files" multiple placeholder="上传图片" :limit="9"
|
||||
action="/admin/file/add2"></AiUploader>
|
||||
@@ -59,9 +64,9 @@ export default {
|
||||
this.forms.girdId = this.user.girdId
|
||||
this.forms.girdMemberId = this.user.girdMemberId
|
||||
this.$dict.load(['wyGirdNewsType'])
|
||||
this.forms.lng = '114.305000'
|
||||
this.forms.lat = '30.592800'
|
||||
// this.getLocation()
|
||||
// this.forms.lng = '114.305000'
|
||||
// this.forms.lat = '30.592800'
|
||||
this.getLocation()
|
||||
},
|
||||
onShow() {
|
||||
document.title = '网格动态'
|
||||
@@ -97,13 +102,13 @@ export default {
|
||||
},
|
||||
|
||||
getLocation () {
|
||||
this.injectJWeixin(['getLocation']).then(res => {
|
||||
this.injectJWeixin(['getLocation']).then(res1 => {
|
||||
wx.getLocation({
|
||||
type: 'wgs84',
|
||||
success: res => {
|
||||
this.forms.lng = res.longitude
|
||||
this.forms.lat = res.latitude
|
||||
this.$http.post('/api/appdvcpconfig/apiForward', `https://apis.map.qq.com/ws/geocoder/v1/?location=${res.latitude},${res.longitude}&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1`).then(res => {
|
||||
success: res2 => {
|
||||
this.forms.lng = res2.longitude
|
||||
this.forms.lat = res2.latitude
|
||||
this.$http.post('/api/appdvcpconfig/apiForward', `https://apis.map.qq.com/ws/geocoder/v1/?location=${res2.latitude},${res2.longitude}&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1`).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.forms.address = res.data.result.address
|
||||
}
|
||||
|
||||
@@ -19,7 +19,12 @@
|
||||
<span class="card-left">类型</span>
|
||||
<span class="card-right">{{$dict.getLabel('wyGirdNewsType', data.type)}}</span>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<span class="card-left">地址</span>
|
||||
</div>
|
||||
<div class="card solid">
|
||||
<span class="card-right">{{data.address}}</span>
|
||||
</div>
|
||||
<div v-if="data.status != 0">
|
||||
<div class="card" v-if="data.examineOpinion">
|
||||
<span class="card-left">审批意见</span>
|
||||
|
||||
Reference in New Issue
Block a user