Uniapp
来自ling
常用链接
https://uniapp.dcloud.io/component/README
https://github.com/HelloWorldFFC/ay-qrcode
常用代码
登陆信息
存在store中,直接使用 func.js
{{userInfo}}
{{isLogin}}
需要登陆才能访问
$u.func.route(url) <view @click="$u.func.route('/pages/user/profile')" class="edit-btn">编辑资料</view>
参数传递
this.domain = uni.getStorageSync('domain'); uni.setStorageSync('domain', 'https://bladex.vip');
<navigator :url="'/pages/test/test?item='+ encodeURIComponent(JSON.stringify(item))"></navigator>
// 在test.vue页面接受参数
onLoad: function (option) {
const item = JSON.parse(decodeURIComponent(option.item));
}