提交演示入口

This commit is contained in:
linfeng 2023-05-14 10:21:52 +08:00
parent 072b0f2f25
commit 6dfb588983
2 changed files with 21 additions and 0 deletions

View File

@ -72,6 +72,10 @@
</button>
</u-grid-item>
<!-- #endif -->
<u-grid-item @click="commercialLink">
<image class="gn-icon" src="/static/img/commercial-licensing.png"></image>
<view style="color: #e50000;font-size: 12px;margin-bottom: 20rpx;">商业版</view>
</u-grid-item>
</u-grid>
</view>
<!-- 发贴入口 -->
@ -140,6 +144,23 @@
uni.navigateTo({
url: url
});
},
commercialLink(){
// #ifdef H5
window.open("https://www.linfeng.tech")
// #endif
// #ifdef MP-WEIXIN
uni.navigateToMiniProgram({
appId:'wx1d4a8967c92bda9b',
path:'pages/index/index',
success: res => {
console.log("打开成功", res);
},
fail: err => {
console.log(err);
}
})
// #endif
}
}
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB