diff --git a/common/js/api.js b/common/js/api.js index 595e585..05e4f8d 100644 --- a/common/js/api.js +++ b/common/js/api.js @@ -69,7 +69,7 @@ export default { return uni.api.post("store/enterprise", data, false); }, storese(data) { - return uni.api.post("store/se", data); + return uni.api.post("store/se", data, false); }, storesubinvoicing(data) { return uni.api.post("store/subinvoicing", data); @@ -80,7 +80,7 @@ export default { szzpyhurl(data) { return uni.api.post("szzpy/h5url", data); }, - szzpygetprovinceno(data) { + szzpygetprovinceno(data) {//地区 return uni.api.post("szzpy/getprovinceno", data); }, storebindinginvopush(data) { @@ -98,4 +98,70 @@ export default { h5encryption(data) { return uni.api.post("store/h5encryption", data); }, + hfivegetstoreinfo(data) { + return uni.api.post("hfive/getstoreinfo", data, false); + }, + hfivestoreqy(data) { + return uni.api.post("hfive/storeqy", data); + }, + hfiveenterprise(data) { + return uni.api.post("hfive/enterprise", data, false); + }, + directinvoicingopen(data) { //数电普票开具 + return uni.api.post("hfive/directinvoicingopen", data); + }, + newissuedbylist(data) { //开票人列表 + return uni.api.post("hfive/newissuedbylist", data); + }, + hfivelslbs(data) { //税率标识 + return uni.api.post("hfive/lslbs", data, false); + }, + addinvoicegoods(data) { //税率标识 + return uni.api.post("hfive/addinvoicegoods", data); + }, + selectencoding(data) { //行业列表 (选择编码) + return uni.api.post("hfive/selectencoding", data, false); + }, + invoicecoding(data) { //行业列表 (选择编码) + return uni.api.post("hfive/invoicecoding", data, false); + }, + invoicegoodslist(data) { //商品列表 + return uni.api.post("hfive/invoicegoodslist", data); + }, + invoicedlist(data) { //商品列表 + return uni.api.post("hfive/invoicedlist", data, false); + }, + addinvoicegoodsdel(data) { //删除商品 + return uni.api.post("hfive/addinvoicegoodsdel", data); + }, + setdefault(data) { //商品设为默认 + return uni.api.post("hfive/setdefault", data); + }, + invoicedorderlist(data) { //订单列表 + return uni.api.post("hfive/invoicedorderlist", data); + }, + hfivestatuslist(data) { //订单列表 + return uni.api.post("hfive/statuslist", data); + }, + invoicingrecordsthatneed(data) { //审核开票记录 + return uni.api.post("hfive/invoicingrecordsthatneed", data); + }, + newissuedbyliststatus(data) { //开票人列表(带状态) + return uni.api.post("hfive/newissuedbyliststatus", data); + }, + getsendsms(data) { //获取验证码(登录) + return uni.api.post("hfive/getsendsms", data); + }, + sensms(data) { //获取验证码(登录) + return uni.api.post("hfive/sensms", data); + }, + accountqrcode(data) { //获取人脸识别二维码 + return uni.api.post("hfive/accountqrcode", data); + }, + kpdefault(data) { //默认开票人 + return uni.api.post("hfive/kpdefault", data); + }, + invoiceddetail(data) { //发票/订单详情 + return uni.api.post("hfive/invoiceddetail", data); + }, } \ No newline at end of file diff --git a/manifest.json b/manifest.json index cacdf7d..d54d9cf 100644 --- a/manifest.json +++ b/manifest.json @@ -64,7 +64,7 @@ "disableHostCheck" : false, "proxy" : { "/api" : { - "target" : "http://192.168.1.13:8888/api/", + "target" : "http://192.168.1.24:8888/api/", "ws" : false, "changeOrigin" : true, //是否跨域 "secure" : false, // 设置支持https协议的代理 diff --git a/pages.json b/pages.json index a307ab7..31936e9 100644 --- a/pages.json +++ b/pages.json @@ -121,7 +121,37 @@ }, { "path": "pages/electric/index", "style": { - "navigationBarTitleText": "" + "navigationBarTitleText": "后台管理" + } + }, { + "path": "pages/electric/bluetools", + "style": { + "navigationBarTitleText": "蓝票开具" + } + }, { + "path": "pages/electric/toexamine", + "style": { + "navigationBarTitleText": "已开发票" + } + }, { + "path": "pages/electric/issuer", + "style": { + "navigationBarTitleText": "开票人" + } + }, { + "path": "pages/electric/Invoicedgoods", + "style": { + "navigationBarTitleText": "开票商品" + } + }, { + "path": "pages/electric/orderinquiry", + "style": { + "navigationBarTitleText": "订单查询" + } + }, { + "path": "pages/electric/auditrecords", + "style": { + "navigationBarTitleText": "审核开票" } }, { "path": "pages/webview/webview", diff --git a/pages/electric/Invoicedgoods.vue b/pages/electric/Invoicedgoods.vue new file mode 100644 index 0000000..6f0d3e4 --- /dev/null +++ b/pages/electric/Invoicedgoods.vue @@ -0,0 +1,784 @@ + + + + + \ No newline at end of file diff --git a/pages/electric/auditrecords.vue b/pages/electric/auditrecords.vue new file mode 100644 index 0000000..c656557 --- /dev/null +++ b/pages/electric/auditrecords.vue @@ -0,0 +1,571 @@ + + + + + \ No newline at end of file diff --git a/pages/electric/bluetools.vue b/pages/electric/bluetools.vue new file mode 100644 index 0000000..ffbafb7 --- /dev/null +++ b/pages/electric/bluetools.vue @@ -0,0 +1,1860 @@ + + + + + \ No newline at end of file diff --git a/pages/electric/index.vue b/pages/electric/index.vue index 2d5f3df..cedb5c3 100644 --- a/pages/electric/index.vue +++ b/pages/electric/index.vue @@ -1,57 +1,75 @@ @@ -59,71 +77,47 @@ export default { data() { return { - swiperlist: [{ - image: 'https://cdn.uviewui.com/uview/swiper/1.jpg', - title: '昨夜星辰昨夜风,画楼西畔桂堂东' - }, - { - image: 'https://cdn.uviewui.com/uview/swiper/2.jpg', - title: '身无彩凤双飞翼,心有灵犀一点通' - }, - { - image: 'https://cdn.uviewui.com/uview/swiper/3.jpg', - title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳' - } + swiperlist: [ + 'https://shuzu-download.oss-cn-shanghai.aliyuncs.com/advertise/2024-05-08-10-52-th-663ae8fc73220.png' ], + enterprise: {}, //企业 + blueticket: { + xj: '', + store: '' + } //蓝票 } }, async onLoad(e) { - // await this.$onLaunched; - // alert(location.href.split('#')[0]) - if (e.userId) { - // this.onLoaduserId = e.userId - uni.cache.set('Type', e.type); - uni.cache.set('userId', e.userId); - } - let token = await this.api.h5encryption({ - store_id: uni.cache.get('userId') - }) - if (token.code == 1) { - uni.cache.set('token', token.data.token); - } - console.log(token) - let res = await this.api.storestorestatus({ - store_id: uni.cache.get('userId') - }) - if (res.code == 1) { - this.improveinformationform = res.data.store - uni.cache.set('form', this.improveinformationform); - if (res.data.sz_status == 0) { - uni.reLaunch({ - url: '/pages/index/information' - }); - } else { - this.improveinformation = true - } - } + let data = await this.api.hfivestoreqy() + this.blueticket = data.data }, methods: { + clicknavigateTo(item, index) { - console.log(index) switch (index) { - case '0': - uni.pro.navigateTo('webview/webview', { - url: c - }); + case 0: + // uni.pro.navigateTo('webview/webview', { + // url: c + // }); + uni.pro.navigateTo('electric/bluetools'); break; case 1: - uni.pro.navigateTo('bluetools/index'); + uni.pro.navigateTo('electric/toexamine'); // uni.pro.navigateTo(b, { // url: c // }); break; case 2: - uni.pro.navigateTo('issuer/index'); + uni.pro.navigateTo('electric/Invoicedgoods'); break; case 3: - uni.pro.navigateTo('toexamine/index'); + uni.pro.navigateTo('electric/orderinquiry'); + break; + case 4: + uni.pro.navigateTo('electric/auditrecords'); + break; + case 5: + uni.pro.navigateTo('electric/issuer'); break; } } @@ -151,6 +145,12 @@ background: #FFFFFF; border-radius: 24px 24px 24px 24px; + &::after { + content: ""; + width: 25%; + display: inline-block; + } + .flex-colum { width: 25%; margin-top: 36rpx; @@ -195,6 +195,11 @@ } .contentlistitemtow { + width: 55%; + text-align: right; + overflow: hidden; //超出的文本隐藏 + text-overflow: ellipsis; //溢出用省略号显示 + white-space: nowrap; //溢出不换行 font-family: Source Han Sans CN, Source Han Sans CN; font-weight: 400; font-size: 28rpx; diff --git a/pages/electric/issuer.vue b/pages/electric/issuer.vue new file mode 100644 index 0000000..f2ef4fb --- /dev/null +++ b/pages/electric/issuer.vue @@ -0,0 +1,774 @@ + + + + + \ No newline at end of file diff --git a/pages/electric/orderinquiry.vue b/pages/electric/orderinquiry.vue new file mode 100644 index 0000000..5705927 --- /dev/null +++ b/pages/electric/orderinquiry.vue @@ -0,0 +1,618 @@ + + + + + \ No newline at end of file diff --git a/pages/electric/toexamine.vue b/pages/electric/toexamine.vue new file mode 100644 index 0000000..4c4f7f5 --- /dev/null +++ b/pages/electric/toexamine.vue @@ -0,0 +1,594 @@ + + + + + \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 82c98e3..bcc3b5e 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -202,15 +202,16 @@ uni.pro.navigateTo('index/Invoicing'); }, async webview() { - let res = await this.api.szzpyhurl({ - store_id: uni.getStorageSync('userId') - }) - if (res) { - uni.pro.navigateTo('webview/webview', { - url: res.data.url, - tape: 1 - }); - } + uni.pro.navigateTo('electric/index'); + // let res = await this.api.szzpyhurl({ + // store_id: uni.getStorageSync('userId') + // }) + // if (res) { + // uni.pro.navigateTo('webview/webview', { + // url: res.data.url, + // tape: 1 + // }); + // } }, indexorder() { uni.pro.navigateTo('index/order'); diff --git a/pages/index/order.vue b/pages/index/order.vue index 1e5585b..4cd3511 100644 --- a/pages/index/order.vue +++ b/pages/index/order.vue @@ -28,8 +28,7 @@ - + @@ -38,12 +37,28 @@ export default { data() { return { - list: [] + list: [], + form: { + page: 1, + status: 'loadmore', + }, }; }, onShow() { - this.storeinvoicelist() + this.list = [] + this.form = { + page: 1, + status: 'loadmore', + }, + this.storeinvoicelist() + }, + onReachBottom() { + if (this.form.status != 'nomore') { + this.form.page = ++this.form.page; + this.storeinvoicelist() + } + }, methods: { clickoange(e) { @@ -61,10 +76,25 @@ } }, async storeinvoicelist() { + this.form.status = 'loading'; let res = await this.api.storeinvoicelist({ - store_id: uni.getStorageSync('userId') + store_id: uni.getStorageSync('userId'), + page: this.form.page + }) - this.list = res.data + if (this.form.page == 1 && res.data.list.length == 0) { + this.form.status = 'nomore' + return false; + } else { + setTimeout(() => { + this.list = [...this.list, ...res.data.list]; + if (res.data.list.length < 10) { + this.form.status = 'nomore'; + } else { + this.form.status = 'loadmore'; + } + }, 500) + } }, } } diff --git a/static/electric/type1.png b/static/electric/type1.png new file mode 100644 index 0000000..82129c1 Binary files /dev/null and b/static/electric/type1.png differ diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index 65ba4ab..96324f5 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -3,4 +3,4 @@ document.write( '')
\ No newline at end of file + '" />')
\ No newline at end of file