lyuis 7 月之前
父节点
当前提交
99f2a8044c
共有 3 个文件被更改,包括 19 次插入9 次删除
  1. 2 2
      manifest.json
  2. 15 5
      pages/index/index.vue
  3. 2 2
      pages/my/index.vue

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "亿职赞",
     "appid" : "__UNI__0B0096D",
     "description" : "",
-    "versionName" : "1.0.1",
-    "versionCode" : 101,
+    "versionName" : "1.0.2",
+    "versionCode" : 102,
     "transformPx" : false,
     "sassImplementationName" : "node-sass",
     /* 5+App特有相关 */

+ 15 - 5
pages/index/index.vue

@@ -953,6 +953,7 @@ export default {
 					console.log(res, '地理位置');
 					that.latitude = res.latitude;
 					that.longitude = res.longitude;
+					if(that.$queue.array_column(that.sxTypeList,'id').indexOf(3)<0)
 					that.sxTypeList.push({
 						id: 3,
 						name: '附近'
@@ -970,16 +971,23 @@ export default {
 						// #ifdef APP-PLUS
 						if (res.address) {
 							that.city = res.address.city
+							if(go=='go')
+							that.goNav('/package/screen/city?city=' + that.city + '&county=' + that.county + '&type=' + 'search')
+							return;
 						} else {
-							that.getSelectCity(that.longitude, that.latitude);
+							that.getSelectCity(that.longitude, that.latitude,go);
+							return
 						}
 						// #endif
 						// #ifndef APP
-						that.getSelectCity(that.longitude, that.latitude);
+						that.getSelectCity(that.longitude, that.latitude,go);
+						return
 						// #endif
+					}else{
+						that.city=uni.getStorageSync('city')
+						if(go=='go')
+						that.goNav('/package/screen/city?city=' + that.city + '&county=' + that.county + '&type=' + 'search')
 					}
-					if(go=='go')
-					that.goNav('/package/screen/city?city=' + that.city + '&county=' + that.county + '&type=' + 'search')
 				},
 				fail: function () {
 					console.log('获取地址失败');
@@ -1413,12 +1421,14 @@ export default {
 		 * @param {Object} latitude
 		 * 使用经纬度获取城市
 		 */
-		getSelectCity(longitude, latitude) {
+		getSelectCity(longitude, latitude,go) {
 			this.$Request.get('/app/Login/selectCity?lat=' + latitude + '&lng=' + longitude).then(res => {
 				if (res.code == 0) {
 					// console.log(res, '获取地址信息')
 					this.city = res.data.city ? res.data.city : '区域'
 					uni.setStorageSync('city', res.data.city)
+					if(go=='go')
+					this.goNav('/package/screen/city?city=' + this.city + '&county=' + this.county + '&type=' + 'search')
 					if (this.userType == 1) {
 						this.getUserList()
 					} else {

+ 2 - 2
pages/my/index.vue

@@ -414,7 +414,7 @@
 				</view>
 				<view class="user-content">
 					<!-- 升级VIP -->
-					<view v-if="isAndroid||iosAudit==0" class="vip-upgrade-banner" @click="goVipUpgrade">
+					<view v-if="iosAudit==0" class="vip-upgrade-banner" @click="goVipUpgrade">
 						<view class="vip-banner-content">
 							<view class="vip-banner-text"> 升级VIP专享超值权益 </view>
 							<view class="vip-upgrade-button"> 去升级 </view>
@@ -623,7 +623,7 @@
 											规则中心
 										</view>
 									</view>
-									<view v-if="isAndroid||iosAudit==0" class="util-item" @click="goNav('/pages/my/VIP/benefits')">
+									<view v-if="iosAudit==0" class="util-item" @click="goNav('/pages/my/VIP/benefits')">
 										<image src="../../static/images/my/icon/utils/benefits.png"
 											style="width: 54rpx; height: 54rpx" mode=""></image>
 										<view class="" style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx">