You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!-- 分销权限弹窗 : 再没有权限时 , 进行提示 -- >
< template >
< su -popup
:show ="state.show"
type = "center"
round = "10"
@ close = "state.show = false"
:isMaskClick ="false"
maskBackgroundColor = "rgba(0, 0, 0, 0.7)"
>
< view class = "notice-box" >
< view class = "img-wrap" >
< image
class = "notice-img"
:src ="sheep.$url.static('/static/img/shop/commission/forbidden.png')"
mode = "aspectFill"
/ >
< / view >
< view class = "notice-title" > 抱歉 ! 您没有分销权限 < / view >
< view class = "notice-detail" > 该功能暂不可用 < / view >
< button
class = "ss-reset-button notice-btn ui-Shadow-Main ui-BG-Main-Gradient"
@tap ="sheep.$router.back()"
>
知道了
< / button >
< button class = "ss-reset-button back-btn" @tap ="sheep.$router.back()" > 返 回 < / button >
< / view >
< / su -popup >
< / template >
< script setup >
import { onShow } from '@dcloudio/uni-app' ;
import sheep from '@/sheep' ;
import { reactive } from 'vue' ;
import BrokerageApi from '@/sheep/api/trade/brokerage' ;
const state = reactive ( {
show : false ,
} ) ;
onShow ( async ( ) => {
// 读取是否有分销权限
const { code , data } = await BrokerageApi . getBrokerageUser ( ) ;
if ( code === 0 && ! data ? . brokerageEnabled ) {
state . show = true ;
}
} ) ;
< / script >
< style lang = "scss" scoped >
. notice - box {
display : flex ;
flex - direction : column ;
justify - content : center ;
align - items : center ;
background - color : # fff ;
width : 612 rpx ;
min - height : 658 rpx ;
background : # ffffff ;
padding : 30 rpx ;
border - radius : 20 rpx ;
. img - wrap {
margin - bottom : 50 rpx ;
. notice - img {
width : 180 rpx ;
height : 170 rpx ;
}
}
. notice - title {
font - size : 35 rpx ;
font - weight : bold ;
color : # 333 ;
margin - bottom : 28 rpx ;
}
. notice - detail {
font - size : 28 rpx ;
font - weight : 400 ;
color : # 999999 ;
line - height : 36 rpx ;
margin - bottom : 50 rpx ;
}
. notice - btn {
width : 492 rpx ;
line - height : 70 rpx ;
border - radius : 35 rpx ;
font - size : 28 rpx ;
font - weight : 500 ;
color : # ffffff ;
margin - bottom : 10 rpx ;
}
. back - btn {
width : 492 rpx ;
line - height : 70 rpx ;
font - size : 28 rpx ;
font - weight : 500 ;
color : var ( -- ui - BG - Main - gradient ) ;
background : none ;
}
}
< / style >