首页可分享

master
chen 2021-09-14 17:53:16 +08:00
parent 6b5b19ec88
commit d3408e7d9e
22 changed files with 44 additions and 37 deletions

View File

@ -1,13 +1,13 @@
{
"pages": [
{
"path" : "pages/tabbar/pagehome/pagehome",
"style" :{}
},{
"path" : "pages/login/login",
"style" :{
"navigationBarTextStyle":"black" //
}
},{
"path" : "pages/tabbar/pagehome/pagehome",
"style" :{}
},{
"path" : "pages/tabbar/my/my",
"style" :{}

View File

@ -36,7 +36,7 @@
publicColor:uni.getStorageSync('publicColor'),
canIGetUserProfile: false,
imgSrc: '/static/public/logo.png',//logo
isShowP:true
isShowP:false
};
},
onLoad(options) {
@ -64,21 +64,21 @@
},
getphonenumber(e){//
console.log(e);
// if(e.detail.errMsg=="getPhoneNumber:ok"){
// this.$requst.post('user/bind-phone',{iv:e.detail.iv,encryptedData:e.detail.encryptedData}).then(res=>{
// console.log('',res);
// if(res.code==0){
// this.isShowP = false
// this.$toolAll.tools.showToast('','success')
// uni.setStorageSync('bindPhone',false)
// uni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'})
// }
// },error=>{})
// } else {
// this.isShowP = false
// this.$toolAll.tools.showToast('','success')
// uni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'})
// }
if(e.detail.errMsg=="getPhoneNumber:ok"){
this.$requst.post('user/bind-phone',{iv:e.detail.iv,encryptedData:e.detail.encryptedData}).then(res=>{
console.log('手机号信息:',res);
if(res.code==0){
this.isShowP = false
this.$toolAll.tools.showToast('手机号绑定成功','success')
uni.setStorageSync('bindPhone',false)
uni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'})
}
},error=>{})
} else {
this.isShowP = false
this.$toolAll.tools.showToast('登录成功','success')
uni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'})
}
},
goXie(){
uni.navigateTo({

View File

@ -157,6 +157,7 @@
}
this.checkKT()//
},
onShareAppMessage(res) {},
onLoad(options) {
//
// setTimeout(()=>{

View File

@ -275,6 +275,12 @@
}
this.checkDetail(this.conid)
if(options.share_id!=undefined) this.share_id = options.share_id
let maiOjb = {
e:4,//
c:this.conid*1,
t:new Date().getTime()//
}
this.$toolAll.tools.maiDian(maiOjb)
},
methods: {
moveHandle(){//

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long