Przeglądaj źródła

再次注册文字修改

wgl 4 lat temu
rodzic
commit
22aba493c7
1 zmienionych plików z 15 dodań i 1 usunięć
  1. 15 1
      src/projects/home/views/Register/Home.vue

+ 15 - 1
src/projects/home/views/Register/Home.vue

@@ -5,7 +5,7 @@
 
 		<div class="mui-content margin60">
 			<div class="mui-content-padded">
-				<h5>该号码尚未注册,正在为您注册新的身份:</h5>
+				<h5 v-text="titleTips"></h5>
 			</div>
 			<div class="mui-content-padded vongi-editme vongi-qingjiadt">
 				<form class="mui-input-group">
@@ -155,6 +155,20 @@
 
 		},
 		computed: {
+			titleTips: {
+				// getter
+				get: function() {
+					if (this.person_popedom) {
+						return '该账号已注册' + this.person_popedom.job + '身份,正在为您注册新的身份:';
+					} else {
+						return '该号码尚未注册,正在为您注册新的身份:';
+					}
+				},
+				// setter
+				set: function(newValue) {
+					console.log(newValue)
+				}
+			},
 			...mapGetters({
 				openId: 'wx_openid',
 				token: 'token',