ccjgmwz 2 年 前
コミット
5bcb0f3d80
1 ファイル変更7 行追加6 行削除
  1. 7 6
      xiaochengxu/pages/mySet/mySet.vue

+ 7 - 6
xiaochengxu/pages/mySet/mySet.vue

@@ -4,7 +4,7 @@
 			<view class="user flex">
 				<image :src="userInfo.head?userInfo.head:'../../static/imgs/mySet/head.png'" mode="widthFix" class="img"
 					@click="editHead"></image>
-				<view class="name">
+				<view @click="editNickName" class="name">
 					{{userInfo.nickname}}
 				</view>
 			</view>
@@ -95,11 +95,6 @@
 						type: "contactCustomer",
 						src: '../../static/imgs/mySet/kf.png'
 					},
-					{
-						name: "修改昵称",
-						type: 'editNickName',
-						src: '../../static/imgs/mySet/set.png'
-					},
 					{
 						name: "设置",
 						type: 'set',
@@ -183,6 +178,12 @@
 			}
 		},
 		methods: {
+			editNickName(){
+				let _url = '/pages/mySet/editNickName'
+				uni.navigateTo({
+					url: _url
+				})
+			},
 			editHead() {
 				uni.chooseImage({
 					count: 1,