Browse Source

新增开票失败页面

master
liaoxinyu 10 months ago
parent
commit
275c981545
  1. 4
      common/js/api.js
  2. 10
      pages.json
  3. 38
      pages/Invoiced/fail.vue
  4. 8
      pages/index/index.vue
  5. 2
      unpackage/dist/build/web/index.html
  6. 1
      unpackage/dist/build/web/static/js/index.6dd2517e.js
  7. 1
      unpackage/dist/build/web/static/js/index.ce205bc0.js
  8. 2
      unpackage/dist/build/web/static/js/pages-Invoiced-Invoiced.5f307c9b.js
  9. 1
      unpackage/dist/build/web/static/js/pages-Invoiced-fail.2723627f.js
  10. 2
      unpackage/dist/build/web/static/js/pages-Invoicing-Invoicing.0bd61543.js
  11. 2
      unpackage/dist/build/web/static/js/pages-Invoicing-Invoicing~pages-index-index~pages-login-registerphone.9c73dba5.js
  12. 1
      unpackage/dist/build/web/static/js/pages-index-index.0cdecba2.js
  13. 1
      unpackage/dist/build/web/static/js/pages-index-index.c292d7b2.js
  14. 2
      unpackage/dist/build/web/static/js/pages-login-wxlogin.158974ab.js

4
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)
},

10
pages.json

@ -52,6 +52,16 @@
"navigationBarTitleText" : "",
"enablePullDownRefresh" : false
}
},
{
"path" : "pages/Invoiced/fail",
"style" :
{
"navigationBarTitleText" : "查看失败原因",
"enablePullDownRefresh" : false,
"navigationBarBackgroundColor": "#000",
"navigationBarTextStyle": "white"
}
}
],
"globalStyle": {

38
pages/Invoiced/fail.vue

@ -0,0 +1,38 @@
<template>
<view>
<view class="center">{{content}}</view>
</view>
</template>
<script>
import API from '@/common/js/api.js'
export default {
data() {
return {
content:''
}
},
onLoad(option) { //optionobject
if(option.id){
let data = {
id:option.id
}
API.getErrorInfo(data, res => {
this.content = res.data.content
// console.log(res);
})
}
},
methods: {
}
}
</script>
<style scoped>
.center{
text-align: center;
margin-top: 100rpx;
padding: 0px 100rpx;
}
</style>

8
pages/index/index.vue

@ -23,7 +23,9 @@
:class="item.status=== 4 ?'back1':'back2'">
<view class="d-flex jcontent-between">
<view class="index_list_size" :class="item.status=== 4 ?'grey1':'black'">{{item.serial_number}}</view>
<view class="index_list_color" :class="item.status=== 4 ?'grey2':'blue'">{{item.status==3?item.status_str+',点击获取':item.status_str}}</view>
<view class="index_list_color" :class="item.status=== 4 ?'grey2':'blue'">
{{item.status==3?item.status_str+',点击获取':item.status==2?item.status_str+',点击查看':item.status_str}}
</view>
</view>
<view class="d-flex jcontent-between">
<view>开票项目</view>
@ -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();

2
unpackage/dist/build/web/index.html

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>Waterinvoice_uiapp</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=./static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=./static/js/chunk-vendors.0e233154.js></script><script src=./static/js/index.ce205bc0.js></script></body></html>
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=./static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=./static/js/chunk-vendors.0e233154.js></script><script src=./static/js/index.6dd2517e.js></script></body></html>

1
unpackage/dist/build/web/static/js/index.6dd2517e.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/web/static/js/index.ce205bc0.js

File diff suppressed because one or more lines are too long

2
unpackage/dist/build/web/static/js/pages-Invoiced-Invoiced.7a9dd2ee.js → unpackage/dist/build/web/static/js/pages-Invoiced-Invoiced.5f307c9b.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/web/static/js/pages-Invoiced-fail.2723627f.js

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-Invoiced-fail"],{"4dd5":function(e,t,n){"use strict";n.r(t);var a=n("9a82"),o=n("e538");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("c3cd");var c=n("828b"),d=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,"7f56f803",null,!1,a["a"],void 0);t["default"]=d.exports},"88e1":function(e,t,n){var a=n("97dc");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("967d").default;o("1e53c36e",a,!0,{sourceMap:!1,shadowMode:!1})},"97dc":function(e,t,n){var a=n("c86c");t=a(!1),t.push([e.i,".center[data-v-7f56f803]{text-align:center;margin-top:%?100?%;padding:0 %?100?%}",""]),e.exports=t},"9a82":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",[t("v-uni-view",{staticClass:"center"},[this._v(this._s(this.content))])],1)},o=[]},c3cd:function(e,t,n){"use strict";var a=n("88e1"),o=n.n(a);o.a},ce48:function(e,t,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("d599")),i={data:function(){return{content:""}},onLoad:function(e){var t=this;if(e.id){var n={id:e.id};o.default.getErrorInfo(n,(function(e){t.content=e.data.content}))}},methods:{}};t.default=i},d599:function(e,t,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("9b1b")),i="http://120.234.15.170:8078",c={baseUrl:i,getJsSdkData:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/wechat/Wechat/getJsSdkData",t,n,a)},getQrCode:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",e,"/api/InvoiceIssuance/getQrCode",t,n,a)},getErrorInfo:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",e,"/api/InvoiceIssuance/getErrorInfo",t,n,a)},getApplyData:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",e,"/api/InvoiceIssuance/getApplyData",t,n,a)},Home:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/api/InvoiceIssuance/getList",t,n,a)},validateFeePay:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/api/InvoiceIssuance/validateFeePay",t,n,a)},sendSms:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/wechat/wechat/sendSms",t,n,a)},getWxCode:function(e,t,n){c.sendRequest("get",e,"/wechat/login/getWxCode",t,n)},wx:function(e,t,n){c.sendRequest("get",e,"/wechat/login/wx",t,n)},getFeeInvoiceHead:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",e,"/api/InvoiceIssuance/getFeeInvoiceHead",t,n,a)},request:function(e,t,n,a){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];c.sendRequest("post",t,e,n,a,o)},sendRequest:function(e,t,n,a,c,d){var s="";s="post"==e?"application/x-www-form-urlencoded":"application/json";var u={};d&&(u.header={"Content-Type":s,Accept:"application/json, text/javascript, */*; q=0.01",token:uni.getStorageSync("AccessToken")||""}),uni.request((0,o.default)((0,o.default)({url:i+n,method:e,data:t},u),{},{success:function(e){1!=e.data.code&&-8!=e.data.code?(-14!=e.data.code&&-997!=e.data.code||(uni.removeStorageSync("AccessToken"),uni.removeStorageSync("phone"),uni.removeStorageSync("pucode"),uni.removeStorageSync("openid"),setTimeout((function(){uni.$emit("tokenExpired"),uni.reLaunch({url:"/pages/index/index"})}),2600)),"/api/InvoiceIssuance/validateFeePay"!==n&&uni.showToast({title:e.data.msg||e.msg,icon:"none"})):a&&a(e.data)}}))}},d=c;t.default=d},e538:function(e,t,n){"use strict";n.r(t);var a=n("ce48"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=o.a}}]);

2
unpackage/dist/build/web/static/js/pages-Invoicing-Invoicing.97cd5f9b.js → unpackage/dist/build/web/static/js/pages-Invoicing-Invoicing.0bd61543.js

File diff suppressed because one or more lines are too long

2
unpackage/dist/build/web/static/js/pages-Invoicing-Invoicing~pages-index-index~pages-login-registerphone.2d8c08ea.js → unpackage/dist/build/web/static/js/pages-Invoicing-Invoicing~pages-index-index~pages-login-registerphone.9c73dba5.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/web/static/js/pages-index-index.0cdecba2.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/web/static/js/pages-index-index.c292d7b2.js

File diff suppressed because one or more lines are too long

2
unpackage/dist/build/web/static/js/pages-login-wxlogin.aa04cd79.js → unpackage/dist/build/web/static/js/pages-login-wxlogin.158974ab.js

@ -1 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-wxlogin"],{5113:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view")},o=[]},"75b1":function(e,t,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("d599")),i={data:function(){return{code:"",state:"",state1:"",appId:"",redirectUri:""}},onLoad:function(e){this.checkWeChatCode()},methods:{checkWeChatCode:function(){var e=this;o.default.getWxCode({},(function(t){1==t.code&&(e.redirectUri=t.data.redirectUri,e.appId=t.data.appId,e.state=t.data.state,e.getCode())}))},getCode:function(){var e=encodeURIComponent(o.default.baseUrl+"/wechat/");window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+this.appId+"&redirect_uri="+e+"&response_type=code&scope=snsapi_userinfo&state="+this.state+"#wechat_redirect"}}};t.default=i},d599:function(e,t,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("9b1b")),i="http://120.234.15.170:8078",d={baseUrl:i,getJsSdkData:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("post",e,"/wechat/Wechat/getJsSdkData",t,n,a)},getQrCode:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("get",e,"/api/InvoiceIssuance/getQrCode",t,n,a)},getApplyData:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("get",e,"/api/InvoiceIssuance/getApplyData",t,n,a)},Home:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("post",e,"/api/InvoiceIssuance/getList",t,n,a)},validateFeePay:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("post",e,"/api/InvoiceIssuance/validateFeePay",t,n,a)},sendSms:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("post",e,"/wechat/wechat/sendSms",t,n,a)},getWxCode:function(e,t,n){d.sendRequest("get",e,"/wechat/login/getWxCode",t,n)},wx:function(e,t,n){d.sendRequest("get",e,"/wechat/login/wx",t,n)},getFeeInvoiceHead:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("get",e,"/api/InvoiceIssuance/getFeeInvoiceHead",t,n,a)},request:function(e,t,n,a){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];d.sendRequest("post",t,e,n,a,o)},sendRequest:function(e,t,n,a,d,c){var s="";s="post"==e?"application/x-www-form-urlencoded":"application/json";var u={};c&&(u.header={"Content-Type":s,Accept:"application/json, text/javascript, */*; q=0.01",token:uni.getStorageSync("AccessToken")||""}),uni.request((0,o.default)((0,o.default)({url:i+n,method:e,data:t},u),{},{success:function(e){1!=e.data.code&&-8!=e.data.code?(-14!=e.data.code&&-997!=e.data.code||(uni.removeStorageSync("AccessToken"),uni.removeStorageSync("phone"),uni.removeStorageSync("openid"),setTimeout((function(){uni.$emit("tokenExpired"),uni.reLaunch({url:"/pages/index/index"})}),2600)),"/api/InvoiceIssuance/validateFeePay"!==n&&uni.showToast({title:e.data.msg||e.msg,icon:"none"})):a&&a(e.data)}}))}},c=d;t.default=c},db07:function(e,t,n){"use strict";n.r(t);var a=n("75b1"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=o.a},e411:function(e,t,n){"use strict";n.r(t);var a=n("5113"),o=n("db07");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var d=n("828b"),c=Object(d["a"])(o["default"],a["b"],a["c"],!1,null,"1a8792d2",null,!1,a["a"],void 0);t["default"]=c.exports}}]);
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-wxlogin"],{5113:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view")},o=[]},"75b1":function(e,t,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("d599")),i={data:function(){return{code:"",state:"",state1:"",appId:"",redirectUri:""}},onLoad:function(e){this.checkWeChatCode()},methods:{checkWeChatCode:function(){var e=this;o.default.getWxCode({},(function(t){1==t.code&&(e.redirectUri=t.data.redirectUri,e.appId=t.data.appId,e.state=t.data.state,e.getCode())}))},getCode:function(){var e=encodeURIComponent(o.default.baseUrl+"/wechat/");window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+this.appId+"&redirect_uri="+e+"&response_type=code&scope=snsapi_userinfo&state="+this.state+"#wechat_redirect"}}};t.default=i},d599:function(e,t,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("9b1b")),i="http://120.234.15.170:8078",d={baseUrl:i,getJsSdkData:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("post",e,"/wechat/Wechat/getJsSdkData",t,n,a)},getQrCode:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("get",e,"/api/InvoiceIssuance/getQrCode",t,n,a)},getErrorInfo:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("get",e,"/api/InvoiceIssuance/getErrorInfo",t,n,a)},getApplyData:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("get",e,"/api/InvoiceIssuance/getApplyData",t,n,a)},Home:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("post",e,"/api/InvoiceIssuance/getList",t,n,a)},validateFeePay:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("post",e,"/api/InvoiceIssuance/validateFeePay",t,n,a)},sendSms:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("post",e,"/wechat/wechat/sendSms",t,n,a)},getWxCode:function(e,t,n){d.sendRequest("get",e,"/wechat/login/getWxCode",t,n)},wx:function(e,t,n){d.sendRequest("get",e,"/wechat/login/wx",t,n)},getFeeInvoiceHead:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("get",e,"/api/InvoiceIssuance/getFeeInvoiceHead",t,n,a)},request:function(e,t,n,a){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];d.sendRequest("post",t,e,n,a,o)},sendRequest:function(e,t,n,a,d,c){var s="";s="post"==e?"application/x-www-form-urlencoded":"application/json";var u={};c&&(u.header={"Content-Type":s,Accept:"application/json, text/javascript, */*; q=0.01",token:uni.getStorageSync("AccessToken")||""}),uni.request((0,o.default)((0,o.default)({url:i+n,method:e,data:t},u),{},{success:function(e){1!=e.data.code&&-8!=e.data.code?(-14!=e.data.code&&-997!=e.data.code||(uni.removeStorageSync("AccessToken"),uni.removeStorageSync("phone"),uni.removeStorageSync("pucode"),uni.removeStorageSync("openid"),setTimeout((function(){uni.$emit("tokenExpired"),uni.reLaunch({url:"/pages/index/index"})}),2600)),"/api/InvoiceIssuance/validateFeePay"!==n&&uni.showToast({title:e.data.msg||e.msg,icon:"none"})):a&&a(e.data)}}))}},c=d;t.default=c},db07:function(e,t,n){"use strict";n.r(t);var a=n("75b1"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=o.a},e411:function(e,t,n){"use strict";n.r(t);var a=n("5113"),o=n("db07");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var d=n("828b"),c=Object(d["a"])(o["default"],a["b"],a["c"],!1,null,"1a8792d2",null,!1,a["a"],void 0);t["default"]=c.exports}}]);
Loading…
Cancel
Save