请求后端接口通过店铺id,生成小程序太阳码
this.$http.post(`/queryStoreQrCode`, {
storeId: this.storeId
}).then(res => {
if (res.status == 0) {
this.storeInfo.url= res.data.url
}
})
扫码二维码,跳转到小程序用户店铺,接收店铺id
onLoad(options) {
this.storeId = options.scene // 分享的太阳码跳转位置参数接收
}