Skip to content

Commit b095f03

Browse files
committed
feat: support navigate to TDesign miniprogram
1 parent ad583d5 commit b095f03

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

miniprogram/pages/my/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ Page({
4141
})
4242
},
4343

44+
handleToMP() {
45+
wx.navigateToMiniProgram({
46+
appId: 'wx6f3e38f61d138c04'
47+
})
48+
},
49+
4450
handleSubscribe() {
4551
const tmpId = 'vjEDlUYrVJ05CauSw_V9jIWF-okt3OMCBtlz9yvjrfg';
4652
wx.requestSubscribeMessage({

miniprogram/pages/my/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
<t-icon name="control-platform" slot="left-icon" />
1919
<t-tag theme="info" slot="note" variant="light-outline">未实现</t-tag>
2020
</t-cell>
21-
<t-cell title="PowerBy" hover arrow bind:click="handleCopy" data-msg="https://github.com/Tencent/tdesign-miniprogram">
21+
<t-cell title="PowerBy" hover arrow bind:click="handleToMP">
2222
<t-icon name="chart-bubble" slot="left-icon" />
2323
<t-tag theme="primary" slot="note" variant="light-outline">TDesign Miniprogram</t-tag>
2424
</t-cell>
25-
<t-cell title="当前版本" hover bind:click="handleCopy" data-msg="https://github.com/Tencent/tdesign-miniprogram">
25+
<t-cell title="当前版本">
2626
<t-icon name="info-circle" slot="left-icon" />
2727
<view slot="note">{{version}}</view>
2828
</t-cell>

0 commit comments

Comments
 (0)