贾宇博 2 hete%!(EXTRA string=óta)
szülő
commit
de1c081a99

+ 2 - 0
components/a.js

@@ -0,0 +1,2 @@
+import addressData from '@/pages_mine/components/pickerAddress/address.js';
+export default addressData;

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 30050
components/pickerAddress/address.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 4915
components/pickerAddress/areadata.js


+ 0 - 148
components/pickerAddress/pickerAddress.vue

@@ -1,148 +0,0 @@
-<template>
-	<!-- 地址选择器组件 -->
-	<view>
-		<picker @change="bindPickerChange" @columnchange="columnchange" :range="array" range-key="name" :value="value"
-			mode="multiSelector">
-			<slot></slot>
-		</picker>
-	</view>
-</template>
-
-<script>
-// import AllAddress from './areadata.js'
-import AllAddress from './address.js'
-let selectVal = ['', '', '']
-let selectCode = ['', '', '']
-export default {
-	data() {
-		return {
-			value: [0, 0, 0],
-			array: [],
-			index: 0
-		}
-	},
-	props: {
-		selectValue: {
-			type: Array,
-			default: [0, 0, 0]
-		}
-	},
-	created() {
-		this.value = this.selectValue
-		this.initSelect()
-	},
-	watch: {
-		selectValue: {
-				handler(newVal,old) {
-					if(newVal!== old){
-						console.log('newVal,old',newVal,old);
-						this.value = this.selectValue
-						this.initSelect()
-					}
-					
-				},
-				immediate: true
-			}
-		},
-	methods: {
-		// 初始化地址选项
-		initSelect() {
-			this.updateSourceDate() // 更新源数据
-				.updateAddressDate() // 更新结果数据
-				.$forceUpdate()  // 触发双向绑定
-		},
-		// 地址控件改变控件
-		columnchange(d) {
-			this.updateSelectIndex(d.detail.column, d.detail.value) // 更新选择索引
-				.updateSourceDate() // 更新源数据
-				.updateAddressDate() // 更新结果数据
-				.$forceUpdate()  // 触发双向绑定
-		},
-
-		/**
-		 * 更新源数据
-		 * */
-		updateSourceDate() {
-			// console.log(AllAddress, '>>>>>>>AllAddress');
-			this.array = []
-			// this.array[0] = AllAddress.map(obj => {
-			// 	return { name: obj.name }
-			// })
-			// this.array[1] = AllAddress[this.value[0]].city.map(obj => {
-			// 	return { name: obj.name }
-			// })
-			// this.array[2] = AllAddress[this.value[0]].city[this.value[1]].area.map(obj => { 
-			// 	return { name: obj }
-			// })
-
-
-			this.array[0] = AllAddress.map(obj => {
-				return {
-					name: obj.name,
-					code: obj.code
-				}
-			})
-			this.array[1] = AllAddress[this.value[0]].children.map(obj => {
-				return {
-					name: obj.name,
-					code: obj.code
-				}
-			})
-			this.array[2] = AllAddress[this.value[0]].children[this.value[1]].children.map(obj => {
-				return {
-					name: obj.name,
-					code: obj.code
-				}
-			})
-			return this
-		},
-
-		/**
-		 * 更新索引
-		 * */
-		updateSelectIndex(column, value) {
-			let arr = JSON.parse(JSON.stringify(this.value))
-			arr[column] = value
-			if (column === 0) {
-				arr[1] = 0
-				arr[2] = 0
-			}
-			if (column === 1) {
-				arr[2] = 0
-			}
-			this.value = arr
-			return this
-		},
-
-		/**
-		 * 更新结果数据 
-		 * */
-		updateAddressDate() {
-			selectVal[0] = this.array[0][this.value[0]].name
-			selectVal[1] = this.array[1][this.value[1]].name
-			selectVal[2] = this.array[2][this.value[2]].name
-
-			selectCode[0] = this.array[0][this.value[0]].code
-			selectCode[1] = this.array[1][this.value[1]].code
-			selectCode[2] = this.array[2][this.value[2]].code
-
-
-			return this
-		},
-
-		/**
-		 * 点击确定
-		 * */
-		bindPickerChange(e) {
-			this.$emit('change', {
-				index: this.value,
-				data: selectVal,
-				code: selectCode
-			})
-			return this
-		}
-	}
-}
-</script>
-
-<style></style>

+ 2 - 2
config.js

@@ -2,8 +2,8 @@
 const config = {
 	// baseUrl: 'https://vue.ruoyi.vip/prod-api',
 	//cloud后台网关地址
-	baseUrl: 'http://192.168.100.133:9527',
-	// baseUrl: 'https://zybooks.tech/prod-api',
+	// baseUrl: 'http://192.168.100.133:9527',
+	baseUrl: 'https://zybooks.tech/prod-api',
 	mapKey:'KFEBZ-P2GKZ-A5PX4-7Q6Y7-KXOBF-XCB4C',
 	appName: '金邻助家',
 	// 应用信息

+ 1 - 1
pages_classify/pages/handle/index.vue

@@ -386,4 +386,4 @@ onUnload(() => {
     background: rgba(255, 255, 255, 1);
 
 }
-</style>
+</style>

+ 2 - 2
pages_home/components/cust-form/index.vue

@@ -123,9 +123,9 @@ import {
     onShow,
     onUnload
 } from "@dcloudio/uni-app";
-import { splitAddress,getCityCode } from '@/utils/adress'
+// import { splitAddress,getCityCode } from '@/utils/adress'
 
-import pickerAddress from '@/components/pickerAddress/pickerAddress.vue'
+// import pickerAddress from '@/components/pickerAddress/pickerAddress.vue'
 
 const props = defineProps({
     column: {

BIN
static/favicon.ico


BIN
static/jinshulin.png


BIN
static/logo.png


BIN
static/logo200.png


+ 1 - 1
utils/adress.js

@@ -2,7 +2,7 @@ import config from '@/config'
 const mapKey = config.mapKey;
 const appName = config.appName;
 
-import addressData from '@/components/pickerAddress/address'
+import addressData from '@/components/a.js'
 
 /**
  * 腾讯位置服务地图选点