作者 xuqiang

提交

... ... @@ -69,7 +69,6 @@
url:this.apiUrl + '/gift/lis',
method:'POST',
success: (res) => {
console.log('礼物列表',res)
this.giftList = res.data.data
this.showSendGift = true
}
... ... @@ -82,7 +81,6 @@
'token': uni.getStorageSync('token')
},
success: (res) => {
console.log('我的钱包',res)
this.wallet = res.data.data
}
})
... ... @@ -109,7 +107,6 @@
user_id:this.toUserId,
number:this.inpNum
}).then((res)=>{
console.log('送礼物',res)
if(res.code == 1){
this.$emit('closeSendGift')
uni.showToast({
... ...
... ... @@ -156,10 +156,6 @@
}else{
sections=["上午"];
}
console.log(sectionFlag,years,
months,
days,
sections)
return {
years,
months,
... ...
... ... @@ -251,12 +251,10 @@
mounted() {
if(this.mode == 'half' && this.handleType != 'chooseTime'){
this.$request('/user/info').then((res)=>{
console.log('用户信息',res)
this.userInfo = res.data
})
//获取预约金额
this.$request('/common/getConfig',{type:'4'}).then((res)=>{
console.log('获取预约金额',res)
this.make_price = res.data.make_price
})
}
... ... @@ -303,8 +301,6 @@
return;
};
if(this.mode == 'half' && this.handleType != 'chooseTime'){
console.log(this.result)
console.log('this.carNum',this.carNum)
if(this.carNum == ''){
uni.showToast({
title:'请输入正确的车辆数量',
... ...
... ... @@ -77,12 +77,10 @@
onLoad(e) {
this.appointInfo.to_user_id = e.id
this.$request('/user/info').then((res)=>{
console.log('用户信息',res)
this.userInfo = res.data
})
//获取预约金额
this.$request('/common/getConfig',{type:'4'}).then((res)=>{
console.log('获取预约金额',res)
this.make_price = res.data.make_price
})
},
... ... @@ -115,7 +113,6 @@
this.showPay = true
},
onConfirm(res,type){
console.log('选择结果',res)
this.appointInfo.make_date = res.obj.year+'-'+res.obj.month+'-'+res.obj.day
this.appointInfo.make_time = res.obj.section == '上午' ? 'AM' : 'PM'
this.appointInfo.make_date_txt = res.result
... ... @@ -125,7 +122,6 @@
},
//修改支付类型
changePayType(e){
console.log('修改支付类型',e)
this.appointInfo.pay_type = e
},
pay(){
... ... @@ -148,7 +144,6 @@
},500)
},
fail: function (err) {
console.log('充值失败',err)
uni.showToast({
title:'充值失败,请联系客服人员',
icon:'none'
... ... @@ -158,9 +153,7 @@
},
getOrderInfo(){
return new Promise((reslove)=>{
console.log('预约下单支付参数',this.appointInfo)
this.$request('/order/makeOrderPay',this.appointInfo).then((res)=>{
console.log('预约下单支付',res)
reslove(res)
})
})
... ...
... ... @@ -389,7 +389,6 @@
},
onLoad(e) {
this.$request('/common/getConfig',{type:'8'}).then((res)=>{
console.log('微信登录按钮开关',res)
this.switchTab = res.data.switch
this.plat = plus.os.name.toLowerCase()
})
... ... @@ -415,36 +414,6 @@
}
})
},
onShow() {
if(!this.isLogin || !this.isSDKReady){
let userID = this.userinfo.id.toString()
let userSig = this.userinfo.user_sign
let userInfo = {
user: this.userinfo.nickname,
userId:this.userinfo.id,
img:this.userinfo.avatar,
userSig:this.userinfo.user_sign
}
//登录腾讯IM及时通讯
let promise = this.tim.login({
userID: userID,
userSig: userSig
});
promise.then((res) => {
console.warn('腾讯云即时通讯登录成功', res);
//登录成功后 更新登录状态
this.$store.commit("toggleIsLogin", true);
//自己平台的用户基础信息
uni.setStorageSync('userInfo', JSON.stringify(userInfo))
//tim 返回的用户信息
uni.setStorageSync('userTIMInfo', JSON.stringify(res.data))
}).catch((err) => {
// 登录失败的相关信息
console.warn('腾讯云即时通讯登录报错', err);
});
}
},
methods:{
getData(){
//获取用户信息
... ... @@ -477,7 +446,6 @@
this.getStoryList()
},
scrolltolower(){
console.log('滚动到底部了')
if(this.current_page == this.last_page){
uni.showToast({
title:'无更多数据',
... ... @@ -501,11 +469,16 @@
follow(){
this.$request('/user_follow_log/follow',{to_user_id:this.userInfo.id}).then((res)=>{
if(res.code == 1){
this.current_page = 1
this.last_page = 0
this.param.page = 1
this.list = []
this.getData()
this.$request('/user/userInfo',this.param).then((res)=>{
let starList = []
if(res.data.star > 0){
for(let i = 0; i < res.data.star; i++){
starList.push(i)
}
res.data.starList = starList
}
this.userInfo = res.data
})
uni.showToast({
title:res.msg+'成功'
})
... ... @@ -621,7 +594,6 @@
},
phone(phone){
this.$request('/user/getMiddleNumber',{mobile:phone}).then((res)=>{
console.log('获取虚拟小号',res)
if(res.code == 1){
uni.makePhoneCall({
phoneNumber:res.data
... ...