lilei hace 2 años
padre
commit
425a554508
Se han modificado 4 ficheros con 7 adiciones y 7 borrados
  1. 2 2
      App.vue
  2. 1 1
      api/request.js
  3. 2 2
      pages/index/index.vue
  4. 2 2
      pages/morePage/morePage.vue

+ 2 - 2
App.vue

@@ -1,8 +1,8 @@
 <script>
 	export default {
 		globalData: {
-			// baseUrl: 'http://192.168.0.103:9110/saas/clz/', // 本地
-			baseUrl: 'https://md.test.zyucgj.com/saas/clz/', // 预发布
+			baseUrl: 'http://192.168.0.103:9110/saas/clz/', // 本地
+			// baseUrl: 'https://md.test.zyucgj.com/saas/clz/', // 预发布
 			// baseUrl: 'https://car.zyucgj.com/saas/clz/' // 生产
 		},
 		onLaunch: function() {

+ 1 - 1
api/request.js

@@ -18,7 +18,7 @@ function request(options,hasNoToken) {
 			'Version': '1.0.0',
 	}
 	if(userInfo.sysUserFlag == '0'){
-		header['auth_token'] = hasNoToken ? '' : uni.getStorageSync('token')
+		header['auth-token'] = hasNoToken ? '' : uni.getStorageSync('token')
 	}else{
 		header['authorization'] = hasNoToken ? '' : uni.getStorageSync('token')
 	}

+ 2 - 2
pages/index/index.vue

@@ -22,7 +22,7 @@
 				<view><u-icon name="volume" color="#f2a557" :size="28" :margin-right='15'></u-icon> 您有待取货的货架订单哦!</view> <text class="text">立即处理>></text>
 			</view>
 			<!-- 门店审核不通过 -->
-			<view class="notices flex" v-if="storeApply.auditStatus=='REFUSE'&&storeApply.readFlag=='0'">
+			<view class="notices flex" v-if="storeApply&&storeApply.auditStatus=='REFUSE'&&storeApply.readFlag=='0'">
 				<view><u-icon name="volume" color="#f2a557" :size="28" :margin-right='15'></u-icon> 门店认证资料审核不通过,请重新提交审核!</view> <text class="text" @click="toKnow">知道了</text>
 			</view>
 			<!-- 名片 -->
@@ -47,7 +47,7 @@
 				</view>
 				<view>
 					<text v-if="hasLogin&&userInfo&&userInfo.sysUserFlag == '0'" class="user-rz">
-						{{storeApply.auditStatus=='WAIT'?'认证门店审核中':'认证成为门店'}}
+						{{storeApply&&storeApply.auditStatus=='WAIT'?'认证门店审核中':'认证成为门店'}}
 					</text>
 					<u-icon name="arrow-right"></u-icon>
 				</view>

+ 2 - 2
pages/morePage/morePage.vue

@@ -105,7 +105,7 @@
 				if(this.hasLogin){
 					// 游客未认证
 					if(this.userInfo.sysUserFlag == '0'){
-						if(this.storeApply.auditStatus=='WAIT'){
+						if(this.storeApply&&this.storeApply.auditStatus=='WAIT'){
 							uni.showModal({
 								title: '提示',
 								content: '门店认证资料审核中,请耐心等待!',
@@ -114,7 +114,7 @@
 							})
 						}
 						// 如果审核已通过
-						else if(this.storeApply.auditStatus=='PASS'){
+						else if(this.storeApply&&this.storeApply.auditStatus=='PASS'){
 							uni.showModal({
 								title: '提示',
 								content: '门店认证审核已通过,请重新登录!',