acdr-ui/dist/dev/mp-weixin/modules/mall/public/setting.js.map

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: '提示',\r\n content: '确认注销账号?',\r\n success: async function (res) {\r\n if (!res.confirm) {\r\n return\r\n }\r\n const { code } = await AuthUtil.logout()\r\n if (code !== 0) {\r\n return\r\n }\r\n sheep.$store('user').logout()\r\n sheep.$router.go('/modules/mall/index/user')\r\n },\r\n })\r\n}\r\n\r\n// 退出账号\r\nfunction onLogout() {\r\n uni.showModal({\r\n title: '提示',\r\n content: '确认退出账号?',\r\n success: async function (res) {\r\n if (!res.confirm) {\r\n return\r\n }\r\n const { code } = await AuthUtil.logout()\r\n if (code !== 0) {\r\n return\r\n }\r\n sheep.$store('user').logout()\r\n sheep.$router.go('/modules/mall/index/user')\r\n },\r\n })\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n \r\n.container-list {\r\n width: 100%;\r\n}\r\n\r\n.set-title {\r\n margin: 0 30rpx;\r\n}\r\n\r\n.header-box {\r\n padding: 100rpx 0;\r\n\r\n .logo-img {\r\n width: 160rpx;\r\n height: 160rpx;\r\n border-radius: 50%;\r\n }\r\n\r\n .name {\r\n font-size: 42rpx;\r\n font-weight: 400;\r\n color: $dark-3;\r\n }\r\n\r\n .version {\r\n font-size: 32rpx;\r\n font-weight: 500;\r\n line-height: 32rpx;\r\n color: $gray-b;\r\n }\r\n}\r\n\r\n.set-footer {\r\n margin: 100rpx 0 0 0;\r\n\r\n .copyright-text {\r\n font-size: 22rpx;\r\n font-weight: 500;\r\n line-height: 30rpx;\r\n color: $gray-c;\r\n }\r\n\r\n .agreement-box {\r\n font-size: 26rpx;\r\n font-weight: 500;\r\n\r\n .tcp-text {\r\n color: var(--ui-BG-Main);\r\n }\r\n\r\n .agreement-text {\r\n color: $dark-9;\r\n }\r\n }\r\n}\r\n\r\n.loginout-btn {\r\n width: 100%;\r\n height: 80rpx;\r\n font-size: 30rpx;\r\n border-radius: 40rpx;\r\n}\r\n\r\n.list-border {\r\n font-size: 28rpx;\r\n font-weight: 400;\r\n color: #333333;\r\n border-bottom: 2rpx solid #eeeeee;\r\n}\r\n\r\n:deep(.uni-list-item__content-title) {\r\n font-size: 28rpx;\r\n font-weight: 500;\r\n color: #333;\r\n}\r\n\r\n:deep(.uni-list-item__extra-text) {\r\n font-size: 28rpx;\r\n color: #bbbbbb;\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/App/Work/addr/acdr-ui/src/modules/mall/public/setting.vue'\nwx.createPage(MiniProgramPage)"],"names":["computed","sheep","uni","reactive","AuthUtil"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsGA,UAAA,UAAAA,cAAA,SAAA,MAAAC,YAAAA,MAAA,OAAA,KAAA,EAAA,IAAA;AACA,UAAA,UAAAD,cAAA,SAAA,MAAAC,YAAAA,MAAA,OAAA,MAAA,EAAA,OAAA;AACA,UAAA,cAAAC,cAAA,MAAA,mBAAA,EAAA,cAAA;AACAC,kBAAAA,SAAA;AAAA,MACA,WAAA;AAAA,IACA,CAAA;AAEA,aAAA,gBAAA;AACAF,kBAAA,MAAA,UAAA,YAAA;AAAA,IAIA;AAGA,aAAA,WAAA;AACAC,oBAAAA,MAAA,UAAA;AAAA,QACA,OAAA;AAAA,QACA,SAAA;AAAA,QACA,SAAA,SAAA,KAAA;AAAA;AACA,gBAAA,CAAA,IAAA,SAAA;AACA;AAAA,YACA;AACA,kBAAA,EAAA,KAAA,IAAA,MAAAE,sBAAAA,SAAA,OAAA;AACA,gBAAA,SAAA,GAAA;AACA;AAAA,YACA;AACAH,wBAAAA,MAAA,OAAA,MAAA,EAAA,OAAA;AACAA,8BAAA,QAAA,GAAA,0BAAA;AAAA,UACA;AAAA;AAAA,MACA,CAAA;AAAA,IACA;AAGA,aAAA,WAAA;AACAC,oBAAAA,MAAA,UAAA;AAAA,QACA,OAAA;AAAA,QACA,SAAA;AAAA,QACA,SAAA,SAAA,KAAA;AAAA;AACA,gBAAA,CAAA,IAAA,SAAA;AACA;AAAA,YACA;AACA,kBAAA,EAAA,KAAA,IAAA,MAAAE,sBAAAA,SAAA,OAAA;AACA,gBAAA,SAAA,GAAA;AACA;AAAA,YACA;AACAH,wBAAAA,MAAA,OAAA,MAAA,EAAA,OAAA;AACAA,8BAAA,QAAA,GAAA,0BAAA;AAAA,UACA;AAAA;AAAA,MACA,CAAA;AAAA,IACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACvJA,GAAG,WAAW,eAAe;"}