| | |
| | | <el-form-item label="联系地址" :rules="[{required: true,message: '请输入联系地址'}]"> |
| | | <el-input v-model="formData.address" placeholder="请输入联系地址" class="max-w460"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="坐标"> |
| | | <el-row class="mb16"> |
| | | <el-col :span="24"> |
| | | <el-input v-model="formData.coordinate" class="max-w460"></el-input> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row class="mb16"> |
| | | <el-col :span="24"> |
| | | <Getpoint :form="formData.supplier" @getMapdata="getMapdataFunc" @chose="choseFunc"></Getpoint> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="商家介绍" :rules="[{required: true,message: '请输入商家介绍'}]"> |
| | | <el-input type="textarea" v-model="formData.description" placeholder="请输入商家介绍" class="max-w460"></el-input> |
| | |
| | | |
| | | import SettingApi from '@/api/setting.js'; |
| | | import Upload from '@/components/file/Upload'; |
| | | import Getpoint from '@/components/map/Getpoint.vue'; |
| | | export default{ |
| | | components:{ |
| | | Getpoint, |
| | | Upload |
| | | }, |
| | | data(){ |
| | |
| | | description:'', |
| | | logo_id:0, |
| | | //business_id:0, |
| | | notice: '' |
| | | notice: '', |
| | | coordinate:'' |
| | | }, |
| | | /*是否打开图片选择*/ |
| | | isupload:false, |
| | |
| | | this.getParams(); |
| | | }, |
| | | methods:{ |
| | | /*初始化城市id*/ |
| | | initCity() { |
| | | this.formData.city_id = '' |
| | | }, |
| | | |
| | | /*初始化区id*/ |
| | | initRegion() { |
| | | this.formData.region_id = '' |
| | | }, |
| | | |
| | | /*获取经纬度*/ |
| | | getMapdataFunc(e) { |
| | | this.formData.coordinate = e.data[0].toFixed(6) + ',' + e.data[1].toFixed(6); |
| | | }, |
| | | /*选择的地址*/ |
| | | choseFunc(e){ |
| | | this.formData.coordinate=e.location.lat+','+e.location.lng; |
| | | this.formData.address=e.address; |
| | | |
| | | }, |
| | | |
| | | /*获取配置数据*/ |
| | | getParams() { |