From b045a8d3db43b02977cb002cb44d0b105597037b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=97=E4=BA=A7-=E7=8E=8B=E5=9D=A4?= Date: Sat, 22 Nov 2025 01:24:46 +0800 Subject: [PATCH] fromdao251122 --- fapp/ciyon_ap/App.vue | 18 + fapp/ciyon_ap/components/ciy-dbg/ciy-dbg.vue | 2 +- .../components/ciy-dialog/ciy-dialog.vue | 2 +- .../components/ciy-markdown/ciy-markdown.vue | 59 +++- .../components/ciy-totalsem/ciy-totalsem.vue | 43 +++ .../components/diy-apuser/diy-apuser.vue | 77 +++++ fapp/ciyon_ap/pages/main/index.vue | 12 +- fapp/ciyon_ap/pages/main/me.vue | 97 +++--- fapp/ciyon_ap/pages/me/cash_charge.vue | 1 + fapp/ciyon_ap/pages/me/cashout_cash.vue | 6 +- fapp/ciyon_ap/pages/me/safe_ccub.vue | 2 +- fapp/ciyon_ap/pages/me/safe_real.vue | 11 +- fapp/ciyon_ap/pages/me/user_info.vue | 2 +- fapp/ciyon_ap/util/ciy.js | 27 +- fapp/ciyon_ap/util/style.css | 325 +++++++++--------- web/admin/ap/cash_out_apply.php | 9 +- web/admin/ap/cash_out_inv.html | 1 + web/admin/ap/cash_out_inv.php | 7 +- web/admin/ap/cash_out_transfer.php | 6 +- web/admin/ap/user.html | 47 --- web/admin/ap/user.php | 44 --- web/admin/ap/user_service.php | 44 --- web/admin/cemap/bill.html | 2 +- web/admin/cemap/bill.php | 8 +- web/admin/cemap/ceeditor.html | 4 +- web/admin/cemap/glb.html | 2 +- web/admin/cemap/glb.php | 8 +- web/admin/cemap/pathbill.php | 4 +- web/admin/cemap/pathglb.php | 4 +- web/admin/develop/code_create.html | 1 + web/admin/develop/code_pc_html.php | 3 +- web/admin/develop/code_pc_php.php | 2 +- web/ambap/ciyai.php | 285 +++++++++++++++ web/ambap/common.php | 2 +- web/ambap/login.php | 36 +- web/ambap/me.php | 77 ++--- web/ambap/wxpay.php | 9 + web/api/thirdapi.php | 21 +- web/api/weixin.php | 158 +++++++++ web/jscss/ciycmp2.js | 54 ++- web/jscss/style.css | 1 - zciyphp/pdo.php | 1 - zciyphp/wxfunc.php | 2 +- 43 files changed, 1008 insertions(+), 518 deletions(-) create mode 100644 fapp/ciyon_ap/components/ciy-totalsem/ciy-totalsem.vue create mode 100644 fapp/ciyon_ap/components/diy-apuser/diy-apuser.vue create mode 100644 web/ambap/ciyai.php create mode 100644 web/api/weixin.php diff --git a/fapp/ciyon_ap/App.vue b/fapp/ciyon_ap/App.vue index 338c809..a0cfc48 100644 --- a/fapp/ciyon_ap/App.vue +++ b/fapp/ciyon_ap/App.vue @@ -52,6 +52,7 @@ app.globalData.errdata = app.getstorage('err'); if (!(app.globalData.errdata instanceof Array)) app.globalData.errdata = []; + app.globalData.mqfunc = []; app.globalData.srv = 't'; app.globalData.jsnajax = 'z/?func=ambap/'; @@ -119,6 +120,23 @@ app.removestorage('err'); } }, 1000); + setInterval(async () => { + if (app.globalData.mqfunc.length > 0) { + console.log(app.globalData.mqfunc); + var ret = await app.callfunc({ + func: app.globalData.mqfunc[0].func, + data: app.globalData.mqfunc[0].data, + loadhide: true, + }); + var name = app.globalData.mqfunc[0].name; + for (var i = app.globalData.mqfunc.length - 1; i >= 0; i--) { + if (app.globalData.mqfunc[i].name == name) { + app.globalData.mqfunc[i].callback(ret); + app.globalData.mqfunc.splice(i, 1); + } + } + } + }, 200); setInterval(() => { getnewnotice(); }, 120000); //2分钟请求一次notice diff --git a/fapp/ciyon_ap/components/ciy-dbg/ciy-dbg.vue b/fapp/ciyon_ap/components/ciy-dbg/ciy-dbg.vue index ad0dc88..68a6fba 100644 --- a/fapp/ciyon_ap/components/ciy-dbg/ciy-dbg.vue +++ b/fapp/ciyon_ap/components/ciy-dbg/ciy-dbg.vue @@ -1,5 +1,5 @@ @@ -19,6 +19,10 @@ md: { type: String, default: '' + }, + padding: { + type: String, + default: '0 0.5em' } }, data() { @@ -68,43 +72,59 @@ } var cr = mds[m].substring(1, 2).toLowerCase(); if (mds[m].substring(0, 5) == '#####') { - if (mds[m].substring(5, 6) == '1') + oladd(4, titnum); + if (mds[m].substring(5, 6) == '.') html += '
' + olnum(4, titnum, '、') + convertcode(mds[m].substring(6)) + '
'; + else if (mds[m].substring(5, 6) == ':') + html += '
' + olnum(4, titnum, ' ') + convertcode(mds[m].substring(6)) + '
'; else html += '
' + convertcode(mds[m].substring(5)) + '
'; } else if (mds[m].substring(0, 4) == '####') { - if (mds[m].substring(4, 5) == '1') + oladd(3, titnum); + if (mds[m].substring(4, 5) == '.') html += '

' + olnum(3, titnum, '、') + convertcode(mds[m].substring(5)) + '

'; + else if (mds[m].substring(4, 5) == ':') + html += '
' + olnum(3, titnum, ' ') + convertcode(mds[m].substring(5)) + '
'; else html += '

' + convertcode(mds[m].substring(4)) + '

'; } else if (mds[m].substring(0, 3) == '###') { - if (mds[m].substring(3, 4) == '1') + oladd(2, titnum); + if (mds[m].substring(3, 4) == '.') html += '

' + olnum(2, titnum, '、') + convertcode(mds[m].substring(4)) + '

'; + else if (mds[m].substring(3, 4) == ':') + html += '
' + olnum(2, titnum, ' ') + convertcode(mds[m].substring(4)) + '
'; else html += '

' + convertcode(mds[m].substring(3)) + '

'; } else if (mds[m].substring(0, 2) == '##') { - if (mds[m].substring(2, 3) == '1') + oladd(1, titnum); + if (mds[m].substring(2, 3) == '.') html += '

' + olnum(1, titnum, '、') + convertcode(mds[m].substring(3)) + '

'; + else if (mds[m].substring(2, 3) == ':') + html += '
' + olnum(1, titnum, ' ') + convertcode(mds[m].substring(3)) + '
'; else html += '

' + convertcode(mds[m].substring(2)) + '

'; - } else if (cr == 'c') - html += '

' + convertcode(mds[m].substring(2)) + - '

'; - else if (cr == 'r') - html += '

' + convertcode(mds[m].substring(2)) + - '

'; - else if (cr == '1') - html += '

' + olnum(0, titnum, '、') + convertcode(mds[m].substring(2)) + '

'; - else - html += '

' + convertcode(mds[m].substring(1)) + '

'; - + } else { + oladd(0, titnum); + if (cr == 'c') + html += '

' + convertcode(mds[m].substring(2)) + + '

'; + else if (cr == 'r') + html += '

' + convertcode(mds[m].substring(2)) + + '

'; + else if (cr == '.') + html += '

' + olnum(0, titnum, '、') + convertcode(mds[m].substring(2)) + '

'; + else if (cr == ':') + html += '
' + olnum(0, titnum, ' ') + convertcode(mds[m].substring(2)) + '
'; + else + html += '

' + convertcode(mds[m].substring(1)) + '

'; + } } else if (mds[m][0] == '@') { //c居中,r靠右 var cr = mds[m].substring(1, 2).toLowerCase(); if (cr == 'c') html += '
' + convertcode(mds[m].substring(2)) + '
'; else if (cr == 'r') html += '
' + convertcode(mds[m].substring(2)) + '
'; - else if (mds[m][1] == '1') { + else if (mds[m][1] == '.') { if (!isol) { isol = true; html += '
    '; @@ -176,10 +196,13 @@ } return htmls; - function olnum(idx, olnum, end) { + function oladd(idx, olnum) { olnum[idx]++; for (var i = idx + 1; i < olnum.length; i++) olnum[i] = 0; + } + + function olnum(idx, olnum, end) { for (var i = 0; i <= idx; i++) { if (olnum[i] == 0) continue; diff --git a/fapp/ciyon_ap/components/ciy-totalsem/ciy-totalsem.vue b/fapp/ciyon_ap/components/ciy-totalsem/ciy-totalsem.vue new file mode 100644 index 0000000..bcfea6d --- /dev/null +++ b/fapp/ciyon_ap/components/ciy-totalsem/ciy-totalsem.vue @@ -0,0 +1,43 @@ + + + + \ No newline at end of file diff --git a/fapp/ciyon_ap/components/diy-apuser/diy-apuser.vue b/fapp/ciyon_ap/components/diy-apuser/diy-apuser.vue new file mode 100644 index 0000000..05ae9ef --- /dev/null +++ b/fapp/ciyon_ap/components/diy-apuser/diy-apuser.vue @@ -0,0 +1,77 @@ + + + + + \ No newline at end of file diff --git a/fapp/ciyon_ap/pages/main/index.vue b/fapp/ciyon_ap/pages/main/index.vue index 325fb7b..583d9b2 100644 --- a/fapp/ciyon_ap/pages/main/index.vue +++ b/fapp/ciyon_ap/pages/main/index.vue @@ -2,12 +2,12 @@ - - - - - - + + + + + + diff --git a/fapp/ciyon_ap/pages/main/me.vue b/fapp/ciyon_ap/pages/main/me.vue index 6fdcdc5..63b00ff 100644 --- a/fapp/ciyon_ap/pages/main/me.vue +++ b/fapp/ciyon_ap/pages/main/me.vue @@ -2,16 +2,16 @@ - + - + {{me.id>0?(me.name?me.name:'游客'):'登录/注册'}} - - + + Demo E{{me.eid}} @@ -21,15 +21,14 @@ --- - 账户余额 + 可消费余额 - + --- - 信用额度 - 保证金 + 可提现余额 @@ -85,10 +84,6 @@ 收支明细 - - - 保证金 - @@ -109,10 +104,10 @@ - + - + @@ -128,7 +123,7 @@ - + @@ -239,7 +234,7 @@ \ No newline at end of file diff --git a/fapp/ciyon_ap/pages/me/cash_charge.vue b/fapp/ciyon_ap/pages/me/cash_charge.vue index cc6a314..d2e1306 100644 --- a/fapp/ciyon_ap/pages/me/cash_charge.vue +++ b/fapp/ciyon_ap/pages/me/cash_charge.vue @@ -25,6 +25,7 @@ + 充值资金仅可用于本平台指定服务,不可提现、不可转让,平台不提供资金保管或理财服务。 diff --git a/fapp/ciyon_ap/pages/me/cashout_cash.vue b/fapp/ciyon_ap/pages/me/cashout_cash.vue index c8be7cc..6995111 100644 --- a/fapp/ciyon_ap/pages/me/cashout_cash.vue +++ b/fapp/ciyon_ap/pages/me/cashout_cash.vue @@ -159,12 +159,12 @@ this._loading = false; if (retjson.code != 1) return this.alert(retjson.errmsg); - this.init.cashs.splice(idx, 1); - wx.requestMerchant({ + wx.requestMerchantTransfer({ mchId: retjson.transfer.mchid, appId: retjson.transfer.appid, package: retjson.transfer.package_info, - success: (res) => { + success: res => { + this.init.cashs.splice(idx, 1); console.log('success Transfer:', res); }, fail: (res) => { diff --git a/fapp/ciyon_ap/pages/me/safe_ccub.vue b/fapp/ciyon_ap/pages/me/safe_ccub.vue index 5a231bb..61e2958 100644 --- a/fapp/ciyon_ap/pages/me/safe_ccub.vue +++ b/fapp/ciyon_ap/pages/me/safe_ccub.vue @@ -3,7 +3,7 @@ - + 您已申请成功 {{me.cciy}} diff --git a/fapp/ciyon_ap/pages/me/safe_real.vue b/fapp/ciyon_ap/pages/me/safe_real.vue index 13465c1..a6197f6 100644 --- a/fapp/ciyon_ap/pages/me/safe_real.vue +++ b/fapp/ciyon_ap/pages/me/safe_real.vue @@ -88,13 +88,13 @@ async getinit() { await this.getauth('info'); var app = getApp(); - this.inputtype = 2; var retjson = await this.callfunc({ func: 'me.safe_real_init' }); this.init = retjson; if (retjson.code != 1) return this.alert(retjson.errmsg); + this.inputtype = retjson.inputtype; if (retjson.data && retjson.data.auditstatus == 100 && !this.me.truename) { this.me.truename = retjson.data.name; this.me.idid = retjson.data.idid; @@ -109,6 +109,13 @@ this.getrefsSync('cameraocr').Step(1); }, 500); } + this.editdata.name = this.me.truename; + this.editdata.idid = this.me.idid; + if (this.inputtype == 1) { + setTimeout(() => { + this.getrefsSync('cameraocr').Step(1); + }, 500); + } setTimeout(() => { this.getrefsSync('cameraocr').Step(1); }, 500); @@ -156,7 +163,7 @@ if (retjson.code != 1) return this.alert(retjson.errmsg); this.editdata.name = retjson.ai.name; - this.editdata.idno = retjson.ai.idno; + this.editdata.idid = retjson.ai.idno; }, async chgvoice(e) { //按住说话,调用@change,界面上调用大模型给出合理结果,自动填写姓名和身份证号 diff --git a/fapp/ciyon_ap/pages/me/user_info.vue b/fapp/ciyon_ap/pages/me/user_info.vue index 50770ff..ca5b47c 100644 --- a/fapp/ciyon_ap/pages/me/user_info.vue +++ b/fapp/ciyon_ap/pages/me/user_info.vue @@ -70,7 +70,7 @@ opn.imgwidth = 400; opn.imgheight = 400; opn.zipjpg = 70; - this.me.icon = await this.file_upload1(e.detail.avatarUrl, opn); + this.editdata.icon = await this.file_upload1(e.detail.avatarUrl, opn); }, async submit() { if (!this.editdata.name) diff --git a/fapp/ciyon_ap/util/ciy.js b/fapp/ciyon_ap/util/ciy.js index ab0f368..487a33a 100644 --- a/fapp/ciyon_ap/util/ciy.js +++ b/fapp/ciyon_ap/util/ciy.js @@ -655,7 +655,7 @@ export default { }, opn: {}, //页面传参 me: {}, - g: {}, //本地与dydict整合,onshow更新本地,同时合并dydict。 + //g: {}, //本地与dydict整合,onshow更新本地,同时合并dydict。 }; }, created() {}, //全局混入的 created 钩子被调用 @@ -684,14 +684,22 @@ export default { this.jsnurl = app.globalData.jsnurl; //this.constant = {maxtimes: 9999999999999}; this.me = this.getme(); - if (app.globalData.ciy_page_g) - this.g = app.globalData.ciy_page_g; - else - this.g = this.getstorage('g', {}); + // if (app.globalData.ciy_page_g) + // this.g = app.globalData.ciy_page_g; + // else + // this.g = this.getstorage('g', {}); uni.hideTabBar({ fail: res => {} }); }, + computed: { + g() { + if (app.globalData.ciy_page_g) + return app.globalData.ciy_page_g; + else + return this.getstorage('g', {}); + } + }, onShow() { this.settheme(); this.setfont(); @@ -1266,7 +1274,7 @@ export default { return '.' + m2; }, tocciy(cciy) { - if (!cciy) //cciy必须为字符串,否则js无法处理 + if (!cciy || cciy == '0') //cciy必须为字符串,否则js无法处理 return ''; return 'cx' + cciy.substring(0, 1) + '...' + cciy.substring(cciy.length - 6); }, @@ -1519,7 +1527,6 @@ export default { } else { theme = this.getstorage('_theme'); if (!theme) { - var app = getApp(); if (app.globalData._sysinfo.theme == 'dark') theme = 'dark'; } @@ -1647,7 +1654,7 @@ export default { if (type == 'info' && !this.me.name) { this.alert('请先填写个人信息').then(() => { uni.redirectTo({ - url: 'user_info' + url: '/pages/me/user_info' }); }); return; @@ -1655,7 +1662,7 @@ export default { if (type == 'real' && !this.me.truename) { this.alert('请进行实名认证').then(() => { uni.redirectTo({ - url: 'safe_real' + url: '/pages/me/safe_real' }); }); return; @@ -1663,7 +1670,7 @@ export default { if (type == 'bank' && !this.me.bankname) { this.alert('请填写银行信息').then(() => { uni.redirectTo({ - url: 'user_bank' + url: '/pages/me/user_bank' }); }); return; diff --git a/fapp/ciyon_ap/util/style.css b/fapp/ciyon_ap/util/style.css index d6e9b57..a5dc3a8 100644 --- a/fapp/ciyon_ap/util/style.css +++ b/fapp/ciyon_ap/util/style.css @@ -162,6 +162,7 @@ body, view, text { box-sizing: border-box; + /* font-size: clamp(14px, 4vw, 40px); */ font-size-adjust: ex-height 0.53; } @@ -241,10 +242,10 @@ text { /*列表页*/ .ciy-list { position: relative; - margin: 1em; - padding: 0.8em; + margin: 1rem; + padding: 0.8rem; background: var(--bg1); - border-radius: 0.5em; + border-radius: 0.5rem; overflow: hidden; transition: transform ease-in 0.5s; } @@ -255,14 +256,14 @@ text { } .ciy-list .l0 { - font-size: 0.8em; - padding-right: 6em; + font-size: 0.8rem; + padding-right: 6rem; color: var(--txt1); } .ciy-list .l1 { - font-size: 1.2em; - padding: 0.3em 1.5em 0.3em 0.5em; + font-size: 1.2rem; + padding: 0.3em 1.5em 0.3em 0.5rem; } .ciy-list .l2 { @@ -273,10 +274,10 @@ text { .ciy-list .l2>label { color: var(--txt9); - min-width: 5em; + min-width: 5rem; flex-shrink: 0; white-space: nowrap; - padding-right: 1em; + padding-right: 1rem; } .ciy-list .l2>view { @@ -286,82 +287,82 @@ text { } .ciy-list .l3 { - font-size: 0.9em; - padding: 0.3em 1.3em; + font-size: 0.9rem; + padding: 0.3em 1.3rem; color: var(--txt3); } .ciy-list .rtz { position: absolute; - top: 1em; - right: -2.5em; - height: 2em; - line-height: 2em; - width: 9em; + top: 1rem; + right: -2.5rem; + height: 2rem; + line-height: 2rem; + width: 9rem; text-align: center; transform: rotate(45deg); } .ciy-list .rt { position: absolute; - top: 0.8em; - right: 0.8em; + top: 0.8rem; + right: 0.8rem; text-align: right; - font-size: 0.9em; + font-size: 0.9rem; } .ciy-list .rb { text-align: right; - font-size: 0.9em; + font-size: 0.9rem; } .ciy-list .lb { position: absolute; - bottom: 0.9em; - left: 1.2em; - font-size: 0.9em; + bottom: 0.9rem; + left: 1.2rem; + font-size: 0.9rem; } .ciy-list .dot { position: absolute; - bottom: 0.5em; - right: 1em; - padding: 1em; - width: 1.3em; - height: 1.3em; + bottom: 0.5rem; + right: 1rem; + padding: 1rem; + width: 1.3rem; + height: 1.3rem; background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUwOS4xMDAyMzQyNiA1MTJtLTE1My4yNzMzMzEzNCAwYTE1My4yNzMzMzEzNiAxNTMuMjczMzMxMzYgMCAxIDAgMzA2LjU0NjY2MjcgMCAxNTMuMjczMzMxMzYgMTUzLjI3MzMzMTM2IDAgMSAwLTMwNi41NDY2NjI3IDBaIiBmaWxsPSIjNzA3MDcwIj48L3BhdGg+PHBhdGggZD0iTTc4OS43NjE4NDA4MiA1MTJtLTkxLjQ2MTE4MTY0IDBhOTEuNDYxMTgxNjQgOTEuNDYxMTgxNjQgMCAxIDAgMTgyLjkyMjM2MzI5IDAgOTEuNDYxMTgxNjQgOTEuNDYxMTgxNjQgMCAxIDAtMTgyLjkyMjM2MzI5IDBaIiBmaWxsPSIjNzA3MDcwIj48L3BhdGg+PHBhdGggZD0iTTIzNC4yMzgxNTkxOCA1MTJtLTkxLjQ2MTE4MTY0IDBhOTEuNDYxMTgxNjQgOTEuNDYxMTgxNjQgMCAxIDAgMTgyLjkyMjM2MzI4IDAgOTEuNDYxMTgxNjQgOTEuNDYxMTgxNjQgMCAxIDAtMTgyLjkyMjM2MzI4IDBaIiBmaWxsPSIjNzA3MDcwIj48L3BhdGg+PC9zdmc+"); } .ciy-add { position: fixed; - bottom: 1em; - right: 1em; - width: 4em; - height: 4em; + bottom: 1rem; + right: 1rem; + width: 4rem; + height: 4rem; opacity: 0.95; z-index: 10; - border-radius: 2em; + border-radius: 2rem; background: linear-gradient(90deg, #8568f7, #4981ff); } .ciy-add::after { content: ' '; position: absolute; - margin: 1em; - width: 2em; - height: 2em; + margin: 1rem; + width: 2rem; + height: 2rem; background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkyNS42OTYgMzg0cTE5LjQ1NiAwIDM3LjM3NiA3LjY4dDMwLjcyIDIwLjQ4IDIwLjQ4IDMwLjcyIDcuNjggMzcuMzc2cTAgMjAuNDgtNy42OCAzNy44ODh0LTIwLjQ4IDMwLjIwOC0zMC43MiAyMC40OC0zNy4zNzYgNy42OGwtMjg3Ljc0NCAwIDAgMjg3Ljc0NHEwIDIwLjQ4LTcuNjggMzcuODg4dC0yMC40OCAzMC4yMDgtMzAuNzIgMjAuNDgtMzcuMzc2IDcuNjhxLTIwLjQ4IDAtMzcuODg4LTcuNjh0LTMwLjIwOC0yMC40OC0yMC40OC0zMC4yMDgtNy42OC0zNy44ODhsMC0yODcuNzQ0LTI4Ny43NDQgMHEtMjAuNDggMC0zNy44ODgtNy42OHQtMzAuMjA4LTIwLjQ4LTIwLjQ4LTMwLjIwOC03LjY4LTM3Ljg4OHEwLTE5LjQ1NiA3LjY4LTM3LjM3NnQyMC40OC0zMC43MiAzMC4yMDgtMjAuNDggMzcuODg4LTcuNjhsMjg3Ljc0NCAwIDAtMjg3Ljc0NHEwLTE5LjQ1NiA3LjY4LTM3LjM3NnQyMC40OC0zMC43MiAzMC4yMDgtMjAuNDggMzcuODg4LTcuNjhxMzkuOTM2IDAgNjguMDk2IDI4LjE2dDI4LjE2IDY4LjA5NmwwIDI4Ny43NDQgMjg3Ljc0NCAweiIgZGF0YS1zcG0tYW5jaG9yLWlkPSJhMzEzeC5zZWFyY2hfaW5kZXguMC5pNi41NTEwM2E4MW5Iald1ViIgZmlsbD0iI2ZmZmZmZiI+PC9wYXRoPjwvc3ZnPg=="); } .ciy-close { position: absolute; - font-size: 2em; + font-size: 2rem; color: var(--dagt); - line-height: 0.9em; + line-height: 0.9rem; background: var(--dag5); - width: 1em; - height: 1em; + width: 1rem; + height: 1rem; text-align: center; border-radius: 50%; } @@ -372,9 +373,9 @@ text { border: 1px solid var(--man6); position: relative; display: inline-block; - padding: 0.5em 0.8em; - font-size: 1em; - line-height: 1em; + padding: 0.5em 0.8rem; + font-size: 1rem; + line-height: 1rem; margin: 2px; text-align: center; white-space: nowrap; @@ -382,19 +383,19 @@ text { -ms-touch-action: manipulation; touch-action: manipulation; cursor: pointer; - border-radius: 0.7em; + border-radius: 0.7rem; } .btn::after { content: "Loading..."; position: absolute; bottom: 0; - right: 0.3em; + right: 0.3rem; width: auto; height: auto; top: auto; left: auto; - font-size: 1em; + font-size: 1rem; transform-origin: right bottom; opacity: 0; transform: scale(0.8); @@ -414,35 +415,35 @@ text { } .btn.lg { - font-size: 1.3em; - padding-left: 1.5em; - padding-right: 1.5em; + font-size: 1.3rem; + padding-left: 1.5rem; + padding-right: 1.5rem; } .btn.lgg { - font-size: 1.5em; - padding: 0.7em 1.5em; + font-size: 1.5rem; + padding: 0.7em 1.5rem; } .btn.sm { - font-size: 0.8em; + font-size: 0.8rem; } .btn.smm { - font-size: 0.7em; + font-size: 0.7rem; } .btn.xs { - font-size: 0.7em; - padding: 0.2em 0.8em; + font-size: 0.7rem; + padding: 0.2em 0.8rem; } .btn.sq { - border-radius: 0.3em; + border-radius: 0.3rem; } .btn.cc { - border-radius: 1.5em; + border-radius: 1.5rem; } .btn.long { @@ -484,16 +485,16 @@ text { /*说明块*/ .ciy-tip { background: var(--warn4); - margin: 0.5em; - padding: 0.5em; + margin: 0.5rem; + padding: 0.5rem; border: 1px solid var(--warn5); - border-radius: 0.3em; + border-radius: 0.3rem; color: var(--txt8); } /*断行*/ .ciy-height { - height: 0.3em; + height: 0.3rem; } @@ -516,8 +517,8 @@ text { .ciy-grid .grid { width: 25%; text-align: center; - padding-top: 0.8em; - padding-bottom: 0.2em; + padding-top: 0.8rem; + padding-bottom: 0.2rem; } .ciy-grid.grid3 .grid { @@ -531,12 +532,12 @@ text { .ciy-grid .name { padding: 0.5em 0; color: var(--txt7); - font-size: 0.9em; + font-size: 0.9rem; } .ciy-grid .icon { - width: 2em; - height: 2em; + width: 2rem; + height: 2rem; display: block; position: relative; margin: 0 auto; @@ -550,7 +551,7 @@ text { .ciy-grid .title { width: 100%; - margin: 1em 0 0 0.5em; + margin: 1em 0 0 0.5rem; font-weight: bolder; text-shadow: 0 0 2px var(--bg2); letter-spacing: 2px; @@ -561,8 +562,8 @@ text { .ciy-title { display: flex; align-items: center; - padding: 0.8em 1em; - font-size: 1.1em; + padding: 0.8em 1rem; + font-size: 1.1rem; position: relative; font-weight: bolder; color: var(--txt9); @@ -570,10 +571,10 @@ text { .ciy-title.mk::before { content: ""; - width: 0.4em; - height: 1.5em; - margin-right: 0.3em; - border-radius: 0.3em; + width: 0.4rem; + height: 1.5rem; + margin-right: 0.3rem; + border-radius: 0.3rem; vertical-align: middle; background: linear-gradient(-60deg, var(--man4), var(--man7)); } @@ -585,7 +586,7 @@ text { } .ciy-title .right { - font-size: 0.9em; + font-size: 0.9rem; font-weight: normal; color: var(--txt5); } @@ -593,8 +594,8 @@ text { .ciy-caption { display: flex; align-items: center; - padding: 0.8em 1em; - font-size: 1.1em; + padding: 0.8em 1rem; + font-size: 1.1rem; position: relative; font-weight: bolder; background: var(--bg2); @@ -605,10 +606,10 @@ text { .ciy-caption.mk::before { content: ""; - width: 0.3em; - height: 1.5em; - margin-right: 0.3em; - border-radius: 0.3em; + width: 0.3rem; + height: 1.5rem; + margin-right: 0.3rem; + border-radius: 0.3rem; vertical-align: middle; background: var(--man5); } @@ -619,7 +620,7 @@ text { } .ciy-caption .right { - font-size: 0.9em; + font-size: 0.9rem; font-weight: normal; color: var(--txt5); } @@ -627,17 +628,17 @@ text { .ciy-caption .sub { position: absolute; bottom: 0; - left: 3em; - font-size: 0.7em; + left: 3rem; + font-size: 0.7rem; font-weight: normal; color: var(--txt1); } /*卡片块*/ .ciy-card { - margin: 0.5em; + margin: 0.5rem; border: 1px solid var(--bg6); - border-radius: 0.3em; + border-radius: 0.3rem; box-shadow: 0 0 6px var(--bg6); background: var(--bg2); position: relative; @@ -645,46 +646,46 @@ text { .ciy-card>.title { border-radius: 0.3em 0.3em 0 0; - padding-left: 1em; - height: 2.5em; - line-height: 2.5em; + padding-left: 1rem; + height: 2.5rem; + line-height: 2.5rem; background: var(--bg4); font-weight: bold; } .ciy-card>.title.mk::before { content: ""; - width: 0.2em; + width: 0.2rem; display: inline-block; - border-radius: 0.2em; - margin-right: 0.4em; + border-radius: 0.2rem; + margin-right: 0.4rem; vertical-align: middle; - height: 1.5em; + height: 1.5rem; background: var(--man5); } .ciy-card .right { position: absolute; - height: 2.5em; - line-height: 2.5em; - padding-right: 1em; + height: 2.5rem; + line-height: 2.5rem; + padding-right: 1rem; color: var(--txt5); top: 0; right: 0; } .ciy-card>.content { - padding: 1em; + padding: 1rem; } .ciy-card>.content>view { - line-height: 1.5em; - margin-bottom: 0.5em; + line-height: 1.5rem; + margin-bottom: 0.5rem; } .ciy-load { - padding: 3em 0 8em 3em; - line-height: 2em; + padding: 3em 0 8em 3rem; + line-height: 2rem; background: linear-gradient(180deg, var(--bg5), transparent); } @@ -693,8 +694,8 @@ text { background: linear-gradient(45deg, var(--bg4) 25%, var(--bg1) 50%, var(--bg4) 75%); background-size: 200% 100%; animation: skeleton 3s linear infinite; - border-radius: 0.3em; - margin-bottom: 1em; + border-radius: 0.3rem; + margin-bottom: 1rem; } @keyframes skeleton { @@ -710,11 +711,11 @@ text { .code, .kbd { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; - padding: 0.1em 0.4em 0 0.4em; - margin: 0 0.2em; - font-size: 0.9em; - line-height: 1.3em; - border-radius: 0.2em; + padding: 0.1em 0.4em 0 0.4rem; + margin: 0 0.2rem; + font-size: 0.9rem; + line-height: 1.3rem; + border-radius: 0.2rem; display: inline-block; vertical-align: baseline; } @@ -736,9 +737,9 @@ text { .ciy-form-group { background: var(--bg2); - margin: 1em; + margin: 1rem; overflow: hidden; - border-radius: 0.5em; + border-radius: 0.5rem; position: relative; border: 1px solid var(--bg4); border-bottom: 2px solid var(--bg6); @@ -750,7 +751,7 @@ text { bottom: 0; left: 0; right: 0; - padding: 1em; + padding: 1rem; z-index: 40; text-align: center; background: var(--bg1); @@ -770,7 +771,7 @@ text { position: relative; align-items: center; border-bottom: 1px solid var(--bg5); - min-height: 4em; + min-height: 4rem; } .ciy-form>view { @@ -779,15 +780,15 @@ text { } .ciy-form>view:last-child { - margin-right: 1em; + margin-right: 1rem; } .ciy-form>label { - margin: 0 1em; + margin: 0 1rem; flex-shrink: 0; white-space: nowrap; align-self: flex-start; - line-height: 4em; + line-height: 4rem; } .ciy-form>label.imp { @@ -797,10 +798,10 @@ text { .ciy-form>label.imp::before { content: ''; position: absolute; - left: 0.3em; - top: 0.8em; - width: 0.4em; - height: 0.4em; + left: 0.3rem; + top: 0.8rem; + width: 0.4rem; + height: 0.4rem; background: var(--dag5); border-radius: 50%; } @@ -810,7 +811,7 @@ text { .char4 label.imp::before, .char5 label.imp::before, .char6 label.imp::before { - right: -0.5em; + right: -0.5rem; left: auto; } @@ -824,50 +825,50 @@ text { } .char2 label { - min-width: 2em; + min-width: 2rem; } .char3 label { - min-width: 3em; + min-width: 3rem; } .char4 label { - min-width: 4em; + min-width: 4rem; } .char5 label { - min-width: 5em; + min-width: 5rem; } .char6 label { - min-width: 6em; + min-width: 6rem; } .ciy-form.v { flex-direction: column; align-items: flex-start; - padding-top: 0.5em; - padding-bottom: 0.5em; + padding-top: 0.5rem; + padding-bottom: 0.5rem; } .ciy-form.v>view { text-align: left; - margin: 0 0.5em; + margin: 0 0.5rem; width: calc(100% - 1em); } .ciy-form.v>label { - height: 2em; - line-height: 2em; + height: 2rem; + line-height: 2rem; } .ciy-waterfall { column-count: 2; - column-gap: 0.5em; + column-gap: 0.5rem; } .ciy-waterfall .itmcont { - margin-bottom: 0.5em; + margin-bottom: 0.5rem; width: 100%; break-inside: avoid; } @@ -879,46 +880,46 @@ text { .md-h1 { font-weight: bold; - font-size: 1.2em; - line-height: 1.5em; + font-size: 1.2rem; + line-height: 1.5rem; text-align: left; - padding: 0.5em 0 0.5em 0.5em; + padding: 0.5em 0 0.5em 0.5rem; } .md-h2 { font-weight: bold; - font-size: 1.1em; - line-height: 1.8em; - padding: 0.5em 0 0.5em 0.5em; + font-size: 1.1rem; + line-height: 1.8rem; + padding: 0.5em 0 0.5em 0.5rem; } .md-h3, .md-h4, .md-h5 { font-weight: bold; - font-size: 1em; - line-height: 1.5em; - padding: 0.5em 0 0.5em 0.5em; + font-size: 1rem; + line-height: 1.5rem; + padding: 0.5em 0 0.5em 0.5rem; } .md-content { - font-size: 1em; - text-indent: 1em; - line-height: 2em; + font-size: 1rem; + text-indent: 1rem; + line-height: 2rem; white-space: pre-wrap; } .md-code { text-indent: 0; - padding: 0.2em 0.4em; - font-size: 0.9em; - line-height: 1em; - margin: 0 0.2em; + padding: 0.2em 0.4rem; + font-size: 0.9rem; + line-height: 1rem; + margin: 0 0.2rem; display: inline-block; white-space: nowrap; color: #ffffff; background: linear-gradient(340deg, var(--man5), var(--man7)); - border-radius: 0.2em; + border-radius: 0.2rem; } .txt-smmm.txt-smmm.txt-smmm { @@ -1234,57 +1235,57 @@ text { } .t1.t1.t1 { - top: 0.5em; + top: 0.5rem; } .l1.l1.l1 { - left: 0.5em; + left: 0.5rem; } .r1.r1.r1 { - right: 0.5em; + right: 0.5rem; } .b1.b1.b1 { - bottom: 0.5em; + bottom: 0.5rem; } .t2.t2.t2 { - top: 1em; + top: 1rem; } .l2.l2.l2 { - left: 1em; + left: 1rem; } .r2.r2.r2 { - right: 1em; + right: 1rem; } .b2.b2.b2 { - bottom: 1em; + bottom: 1rem; } .lh1.lh1.lh1 { - line-height: 1em; + line-height: 1rem; } .lh2.lh2.lh2 { - line-height: 1.5em; + line-height: 1.5rem; } .lh3.lh3.lh3 { - line-height: 2em; + line-height: 2rem; } .lh4.lh4.lh4 { - line-height: 2.5em; + line-height: 2.5rem; } .ti1.ti1.ti1 { - text-indent: 1em; + text-indent: 1rem; } .ti2.ti2.ti2 { - text-indent: 2em; + text-indent: 2rem; } \ No newline at end of file diff --git a/web/admin/ap/cash_out_apply.php b/web/admin/ap/cash_out_apply.php index 98d6e95..1d8d1d9 100644 --- a/web/admin/ap/cash_out_apply.php +++ b/web/admin/ap/cash_out_apply.php @@ -95,13 +95,8 @@ class cash_out_apply { if ($row['cashstatus'] != 10) continue; if ($act == 2) { //退余额 - $updata = array(); - $updata['mycashmoney'] = array('mycashmoney+' . $row['cashmoney']); - $csql = new \ciy\sql('ap_user'); - $csql->where('id', $row['vuser']); - if ($db->update($csql, $updata) === false) - throw new \Exception('更新账户失败:' . $db->error); - } + \web\cdao::usercashoe($db, 11, $row['vuser'], $row['cashmoney'], '提现审核拒绝'); + } $id = $row['id']; $updata = array(); if ($act == 1) { diff --git a/web/admin/ap/cash_out_inv.html b/web/admin/ap/cash_out_inv.html index e5b6c54..68765a0 100644 --- a/web/admin/ap/cash_out_inv.html +++ b/web/admin/ap/cash_out_inv.html @@ -62,6 +62,7 @@ dom: '.table' , url: 'list' , pagecount: 10 + , chkbox: true , fn_beforedata: function (json) { ciyfn.fillsearch({ searchdom: '.search' diff --git a/web/admin/ap/cash_out_inv.php b/web/admin/ap/cash_out_inv.php index bc47714..32b381d 100644 --- a/web/admin/ap/cash_out_inv.php +++ b/web/admin/ap/cash_out_inv.php @@ -100,12 +100,7 @@ class cash_out_inv { if ($row['cashstatus'] != 30) continue; if ($act == 2) { //退余额 - $updata = array(); - $updata['mycashmoney'] = array('mycashmoney+' . $row['cashmoney']); - $csql = new \ciy\sql('ap_user'); - $csql->where('id', $row['vuser']); - if ($db->update($csql, $updata) === false) - throw new \Exception('更新账户失败:' . $db->error); + \web\cdao::usercashoe($db, 11, $row['vuser'], $row['cashmoney'], '提现发票拒绝'); } $id = $row['id']; $updata = array(); diff --git a/web/admin/ap/cash_out_transfer.php b/web/admin/ap/cash_out_transfer.php index 121bfdd..54f5ead 100644 --- a/web/admin/ap/cash_out_transfer.php +++ b/web/admin/ap/cash_out_transfer.php @@ -103,11 +103,7 @@ class cash_out_transfer { $db->begin(); if ($auditstatus == 90) { //退余额 $updata = array(); - $updata['mycashmoney'] = array('mycashmoney+' . $row['cashmoney']); - $csql = new \ciy\sql('ap_user'); - $csql->where('id', $row['vuser']); - if ($db->update($csql, $updata) === false) - throw new \Exception('更新账户失败:' . $db->error); + \web\cdao::usercashoe($db, 11, $row['vuser'], $row['cashmoney'], '提现支付拒绝'); } $id = $row['id']; $updata = array(); diff --git a/web/admin/ap/user.html b/web/admin/ap/user.html index 81833ac..6d6ca17 100644 --- a/web/admin/ap/user.html +++ b/web/admin/ap/user.html @@ -76,28 +76,6 @@ - @@ -131,8 +109,6 @@ var html = ''; html += `查看`; html += `修改`; - if (data['certs'].indexOf('b') > -1) - html += `预提现`; return html; } } @@ -152,29 +128,6 @@ if (btn == 'edit') { edit(id); } - if (btn == 'tixian') { - ciyfn.alert({ - title: '预提现' - , width: 'pc' - , content: document.getElementById("alert_tixian").innerHTML - //, noparent:true - , fn_showed: function (doc, dom) { - ciycmp({ dom: $5('[com=cashtype]', dom), range: [{ id: 1, name: '线上微信'}, {id: 2, name: '线下转账' }] }); - } - , cb: function (opn) { - if (opn.btn == "关闭") - return opn.close(); - opn.inputs.id = id; - if (ciyfn.throttle(opn.dombtn)) return; - ciyfn.callfunc('tixian', opn.inputs, function (json) { - table.updateline(json); - opn.close(); - ciyfn.toast('提交成功'); - }); - }, - btns: ["提交", "*关闭"] - }); - } } function getdata(id, act, cb) { diff --git a/web/admin/ap/user.php b/web/admin/ap/user.php index b579f0e..6451f64 100644 --- a/web/admin/ap/user.php +++ b/web/admin/ap/user.php @@ -151,50 +151,6 @@ class user { $ret['data'] = $datarow; return succjson($ret); } - public static function json_tixian() { - global $db; - $rsuser = verifyfast(); - //if (nopower($db, $rsuser['id'], 'p u')) - // return errjson('您未被授权操作'); - $post = new \ciy\post(); - $id = $post->getint('id'); - $cashtype = $post->getint('cashtype'); - $mmoney = $post->getfloat('money') * 100; - $memo = $post->get('memo'); - if (empty($memo)) - return errjson('请填写事由'); - $csql = new \ciy\sql('ap_user'); - $csql->where('id', $id); - $datarow = $db->getone($csql); - if (!is_array($datarow)) - return errjson('数据不存在'); - try { - $db->begin(); - $updata = array(); - $updata['mycashmoney'] = array('mycashmoney-' . $mmoney); - $csql = new \ciy\sql('ap_user'); - $csql->where('id', $id); - if ($db->update($csql, $updata) === false) - throw new \Exception('更新失败:' . $db->error); - $updata = array(); - $updata['cashstatus'] = $cashtype == 1 ? 20 : 100; - $updata['vuser'] = $id; - $updata['cashtype'] = $cashtype == 1 ? 2 : 1; - $updata['cashmoney'] = $mmoney; - $updata['addtimes'] = time(); - $updata['cashtimes'] = time(); - $updata['cashno'] = $memo; - $csql = new \ciy\sql('ap_fina_cash'); - if ($db->insert($csql, $updata) === false) - throw new \Exception('新增失败:' . $db->error); - $db->commit(); - } catch (\Exception $ex) { - $db->rollback(); - savelogfile('err_db', $ex->getMessage()); - return errjson($ex->getMessage()); - } - return succjson(); - } public static function json_exportxls() { global $db; $rsuser = verifyfast(); diff --git a/web/admin/ap/user_service.php b/web/admin/ap/user_service.php index 2eec559..34fa593 100644 --- a/web/admin/ap/user_service.php +++ b/web/admin/ap/user_service.php @@ -147,50 +147,6 @@ class user_service { $ret['data'] = $datarow; return succjson($ret); } - public static function json_tixian() { - global $db; - $rsuser = verifyfast(); - //if (nopower($db, $rsuser['id'], 'p u')) - // return errjson('您未被授权操作'); - $post = new \ciy\post(); - $id = $post->getint('id'); - $cashtype = $post->getint('cashtype'); - $mmoney = $post->getfloat('money') * 100; - $memo = $post->get('memo'); - if (empty($memo)) - return errjson('请填写事由'); - $csql = new \ciy\sql('ap_user'); - $csql->where('id', $id); - $datarow = $db->getone($csql); - if (!is_array($datarow)) - return errjson('数据不存在'); - try { - $db->begin(); - $updata = array(); - $updata['mycashmoney'] = array('mycashmoney-' . $mmoney); - $csql = new \ciy\sql('ap_user'); - $csql->where('id', $id); - if ($db->update($csql, $updata) === false) - throw new \Exception('更新失败:' . $db->error); - $updata = array(); - $updata['cashstatus'] = $cashtype == 1 ? 20 : 100; - $updata['vuser'] = $id; - $updata['cashtype'] = $cashtype == 1 ? 2 : 1; - $updata['cashmoney'] = $mmoney; - $updata['addtimes'] = time(); - $updata['cashtimes'] = time(); - $updata['cashno'] = $memo; - $csql = new \ciy\sql('ap_fina_cash'); - if ($db->insert($csql, $updata) === false) - throw new \Exception('新增失败:' . $db->error); - $db->commit(); - } catch (\Exception $ex) { - $db->rollback(); - savelogfile('err_db', $ex->getMessage()); - return errjson($ex->getMessage()); - } - return succjson(); - } public static function json_exportxls() { global $db; $rsuser = verifyfast(); diff --git a/web/admin/cemap/bill.html b/web/admin/cemap/bill.html index a44c98a..53602a5 100644 --- a/web/admin/cemap/bill.html +++ b/web/admin/cemap/bill.html @@ -136,7 +136,7 @@ , fn_showed: function (doc, dom) { var dat = jsndat.data; var path = ciyfn.makeuploadpath('cemap_bill', ciyfn.getstorage(ciy_vars.tokenfield)); - ciycmp({ dom: $5('[com=cpath]', dom), value: dat.cpath, range: table.once.zc_cemap_pbill }); + ciycmp({ dom: $5('[com=cpath]', dom), value: dat.cpath, range: table.json.zc_cemap_pbill }); $5('[name=name]', dom).val(dat.name); ciycmp({ dom: $5('[com=url]', dom), value: dat.url, path: path }); ciycmp({ dom: $5('[com=w]', dom), value: dat.w }); diff --git a/web/admin/cemap/bill.php b/web/admin/cemap/bill.php index 64b380e..a1cb1ec 100644 --- a/web/admin/cemap/bill.php +++ b/web/admin/cemap/bill.php @@ -35,7 +35,7 @@ class bill { $csql->limit($pageno, $pagecount); $mainrowcount = $post->getint('count'); $rows = $db->get($csql, $mainrowcount); - $ret = array('where' => $where, 'pageno' => $pageno, 'pagecount' => $pagecount, 'count' => $mainrowcount, 'list' => $rows); + $ret = array('searchwhere' => $where, 'pageno' => $pageno, 'pagecount' => $pagecount, 'count' => $mainrowcount, 'list' => $rows); if ($post->getbool('field')) { $field = array(); $fshow = $db->getfield($field, 'zc_cemap_bill'); @@ -48,13 +48,13 @@ class bill { $ret['fshow'] = $fshow; } if ($post->getbool('once')) { - $ret['once'] = array(); + $ret['once'] = true; $input = array(); $input[] = array('type' => 'input', 'form' => 'cpath', 'name' => '路径', 'prop' => ' style="width:8em;"'); $input[] = array('type' => 'input', 'form' => 'name', 'name' => '名称', 'prop' => ' style="width:8em;"'); - $ret['once']['input'] = $input; + $ret['searchinput'] = $input; $csql = (new \ciy\sql('zc_cemap_pbill'))->column('id,name,upid'); - $ret['once']['zc_cemap_pbill'] = $db->get($csql); + $ret['zc_cemap_pbill'] = $db->get($csql); } return succjson($ret); } diff --git a/web/admin/cemap/ceeditor.html b/web/admin/cemap/ceeditor.html index ab131c4..b06947c 100644 --- a/web/admin/cemap/ceeditor.html +++ b/web/admin/cemap/ceeditor.html @@ -483,13 +483,13 @@