diff --git a/html/wxscaninvoice/writing.html b/html/wxscaninvoice/writing.html
index 8fd6e25..2594156 100644
--- a/html/wxscaninvoice/writing.html
+++ b/html/wxscaninvoice/writing.html
@@ -86,11 +86,15 @@
邮箱*
-
-
-
+
+
+
+
@@ -272,8 +276,6 @@
-
diff --git a/js/wxscaninvoice/transferPage.js b/js/wxscaninvoice/transferPage.js
index 1f991ed..64373a9 100644
--- a/js/wxscaninvoice/transferPage.js
+++ b/js/wxscaninvoice/transferPage.js
@@ -105,11 +105,13 @@ function getOrderInfoByTqm() {
}),
async: false,
success: function (data) {
+
alert_loading_close();
window.sessionStorage.setItem("fpzls", JSON.stringify(data.fpzls)); //发票类型
window.sessionStorage.setItem("orderInfo", JSON.stringify(data.orderInfo)); // 订单信息
window.sessionStorage.setItem("orderItemInfoList", JSON.stringify(data.orderItemList)); //开票项目
window.sessionStorage.setItem("titleInfo", JSON.stringify(data.titleInfo)) //抬头信息
+ console.log(data.titleInfo,'11111111111')
if (data.code === "0000") { //处理成功
//判断是否是公众号,如果是公众号需要走授权逻辑,如果不是,直接到填开页
if(window.localStorage.getItem("routerType") === "1"){
diff --git a/js/wxscaninvoice/writing.js b/js/wxscaninvoice/writing.js
index 5c10c82..3f3eb1d 100644
--- a/js/wxscaninvoice/writing.js
+++ b/js/wxscaninvoice/writing.js
@@ -11,9 +11,11 @@ const routerType = window.localStorage.getItem("routerType"); //1 不使用公
let items = [];
let cpLock = "";
const $ttType = $('#tt_type');
+const $email = $('#email');
const $fpType = $('#fp_type');
const $titleName = $("#titleName");
var $taxpayerId = $("#taxpayerId");
+
$(function () {
//logo配置
const prePath = '../../image/wxscaninvoice/';
@@ -47,15 +49,17 @@ $(function () {
const getLastTaxpyerId = sessionStorage.getItem('goTaxpayerId');
const getLastTelephone = sessionStorage.getItem('goTelephone');
const getLastEmail = sessionStorage.getItem('goEmail');
+ // console.log(strIsNull(titleInfo.ghfqylx))
+ // console.log(titleInfo.ghfqylx)
if (!strIsNull(titleInfo)) {
- if (strIsNull(titleInfo.ghfqylx) || titleInfo.ghfqylx === "01" || getLastTtType === "单位") {
+ if ( titleInfo.ghfqylx === "01" || getLastTtType === "单位") {
$ttType.val("单位");
$ttType.attr('data-id', "01");
//单位时调整文字示例,头部文字调整为"纳税人识别号",头部文字后的*可见,input中的placeholder改为"请输入纳税人识别号",
$('#title_nsrsbh').text("纳税人识别号");
$('#title_nsrsbh_star').css('display', 'block');
$('#taxpayerId').attr('placeholder', "请输入纳税人识别号");
- } else if (titleInfo.ghfqylx === "03" || getLastTtType === "个人") {
+ } else if (strIsNull(titleInfo.ghfqylx) ||titleInfo.ghfqylx === "03" || getLastTtType === "个人") {
$ttType.val("个人");
$ttType.attr('data-id', "03");
//个人时调整文字示例,头部文字调整为"身份证号码",头部文字后的*不可见,input中的placeholder改为"请输入身份证号码",