diff --git a/common/js/api.js b/common/js/api.js
index 550ed53..bb6a529 100644
--- a/common/js/api.js
+++ b/common/js/api.js
@@ -16,6 +16,10 @@ let API = {
API.sendRequest('get', data, '/api/InvoiceIssuance/getQrCode', success, fail, boolean)
},
// 获取申请数据
+ getErrorInfo(data, success, fail, boolean=true){
+ API.sendRequest('get', data, '/api/InvoiceIssuance/getErrorInfo', success, fail, boolean)
+ },
+ // 获取申请数据
getApplyData(data, success, fail, boolean=true){
API.sendRequest('get', data, '/api/InvoiceIssuance/getApplyData', success, fail, boolean)
},
diff --git a/pages.json b/pages.json
index 21e6eda..220390a 100644
--- a/pages.json
+++ b/pages.json
@@ -52,6 +52,16 @@
"navigationBarTitleText" : "",
"enablePullDownRefresh" : false
}
+ },
+ {
+ "path" : "pages/Invoiced/fail",
+ "style" :
+ {
+ "navigationBarTitleText" : "查看失败原因",
+ "enablePullDownRefresh" : false,
+ "navigationBarBackgroundColor": "#000",
+ "navigationBarTextStyle": "white"
+ }
}
],
"globalStyle": {
diff --git a/pages/Invoiced/fail.vue b/pages/Invoiced/fail.vue
new file mode 100644
index 0000000..aaa4304
--- /dev/null
+++ b/pages/Invoiced/fail.vue
@@ -0,0 +1,38 @@
+
+
+ {{content}}
+
+
+
+
+
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 8ea72b1..d8f123f 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -23,7 +23,9 @@
:class="item.status=== 4 ?'back1':'back2'">
{{item.serial_number}}
- {{item.status==3?item.status_str+',点击获取':item.status_str}}
+
+ {{item.status==3?item.status_str+',点击获取':item.status==2?item.status_str+',点击查看':item.status_str}}
+
开票项目
@@ -348,6 +350,10 @@
uni.navigateTo({
url:`/pages/Invoiced/Invoiced?id=${id}`
})
+ }else if(uni.getStorageSync('AccessToken')&&status==2){
+ uni.navigateTo({
+ url:`/pages/Invoiced/fail?id=${id}`
+ })
}else if(!uni.getStorageSync('AccessToken')){
uni.showToast({title: '请先进行登入',icon: 'none'});
this.showTokenExpiredPopup();
diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html
index 946c81c..6d30723 100644
--- a/unpackage/dist/build/web/index.html
+++ b/unpackage/dist/build/web/index.html
@@ -1,2 +1,2 @@
Waterinvoice_uiapp
\ No newline at end of file
+ document.write('')