Преглед на файлове

feat(settings): 设置页面

Tim_Walker преди 2 години
родител
ревизия
2cd2a05cc3
променени са 2 файла, в които са добавени 52 реда и са изтрити 0 реда
  1. 46 0
      src/client/settings/index.vue
  2. 6 0
      src/pages.json

+ 46 - 0
src/client/settings/index.vue

@@ -0,0 +1,46 @@
+<template>
+  <view class="container">
+    <view class="main-out-box">
+      <view class="main-inner-box">
+        <u-cell-group :border="false">
+          <u-cell size="large" :border="false" icon="setting-fill" title="系统设置" isLink url=""></u-cell>
+          <u-cell size="large" :border="false" icon="setting-fill" title="权限设置" isLink url=""></u-cell>
+          <u-cell size="large" :border="false" icon="setting-fill" title="切换身份" isLink url=""></u-cell>
+        </u-cell-group>
+      </view>
+    </view>
+
+    <view class="policy-out-box">
+      <view class="policy-inner-box">
+        <u-cell-group :border="false">
+          <u-cell size="large" :border="false" icon="setting-fill" title="隐私管理" isLink url=""></u-cell>
+        </u-cell-group>
+      </view>
+    </view>
+  </view>
+</template>
+
+<style lang="scss" scoped>
+.container {
+  min-height: 100vh;
+  background-color: #efefef;
+  .main-out-box {
+    // margin-top: 20rpx;
+    padding: 20rpx 16rpx;
+    box-sizing: border-box;
+    .main-inner-box {
+      background-color: $uni-bg-color;
+      border-radius: 20rpx;
+    }
+  }
+  .policy-out-box {
+    // margin-top: 20rpx;
+    padding: 20rpx 16rpx;
+    box-sizing: border-box;
+    .policy-inner-box {
+      background-color: $uni-bg-color;
+      border-radius: 20rpx;
+    }
+  }
+}
+</style>

+ 6 - 0
src/pages.json

@@ -43,6 +43,12 @@
           "style": {
             "navigationBarTitleText": "选择城市"
           }
+        },
+        {
+          "path": "settings/index",
+          "style": {
+            "navigationBarTitleText": "设置"
+          }
         }
       ]
     },