Browse Source

未签字不让提交

epass
mk 1 month ago
parent
commit
cb10cc598e
  1. 2
      project.private.config.json
  2. 8
      subpages/index/checkOutConfirm/index/index.js

2
project.private.config.json

@ -2,7 +2,7 @@
"libVersion": "3.8.9",
"projectname": "epmet-apartment-mp",
"setting": {
"urlCheck": true,
"urlCheck": false,
"coverView": true,
"lazyloadPlaceholderEnable": false,
"skylineRenderEnable": false,

8
subpages/index/checkOutConfirm/index/index.js

@ -61,6 +61,14 @@ console.log('area',scrollArea.node);
})
},
submit: function () {
if(this.data.signImgSrc.length === 0 || !this.data.signImgSrc){
console.log(this.data.signImgSrc);
wx.showToast({
title: '请签字确认',
icon:'none'
})
return
}
checkoutConfirm({deliveryReceiptUrl:this.data.signImgSrc[0].url,checkOutRecId:this.data.info.checkOutRecId}).then(res=>{
if(res.code === 200){
console.log(res);

Loading…
Cancel
Save