shish vor 4 Jahren
Ursprung
Commit
4ec0ecb0d7

+ 2 - 27
ghsApp/src/plugins/luch-request_0.0.7/request.js

@@ -112,11 +112,6 @@ class Request {
 		if (response.config.config.loading) {
 			uni.hideLoading()
 		}
-		// const client_hash = response.header.client_hash || null
-		// console.log('X-Client-Hash', response.header['X-Client-Hash'])
-		// if (client_hash) {
-		// 	uni.setStorageSync('client_hash', client_hash)
-		// }
 		return response
 	}
 
@@ -137,11 +132,6 @@ class Request {
 			options.complete = (response) => {
 				const statusCode = response.statusCode
 				response.config = _config
-				//   if(config.method === 'get') {
-				// 	response.config.config = config
-				//   }else if(config.method === 'post'){
-				// 	response.config.config.config = config
-				//   }
 				response.config.config = config
 				response = this.requestComFun(response)
 				// 全局忽略错误,在单个请求里面自行处理
@@ -159,29 +149,15 @@ class Request {
 							}
 							reject(response.data)
 						} else if (response.data.code && response.data.code == -1) {
-							// 无权限或者登录过期
-							// uni.removeStorageSync('token')
-							// uni.showToast({ title: '登录已失效...', icon: 'none', mask: true })
-							// setTimeout(() => {
-							// 	getCheckLogin()
-							// }, 1000)
+
 						} else if (response.data.code == 2) {
 							uni.removeStorageSync('token')
 							uni.removeStorageSync('shopUser')
 							uni.removeStorageSync('account')
 							uni.showToast({ title: '登录已失效..', icon: 'none', mask: true })
-							setTimeout(() => {
-								//getCheckLogin()
-							}, 1000)
 						} else {
-							console.log('response.data', response.data)
 							if (!config.hideError) {
-								// this.$msg(response.data.msg)
-								uni.showToast({
-									title: response.data.msg,
-									icon: 'none',
-									mask: true
-								})
+								uni.showToast({ title: response.data.msg, icon: 'none', mask: true })
 							}
 							reject(response.data)
 						}
@@ -206,7 +182,6 @@ class Request {
 	}
 
 	get(url, data = {}, options = {}, config = {}) {
-		// options.url = url + common.queryData(data, true)
 		options.url = url + parse(data)
 		options.data = {}
 		options.method = 'GET'

+ 0 - 2
hdPad/src/pages/home/components/toPay.vue

@@ -56,7 +56,6 @@ export default {
             uni.showLoading({title: '查询中',mask:true})
             codePayCheck({id:this.orderId}).then(res=>{
                 uni.hideLoading()
-                console.log(res)
                 if(res.code == 1){
                     if(res.data.returnStatus == 'SUCCESS'){
                         that.showSuccess = true
@@ -91,7 +90,6 @@ export default {
             uni.showLoading({title: '确认中',mask:true})
             codePayCheck({id:this.orderId}).then(res=>{
                 uni.hideLoading()
-                console.log(res)
                 if(res.code == 1){
                     if(res.data.returnStatus == 'SUCCESS'){
                         that.showSuccess = true