achao 3 years ago
parent
commit
3ee95d4424

+ 1 - 1
components/ossutil/uploadFile.js

@@ -14,7 +14,7 @@ const Crypto = require('./crypto.js');
  */
 const uploadFile = function(type, filePath, dir, successc, failc) {
 	console.log('type', type)
-	if (!filePath || filePath.length < 9) {
+	if (!filePath) {
 		uni.showModal({
 			title: '图片错误',
 			content: '请重试',

+ 2 - 2
pages/goodSource/index.vue

@@ -234,7 +234,7 @@
 			})
 			if (_status == '已禁用') {
 				this.isShowAlert = true
-				this.alertTitle == '账号审核中'
+				this.alertTitle = '账号审核中'
 				this.confirmText = '退出APP'
 				this.showCancelButton = false
 			} else {
@@ -269,7 +269,7 @@
 			},
 			confirmClick() {
 				// #ifdef APP-PLUS
-				if (this.alertTitle == '账号审核中') {
+				if (this.alertTitle = '账号审核中') {
 					if (uni.getSystemInfoSync().platform == 'ios') {
 						plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
 					} else if (uni.getSystemInfoSync().platform == 'android') {

+ 3 - 3
pages/mine/index.vue

@@ -169,7 +169,7 @@
 			})
 			if (_status == '已禁用') {
 				this.isShowAlert = true
-				this.alertTitle == '账号审核中'
+				this.alertTitle = '账号审核中'
 				this.confirmText = '退出APP'
 				this.showCancelButton = false
 			} else {
@@ -239,7 +239,7 @@
 			},
 			confirmClick() {
 				// #ifdef APP-PLUS
-				if (this.alertTitle == '账号审核中') {
+				if (this.alertTitle = '账号审核中') {
 					if (uni.getSystemInfoSync().platform == 'ios') {
 						plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
 					} else if (uni.getSystemInfoSync().platform == 'android') {
@@ -258,7 +258,7 @@
 				if (!this.hasLogin) {
 					this.isShowAlert = true;
 				} else {
-					if (type == 1 && this.statusVal == '已认证'||this.statusVal == '证件已过期') {
+					if (type == 1 && this.statusVal == '已认证'||this.statusVal == '证件已过期'||this.statusVal == '身份认证未通过') {
 						src = '/pages/mine/editDriverCertification'
 					}
 					console.log('this.isFirstSH', this.isFirstSH)

+ 2 - 2
pages/mine/manageVehicles/addVehicle.vue

@@ -167,7 +167,7 @@
 				}
 			},
 			uploadFilePromise(url) {
-				uploadImage(url, 'appData/',
+				uploadImage('image',url, 'appData/',
 					result => {
 						// 上传成功回调函数
 						console.log('图片地址', result)
@@ -228,7 +228,7 @@
 					count: 1,
 					success: function(res) {
 						console.log(JSON.stringify(res.tempFilePaths));
-						uploadImage(res.tempFilePaths[0], 'appData/',
+						uploadImage('image',res.tempFilePaths[0], 'appData/',
 							result => {
 								// 上传成功
 								console.log('图片地址', result)

+ 4 - 7
pages/news/index.vue

@@ -82,7 +82,7 @@
 			})
 			if (_status == '已禁用') {
 				this.isShowAlert = true
-				this.alertTitle == '账号审核中'
+				this.alertTitle = '账号审核中'
 				this.confirmText = '退出APP'
 				this.showCancelButton = false
 			} else {
@@ -123,7 +123,7 @@
 		methods: {
 			confirmClick() {
 				// #ifdef APP-PLUS
-				if (this.alertTitle == '账号审核中') {
+				if (this.alertTitle = '账号审核中') {
 					if (uni.getSystemInfoSync().platform == 'ios') {
 						plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
 					} else if (uni.getSystemInfoSync().platform == 'android') {
@@ -203,12 +203,8 @@
 				this.mescroll = mescroll;
 			},
 			/*上拉加载的回调: 其中page.num:当前页 从1开始, page.size:每页数据条数,默认10 */
-			upCallback(page) {
+			upCallback(page) {debugger
 				// 此处可以继续请求其他接口
-				// if(page.num == 1){
-				// 	// 请求其他接口...
-				// }
-
 				// 如果希望先请求其他接口,再触发upCallback,可参考以下写法
 				// if(!this.isInitxx){
 				// 	apiGetxx().then(res=>{
@@ -226,6 +222,7 @@
 						pageSize: page.size,
 						currentPage: page.num,
 					}).then(res => {
+						if (page.num == 1) this.news = []; //如果是第一页需手动制空列表
 						this.news = this.news.concat(res.data.records); //追加新数据
 						// this.news = res.data.records
 						this.mescroll.endBySize(res.data.records.length, res.data.total);

+ 2 - 2
pages/order/index.vue

@@ -276,7 +276,7 @@
 			})
 			if (_status == '已禁用') {
 				this.isShowAlert = true
-				this.alertTitle == '账号审核中'
+				this.alertTitle = '账号审核中'
 				this.confirmText = '退出APP'
 				this.showCancelButton = false
 			} else {
@@ -397,7 +397,7 @@
 			},
 			confirmClick() {
 				// #ifdef APP-PLUS
-				if (this.alertTitle == '账号审核中') {
+				if (this.alertTitle = '账号审核中') {
 					if (uni.getSystemInfoSync().platform == 'ios') {
 						plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
 					} else if (uni.getSystemInfoSync().platform == 'android') {