Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
和慭琛
take_order
Commits
6ae841c7
Commit
6ae841c7
authored
Feb 26, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove-console
parent
c82b832d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
99 deletions
+1
-99
base.vue
take-order/pages/settle/base.vue
+1
-98
pay-ensure.vue
take-order/pages/settle/pay-ensure.vue
+0
-1
No files found.
take-order/pages/settle/base.vue
View file @
6ae841c7
...
@@ -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,87 +354,7 @@
...
@@ -371,87 +354,7 @@
})
})
},
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)
// }
// })
// },
},
},
}
}
</
script
>
</
script
>
...
...
take-order/pages/settle/pay-ensure.vue
View file @
6ae841c7
...
@@ -52,7 +52,6 @@
...
@@ -52,7 +52,6 @@
computed
:
{},
computed
:
{},
watch
:{
watch
:{
isRefresh
(
val
){
isRefresh
(
val
){
console
.
log
(
'isRefresh'
)
this
.
getBaseInfo
()
this
.
getBaseInfo
()
}
}
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment