1.uniapp’s h5 project installation plug-in
npm install --save weixin-js-sdk
2. Add an event in the h5 project to return to the vue page of the mini program and import the plug-in
import wx from 'weixin-js-sdk'
3. Directly add a click method to return to the mini program homepage
//回到小程序首页
goHome() {
console.log('回到小程序')
wx.miniProgram.switchTab({
url: '/pages/index/index',
})
},
3. Conclusion:
886
My Bilibili Space
Gitee warehouse address: All special effects source code
Other articles:
~Follow me to see more simple creative special effects:
text smoke effect html+css+js
surround reflection loading special effect html+css
bubble floating background special effect html+css
simple Clock special effect html+css+js
cyberpunk style button html+css
imitation NetEase Cloud official website carousel image html+css+js
water wave loading animation html+css
navigation bar scrolling gradient effect html+css+js
book page turning html+css
3D Three-dimensional photo album html+css
neon drawing board effect html+css+js
note some css attribute summary (1)
Sass summary note
... Wait and
go to my homepage to see more~