acdr-ui/dist/dev/mp-weixin/modules/mall/commission/components/commission-auth.js.map

1 line
3.4 KiB
Plaintext
Raw Normal View History

2024-09-19 07:20:14 +08:00
{"version":3,"file":"commission-auth.js","sources":["../../../../../../../src/modules/mall/commission/components/commission-auth.vue","../../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy9tb2R1bGVzL21hbGwvY29tbWlzc2lvbi9jb21wb25lbnRzL2NvbW1pc3Npb24tYXV0aC52dWU"],"sourcesContent":["<!-- 分销权限弹窗:再没有权限时,进行提示 -->\r\n<template>\r\n <su-popup\r\n :show=\"state.show\"\r\n type=\"center\"\r\n round=\"10\"\r\n @close=\"state.show = false\"\r\n :isMaskClick=\"false\"\r\n maskBackgroundColor=\"rgba(0, 0, 0, 0.7)\"\r\n >\r\n <view class=\"notice-box\">\r\n <view class=\"img-wrap\">\r\n <image\r\n class=\"notice-img\"\r\n :src=\"sheep.$url.static('/static/img/shop/commission/forbidden.png')\"\r\n mode=\"aspectFill\"\r\n />\r\n </view>\r\n <view class=\"notice-title\">抱歉!您没有分销权限</view>\r\n <view class=\"notice-detail\">该功能暂不可用</view>\r\n <button\r\n class=\"ss-reset-button notice-btn ui-Shadow-Main ui-BG-Main-Gradient\"\r\n @tap=\"sheep.$router.back()\"\r\n >\r\n 知道了\r\n </button>\r\n <button class=\"ss-reset-button back-btn\" @tap=\"sheep.$router.back()\">返回</button>\r\n </view>\r\n </su-popup>\r\n</template>\r\n\r\n<script setup>\r\nimport { onShow } from '@dcloudio/uni-app'\r\nimport sheep from '@/sheep'\r\nimport { reactive } from 'vue'\r\nimport BrokerageApi from '@/sheep/api/trade/brokerage'\r\n\r\nconst state = reactive({\r\n show: false,\r\n})\r\n\r\nonShow(async () => {\r\n // 读取是否有分销权限\r\n const { code, data } = await BrokerageApi.getBrokerageUser()\r\n if (code === 0 && !data?.brokerageEnabled) {\r\n state.show = true\r\n }\r\n})\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n \r\n.notice-box {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n width: 612rpx;\r\n min-height: 658rpx;\r\n padding: 30rpx;\r\n background: #ffffff;\r\n background-color: #fff;\r\n border-radius: 20rpx;\r\n .img-wrap {\r\n margin-bottom: 50rpx;\r\n .notice-img {\r\n width: 180rpx;\r\n height: 170rpx;\r\n }\r\n }\r\n .notice-title {\r\n margin-bottom: 28rpx;\r\n font-size: 35rpx;\r\n font-weight: bold;\r\n color: #333;\r\n }\r\n .notice-detail {\r\n margin-bottom: 50rpx;\r\n font-size: 28rpx;\r\n font-weight: 400;\r\n line-height: 36rpx;\r\n color: #999999;\r\n }\r\n .notice-btn {\r\n width: 492rpx;\r\n margin-bottom: 10rpx;\r\n font-size: 28rpx;\r\n font-weight: 500;\r\n line-height: 70rpx;\r\n color: #ffffff;\r\n border-radius: 35rpx;\r\n }\r\n .back-btn {\r\n width: 492rpx;\r\n font-size: 28rpx;\r\n font-weight: 500;\r\n line-height: 70rpx;\r\n color: var(--ui-BG-Main-gradient);\r\n background: none;\r\n }\r\n}\r\n</style>\r\n","import Component from 'D:/App/Work/addr/acdr-ui/src/modules/mall/commission/components/commission-auth.vue'\nwx.createComponent(Component)"],"names":["reactive","onShow","BrokerageApi"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,UAAM,QAAQA,cAAAA,SAAS;AAAA,MACrB,MAAM;AAAA,IACR,CAAC;AAEDC,kBAAAA,OAAO,MAAY;AAEjB,YAAM,EAAE,MAAM,KAAM,IAAG,MAAMC,0BAAAA,aAAa,iBAAkB;AAC5D,UAAI,SAAS,KAAK,EAAC,6BAAM,mBAAkB;AACzC,cAAM,OAAO;AAAA,MACd;AAAA,IACH,EAAC;;;;;;;;;;;;;;;;;;;AC9CD,GAAG,gBAAgB,SAAS;"}