获取验证码、定位当前位置、支付码修改-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(){
uni.getLocation({
type: 'gcj02',
isHighAccuracy:'true',
geocode:true,
success: (res)=> {
// console.log(res,'地址信息');
@ -341,6 +342,7 @@ const tools = {
// 更新地址事件
renewAddressApi(params){
console.log(params,'最终提交参数');
uni.setStorageSync('address',params.address);
// renewLocation(params).then(res=>{})
},
// 刷新token

View File

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

View File

@ -110,7 +110,7 @@
},
//
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);
if(res.code==0) {
clearInterval(this.countDown);

View File

@ -141,7 +141,7 @@
},
//
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);
if(res.code==0) {
this.codeText = '获取验证码';

View File

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

View File

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