添加组件

This commit is contained in:
zhengw
2026-01-08 17:13:44 +08:00
parent 55523a761f
commit 8a3d3ac60e
16 changed files with 51 additions and 12 deletions

View File

@@ -0,0 +1,22 @@
Component({
/**
* 组件的属性列表
*/
properties: {},
/**
* 组件的初始数据
*/
data: {},
/**
* 组件的方法列表
*/
methods: {
navIndex: function () {
wx.switchTab({
url: "/pages/index/index",
});
},
},
});

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"t-empty": "tdesign-miniprogram/empty/empty"
}
}

View File

@@ -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>