From 04102f7237efefa744090ed7c25f7b5d0807b679 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Thu, 05 Feb 2026 18:11:57 +0800
Subject: [PATCH] 完成运营中心提现和运营中心权限管理

---
 mobile/pages/shop/register.vue |   67 +++++++++++++++++++++++++++++++++
 1 files changed, 66 insertions(+), 1 deletions(-)

diff --git a/mobile/pages/shop/register.vue b/mobile/pages/shop/register.vue
index cba7a2d..043083e 100644
--- a/mobile/pages/shop/register.vue
+++ b/mobile/pages/shop/register.vue
@@ -44,6 +44,19 @@
 								<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">
@@ -123,7 +136,18 @@
 				/*是否已发验证码*/
 				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() {
@@ -267,9 +291,23 @@
 				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'
 					});
@@ -367,6 +405,33 @@
 			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;
+				});
 			},
 
 			/*获取图片*/

--
Gitblit v1.9.2