Commit cd6d46f8 by zhangquan

添加签名

1 parent b150ad3c
...@@ -60,7 +60,8 @@ Page({ ...@@ -60,7 +60,8 @@ Page({
vehicleSeriesName:detailInfo.vehicleSeriesName, vehicleSeriesName:detailInfo.vehicleSeriesName,
vehicleShapeName:detailInfo.vehicleShapeName, vehicleShapeName:detailInfo.vehicleShapeName,
merchantName:detailInfo.merchantName, merchantName:detailInfo.merchantName,
writeOffCode:detailInfo.writeOffCode writeOffCode:detailInfo.writeOffCode,
fromDetail: 1,
} }
let temp = encodeURIComponent(JSON.stringify(para)) let temp = encodeURIComponent(JSON.stringify(para))
wx.navigateTo({ wx.navigateTo({
......
...@@ -189,6 +189,24 @@ Page({ ...@@ -189,6 +189,24 @@ Page({
}, },
// 上传签名到后端 // 上传签名到后端
saveToHttp(signUrl) { 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 = { let para = {
// writeOffCode: this.writeOffCode, // writeOffCode: this.writeOffCode,
signUrl, signUrl,
......
...@@ -25,7 +25,11 @@ Page({ ...@@ -25,7 +25,11 @@ Page({
onLoad(options) { onLoad(options) {
this.getSettingDay() this.getSettingDay()
let carInfo = JSON.parse(decodeURIComponent(options.carInfo)) let carInfo = JSON.parse(decodeURIComponent(options.carInfo))
try {
this.httpInfo = JSON.parse(decodeURIComponent(options.http)) this.httpInfo = JSON.parse(decodeURIComponent(options.http))
} catch (error) {
this.httpInfo = {}
}
// 跳全屏用到参数 // 跳全屏用到参数
this.fullParams = options.http this.fullParams = options.http
let that = this let that = this
...@@ -175,8 +179,9 @@ Page({ ...@@ -175,8 +179,9 @@ Page({
}) })
}, },
toFullPage() { toFullPage() {
let fromDetail = this.data.carInfo.fromDetail || 0
wx.navigateTo({ 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({ ...@@ -203,6 +208,23 @@ Page({
}, },
// 上传签名到后端 // 上传签名到后端
saveToHttp(signUrl) { 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 = { let para = {
...this.httpInfo, ...this.httpInfo,
signUrl signUrl
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!