作者 刘朕

分享调试

{
"name" : "car_draw",
"appid" : "__UNI__224076A",
"appid" : "__UNI__7762785",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
... ... @@ -79,6 +79,7 @@
}
},
"title" : "同放汽车互联网4S店",
"template" : "index.html"
"template" : "index.html",
"domain" : "https://h5.goorcar.com"
}
}
... ...
... ... @@ -486,13 +486,14 @@
}
},
onLoad(e) {
uni.setStorageSync('token', '8c37bcf6-3690-49a3-949e-fb1e4abbdcb1')
// uni.setStorageSync('token', '8c37bcf6-3690-49a3-949e-fb1e4abbdcb1')
if (e.id != undefined) {
this.id = e.id
this.share.img = e.image
this.share.title = e.title
this.share.content = e.content
}
// console.log(this.share.title,encodeURIComponent(this.share.title),'846874656546');
//公众号轮播图列表
/* this.$request('/api/gzh_banner/index').then((res)=>{
this.list = res.data
... ... @@ -538,8 +539,9 @@
// desc: '抢红旗8000元购车礼包',
desc: this.share.content,
link: window.location.href.split('?')[0] +
'?user_id=' + this.user_id + '&id=' + this
.id,
'?user_id=' + this.user_id + '&id=' + this.id +
'&image=' + encodeURIComponent(this.share.img) + '&title=' + encodeURIComponent(this.share.title) +
'&content=' + encodeURIComponent(this.share.content),
// imgUrl: 'http://chemai.qiniu.brotop.cn/uploads/20220116/c5c4d30f273c1d137514e59de0a3aa6f.jpg',
imgUrl: this.share.img,
//设置成功
... ... @@ -562,14 +564,14 @@
},
onShow() {
// 判断是否在微信浏览器中
// if(!this.isWechat()){
// uni.showToast({
// title:'请在微信内置浏览器里打开!',
// icon:'none',
// duration:3000
// })
// return
// }
if(!this.isWechat()){
uni.showToast({
title:'请在微信内置浏览器里打开!',
icon:'none',
duration:3000
})
return
}
//判断用户是否登录
if (uni.getStorageSync('token') == '') {
this.checkWeChatCode()
... ...