Browse Source

修改密码

mym 1 year ago
parent
commit
63a23e3d72
3 changed files with 30 additions and 20 deletions
  1. 1 1
      pages/market/one/leader/cart.vue
  2. 9 18
      pages/personal/editPassword.vue
  3. 20 1
      pages/personal/my.vue

+ 1 - 1
pages/market/one/leader/cart.vue

@@ -8,7 +8,7 @@
 				<view class="con">
 					<view class="productName omit">{{ item.goodsName }}</view>
 					<view class="desc omit">
-						<text>{{ item.netWeight }}</text>
+						<text>{{ item.netWeight }}</text>
 						<text>{{ item.tradeAreaName }}</text>
 					</view>
 					<view class="price">¥ {{ item.totalPrice }}</view>

+ 9 - 18
pages/personal/editPassword.vue

@@ -4,15 +4,17 @@
 			<view class="flex item">
 				<view>旧密码</view>
 				<view><input class="uni-input" :password="show" maxlength="16" v-model="pwd.oldPassword" placeholder="请输入旧密码" /></view>
+				<view class="label show"><view class="icon" :class="{ active: !show }" @click="show = !show">&#xe7a6;</view></view>
 			</view>
 			<view class="flex item">
 				<view>新密码</view>
-				<view><input class="uni-input" :password="show" maxlength="16" v-model="pwd.newPassword" placeholder="请输入新密码" /></view>
-				<view class="label show"><view class="icon" :class="{ active: !show }" @click="show = !show">&#xe7a6;</view></view>
+				<view><input class="uni-input" :password="newPwd" maxlength="16" v-model="pwd.newPassword" placeholder="请输入新密码" /></view>
+				<view class="label show"><view class="icon" :class="{ active: !newPwd }" @click="newPwd = !newPwd">&#xe7a6;</view></view>
 			</view>
 			<view class="flex item">
 				<view>确认密码</view>
-				<view><input class="uni-input" :password="show" maxlength="16" v-model="pwd.rePassword" placeholder="请再次输入新密码" /></view>
+				<view><input class="uni-input" :password="reNewPwd" maxlength="16" v-model="pwd.rePassword" placeholder="请再次输入新密码" /></view>
+				<view class="label show"><view class="icon" :class="{ active: !reNewPwd }" @click="reNewPwd = !newPwd">&#xe7a6;</view></view>
 			</view>
 			<view class="item">
 				<text style="color: gray;">密码必须是8-16位英文字母、数字、字符组合(不能是纯数字)</text>
@@ -29,21 +31,10 @@
 		data() {
 			return {
 				user: this.getUser(),
-				pwd: [{
-					label: '旧密码',
-					oldPassword: '',
-					isShow: true,
-				},{
-					label: '新密码',
-					newPassword: '',
-					isShow: true,
-				},{
-					label: '确认密码',
-					rePassword: '',
-					isShow: true,
-				}
-				],
-				show: true
+				pwd: {},
+				show: true,
+				newPwd: true,
+				reNewPwd: true,
 			}
 		},
 		methods: {

+ 20 - 1
pages/personal/my.vue

@@ -6,9 +6,29 @@
 				<input v-model="person.name" />
 			</view>
 			<view class="flex item">
+				<view>性别:</view>
+				<input v-model="person.name" />
+			</view>
+			<view class="flex item">
+				<view>年龄:</view>
+				<input v-model="person.name" />
+			</view>
+			<view class="flex item">
 				<view>手机号:</view>
 				<input v-model="person.phone" />
 			</view>
+			<view class="flex item">
+				<view>互助组:</view>
+				<input v-model="person.name" />
+			</view>
+			<view class="flex item">
+				<view>角色:</view>
+				<input v-model="person.name" />
+			</view>
+			<view class="flex item" style="border: none;">
+				<view>地址:</view>
+				<input v-model="person.name" />
+			</view>
 		</view>
 	</view>
 </template>
@@ -60,7 +80,6 @@
 		margin: 20px;
 		padding: 10px;
 		border-radius: 10px;
-		height: 200px;
 		border: 1px #fff solid;
 	}
 	.item{