Pārlūkot izejas kodu

默认昵称拉取授权

xhj 2 gadi atpakaļ
vecāks
revīzija
6c59bd7927

+ 1 - 1
card/cardDetail/cardDetail.vue

@@ -144,7 +144,7 @@
 			submit(){
 				let userInfo = req.getStorage('userInfo');
 				console.log('updateInfo userInfo.avatar',userInfo.avatar)
-				if (!userInfo.avatar || userInfo.nickName == '微信用户') {
+				if (!userInfo.avatar || !userInfo.nickName || userInfo.avatar.indexOf('thirdwx.qlogo') > -1 || userInfo.nickName.indexOf('用户') > -1) {
 					this.isShowUpdate = true
 					this.isUpdateInfo = true
 					return false

+ 1 - 1
card/index/index.vue

@@ -1066,7 +1066,7 @@ import util from '../../utils/util.js';
 			bindSale(){
 				let userInfo = req.getStorage('userInfo');
 				console.log('updateInfo userInfo.avatar',userInfo.avatar)
-				if (!userInfo.avatar || userInfo.nickName == '微信用户') {
+				if (!userInfo.avatar || !userInfo.nickName || userInfo.avatar.indexOf('thirdwx.qlogo') > -1 || userInfo.nickName.indexOf('用户') > -1) {
 					this.isShowUpdate = true
 					this.isUpdateInfo = true
 					return false

+ 1 - 1
components/service-contact/index.vue

@@ -112,7 +112,7 @@
 			bindSale(){
 				let userInfo = req.getStorage('userInfo');
 				console.log('updateInfo userInfo.avatar',userInfo.avatar)
-				if (!userInfo.avatar || userInfo.nickName == '微信用户') {
+				if (!userInfo.avatar || !userInfo.nickName || userInfo.avatar.indexOf('thirdwx.qlogo') > -1 || userInfo.nickName.indexOf('用户') > -1) {
 					this.isShowUpdate = true
 					this.isUpdateInfo = true
 					return false