12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <template>
- <view class="notify-container">
- <view class="notify-title">通知设置</view>
- <view class="notify-list">
- <view class="notify-item">
- <view class="item-label">消息推送</view>
- <switch class="item-switch" :checked="notifyPush" @change="val=>notifyPush=val.detail.value" color="#409EFF" />
- </view>
- <view class="divider"></view>
- <view class="notify-item">
- <view class="item-label">声音提醒</view>
- <switch class="item-switch" :checked="sound" @change="val=>sound=val.detail.value" color="#409EFF" />
- </view>
- <view class="divider"></view>
- <view class="notify-item">
- <view class="item-label">系统通知</view>
- <switch class="item-switch" :checked="sysNotify" @change="val=>sysNotify=val.detail.value" color="#409EFF" />
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- notifyPush: true,
- sound: true,
- sysNotify: false
- }
- }
- }
- </script>
- <style lang="scss">
- .notify-container {
- min-height: 100vh;
- background: #f7f8fa;
- padding: 0 0 120rpx 0;
- }
- .notify-title {
- text-align: center;
- font-size: 36rpx;
- font-weight: bold;
- color: #222;
- padding: 48rpx 0 32rpx 0;
- background: #f7f8fa;
- }
- .notify-list {
- background: #fff;
- border-radius: 20rpx;
- margin: 0 24rpx;
- box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.04);
- overflow: hidden;
- }
- .notify-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 32rpx 32rpx;
- background: #fff;
- }
- .item-label {
- font-size: 30rpx;
- color: #333;
- }
- .item-switch {
- transform: scale(0.9);
- }
- .divider {
- height: 1rpx;
- background: #f0f0f0;
- margin: 0 32rpx;
- }
- </style>
|