添加组件
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
Component({
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
navIndex: function () {
|
||||
wx.switchTab({
|
||||
url: "/pages/index/index",
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-empty": "tdesign-miniprogram/empty/empty"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<view style="min-height: 95vh;display: flex;justify-content: center;flex-direction: column;">
|
||||
<t-empty icon="info-circle-filled">
|
||||
<view slot="description" style="color: #000;">
|
||||
<view>抱歉!您当前没有权限访问该页面</view>
|
||||
<view>如果您是主账号,请购买相应的增值包</view>
|
||||
<view>如果您是子账号,请联系管理员进行相应的授权</view>
|
||||
</view>
|
||||
<t-button theme="primary" slot="action" bind:tap="navIndex">前往首页</t-button>
|
||||
</t-empty>
|
||||
</view>
|
||||
@@ -1 +0,0 @@
|
||||
/* components/page-plugin/index.wxss */
|
||||
@@ -2,7 +2,7 @@
|
||||
<view wx:if="{{!isAuth}}" style="padding: 12px;padding-bottom: env(safe-area-inset-bottom);{{style ||''}}">
|
||||
<slot></slot>
|
||||
</view>
|
||||
<no_auth_plugin wx:else />
|
||||
<no-auth-plugin wx:else />
|
||||
</block>
|
||||
<block wx:else>
|
||||
<!-- <loading_plugin wx:if="{{loading}}" /> -->
|
||||
@@ -34,4 +34,4 @@
|
||||
《{{appletName}}隐私权政策》</t-link>
|
||||
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// pages/components/popup-plugin/index.ts
|
||||
Component({
|
||||
/**
|
||||
* 组件的属性列表
|
||||
@@ -5,4 +5,4 @@
|
||||
<view style="max-height: 70vh;overflow: auto;">
|
||||
<slot></slot>
|
||||
</view>
|
||||
</t-popup>
|
||||
</t-popup>
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
Reference in New Issue
Block a user