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

@ -134,6 +134,7 @@
if(this.jieDuan==false){ if(this.jieDuan==false){
let isAuth = this.$toolAll.tools.returnAuth() let isAuth = this.$toolAll.tools.returnAuth()
if(!isAuth){ if(!isAuth){
// this.$emit('chooseLike',this.list[index].id)
this.$emit('chooseLike',index) this.$emit('chooseLike',index)
this.current = index this.current = index
if(this.list[index].is_collected==1) { if(this.list[index].is_collected==1) {
@ -151,6 +152,7 @@
}, },
comfirmev(){ comfirmev(){
// console.log(''); // console.log('');
// this.$emit('comfirmev',this.list[this.current].id)
this.$emit('comfirmev',this.current) this.$emit('comfirmev',this.current)
this.isShowT = false this.isShowT = false
}, },

View File

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

View File

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

View File

@ -36,7 +36,7 @@
publicColor:uni.getStorageSync('publicColor'), publicColor:uni.getStorageSync('publicColor'),
canIGetUserProfile: false, canIGetUserProfile: false,
imgSrc: '/static/public/logo.png',//logo imgSrc: '/static/public/logo.png',//logo
isShowP:false isShowP:true
}; };
}, },
onLoad(options) { onLoad(options) {
@ -63,21 +63,22 @@
uni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'}) uni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'})
}, },
getphonenumber(e){// getphonenumber(e){//
if(e.detail.errMsg=="getPhoneNumber:ok"){ console.log(e);
this.$requst.post('user/bind-phone',{iv:e.detail.iv,encryptedData:e.detail.encryptedData}).then(res=>{ // if(e.detail.errMsg=="getPhoneNumber:ok"){
// console.log('',res); // this.$requst.post('user/bind-phone',{iv:e.detail.iv,encryptedData:e.detail.encryptedData}).then(res=>{
if(res.code==0){ // console.log('',res);
this.isShowP = false // if(res.code==0){
this.$toolAll.tools.showToast('手机号绑定成功','success') // this.isShowP = false
uni.setStorageSync('bindPhone',false) // this.$toolAll.tools.showToast('','success')
uni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'}) // uni.setStorageSync('bindPhone',false)
} // uni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'})
},error=>{}) // }
} else { // },error=>{})
this.isShowP = false // } else {
this.$toolAll.tools.showToast('登录成功','success') // this.isShowP = false
uni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'}) // this.$toolAll.tools.showToast('','success')
} // uni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'})
// }
}, },
goXie(){ goXie(){
uni.navigateTo({ 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> <cate-pu :activeb="publicColor" :newcateList="ktList" :isMinW="true" :newCurrent="newCurrent*1" @choosecateEv="choosecateEv" :newbmo="'#E0E0E0'"></cate-pu>
</view> </view>
<!-- 列表 --> <!-- 列表 -->
<wfalls-flow @chooseLike="chooseLike" @comfirmev="comfirmev" :list="dataList" ref="wfalls"></wfalls-flow> <!-- <wfalls-flow @chooseLike="chooseLike" @comfirmev="comfirmev" :list="dataList" ref="wfalls"></wfalls-flow> -->
<!-- <list-pu @chooseLike="chooseLike" @comfirmev="comfirmev" :list="dataList"></list-pu> --> <list-pu @chooseLike="chooseLike" @comfirmev="comfirmev" :list="dataList"></list-pu>
</view> </view>
</view> </view>
</template> </template>
@ -159,10 +159,10 @@
}, },
onLoad(options) { onLoad(options) {
// //
setTimeout(()=>{ // setTimeout(()=>{
// this.list = list; // // this.list = list;
this.$refs.wfalls.init(); // this.$refs.wfalls.init();
},1000) // },1000)
if (options && options.q) { if (options && options.q) {
let arr = decodeURIComponent(options.q).split('?')[1].split('&') let arr = decodeURIComponent(options.q).split('?')[1].split('&')
let obj = {} let obj = {}
@ -403,31 +403,45 @@
},error=>{}) },error=>{})
}, },
chooseLike(e){// chooseLike(e){//
// log(this.dataList[e].is_collected); // console.log(this.dataList[e].is_collected);
let active = '' if(this.dataList[e].is_collected==0){
this.dataList.forEach((item,index)=>{ this.dataList[e].is_collected = 1
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}) collectionEV({action:'collect',archive_id:this.dataList[e].id})
} }
}, },
comfirmev(e){// comfirmev(e){//
let active = '' this.dataList[e].is_collected = 0
this.dataList.forEach((item,index)=>{
if(e==item.id){
active = index
}
})
this.dataList[active].is_collected = 0
this.$toolAll.tools.showToast('正在取消...','loading') 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){// chooseGon(index){//
if(!this.jieDuan){ if(!this.jieDuan){
let isAuth = this.$toolAll.tools.returnAuth() let isAuth = this.$toolAll.tools.returnAuth()

View File

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