mpvue

1: 路由跳转使用微信的
   wx.navigateTo({
        url: "../comdetails/main"
      });

if (mpvuePlatform === 'wx') {
mpvue.switchTab({
url
})
} else {
mpvue.navigateTo({
url
})
}javascript

 

2:  接收路由传参:
  this.$root.$mp.query.key;

3:vux的使用
 须要在使用的页面引入
import store from '@/vuex/store';

 使用值:store.state.key
 
commit的使用:
store.commit('increment', 1);

4:第三方ui的使用
下载第三方包  放在static下
 在须要引入的页面的。json添加配置
 {
  "navigationBarTitleText": "提莫",//title
  "usingComponents": {
//对应的组件
    "van-button": "/static/vant/dist/button/index"

  }
}5:背景图问题最大8K ; 使用在线
相关文章
相关标签/搜索