1 line
7.4 KiB
Plaintext
1 line
7.4 KiB
Plaintext
|
{"version":3,"file":"setting.js","sources":["../../../../../../src/modules/mall/public/setting.vue","../../../../../../uniPage:/bW9kdWxlc1xtYWxsXHB1YmxpY1xzZXR0aW5nLnZ1ZQ"],"sourcesContent":["<template>\r\n <s-layout class=\"set-wrap\" title=\"系统设置\" :bgStyle=\"{ color: '#fff' }\">\r\n <view class=\"header-box ss-flex-col ss-row-center ss-col-center\">\r\n <image\r\n class=\"logo-img ss-m-b-46\"\r\n :src=\"sheep.$url.cdn(appInfo.logo)\"\r\n mode=\"aspectFit\"\r\n ></image>\r\n <view class=\"name ss-m-b-24\">{{ appInfo.name }}</view>\r\n </view>\r\n\r\n <view class=\"container-list\">\r\n <uni-list :border=\"false\">\r\n <uni-list-item\r\n title=\"当前版本\"\r\n :rightText=\"appInfo.version\"\r\n showArrow\r\n clickable\r\n :border=\"false\"\r\n class=\"list-border\"\r\n @tap=\"onCheckUpdate\"\r\n />\r\n <uni-list-item\r\n title=\"本地缓存\"\r\n :rightText=\"storageSize\"\r\n showArrow\r\n :border=\"false\"\r\n class=\"list-border\"\r\n />\r\n <uni-list-item\r\n title=\"关于我们\"\r\n showArrow\r\n clickable\r\n :border=\"false\"\r\n class=\"list-border\"\r\n @tap=\"\r\n sheep.$router.go('/modules/mall/public/richtext', {\r\n title: '关于我们',\r\n })\r\n \"\r\n />\r\n <!-- 为了过审 只有 iOS-App 有注销账号功能 -->\r\n <uni-list-item\r\n v-if=\"isLogin && sheep.$platform.os === 'ios' && sheep.$platform.name === 'App'\"\r\n title=\"注销账号\"\r\n rightText=\"\"\r\n showArrow\r\n clickable\r\n :border=\"false\"\r\n class=\"list-border\"\r\n @click=\"onLogoff\"\r\n />\r\n </uni-list>\r\n </view>\r\n <view class=\"set-footer ss-flex-col ss-row-center ss-col-center\">\r\n <view class=\"agreement-box ss-flex ss-col-center ss-m-b-40\">\r\n <view class=\"ss-flex ss-col-center ss-m-b-10\">\r\n <view\r\n class=\"tcp-text\"\r\n @tap=\"\r\n sheep.$router.go('/modules/mall/public/richtext', {\r\n title: '用户协议',\r\n })\r\n \"\r\n >\r\n 《用户协议》\r\n </view>\r\n <view class=\"agreement-text\">与</view>\r\n <view\r\n class=\"tcp-text\"\r\n @tap=\"\r\n sheep.$router.go('/modules/mall/public/richtext', {\r\n title: '隐私协议',\r\n })\r\n \"\r\n >\r\n 《隐私协议》\r\n </view>\r\n </view>\r\n </view>\r\n <view class=\"copyright-text ss-m-b-10\">{{ appInfo.copyright }}</view>\r\n <view class=\"copyright-text\">{{ appInfo.copytime }}</view>\r\n </view>\r\n <su-fixed bottom placeholder>\r\n <view class=\"ss-p-x-20 ss-p-b-40\">\r\n <button\r\n class=\"loginout-btn ss-reset-button ui-BG-Main ui-Shadow-Main\"\r\n @tap=\"onLogout\"\r\n v-if=\"isLogin\"\r\n >\r\n 退出登录\r\n </button>\r\n </view>\r\n </su-fixed>\r\n </s-layout>\r\n</template>\r\n\r\n<script setup>\r\nimport sheep from '@/sheep'\r\nimport { computed, reactive } from 'vue'\r\nimport AuthUtil from '@/sheep/api/member/auth'\r\n\r\nconst appInfo = computed(() => sheep.$store('app').info)\r\nconst isLogin = computed(() => sheep.$store('user').isLogin)\r\nconst storageSize = uni.getStorageInfoSync().currentSize + 'Kb'\r\nconst state = reactive({\r\n showModal: false,\r\n})\r\n\r\nfunction onCheckUpdate() {\r\n sheep.$platform.checkUpdate()\r\n // 小程序初始化时已检查更新\r\n // H5实时更新无需检查\r\n // App 1.跳转应用市场更新 2.手动热更新 3.整包更新\r\n}\r\n\r\n// 注销账号\r\nfunction onLogoff() {\r\n uni.showModal({\r\n title: '提示
|