lxs 3 anos atrás
pai
commit
9d3de9141f
1 arquivos alterados com 5 adições e 6 exclusões
  1. 5 6
      pages/sign_up/sign_up.vue

+ 5 - 6
pages/sign_up/sign_up.vue

@@ -304,8 +304,7 @@ export default {
 				const s_v = Object.values(s)
 				t_len = tmplIds.filter(id => s_k.indexOf(id) !== -1).length
 			}
-			
-			if(!s && t_len) {
+			if(!s || t_len !== t_alen) {
 				uni.requestSubscribeMessage({
 					tmplIds,
 					success(res) {
@@ -476,8 +475,8 @@ export default {
 							id_code: this.signedInfo.id_code,
 							detail: this.signedInfo.detail,
 							sex: this.signedInfo.sex,
-							join_one_num: !this.userInfo.type ? this.join_num : '',
-							join_two_num: this.userInfo.type ? this.join_num : ''
+							join_one_num: Number(this.userInfo.season_type) ? this.join_num : '',
+							join_two_num: Number(this.userInfo.season_type) ? this.join_num : ''
 						}
 					}).then(res => {
 						if (res.code == 200) {
@@ -503,8 +502,8 @@ export default {
 					id_code: this.signedInfo.id_code,
 					detail: this.signedInfo.detail,
 					sex: this.signedInfo.sex,
-					join_one_num: !this.userInfo.type ? this.join_num : '',
-					join_two_num: this.userInfo.type ? this.join_num : ''
+					join_one_num: Number(this.userInfo.season_type) ? this.join_num : '',
+					join_two_num: Number(this.userInfo.season_type) ? this.join_num : ''
 				}
 			}).then(res => {
 				if (res.code == 200) {