获取验证码、定位当前位置、支付码修改-0206
parent
b1494d01ae
commit
40c1aad28a
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name" : "飞猴云服务",
|
||||
"appid" : "__UNI__BDCAFA5",
|
||||
"appid" : "__UNI__96B4F04",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.0",
|
||||
"versionCode" : 100,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 = '获取验证码';
|
||||
|
|
|
@ -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 = `获取验证码`
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue