Bläddra i källkod

新增个人中心设置页

LinWuTai 20 timmar sedan
förälder
incheckning
6985d675ba

+ 2 - 2
pages/personalCenter/personalCenter.vue

@@ -142,9 +142,9 @@
 					<view class="iconfont icon-chevron-right"></view>
 				</view>
 			</view>
-			<view class="menu-item-box" @click="onSheZhi()" v-if="false">
+			<view class="menu-item-box" @click="onSheZhi()">
 				<view class="icon-box">
-					<view class="iconfont icon-shezhi"></view>
+					<view class="iconfont icon-yinsishezhi"></view>
 				</view>
 				<view class="content-box">
 					设置

+ 19 - 5
pages/setting/cancelAccount/cancelAccount.vue

@@ -29,22 +29,32 @@
 <script setup>
 	import { ref, reactive } from 'vue'
 	import { onLoad, onReady } from '@dcloudio/uni-app'
+	import { msgError, msgSuccess, showConfirm } from '@/utils/common'
 	
 	const formRef = ref()
 	const formData = reactive({
 		form: {
-			email: null
+			phone: null,
+			code: null
 		},
 		rules: {
-			email: [
+			phone: [
 				{ 
 					required: true, 
-					message: '请输入电子邮箱', 
+					message: '请输入绑定手机号', 
 					// 可以单个或者同时写两个触发验证方式 
 					trigger: 'blur',
 				}
-			]
-		},
+			],
+			code: [
+				{ 
+					required: true, 
+					message: '请输入验证码', 
+					// 可以单个或者同时写两个触发验证方式 
+					trigger: 'blur',
+				}
+			],
+		}
 	})
 	const tips = ref('获取验证码') // 59秒重新获取
 	
@@ -52,6 +62,10 @@
 		formRef.value.validate((valid) => {
 			if (valid) {
 				// 提交
+				showConfirm('是否确认注销').then(res => {
+				 	if (res.confirm) {
+				 	}
+				})
 			}
 		})
 	}

+ 16 - 7
pages/setting/removeInfo/removeInfo.vue

@@ -13,21 +13,22 @@
 			</u-checkbox-group>
 		</view>
 		<view class="bottom-box">
-			<u-button type="primary" shape="circle" @click="onSubmit">提交</u-button>
+			<u-button type="primary" shape="circle" @click="onSubmit" :disabled="isSelect">提交</u-button>
 		</view>
 	</view>
 </template>
 
 <script setup>
-	import { ref, reactive } from 'vue'
+	import { ref, reactive, computed } from 'vue'
 	import { onLoad, onReady } from '@dcloudio/uni-app'
+	import { msgError, msgSuccess, showConfirm } from '@/utils/common'
 	
 	const checkOption = ref([
-		{
-			name: '浏览记录',
-			checked: false,
-			disabled: false
-		},
+		// {
+		// 	name: '浏览记录',
+		// 	checked: false,
+		// 	disabled: false
+		// },
 		{
 			name: '收藏',
 			checked: false,
@@ -40,11 +41,19 @@
 		}
 	])
 	
+	const isSelect = computed(() => {
+		return checkOption.value.filter(item => item.checked).length === 0
+	})
+	
 	function checkboxGroupChange() {
 		
 	}
 	
 	function onSubmit() {
+		showConfirm('是否确认删除').then(res => {
+		 	if (res.confirm) {
+		 	}
+		})
 	}
 </script>
 

+ 3 - 3
pages/setting/setting.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="container">
-		<view class="menu-item-box" @click="onUpdateTel">
+		<view class="menu-item-box" @click="onUpdateTel" v-if="false">
 			<view class="lebal-box">
 				手机号 123xxxxxx4567
 			</view>
@@ -11,7 +11,7 @@
 				<view class="iconfont icon-chevron-right"></view>
 			</view>
 		</view>
-		<view class="menu-item-box" @click="onUpdatePwd">
+		<view class="menu-item-box" @click="onUpdatePwd" v-if="false">
 			<view class="lebal-box">
 				修改密码
 			</view>
@@ -19,7 +19,7 @@
 				<view class="iconfont icon-chevron-right"></view>
 			</view>
 		</view>
-		<view class="menu-item-box" @click="onInfoExport">
+		<view class="menu-item-box" @click="onInfoExport" v-if="false">
 			<view class="lebal-box">
 				个人信息副本导出
 			</view>

+ 7 - 3
static/fonts/iconfont.css

@@ -1,8 +1,8 @@
 @font-face {
   font-family: "iconfont"; /* Project id 4808041 */
-  src: url('iconfont.woff2?t=1748424242246') format('woff2'),
-       url('iconfont.woff?t=1748424242246') format('woff'),
-       url('iconfont.ttf?t=1748424242246') format('truetype');
+  src: url('iconfont.woff2?t=1752731196547') format('woff2'),
+       url('iconfont.woff?t=1752731196547') format('woff'),
+       url('iconfont.ttf?t=1752731196547') format('truetype');
 }
 
 .iconfont {
@@ -13,6 +13,10 @@
   -moz-osx-font-smoothing: grayscale;
 }
 
+.icon-yinsishezhi:before {
+  content: "\e612";
+}
+
 .icon-shangchuanchenggong:before {
   content: "\e6bc";
 }

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
static/fonts/iconfont.js


+ 7 - 0
static/fonts/iconfont.json

@@ -6,6 +6,13 @@
   "description": "",
   "glyphs": [
     {
+      "icon_id": "31426007",
+      "name": "隐私设置",
+      "font_class": "yinsishezhi",
+      "unicode": "e612",
+      "unicode_decimal": 58898
+    },
+    {
       "icon_id": "18261848",
       "name": "上传成功",
       "font_class": "shangchuanchenggong",

BIN
static/fonts/iconfont.ttf


BIN
static/fonts/iconfont.woff


BIN
static/fonts/iconfont.woff2


Vissa filer visades inte eftersom för många filer har ändrats