py 2 роки тому
батько
коміт
2e863c13dc
4 змінених файлів з 52 додано та 5 видалено
  1. 30 0
      pages-my/set-user-phone.vue
  2. 12 4
      pages-my/set-user-sex.vue
  3. 3 0
      pages-my/user-info.vue
  4. 7 1
      pages.json

+ 30 - 0
pages-my/set-user-phone.vue

@@ -0,0 +1,30 @@
+<template>
+	<view class="flex-common-css bgc-f">
+		<Nav title=" " titleColor="#333" bgckgroundBox='#fff'></Nav>
+		<scroll-view :scroll-y="true" class="scroll-view-css">
+			<view class="content-box box-border-box">
+				
+			</view>
+		</scroll-view>
+	</view>
+</template>
+
+<script>
+	export default {
+		components: {},
+		data() {
+			return {};
+		},
+		onLoad(data) {},
+		mounted() {},
+		methods: {
+			
+		},
+	}
+</script>
+
+<style lang="scss" scoped>
+.content-box{
+	padding: 32rpx 40rpx 0;
+}
+</style>

+ 12 - 4
pages-my/set-user-sex.vue

@@ -4,11 +4,11 @@
 		<scroll-view :scroll-y="true" class="scroll-view-css">
 			<view class="content-box">
 				<view class="list-box box-border-box mb-80 bgc-f">
-					<view class="item-box flex-justify-space" v-for="(item,index) in sexList" :key="index">
+					<view class="item-box flex-justify-space" v-for="(item,index) in sexList" :key="index" @click="setSex(index)">
 						<view class="fs-32 fc-3">
 							{{item}}
 						</view>
-						<uni-icons color="#57CAFF" type="checkbox-filled" size="25"></uni-icons>
+						<uni-icons v-show="sexId == index" color="#57CAFF" type="checkbox-filled" size="25"></uni-icons>
 					</view>
 				</view>
 				<view class="but-box box-border-box">
@@ -32,7 +32,11 @@
 		},
 		onLoad(data) {},
 		mounted() {},
-		methods: {},
+		methods: {
+			setSex(index) {
+				this.sexId = index
+			}
+		},
 	}
 </script>
 
@@ -44,9 +48,13 @@
 	padding: 0 32rpx;
 }
 .item-box{
-	padding: 32rpx 0;
+	height: 108rpx;
+	line-height: 108rpx;
 	border-bottom: 1rpx solid #EEEEEE;
 }
+.item-box:last-child {
+	border: none;
+}
 .but-box{
 	padding: 0 40rpx;
 }

+ 3 - 0
pages-my/user-info.vue

@@ -68,6 +68,9 @@
 					})
 				} else {
 					// 更换手机号
+					uni.navigateTo({
+						url: '/pages-my/set-user-phone'
+					})
 				}
 			},
 			scrolltolower() {

+ 7 - 1
pages.json

@@ -87,6 +87,12 @@
 						"navigationBarTitleText": "性别设置"
 					}
 				},
+				{
+					"path": "set-user-phone",
+					"style": {
+						"navigationBarTitleText": "更换手机号"
+					}
+				},
 				{
 					"path": "my-ticket",
 					"style": {
@@ -137,7 +143,7 @@
 		"current": 0,
 		"list": [{
 			"name": "列表调试",
-			"path": "pages-my/set-user-sex",
+			"path": "pages-my/set-user-phone",
 			"query": ""
 		}]
 	}