parent
79d207bbdd
commit
9cb5da5816
@ -0,0 +1,101 @@
|
||||
package au.com.royalpay.payment.manage.application.web;
|
||||
|
||||
import au.com.royalpay.payment.manage.application.core.SimpleClientApplyService;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Controller
|
||||
public class ContentController {
|
||||
|
||||
@Resource
|
||||
private SimpleClientApplyService simpleClientApplyService;
|
||||
|
||||
@GetMapping("/contract/source")
|
||||
private String helloWorld(Model model,@RequestParam String username, @RequestParam String clean_days){
|
||||
JSONObject contractInfo= simpleClientApplyService.getPreApplyInfoForAggree(username ,clean_days);
|
||||
model.addAttribute("company_phone", contractInfo.getString("company_phone"));
|
||||
model.addAttribute("legal_phone", contractInfo.getString("legal_phone"));
|
||||
model.addAttribute("acn_type", contractInfo.getString("acn_type"));
|
||||
model.addAttribute("account_no", contractInfo.getString("account_no"));
|
||||
model.addAttribute("contact_email", contractInfo.getString("contact_email"));
|
||||
model.addAttribute("bank", contractInfo.getString("bank"));
|
||||
model.addAttribute("account_name", contractInfo.getString("account_name"));
|
||||
model.addAttribute("legal_email", contractInfo.getString("legal_email"));
|
||||
model.addAttribute("state", contractInfo.getString("state"));
|
||||
model.addAttribute("start_date", contractInfo.getString("start_date"));
|
||||
model.addAttribute("contact_person", contractInfo.getString("contact_person"));
|
||||
model.addAttribute("postcode", contractInfo.getString("postcode"));
|
||||
model.addAttribute("clean", contractInfo.getString("clean"));
|
||||
model.addAttribute("clean_days", contractInfo.getString("clean_days"));
|
||||
model.addAttribute("legal_job_title", contractInfo.getString("legal_job_title"));
|
||||
model.addAttribute("bsb_no", contractInfo.getString("bsb_no"));
|
||||
model.addAttribute("company_name", contractInfo.getString("company_name"));
|
||||
model.addAttribute("address", contractInfo.getString("address"));
|
||||
model.addAttribute("suburb", contractInfo.getString("suburb"));
|
||||
model.addAttribute("wechat_rate", contractInfo.getString("wechat_rate"));
|
||||
model.addAttribute("cbbank_rate", contractInfo.getString("cbbank_rate"));
|
||||
model.addAttribute("alipay_online_rate", contractInfo.getString("alipay_online_rate"));
|
||||
model.addAttribute("bestpay_rate", contractInfo.getString("bestpay_rate"));
|
||||
model.addAttribute("alipay_rate", contractInfo.getString("alipay_rate"));
|
||||
model.addAttribute("jd_rate", contractInfo.getString("jd_rate"));
|
||||
/* 1
|
||||
apply_source
|
||||
end_date
|
||||
1
|
||||
1
|
||||
1
|
||||
contract_phone
|
||||
industry
|
||||
bank_no
|
||||
1
|
||||
1
|
||||
client_pre_apply_id
|
||||
1
|
||||
password
|
||||
update_time
|
||||
1
|
||||
client_moniker
|
||||
1
|
||||
bank_name
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
leagal_person
|
||||
1
|
||||
salt
|
||||
create_time
|
||||
1
|
||||
1
|
||||
1
|
||||
agree
|
||||
abn
|
||||
1
|
||||
1
|
||||
company_name_acn
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
short_name
|
||||
clean_days
|
||||
username
|
||||
status
|
||||
* */
|
||||
return "contract_for_compliance";
|
||||
}
|
||||
|
||||
@GetMapping(value = "/aggregateFile/client_info")
|
||||
@ResponseBody
|
||||
public JSONObject getClientInfoByAggree(@RequestParam String username, @RequestParam String clean_days) {
|
||||
return simpleClientApplyService.getPreApplyInfoForAggree(username ,clean_days);
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,43 @@
|
||||
goBottom = function () {
|
||||
window.scrollTo(0, document.documentElement.scrollHeight - document.documentElement.clientHeight);
|
||||
document.getElementById("signPlace").style="";
|
||||
};
|
||||
|
||||
cancel = function () {
|
||||
document.getElementById("signPlace").style="display:none";
|
||||
};
|
||||
|
||||
submitSign = function () {
|
||||
var sign = $("#signature").jSignature('getData', 'image');
|
||||
var signInfo = {};
|
||||
var signSrc = 'data:' + sign[0] + ',' + sign[1];
|
||||
debugger;
|
||||
document.getElementById("img1").src='data:' + sign[0] + ',' + sign[1];
|
||||
var full_name = document.getElementById("full_name").value
|
||||
|
||||
document.getElementById('fullName').value = full_name;
|
||||
|
||||
document.getElementById("signPlace").style="display:none";
|
||||
};
|
||||
|
||||
|
||||
uploadSign2 = function()
|
||||
{
|
||||
debugger;
|
||||
var src = document.getElementById("img1").src;
|
||||
var filename = document.getElementById('fullName').value;
|
||||
var signFile = dataURLtoFile(src,filename);
|
||||
/*未完成*/
|
||||
|
||||
}
|
||||
|
||||
function dataURLtoFile(dataurl, filename) {//将base64转换为文件
|
||||
var arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1],
|
||||
bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n);
|
||||
while (n--) {
|
||||
u8arr[n] = bstr.charCodeAt(n);
|
||||
}
|
||||
return new File([u8arr], filename, {type: mime});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in new issue