Browse Source

fix: 修复组件属性传递和API基础URL配置

修复城市选择组件属性传递方式,移除未使用的经纬度和城市参数
更新API基础URL配置为生产环境地址
修正水肥比例文本显示错误
allen 1 week ago
parent
commit
9d165eeea6

+ 2 - 2
components/bazaar-city_list/index.vue

@@ -62,7 +62,7 @@
 			getCity:{
 				type:Function,
 				default:function(){}
-			},
+			}
 		},
 		computed:{
 			fixedTitle(){
@@ -311,4 +311,4 @@
 		text-align: center;
 		line-height: 33px;
 	}
-</style>
+</style>

+ 1 - 1
pages/cb/shuifeizsFirst/autoSetting.vue

@@ -45,7 +45,7 @@
               <view class="group-check-radius" :class="{'active': FertPidType == '2'}">
                 <u-icon class="check-icon" name="checkmark" size="24rpx" v-if="FertPidType == '2'"/>
               </view>
-              <text class="text" :class="FertPidType == '2'?'text-active':''">水比例</text>  
+              <text class="text" :class="FertPidType == '2'?'text-active':''">水比例</text>  
             </view>
             <view class="group-check-container" @click="selectFertPidType('0')"  :class="{'active': FertPidType == '0'}">
               <view class="group-check-radius" :class="{'active': FertPidType == '0'}">

+ 2 - 9
pages/fourBase/city.vue

@@ -1,25 +1,18 @@
 <template>
 	<view>
-		<citySelect :getCity="getCity" :lat="lat" :lng="lng" :city="city"></citySelect>	
+		<citySelect :getCity="getCityA"></citySelect>	
 	</view>
 </template>
 
 <script>
 	import citySelect from '../../components/bazaar-city_list/index.vue';
 	export default {
-		onLoad(options) {
-			this.lat = options.lat
-			this.lng = options.lng
-			this.city = options.city
-		},
 		components:{
 			citySelect
 		},
 		data() {
 			return {
-				lat: "",
-				lng: "",
-				city: "",
+				
 			}
 		},
 		methods: {

+ 2 - 2
util/api.js

@@ -1,7 +1,7 @@
 // let BASE_URL = 'http://114.55.0.7:8002';
 // const BASE_URL='http://8.136.98.49:8002'
-let BASE_URL = 'http://218.28.198.186:10505'
-// let BASE_URL = 'https://wx.hnyfwlw.com'
+// let BASE_URL = 'http://218.28.198.186:10505'
+let BASE_URL = 'https://wx.hnyfwlw.com'
 // let BASE_URL = 'http://192.168.1.107:8000';
 // let BASE_URL = 'http://218.28.198.186:10508';
 // let BASE_URL = 'https://uat.hnyfwlw.com'