Commit cd6d46f8 by zhangquan

添加签名

1 parent b150ad3c
......@@ -60,7 +60,8 @@ Page({
vehicleSeriesName:detailInfo.vehicleSeriesName,
vehicleShapeName:detailInfo.vehicleShapeName,
merchantName:detailInfo.merchantName,
writeOffCode:detailInfo.writeOffCode
writeOffCode:detailInfo.writeOffCode,
fromDetail: 1,
}
let temp = encodeURIComponent(JSON.stringify(para))
wx.navigateTo({
......
......@@ -189,6 +189,24 @@ Page({
},
// 上传签名到后端
saveToHttp(signUrl) {
const fromDetail = this.fromDetail
const writeOffCode = this.writeOffCode
if(fromDetail) {
wx.$util.showLoading('提交中')
equityApi.signSumbit({signUrl,writeOffCode }).then(res => {
wx.hideLoading();
if(res) {
this.maskQuery = {writeOffCode}
const currentDate = new Date()
const showMaskDate = currentDate.setDate(currentDate.getDate() + this.data.settingDay);
this.setData({
showSuccessMask:true,
maskDate:new Date(showMaskDate).format('yyyy年MM月dd日')
})
}
})
return
}
let para = {
// writeOffCode: this.writeOffCode,
signUrl,
......
......@@ -25,7 +25,11 @@ Page({
onLoad(options) {
this.getSettingDay()
let carInfo = JSON.parse(decodeURIComponent(options.carInfo))
this.httpInfo = JSON.parse(decodeURIComponent(options.http))
try {
this.httpInfo = JSON.parse(decodeURIComponent(options.http))
} catch (error) {
this.httpInfo = {}
}
// 跳全屏用到参数
this.fullParams = options.http
let that = this
......@@ -175,8 +179,9 @@ Page({
})
},
toFullPage() {
let fromDetail = this.data.carInfo.fromDetail || 0
wx.navigateTo({
url: '/packageEquity/pages/fullSignture/fullSignture?writeOffCode='+this.data.carInfo.writeOffCode+'&http='+this.fullParams+ `&contractNo=${this.data.carInfo.contractNo}`+`&merchantName=${this.data.carInfo.merchantName}`,
url: '/packageEquity/pages/fullSignture/fullSignture?fromDetail='+fromDetail+'&writeOffCode='+this.data.carInfo.writeOffCode+'&http='+this.fullParams+ `&contractNo=${this.data.carInfo.contractNo}`+`&merchantName=${this.data.carInfo.merchantName}`,
});
},
// 上传图片
......@@ -203,6 +208,23 @@ Page({
},
// 上传签名到后端
saveToHttp(signUrl) {
const {writeOffCode, fromDetail} = this.data.carInfo
if(fromDetail) {
wx.$util.showLoading('提交中')
equityApi.signSumbit({signUrl,writeOffCode }).then(res => {
wx.hideLoading();
if(res) {
this.maskQuery = {writeOffCode}
const currentDate = new Date()
const showMaskDate = currentDate.setDate(currentDate.getDate() + this.data.settingDay);
this.setData({
showSuccessMask:true,
maskDate:new Date(showMaskDate).format('yyyy年MM月dd日')
})
}
})
return
}
let para = {
...this.httpInfo,
signUrl
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!