Commit 6ae841c7 authored by 李俊赕's avatar 李俊赕

remove-console

parent c82b832d
...@@ -119,10 +119,6 @@ ...@@ -119,10 +119,6 @@
} }
}, },
onLoad(e) { onLoad(e) {
if (e && e.activeService && e.activeService.length > 0) {
//console.log(e.activeService)
this.activeService = e.activeService
}
this.initLocation() this.initLocation()
}, },
onShow() { onShow() {
...@@ -148,8 +144,6 @@ ...@@ -148,8 +144,6 @@
uni.getLocation({ uni.getLocation({
type: 'wgs84', type: 'wgs84',
success: function (res) { success: function (res) {
console.log('当前位置的经度:' + res.longitude);
console.log('当前位置的纬度:' + res.latitude);
self.baiduLocation(res.longitude,res.latitude) self.baiduLocation(res.longitude,res.latitude)
} }
}); });
...@@ -160,7 +154,6 @@ ...@@ -160,7 +154,6 @@
let t = { let t = {
success: function(res) { success: function(res) {
let e = res.wxMarkerData[0]; let e = res.wxMarkerData[0];
console.log(e,e.address,'e.address')
let i = e.address; let i = e.address;
a.baseInfo.address = i a.baseInfo.address = i
// a.setData({ // a.setData({
...@@ -168,7 +161,6 @@ ...@@ -168,7 +161,6 @@
// }), o.globalData.addressValue = i, a.initWatermarkBoxHeightAndWidth(); // }), o.globalData.addressValue = i, a.initWatermarkBoxHeightAndWidth();
}, },
fail: function(a) { fail: function(a) {
console.log(a, 'a')
// n.error(a), console.log(a); // n.error(a), console.log(a);
} }
}; };
...@@ -193,11 +185,6 @@ ...@@ -193,11 +185,6 @@
let that = this let that = this
uni.chooseLocation({ uni.chooseLocation({
success: function (res) { success: function (res) {
// console.log('位置名称:' + res.name);
// console.log('详细地址:' + res.address);
// console.log('纬度:' + res.latitude);
// console.log('经度:' + res.longitude);
that.baseInfo.address = res.address + res.name that.baseInfo.address = res.address + res.name
//that.address = res.address + res.name //that.address = res.address + res.name
},fail: function (res) { },fail: function (res) {
...@@ -235,8 +222,6 @@ ...@@ -235,8 +222,6 @@
}); });
}, },
checkBaseInfo() { checkBaseInfo() {
console.log('非空判断-checkBaseInfo-this.baseInfo:')
console.log(this.baseInfo)
const baseInfo = this.baseInfo; const baseInfo = this.baseInfo;
let rulesObj = { let rulesObj = {
/* /*
...@@ -268,8 +253,6 @@ ...@@ -268,8 +253,6 @@
}, },
*/ */
service_area: function(value) { service_area: function(value) {
console.log('接单城市非空判断-value.length:')
console.log(value.length)
if (!value || value.length==0) { if (!value || value.length==0) {
uni.showToast({ uni.showToast({
title: '请选择您的接单城市', title: '请选择您的接单城市',
...@@ -371,86 +354,6 @@ ...@@ -371,86 +354,6 @@
}) })
}, 2000) }, 2000)
}, },
// newSubmitBaseInfo: function(){
// const baseInfo = this.baseInfo;
// if (!this.checkBaseInfo()) {
// return;
// }
// this.saving = true;
// uni.showLoading({
// title: '加载中'
// });
// const params = {
// ...baseInfo,
// }
// params.service_area = baseInfo.service_area.join(',')
// //http://rest-u.yunya.com
// let that = this
// uni.request({
// url: 'https://rest-u.test.ibanshou.cn/v1/settled/save-info'
// +'?access-token='+getApp().globalData.token,
// method: 'POST',
// data: {
// name: params.name,
// mobile: params.mobile,
// service_area: params.service_area,
// working_age: params.working_age,
// worker_num:params.worker_num,
// address:params.address
// //access_token:getApp().globalData.token
// },
// success: (res) => {
// uni.hideLoading()
// console.log('提交 入驻信息 成功')
// console.log(res)
// if(res.statusCode==401){
// uni.navigateTo({
// url:'/pages/login/wxlogin'
// })
// return
// }
// if(res.statusCode==200){
// console.log('提交 入驻信息 成功 200')
// uni.showToast({
// title: '入驻基本信息提交成功',
// icon: 'success'
// });
// let timer = setTimeout(() => {
// clearTimeout(timer)
// uni.navigateTo({
// url:'/pages/settle/file'
// })
// }, 2000)
// }else{
// uni.showToast({
// icon:'none',
// title:res.data.message
// })
// }
// },
// fail: (e) => {
// uni.hideLoading()
// uni.showToast({
// icon:'none',
// title:'提交入驻信息失败'
// })
// console.log('提交 入驻信息 失败')
// console.log(e)
// }
// })
// },
}, },
} }
......
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
computed: {}, computed: {},
watch:{ watch:{
isRefresh(val){ isRefresh(val){
console.log('isRefresh')
this.getBaseInfo() this.getBaseInfo()
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment