Browse Source

feat(privacy): 新增个人信息及隐私保护政策页面

添加policy1页面及相关路由配置,包含wxml、json、scss和ts文件
更新app.json中的页面路由和index页面的跳转链接
master
kola-web 5 days ago
parent
commit
bc5e69b95e
  1. 2
      src/app.json
  2. 2
      src/doctor/pages/loginForm/index.wxml
  3. 2
      src/pages/index/index.ts
  4. 7
      src/privacy/pages/policy1/index.json
  5. 64
      src/privacy/pages/policy1/index.scss
  6. 14
      src/privacy/pages/policy1/index.ts
  7. 5
      src/privacy/pages/policy1/index.wxml

2
src/app.json

@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
},
{
"root": "privacy",
"pages": ["pages/policy/index"]
"pages": ["pages/policy/index", "pages/policy1/index"]
}
],
"window": {

2
src/doctor/pages/loginForm/index.wxml

@ -82,7 +82,7 @@ @@ -82,7 +82,7 @@
bindconfirm="handleSearch"
/>
</view>
<pickerArea bindchange="handleChange">
<pickerArea pname="{{provinceName}}" pid="{{provinceId}}" cname="{{cityName}}" cid="{{cityId}}" bindchange="handleChange">
<view class="options">
<view class="o-item">
<view class="content">{{provinceName || '请选择省份'}}</view>

2
src/pages/index/index.ts

@ -342,7 +342,7 @@ Page({ @@ -342,7 +342,7 @@ Page({
},
handleAgreement() {
wx.navigateTo({
url: '/privacy/pages/policy/index',
url: '/privacy/pages/policy1/index',
})
},

7
src/privacy/pages/policy1/index.json

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
{
"navigationBarTitleText": "个人信息及隐私保护政策",
"usingComponents": {
"navbar": "/components/navbar/index",
"mp-html": "mp-html"
}
}

64
src/privacy/pages/policy1/index.scss

@ -0,0 +1,64 @@ @@ -0,0 +1,64 @@
.privacy-page {
min-height: 100vh;
background: #f8fafa;
padding: 32rpx;
box-sizing: border-box;
.content {
background: #fff;
border-radius: 16rpx;
padding: 40rpx 32rpx;
font-size: 28rpx;
line-height: 1.8;
color: #333;
rich-text {
display: block;
h2 {
font-size: 36rpx;
font-weight: 600;
color: #333;
margin: 48rpx 0 24rpx;
line-height: 1.4;
&:first-child {
margin-top: 0;
}
}
h3 {
font-size: 32rpx;
font-weight: 600;
color: #333;
margin: 32rpx 0 16rpx;
line-height: 1.4;
}
p {
margin: 16rpx 0;
text-align: justify;
}
ul, ol {
margin: 16rpx 0;
padding-left: 40rpx;
}
li {
margin: 8rpx 0;
}
strong {
font-weight: 600;
color: #333;
}
hr {
border: none;
border-top: 1rpx solid #e5e5e5;
margin: 32rpx 0;
}
}
}
}

14
src/privacy/pages/policy1/index.ts

File diff suppressed because one or more lines are too long

5
src/privacy/pages/policy1/index.wxml

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
<view class="privacy-page">
<view class="content">
<mp-html content="{{content}}" />
</view>
</view>
Loading…
Cancel
Save