master
chen 2021-09-08 08:46:34 +08:00
parent 5a83425f1d
commit 6b5b19ec88
24 changed files with 92 additions and 67 deletions

8
.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
/vendor
/node_modules
/public/storage
/unpackage
Homestead.yaml
Homestead.json
.env
.idea

View File

@ -69,7 +69,7 @@
<empower :vision="vision" :isWhere="2" @cancleEv="cancleEv"></empower>
</view>
</template>
<script>
import empower from '@/components/empower.vue';
export default {
@ -134,6 +134,7 @@
if(this.jieDuan==false){
let isAuth = this.$toolAll.tools.returnAuth()
if(!isAuth){
// this.$emit('chooseLike',this.list[index].id)
this.$emit('chooseLike',index)
this.current = index
if(this.list[index].is_collected==1) {
@ -151,6 +152,7 @@
},
comfirmev(){
// console.log('');
// this.$emit('comfirmev',this.list[this.current].id)
this.$emit('comfirmev',this.current)
this.isShowT = false
},
@ -163,5 +165,5 @@
</script>
<style>
</style>

View File

@ -57,7 +57,7 @@
/* */
"mp-weixin" : {
/* */
"appid" : "wxe28349e02aa8ddf3",
"appid" : "wx987dc41899f719e8",
"setting" : {
"urlCheck" : true,
"es6" : false

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:false
isShowP:true
};
},
onLoad(options) {
@ -63,21 +63,22 @@
uni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'})
},
getphonenumber(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'})
}
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'})
// }
},
goXie(){
uni.navigateTo({

View File

@ -62,8 +62,8 @@
<cate-pu :activeb="publicColor" :newcateList="ktList" :isMinW="true" :newCurrent="newCurrent*1" @choosecateEv="choosecateEv" :newbmo="'#E0E0E0'"></cate-pu>
</view>
<!-- 列表 -->
<wfalls-flow @chooseLike="chooseLike" @comfirmev="comfirmev" :list="dataList" ref="wfalls"></wfalls-flow>
<!-- <list-pu @chooseLike="chooseLike" @comfirmev="comfirmev" :list="dataList"></list-pu> -->
<!-- <wfalls-flow @chooseLike="chooseLike" @comfirmev="comfirmev" :list="dataList" ref="wfalls"></wfalls-flow> -->
<list-pu @chooseLike="chooseLike" @comfirmev="comfirmev" :list="dataList"></list-pu>
</view>
</view>
</template>
@ -159,10 +159,10 @@
},
onLoad(options) {
//
setTimeout(()=>{
// this.list = list;
this.$refs.wfalls.init();
},1000)
// setTimeout(()=>{
// // this.list = list;
// this.$refs.wfalls.init();
// },1000)
if (options && options.q) {
let arr = decodeURIComponent(options.q).split('?')[1].split('&')
let obj = {}
@ -196,7 +196,7 @@
}
},
});
}
}
const query = wx.createSelectorQuery()
query.select('.statusHNH').boundingClientRect((rect) => {
// log('+',rect.height);
@ -403,31 +403,45 @@
},error=>{})
},
chooseLike(e){//
// log(this.dataList[e].is_collected);
let active = ''
this.dataList.forEach((item,index)=>{
if(e==item.id){
active = index
}
})
if(this.dataList[active].is_collected==0){
this.dataList[active].is_collected = 1
// console.log(this.dataList[e].is_collected);
if(this.dataList[e].is_collected==0){
this.dataList[e].is_collected = 1
//
collectionEV({action:'collect',archive_id:e})
collectionEV({action:'collect',archive_id:this.dataList[e].id})
}
},
comfirmev(e){//
let active = ''
this.dataList.forEach((item,index)=>{
if(e==item.id){
active = index
}
})
this.dataList[active].is_collected = 0
this.dataList[e].is_collected = 0
this.$toolAll.tools.showToast('正在取消...','loading')
//
cancleCollectionEV({action:'collect',archive_id:e})
cancleCollectionEV({action:'collect',archive_id:this.dataList[e].id})
},
// chooseLike(e){//
// // log(this.dataList[e].is_collected);
// let active = ''
// this.dataList.forEach((item,index)=>{
// if(e==item.id){
// active = index
// }
// })
// if(this.dataList[active].is_collected==0){
// this.dataList[active].is_collected = 1
// //
// collectionEV({action:'collect',archive_id:e})
// }
// },
// comfirmev(e){//
// let active = ''
// this.dataList.forEach((item,index)=>{
// if(e==item.id){
// active = index
// }
// })
// this.dataList[active].is_collected = 0
// this.$toolAll.tools.showToast('...','loading')
// //
// cancleCollectionEV({action:'collect',archive_id:e})
// },
chooseGon(index){//
if(!this.jieDuan){
let isAuth = this.$toolAll.tools.returnAuth()

View File

@ -231,11 +231,11 @@
this.$requst.post('user/appointment-apply',parmas).then(res=>{
// console.log('',res);
if(res.code==0){
// this.isShowT = true
this.isShowT = true
wx.requestSubscribeMessage({
tmplIds: ['T1HcjdOxSVgomu_bD9Qf4rIWfKOVZApvieHuG_U3fM4'],
tmplIds: ['uvGd7RqaegheGU-uVxR-uM3y2MadZeMOHdQaNiiWm8U'],
success: (res)=> {
// console.log('res',res);
console.log('res',res);
this.isShowT = true
}
})

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