diff --git a/common/common.js b/common/common.js index 42faa9e..c0350ea 100644 --- a/common/common.js +++ b/common/common.js @@ -1,6 +1,8 @@ import md5 from './md5.min.js'; // 江阴正式环境 -var serverUrl = "https://bus.jycrtc.com"; +var serverUrl = "http://test.jycrtc.com:8096"; +// 测试 http://test.jycrtc.com:8096 正式 https://bus.jycrtc.com +var serverPayUrl = '' // 测试环境 // var serverUrl = "http://test.jycrtc.com:8096"; //江阴微信小程序appid @@ -51,7 +53,26 @@ const createCouponOrder = serverUrl + "/business/h5/coupon/createCouponOrder"; // 商户卡券-使用余额购买 const accountPay = serverUrl + "/business/h5/pay/busAccount/accountPay"; +// 获取发票抬头列表 +const queryCustInvoiceInfoList = serverUrl + "/business/h5/pay/invoice/queryCustInvoiceInfoList"; +// 新增一条客户发票抬头信息 +const insertCustInvoiceInfo = serverUrl + "/business/h5/pay/invoice/insertCustInvoiceInfo"; +// 通过主键更新一条客户发票抬头信息 +const updateCustInvoiceInfo = serverUrl + "/business/h5/pay/invoice/updateCustInvoiceInfo"; +// 删除一条客户发票抬头信息 +const deleteCustInvoiceInfoByID = serverUrl + "/business/h5/pay/invoice/deleteCustInvoiceInfoByID"; +// 获取开票订单列表 +const queryRntPayOrderForInvoice = serverUrl + "/business/h5/pay/invoice/queryRntPayOrderForInvoice"; + +// 记录客户开发票历史信息及开票历史详情信息 +const openTicketForCustInvoiceHisInfo = serverUrl + "/business/h5/pay/invoice/openTicketForCustInvoiceHisInfo"; + +// 查询客户所有发票历史 +const queryCustInvoiceHistoryList = serverUrl + "/business/h5/pay/invoice/queryCustInvoiceHistoryList"; + +// 重发邮件 +const resendInvoiceMail = serverUrl + "/business/h5/pay/invoice/resendInvoiceMail"; @@ -223,8 +244,43 @@ var cardTypeFormat = function(num){ return '折扣券' } } + +var formatDate = function(dataStr) { + var time = new Date(dataStr); + + function timeAdd0(str) { + + if (str < 10) { + + str = '0' + str; + + } + + return str + + } + + var y = time.getFullYear(); + + var m = time.getMonth() + 1; + + var d = time.getDate(); + + var h = time.getHours(); + + var mm = time.getMinutes(); + + var s = time.getSeconds(); + + return y + '-' + timeAdd0(m) + '-' + timeAdd0(d) + ' ' + + + timeAdd0(h) + ':' + timeAdd0(mm) + ':' + timeAdd0(s); + + +}; export default { // deviceInfo, + formatDate, hs_wxPay_appId, public_orgId, appName, @@ -254,6 +310,23 @@ export default { accountPay, + // 获取发票抬头列表 + queryCustInvoiceInfoList, + // 新增一条客户发票抬头信息 + insertCustInvoiceInfo, + // 通过主键更新一条客户发票抬头信息 + updateCustInvoiceInfo, + // 删除一条客户发票抬头信息 + deleteCustInvoiceInfoByID, + // 获取开票订单列表 + queryRntPayOrderForInvoice, + // 记录客户开发票历史信息及开票历史详情信息 + openTicketForCustInvoiceHisInfo, + // 查询客户所有发票历史 + queryCustInvoiceHistoryList, + // 重发邮件 + resendInvoiceMail, + //陈彪接口 rechargeList, walletKindType, diff --git a/common/uni.css b/common/uni.css index 63893ff..472a18c 100644 --- a/common/uni.css +++ b/common/uni.css @@ -1857,4 +1857,11 @@ checkbox-group label { .marginRightArrow{ margin-right: 10px; -} \ No newline at end of file +} + +.novipcard_Mid{ + text-align: center; +} + + + diff --git a/pages/addTitle/addTitle.vue b/pages/addTitle/addTitle.vue index 877e86a..14fe58c 100644 --- a/pages/addTitle/addTitle.vue +++ b/pages/addTitle/addTitle.vue @@ -1,157 +1,292 @@ diff --git a/pages/companyMsg/companyMsg.vue b/pages/companyMsg/companyMsg.vue index 9319ef9..2e52c77 100644 --- a/pages/companyMsg/companyMsg.vue +++ b/pages/companyMsg/companyMsg.vue @@ -1,119 +1,99 @@ diff --git a/pages/invoicePreview/invoicePreview.vue b/pages/invoicePreview/invoicePreview.vue index 8c3b35f..b94cd42 100644 --- a/pages/invoicePreview/invoicePreview.vue +++ b/pages/invoicePreview/invoicePreview.vue @@ -1,17 +1,30 @@ diff --git a/pages/invoiceTitle/invoiceTitle.vue b/pages/invoiceTitle/invoiceTitle.vue index 012acbf..724cfa1 100644 --- a/pages/invoiceTitle/invoiceTitle.vue +++ b/pages/invoiceTitle/invoiceTitle.vue @@ -1,130 +1,240 @@