获取验证码、定位当前位置、支付码修改-0206
parent
b1494d01ae
commit
40c1aad28a
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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 = '获取验证码';
|
||||||
|
|
|
@ -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 = `获取验证码`
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue