| | |
| | | <view class="icon iconfont icon-jiantou" style="font-size: 24rpx;"></view> |
| | | </view> |
| | | </picker> |
| | | <view class="certification_head_body_item d-b-c"> |
| | | <view class="icon iconfont icon-dizhi1"></view> |
| | | <view class="input-box flex-1"> |
| | | <input class="f32 flex-1 p-30-0" name="location_address" type="text" placeholder-class="gray9" placeholder="请选择地址" v-model="address.location_address" |
| | | disabled @click="chooseLocation" /> |
| | | </view> |
| | | <view class="icon iconfont icon-jiantou" style="font-size: 24rpx;"></view> |
| | | </view> |
| | | <view class="certification_head_body_item"> |
| | | <view class="icon iconfont icon-diliweizhi"></view> |
| | | <textarea class="flex-1 f32 p-30-0 lh150" name="house_number" placeholder-class="grary9" :auto-height="true" |
| | | v-model="address.house_number" placeholder="请输入街道小区楼牌号等"></textarea> |
| | | </view> |
| | | <picker class="" value="" @change="changeArea($event)" |
| | | :range="area_data_name" v-if="area_data_id.length > 0"> |
| | | <view class="certification_head_body_item d-b-c"> |
| | |
| | | /*是否已发验证码*/ |
| | | is_send: false, |
| | | sms_open: 0, |
| | | store_open:false |
| | | store_open:false, |
| | | location_address:'', |
| | | address:{ |
| | | location_address:'', |
| | | house_number:'', |
| | | longitude:'', |
| | | latitude:'', |
| | | }, |
| | | province_id: 0, |
| | | city_id: 0, |
| | | region_id: 0, |
| | | region:[] |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | formdata.category_id = self.classify_data_id_active; |
| | | formdata.area_id = self.area_data_id_active; |
| | | formdata.supplier_type = self.supplier_type_id_active; |
| | | formdata.province_id = self.province_id; |
| | | formdata.city_id = self.city_id; |
| | | formdata.region_id = self.region_id; |
| | | formdata.address=self.region[0]+self.region[1]+self.region[2]+self.address.location_address+self.address.house_number |
| | | formdata.longitude = self.address.longitude; |
| | | formdata.latitude = self.address.latitude; |
| | | if (self.classify_data_name_active == '') { |
| | | uni.showToast({ |
| | | title: '请填主营类别', |
| | | duration: 1000, |
| | | icon: 'none' |
| | | }); |
| | | return false; |
| | | } |
| | | if (self.address.location_address == '') { |
| | | uni.showToast({ |
| | | title: '请选择地址', |
| | | duration: 1000, |
| | | icon: 'none' |
| | | }); |
| | |
| | | openUpload(e) { |
| | | this.type = e; |
| | | this.isupload = true; |
| | | },// 打开地图选择地址 by lyzflash |
| | | chooseLocation(n) { |
| | | let self=this; |
| | | uni.chooseLocation({ |
| | | success: function (res) { |
| | | self.address.longitude=res.longitude; |
| | | self.address.latitude=res.latitude; |
| | | self.location_address=res.address; |
| | | self.address.house_number=res.name; |
| | | // 获取省市区 |
| | | self.setLocationAddress(); |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | // 获取掉省市区 by lyzflash |
| | | setLocationAddress() { |
| | | let self = this; |
| | | self._get('user.address/setLocationAddress', { |
| | | address: self.location_address |
| | | }, function(res) { |
| | | self.address.location_address = res.data.short_address; |
| | | self.province_id = res.data.cityCode[0]; |
| | | self.city_id = res.data.cityCode[1]; |
| | | self.region_id = res.data.cityCode[2]; |
| | | self.region = res.data.region; |
| | | }); |
| | | }, |
| | | |
| | | /*获取图片*/ |