zhengkaixin пре 3 година
родитељ
комит
39594b3328

+ 3 - 0
pages/index/index.js

@@ -14,6 +14,9 @@ export default {
 		//this.id=op.id;
 	},
 	methods: {
+		clear(){
+			window.localStorage.clear();
+		},
 		mygoto( url){
 			window.location=url
 			//location.href=url

+ 3 - 1
pages/index/index.vue

@@ -10,7 +10,9 @@
 			</template>
 			 
 		</view>
-	
+		
+		<u-button type="error" @click="clear()" >清理本地缓存</u-button>
+		
 		
 		
 	</view>

+ 1 - 1
pages/job/newsIndex/newsEntry/index.js

@@ -41,7 +41,7 @@ export default {
 				API.changeAgree({
 					messageId:this.id,
 					isAgree:i,
-					context:this.context
+					remark:this.context
 				}).then((res)=>{
 					  //this.info=res.data;
 					  this.info.isAgree=i;

+ 12 - 2
pages/job/newsIndex/newsEntry/newsEntry.vue

@@ -26,8 +26,11 @@
 				</view>
 			</view>
 			<view class="servicesInfo-foot" v-if="info.isNeedAgree&&info.isAgree==null">
-				<u-modal v-model="show" show-cancel-button="true" title="拒绝理由(选填)" @confirm="changeAgree(0)">
-						<u-input v-model="context"  />
+				<u-modal v-model="show"  style="padding: 10px;" show-cancel-button="true" title="拒绝理由(选填)" @confirm="changeAgree(0)">
+						<view class="slot-content">
+								<u-input v-model="context"  />
+						</view>
+					
 
 				</u-modal>
 				<u-button class="servicesInfo-btn" shape="circle" @click="show=true">拒绝</u-button>
@@ -119,3 +122,10 @@
 		}
 	}
 </style>
+<style lang="scss" scoped>
+	.slot-content {
+		font-size: 28rpx;
+		color: $u-content-color;
+		padding-left: 60rpx;
+	}
+</style>

+ 1 - 1
utils/init.js

@@ -42,7 +42,7 @@ var app = {
 				API_WeiXin.getDataByCode(code).then(response => {
 					carhelp.setOpenId(response.data.openid)
 					openId = response.data.openid;
-					 
+					 location.reload();
 				}).catch(error => {
 					console.log(error);
 				});

+ 9 - 1
utils/request.js

@@ -13,8 +13,16 @@ const request = (options) => {
 	 	return requestSon(options);
 	 }
 	 var openId=carhelp.getOpenId()
+	var  urlindex="/wechat/findUserInfo"
+	var k=options.url.indexOf(urlindex)==-1;
+	 if(!openId&&k){
+		  
+		 return
+	 }
+	
 	 var form= window.location.href.split("#/")[1].split("/")[1];
-	 if(["job","hr"].indexOf(form)==-1){
+	 
+	 if(["job","hr"].indexOf(form)==-1||!k){
 	 	return requestSon(options);
 	 }
 	 var url="";