wkw 7 ay önce
ebeveyn
işleme
9488cbf841
3 değiştirilmiş dosya ile 8 ekleme ve 7 silme
  1. 1 1
      common/config.js
  2. 2 2
      pages/index/game/gameList.vue
  3. 5 4
      pages/index/index.vue

+ 1 - 1
common/config.js

@@ -4,7 +4,7 @@ let mobile=0;
 // #ifdef APP-PLUS
 mobile=1
 //#endif
-if (process.env.NODE_ENV !== 'development'||mobile || true) {
+if (process.env.NODE_ENV !== 'development'||mobile) {
 	//正式环境
 	const ROOTPATH = "http://www.bosszan.com/sqx_fast";
 	const ROOTPATH1 = "http://www.bosszan.com/sqx_fast";

+ 2 - 2
pages/index/game/gameList.vue

@@ -497,7 +497,7 @@ export default {
     // 获取位置信息
     async getLocation() {
       let that = this;
-	  
+	  // #ifdef APP
 	  const hasPermission = await this.$queue.checkPermission(
 	    'location', // 固定传 'location',双端通用
 	    '获取您的位置用于推荐附近的求职岗位' // 提示文案也无需区分系统(统一表述即可)
@@ -507,7 +507,7 @@ export default {
 	    uni.showToast({ title: '未获取定位权限,无法推荐附近岗位', icon: 'none' });
 	    return;
 	  }
-	  				
+	  // #endif
 	  
 	  
       uni.getLocation({

+ 5 - 4
pages/index/index.vue

@@ -747,6 +747,7 @@
 
 			this.getDomWidth()
 			this.$Request.getT('/app/common/type/255').then(res => {
+				uni.hideLoading();
 				if (res.code === 0) {
 					if (res.data && res.data.value) {
 						this.tuiguang = res.data.value;
@@ -1595,11 +1596,11 @@
 				this.$Request.get("/app/user/selectUserById").then(res => {
 					if (res.code == 0) {
 						console.log(res.data)
-						this.$queue.setData('weChatNum', res.data.weChatNum)
-						if (res.data.companyId) {
-							uni.setStorageSync('companyId', res.data.companyId)
+						this.$queue.setData('weChatNum', res.data?.weChatNum)
+						if (res.data && res.data.companyId) {
+							uni.setStorageSync('companyId', res.data?.companyId)
 						}
-						if (res.data.userType == 1 || res.data.userType == null) {
+						if (res.data?.userType == 1 || res.data?.userType == null) {
 							this.userType = 1
 							uni.setStorageSync('userType', 1)
 						} else {