获取验证码、定位当前位置、支付码修改-0206

master
Lee 2023-02-06 11:22:42 +08:00
parent b1494d01ae
commit 40c1aad28a
6 changed files with 17 additions and 12 deletions

View File

@ -270,6 +270,7 @@ const tools = {
getAddress(){ getAddress(){
uni.getLocation({ uni.getLocation({
type: 'gcj02', type: 'gcj02',
isHighAccuracy:'true',
geocode:true, geocode:true,
success: (res)=> { success: (res)=> {
// console.log(res,'地址信息'); // console.log(res,'地址信息');
@ -341,6 +342,7 @@ const tools = {
// 更新地址事件 // 更新地址事件
renewAddressApi(params){ renewAddressApi(params){
console.log(params,'最终提交参数'); console.log(params,'最终提交参数');
uni.setStorageSync('address',params.address);
// renewLocation(params).then(res=>{}) // renewLocation(params).then(res=>{})
}, },
// 刷新token // 刷新token

View File

@ -1,6 +1,6 @@
{ {
"name" : "飞猴云服务", "name" : "飞猴云服务",
"appid" : "__UNI__BDCAFA5", "appid" : "__UNI__96B4F04",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : 100, "versionCode" : 100,

View File

@ -110,7 +110,7 @@
}, },
// //
getMessage(phone){ getMessage(phone){
this.$requst.post('/universal/api.login/send_sms',{phone}).then(res=>{ this.$requst.post('/universal/api.login/send_sms',{'phone':phone,'type':0}).then(res=>{
this.$toolAll.tools.showToast(res.msg); this.$toolAll.tools.showToast(res.msg);
if(res.code==0) { if(res.code==0) {
clearInterval(this.countDown); clearInterval(this.countDown);

View File

@ -141,7 +141,7 @@
}, },
// //
getMessage(phone){ getMessage(phone){
this.$requst.post('/universal/api.login/send_sms',{phone}).then(res=>{ this.$requst.post('/universal/api.login/send_sms',{'phone':phone,'type':1}).then(res=>{
this.$toolAll.tools.showToast(res.msg); this.$toolAll.tools.showToast(res.msg);
if(res.code==0) { if(res.code==0) {
this.codeText = '获取验证码'; this.codeText = '获取验证码';

View File

@ -146,8 +146,8 @@
}, },
// //
getMessage(phone){ getMessage(phone){
this.$requst.post('/universal/api.login/send_sms',{phone}).then(res=>{ this.$requst.post('/universal/api.login/send_sms',{'phone':phone,'type':0}).then(res=>{
this.$toolAll.tools.showToast(res.msg); // this.$toolAll.tools.showToast(res.msg);
if(res.code==0) { if(res.code==0) {
clearInterval(this.countDown); clearInterval(this.countDown);
this.codeText = `获取验证码` this.codeText = `获取验证码`

View File

@ -183,11 +183,7 @@
otherCost:'',// otherCost:'',//
taxRate:10,// taxRate:10,//
address:'湖南省株洲市荷塘区红旗中路456号(五矿二十三冶)', address:'湖南省株洲市荷塘区红旗中路456号(五矿二十三冶)',
collectionCode:[ collectionCode:[],//
'/static/del/500478055.png',
'/static/del/img001.png',
'/static/del/500478055.png',
]
}, },
paymentMode:'',// paymentMode:'',//
billingIndex:0,// 0: 1 2 billingIndex:0,// 0: 1 2
@ -235,6 +231,11 @@
content.setLineCap('round') content.setLineCap('round')
//线 //线
content.setLineJoin('round'); content.setLineJoin('round');
//
this.$toolAll.tools.renewLocationEv();
setTimeout(()=>{
this.detailObj.address = uni.getStorageSync('address');
},200)
// //
// this.conversionEv(); // this.conversionEv();
if(op.id!=undefined) { if(op.id!=undefined) {
@ -244,9 +245,9 @@
this.handleWorkOrderGet(this.orderId); this.handleWorkOrderGet(this.orderId);
// //
this.priceEv(); this.priceEv();
}else{
this.handleWorkOrderGet();
} }
this.handleWorkOrderGet();
}, },
methods: { methods: {
// //
@ -275,6 +276,7 @@
}, },
// //
handleWorkOrderGet(id){ handleWorkOrderGet(id){
this.detailObj.collectionCode = [];
let params = { let params = {
order_id:this.orderId, order_id:this.orderId,
steps:3 steps:3
@ -282,6 +284,7 @@
handleWorkOrderGet(params).then(res=>{ handleWorkOrderGet(params).then(res=>{
if(res.code) { if(res.code) {
let dataObj = res.data; let dataObj = res.data;
this.detailObj.collectionCode.push(dataObj.receipt_code);
} }
}) })
}, },