From b237616d74912b89ae3adf63c2f39150a1ba0c2c 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, 8 Nov 2025 17:27:48 +0800 Subject: [PATCH] fromdao251109 --- .../components/ciy-alert/ciy-alert.vue | 1 + fapp/ciyon_ap/components/ciy-ani/ciy-ani.vue | 31 +- .../ciy-aniheight/ciy-aniheight.vue | 93 ++++++ .../components/ciy-anipop/ciy-anipop.vue | 2 +- .../components/ciy-calendar/ciy-calendar.vue | 4 + .../components/ciy-checkbox/ciy-checkbox.vue | 58 +++- .../ciy-checkitem/ciy-checkitem.vue | 2 +- .../components/ciy-input/ciy-input.vue | 2 +- .../ciy-inputdatetime/ciy-inputdatetime.vue | 4 + .../components/ciy-markdown/ciy-markdown.vue | 172 +++++++---- .../components/ciy-popmenu/ciy-popmenu.vue | 2 +- .../components/ciy-query/ciy-query.vue | 2 +- .../components/ciy-radio/ciy-radio.vue | 224 ++++++++++++++ .../components/ciy-segment/ciy-segment.vue | 4 +- .../components/ciy-selcas/ciy-selcas.vue | 11 +- .../components/ciy-select/ciy-select.vue | 25 +- .../ciy-showmoney/ciy-showmoney.vue | 2 +- .../components/ciy-slider/ciy-slider.vue | 61 ++-- .../components/ciy-tabbar/ciy-tabbar.vue | 1 + .../components/ciy-textarea/ciy-textarea.vue | 6 +- fapp/ciyon_ap/pages/demo/case/vproject.vue | 4 +- fapp/ciyon_ap/pages/demo/comform/checkbox.vue | 7 + fapp/ciyon_ap/pages/demo/comform/define.vue | 1 + fapp/ciyon_ap/pages/demo/comform/inputcyc.vue | 12 + .../pages/demo/comform/inputnumber.vue | 2 +- fapp/ciyon_ap/pages/demo/comform/radiobox.vue | 17 +- fapp/ciyon_ap/pages/demo/comform/selcas.vue | 7 +- fapp/ciyon_ap/pages/demo/comform/select.vue | 10 +- fapp/ciyon_ap/pages/demo/comview/alert.vue | 14 + fapp/ciyon_ap/pages/demo/comview/ani.vue | 20 +- .../ciyon_ap/pages/demo/comview/aniheight.vue | 107 +++++++ fapp/ciyon_ap/pages/demo/comview/anipop.vue | 2 +- .../ciyon_ap/pages/demo/comview/cameraocr.vue | 4 +- fapp/ciyon_ap/pages/demo/comview/header.vue | 4 +- .../pages/demo/comview/showemoney.vue | 88 ++++++ fapp/ciyon_ap/pages/demo/comview/showimgs.vue | 6 +- fapp/ciyon_ap/pages/demo/css/cssdemo.vue | 16 +- fapp/ciyon_ap/pages/demo/css/tailwind.vue | 5 +- fapp/ciyon_ap/pages/demo/curd/demo_edit.vue | 87 +++--- fapp/ciyon_ap/pages/demo/curd/demo_list.vue | 18 +- fapp/ciyon_ap/pages/demo/index.vue | 34 +- fapp/ciyon_ap/pages/demo/page/func.vue | 2 +- fapp/ciyon_ap/pages/demo/page/theme.vue | 4 +- fapp/ciyon_ap/pages/main/index.vue | 3 +- fapp/ciyon_ap/pages/main/me.vue | 14 +- fapp/ciyon_ap/pages/main/me_bank_info.vue | 91 ++++++ fapp/ciyon_ap/pages/main/me_cash.vue | 6 + fapp/ciyon_ap/pages/main/me_cash_charge.vue | 7 +- fapp/ciyon_ap/pages/main/me_cash_ie.vue | 2 +- fapp/ciyon_ap/pages/main/me_invoicetitle.vue | 1 + fapp/ciyon_ap/pages/main/me_real.vue | 31 +- fapp/ciyon_ap/pages/main/me_shipaddr.vue | 1 + fapp/ciyon_ap/util/ciy.js | 139 +++++++-- fapp/ciyon_ap/util/lang/en.json | 2 + fapp/ciyon_ap/util/lang/fr.json | 2 + fapp/ciyon_ap/util/lang/ja.json | 2 + fapp/ciyon_ap/util/lang/zh-Hans.json | 1 + fapp/ciyon_ap/util/lang/zh-Hant.json | 2 + fapp/ciyon_ap/util/style.css | 292 ++++++++---------- fapp/ciyon_ap/vite.config.js | 4 +- fapp/贡献代码.bat | 5 +- 61 files changed, 1345 insertions(+), 438 deletions(-) create mode 100644 fapp/ciyon_ap/components/ciy-aniheight/ciy-aniheight.vue create mode 100644 fapp/ciyon_ap/components/ciy-radio/ciy-radio.vue create mode 100644 fapp/ciyon_ap/pages/demo/comview/aniheight.vue create mode 100644 fapp/ciyon_ap/pages/demo/comview/showemoney.vue create mode 100644 fapp/ciyon_ap/pages/main/me_bank_info.vue diff --git a/fapp/ciyon_ap/components/ciy-alert/ciy-alert.vue b/fapp/ciyon_ap/components/ciy-alert/ciy-alert.vue index ec4d738..3dd3fa4 100644 --- a/fapp/ciyon_ap/components/ciy-alert/ciy-alert.vue +++ b/fapp/ciyon_ap/components/ciy-alert/ciy-alert.vue @@ -88,6 +88,7 @@ } this.title = res.title === undefined ? this.lang('alert.deftitle') : res.title; this.align = res.align || 'center'; + this.inputtxt = res.value ? res.value : ''; this.ele = res.ele; if (res.content && res.content[0] == '<') { this.html = res.content; diff --git a/fapp/ciyon_ap/components/ciy-ani/ciy-ani.vue b/fapp/ciyon_ap/components/ciy-ani/ciy-ani.vue index 1bafd08..2cf57a6 100644 --- a/fapp/ciyon_ap/components/ciy-ani/ciy-ani.vue +++ b/fapp/ciyon_ap/components/ciy-ani/ciy-ani.vue @@ -1,5 +1,5 @@ @@ -7,15 +7,23 @@ \ No newline at end of file diff --git a/fapp/ciyon_ap/components/ciy-anipop/ciy-anipop.vue b/fapp/ciyon_ap/components/ciy-anipop/ciy-anipop.vue index 53c7326..89eadc2 100644 --- a/fapp/ciyon_ap/components/ciy-anipop/ciy-anipop.vue +++ b/fapp/ciyon_ap/components/ciy-anipop/ciy-anipop.vue @@ -150,7 +150,7 @@ } this.goani('ty100vh,op0|ty' + top + 'px,op1,' + totalms, data => this.anidatapop = data); } - this.goani('op0|op1,' + totalms, data => this.anidatamask = data); + this.goani('op0|op0,100|op1,' + totalms, data => this.anidatamask = data); this.$emit('change', { from: 'open', value: true diff --git a/fapp/ciyon_ap/components/ciy-calendar/ciy-calendar.vue b/fapp/ciyon_ap/components/ciy-calendar/ciy-calendar.vue index 5d3adb9..0fc815b 100644 --- a/fapp/ciyon_ap/components/ciy-calendar/ciy-calendar.vue +++ b/fapp/ciyon_ap/components/ciy-calendar/ciy-calendar.vue @@ -215,6 +215,8 @@ val = new Date(val * 1000); } else if (val.indexOf('-') > -1 || val.indexOf('/') > -1) { val = this.str2date(val); + } else if (val == 'now') { + val = new Date(); } else { val = this.toint(val); if (val == 0) @@ -234,6 +236,8 @@ val = new Date(val * 1000); } else if (val.indexOf('-') > -1 || val.indexOf('/') > -1) { val = new Date(val); + } else if (val == 'now') { + val = new Date(); } else { val = this.toint(val); if (val == 0) diff --git a/fapp/ciyon_ap/components/ciy-checkbox/ciy-checkbox.vue b/fapp/ciyon_ap/components/ciy-checkbox/ciy-checkbox.vue index 71b3e48..c98fc5f 100644 --- a/fapp/ciyon_ap/components/ciy-checkbox/ciy-checkbox.vue +++ b/fapp/ciyon_ap/components/ciy-checkbox/ciy-checkbox.vue @@ -19,8 +19,9 @@ + 无选项 - + {{item.name}} @@ -32,7 +33,8 @@ ._gp { display: flex; flex-wrap: wrap; - flex-direction: row-reverse; + flex-direction: row; + justify-content: flex-end; } ._gp._left { @@ -42,6 +44,7 @@ ._gp ._item { white-space: nowrap; display: flex; + align-items: center; gap: 0.5em; padding: 0.5em; min-width: 7em; @@ -89,8 +92,12 @@ type: Boolean, default: false }, + chkuse: { + type: Boolean, + default: false + }, range: { - type: Array, + type: [String, Array], default: [] }, moreno: { @@ -124,7 +131,7 @@ handler(newD, oldD) { if (this.from && newD.value == oldD.value) return; - if (this.range.length == 0) + if (this.innerrang.length == 0) return; if (!this.from) this.from = 'init'; @@ -159,6 +166,29 @@ } }, computed: { + innerrang() { + if (typeof(this.range) == 'string') { + const lis = this.range.split(','); + var lst = []; + for (let i = 0; i < lis.length; i++) { + const ls = lis[i].split(':'); + if (ls.length < 2) + continue; + lst.push({ + id: ls[0], + name: ls[1] + }); + } + return lst; + } + let range = []; + for (let i = 0; i < this.range.length; i++) { + if (this.chkuse && this.range[i].isuse == 2) + continue; + range.push(this.range[i]); + } + return range; + }, tkvs() { var val = ''; //id/name数组 if (this.v == 'modelValue') { @@ -193,28 +223,28 @@ novals: [] }; if (this.byname) { - for (var i in this.range) { - if (val.indexOf(this.range[i].name + '') > -1) { - kvs.ids.push(this.range[i].name + ''); + for (var i in this.innerrang) { + if (val.indexOf(this.innerrang[i].name + '') > -1) { + kvs.ids.push(this.innerrang[i].name + ''); kvs.vals.push({ - ...this.range[i] + ...this.innerrang[i] }); } else { kvs.novals.push({ - ...this.range[i] + ...this.innerrang[i] }); } } } else { - for (var i in this.range) { - if (val.indexOf(this.range[i].id + '') > -1) { - kvs.ids.push(this.range[i].id + ''); + for (var i in this.innerrang) { + if (val.indexOf(this.innerrang[i].id + '') > -1) { + kvs.ids.push(this.innerrang[i].id + ''); kvs.vals.push({ - ...this.range[i] + ...this.innerrang[i] }); } else { kvs.novals.push({ - ...this.range[i] + ...this.innerrang[i] }); } } diff --git a/fapp/ciyon_ap/components/ciy-checkitem/ciy-checkitem.vue b/fapp/ciyon_ap/components/ciy-checkitem/ciy-checkitem.vue index 80dcf1a..28a07a6 100644 --- a/fapp/ciyon_ap/components/ciy-checkitem/ciy-checkitem.vue +++ b/fapp/ciyon_ap/components/ciy-checkitem/ciy-checkitem.vue @@ -1,5 +1,5 @@ diff --git a/fapp/ciyon_ap/components/ciy-query/ciy-query.vue b/fapp/ciyon_ap/components/ciy-query/ciy-query.vue index ebaafa9..ee651d7 100644 --- a/fapp/ciyon_ap/components/ciy-query/ciy-query.vue +++ b/fapp/ciyon_ap/components/ciy-query/ciy-query.vue @@ -33,7 +33,7 @@ - + diff --git a/fapp/ciyon_ap/components/ciy-radio/ciy-radio.vue b/fapp/ciyon_ap/components/ciy-radio/ciy-radio.vue new file mode 100644 index 0000000..cccf271 --- /dev/null +++ b/fapp/ciyon_ap/components/ciy-radio/ciy-radio.vue @@ -0,0 +1,224 @@ + + + + + \ No newline at end of file diff --git a/fapp/ciyon_ap/components/ciy-segment/ciy-segment.vue b/fapp/ciyon_ap/components/ciy-segment/ciy-segment.vue index e27b504..5720983 100644 --- a/fapp/ciyon_ap/components/ciy-segment/ciy-segment.vue +++ b/fapp/ciyon_ap/components/ciy-segment/ciy-segment.vue @@ -80,7 +80,7 @@ if (typeof(this.lis) == 'string') { const lis = this.lis.split(','); for (let i = 0; i < lis.length; i++) { - const ls = lis[i].split('.'); + const ls = lis[i].split(':'); if (ls.length < 2) continue; lst.push({ @@ -88,8 +88,6 @@ name: ls[1] }); } - - } if (this.isarray(this.lis)) { for (var i = 0; i < this.lis.length; i++) diff --git a/fapp/ciyon_ap/components/ciy-selcas/ciy-selcas.vue b/fapp/ciyon_ap/components/ciy-selcas/ciy-selcas.vue index 5dc52e9..1ac3f96 100644 --- a/fapp/ciyon_ap/components/ciy-selcas/ciy-selcas.vue +++ b/fapp/ciyon_ap/components/ciy-selcas/ciy-selcas.vue @@ -13,6 +13,7 @@ {{placeholder?placeholder:lang('placeholder.select')}} @@ -35,7 +36,7 @@ @@ -57,7 +58,7 @@ } ._defshow>.itm { - padding-left: 0.5em; + padding-left: 0.3em; white-space: nowrap; } @@ -149,6 +150,10 @@ type: Boolean, default: false }, + chkuse: { + type: Boolean, + default: false + }, range: { type: Array, default: [] @@ -170,7 +175,7 @@ }, rootupid: { type: [String, Number], - default: 0 + default: undefined }, asyncdata: { type: Boolean, diff --git a/fapp/ciyon_ap/components/ciy-select/ciy-select.vue b/fapp/ciyon_ap/components/ciy-select/ciy-select.vue index c2f1f1d..fe368bd 100644 --- a/fapp/ciyon_ap/components/ciy-select/ciy-select.vue +++ b/fapp/ciyon_ap/components/ciy-select/ciy-select.vue @@ -9,7 +9,7 @@ - + {{item.name}} @@ -72,12 +72,16 @@ type: Boolean, default: false }, + chkuse: { + type: Boolean, + default: false + }, range: { type: Array, default: [] }, placeholder: { - type: String, + type: String }, diastema: { //上下间隙 type: Number, @@ -87,6 +91,10 @@ type: String, default: '' }, + all: { //0值选项 + type: String, + default: '' + }, noarrow: { type: Boolean, default: false @@ -138,11 +146,20 @@ computed: { mrange() { var mr = []; + if (this.all) + mr.push({ + id: 0, + name: this.all + }); for (var i in this.range) { + if(this.chkuse && this.range[i].isuse == 2) + continue; if (this.range[i].name.indexOf(this.searchval) > -1) mr.push(this.range[i]); } for (var i in this.addrange) { + if(this.chkuse && this.range[i].isuse == 2) + continue; if (this.addrange[i].name.indexOf(this.searchval) > -1) mr.push(this.addrange[i]); } @@ -376,7 +393,7 @@ ._select ._item._select { font-weight: bold; - color:var(--man6); + color: var(--man6); } ._select ._pop ._list._flex ._item { @@ -406,7 +423,7 @@ ._select ._pop._top ._list._grid ._item { transform: rotate(180deg); } - + ._select ._pop ._list ._nodata { background: var(--bg2); text-align: center; diff --git a/fapp/ciyon_ap/components/ciy-showmoney/ciy-showmoney.vue b/fapp/ciyon_ap/components/ciy-showmoney/ciy-showmoney.vue index 333566b..a14b8f3 100644 --- a/fapp/ciyon_ap/components/ciy-showmoney/ciy-showmoney.vue +++ b/fapp/ciyon_ap/components/ciy-showmoney/ciy-showmoney.vue @@ -25,7 +25,7 @@ default: '' }, ciystyle: { - type: String, + type: [String, Object], default: '' }, intstyle: { diff --git a/fapp/ciyon_ap/components/ciy-slider/ciy-slider.vue b/fapp/ciyon_ap/components/ciy-slider/ciy-slider.vue index 9d890c1..3968cb1 100644 --- a/fapp/ciyon_ap/components/ciy-slider/ciy-slider.vue +++ b/fapp/ciyon_ap/components/ciy-slider/ciy-slider.vue @@ -1,24 +1,32 @@ \ No newline at end of file diff --git a/fapp/ciyon_ap/pages/demo/comview/anipop.vue b/fapp/ciyon_ap/pages/demo/comview/anipop.vue index 01e22ee..7c131c8 100644 --- a/fapp/ciyon_ap/pages/demo/comview/anipop.vue +++ b/fapp/ciyon_ap/pages/demo/comview/anipop.vue @@ -66,7 +66,7 @@ 从某个方向出现。
bottom从下方,top,left、right。
- + edge diff --git a/fapp/ciyon_ap/pages/demo/comview/cameraocr.vue b/fapp/ciyon_ap/pages/demo/comview/cameraocr.vue index 3e3159b..6aa9fee 100644 --- a/fapp/ciyon_ap/pages/demo/comview/cameraocr.vue +++ b/fapp/ciyon_ap/pages/demo/comview/cameraocr.vue @@ -27,7 +27,7 @@ 如果text或idcard,且无文字的情况,5秒后自动超时。
默认 text
- + checkidcard @@ -35,7 +35,7 @@ front 人像面、back 国徽面。
默认 无
- + maskpng diff --git a/fapp/ciyon_ap/pages/demo/comview/header.vue b/fapp/ciyon_ap/pages/demo/comview/header.vue index f6e3424..76c038f 100644 --- a/fapp/ciyon_ap/pages/demo/comview/header.vue +++ b/fapp/ciyon_ap/pages/demo/comview/header.vue @@ -40,13 +40,13 @@  scroll: 顶部全屏效果,滚动后渐变默认效果。
  左侧返回键,中间标题。
- + diff --git a/fapp/ciyon_ap/pages/demo/comview/showemoney.vue b/fapp/ciyon_ap/pages/demo/comview/showemoney.vue new file mode 100644 index 0000000..1027c40 --- /dev/null +++ b/fapp/ciyon_ap/pages/demo/comview/showemoney.vue @@ -0,0 +1,88 @@ + + + + + \ No newline at end of file diff --git a/fapp/ciyon_ap/pages/demo/comview/showimgs.vue b/fapp/ciyon_ap/pages/demo/comview/showimgs.vue index 5c33312..706279b 100644 --- a/fapp/ciyon_ap/pages/demo/comview/showimgs.vue +++ b/fapp/ciyon_ap/pages/demo/comview/showimgs.vue @@ -39,19 +39,19 @@ 有间距的默认效果thumb,紧凑效果adj。
默认: thumb - + mode 图片显示方式。
默认: aspectFill
- + ]"> whpre diff --git a/fapp/ciyon_ap/pages/demo/css/cssdemo.vue b/fapp/ciyon_ap/pages/demo/css/cssdemo.vue index 65ef88b..93f0108 100644 --- a/fapp/ciyon_ap/pages/demo/css/cssdemo.vue +++ b/fapp/ciyon_ap/pages/demo/css/cssdemo.vue @@ -5,8 +5,8 @@ light - - ciy-card 卡片标题 + + ciy-card 卡片标题 right右侧文字 @@ -17,8 +17,16 @@ - - + + ciy-title标题段落(简易) + + 内容分隔 + + ciy-title标题段落 + right 右侧 + + 内容分隔 + ciy-caption标题段落 right 右侧 sub 子标题 diff --git a/fapp/ciyon_ap/pages/demo/css/tailwind.vue b/fapp/ciyon_ap/pages/demo/css/tailwind.vue index b708056..8f445c6 100644 --- a/fapp/ciyon_ap/pages/demo/css/tailwind.vue +++ b/fapp/ciyon_ap/pages/demo/css/tailwind.vue @@ -80,9 +80,8 @@ r5圆角 2rem display: block/hide/flex - flex: flexcol/flex1/flexnone/flex-center/flex-top/flex-wrap - width: auto-w/auto-wmin (auto) - transition: tran5/tran1 + flex: flexcol/flex1/flexnone/flex-center/flex-wrap + transition: tran5 position: sta/abs/fix/rel/sti pos: t0/l0/r0/b0,t1/l1/r1/b1 noselect diff --git a/fapp/ciyon_ap/pages/demo/curd/demo_edit.vue b/fapp/ciyon_ap/pages/demo/curd/demo_edit.vue index 773495b..9759258 100644 --- a/fapp/ciyon_ap/pages/demo/curd/demo_edit.vue +++ b/fapp/ciyon_ap/pages/demo/curd/demo_edit.vue @@ -10,131 +10,131 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -142,80 +142,80 @@ 第 - + - + - + - + - + - + - + - + - + - + - + - + @@ -236,11 +236,8 @@ return {} }, onLoad() { - var app = getApp(); - this.init.data = app.globalData.ciy_page_init; - if (!this.init.data) - return this.alert('不能直接访问,请重新进入'); - this.g = app.globalData.ciy_page_g; + if (!this.pagedata.demo) + return this.alert('不能直接访问,请重新进入'); //独立进入写后端函数获取数据 this.getdata(); }, watch: {}, @@ -278,19 +275,15 @@ var retjson = await this.callajax({ func: 'demo/demo.update', data: { - ...this.init.data + ...this.pagedata.demo } }); this._loading = false; if (retjson.code != 1) return this.alert(retjson.errmsg); var page = getApp().getpage(1); - if (!page) - return; - if (this.init.data._idx == -1) - page.init.list.unshift(retjson.data); - else - page.init.list[this.init.data._idx] = this.objdeepmerge(page.init.list[this.init.data._idx], retjson.data); + if (page?.init?.list) + this.objtolist(page.init.list, retjson.data); // const eventChannel = this.getOpenerEventChannel(); // eventChannel.emit('writedata', retjson.data); uni.navigateBack(); diff --git a/fapp/ciyon_ap/pages/demo/curd/demo_list.vue b/fapp/ciyon_ap/pages/demo/curd/demo_list.vue index f05cba5..62e2e8d 100644 --- a/fapp/ciyon_ap/pages/demo/curd/demo_list.vue +++ b/fapp/ciyon_ap/pages/demo/curd/demo_list.vue @@ -17,7 +17,7 @@ - + No: {{item.id}} {{ccode(g.auditstatus, item.auditstatus)}} @@ -206,8 +206,8 @@ computed: {}, methods: { async getlist() { - var auth = await this.getauth(); - if(auth.me.id == 0) + //await this.getauth(); + if(this.me.id == 0) return uni.navigateBack(); if (this.pageno < 0) return; @@ -264,14 +264,7 @@ _idx: -1 } }; - var app = getApp(); - app.globalData.ciy_page_init = { - ...item.data - }; - app.globalData.ciy_page_g = this.g; - uni.navigateTo({ - url: 'demo_edit?id=' + item.data.id, - }); + this.gourl('demo_edit?id=' + item.data.id, 'navigate', item.data, 'demo'); }, async del(item) { if (await this.askmsg('是否删除?', '删除') != 'ok') @@ -284,7 +277,7 @@ }); if (retjson.code != 1) return this.alert(retjson.errmsg); - this.init.list[item.data._idx]._clas = 'del'; + this.init.list[item.data._idx]._del = true; setTimeout(() => { this.init.list.splice(item.data._idx, 1); }, 500); @@ -336,6 +329,7 @@ items.push({ func: 'del', name: '删除', + style: 'color:var(--dag5)', data: dat }); this.popmenu({ diff --git a/fapp/ciyon_ap/pages/demo/index.vue b/fapp/ciyon_ap/pages/demo/index.vue index cd46ffc..7cea1c6 100644 --- a/fapp/ciyon_ap/pages/demo/index.vue +++ b/fapp/ciyon_ap/pages/demo/index.vue @@ -12,6 +12,9 @@ + + 组件上不能添加class、style属性 + @@ -19,10 +22,11 @@ @@ -235,9 +239,9 @@ ok: true, url: 'comview/textmore', title: '内容部分隐藏/点击显示' - // }, { - // url: 'comview/collapse', - // title: '可折叠面板' + // }, { + // url: 'comview/collapse', + // title: '可折叠面板' }, { url: 'comview/fab', title: '浮动按钮/多个弹出/加号漂浮' @@ -249,6 +253,10 @@ ok: true, url: 'comview/ani', title: '简易动画组件' + }, { + ok: true, + url: 'comview/aniheight', + title: '高度动画组件' }, { ok: true, url: 'comview/anipop', @@ -278,6 +286,10 @@ ok: true, url: 'comview/shownum', title: '数字动效显示' + }, { + ok: true, + url: 'comview/showemoney', + title: '金额显示' }, { url: 'comview/qrcode', title: '生成二维码图片' @@ -352,14 +364,14 @@ url: 'curd/demo_single', title: '增删改查/选择单页' //搜索、列表、点击直接修改、添加、选择。 }, { - url: 'curd/prod_list',//prod_info - title: '商品列表页/下单页'//顶部筛选/分类导航,商品瀑布列表。商品详情多SKU下单/加购物车。 + url: 'curd/prod_list', //prod_info + title: '商品列表页/下单页' //顶部筛选/分类导航,商品瀑布列表。商品详情多SKU下单/加购物车。 }, { - url: 'curd/order_list',//order_refund,order_info - title: '订单页/退款页/订单详情页'//可接入的C端订单操作。退款申请操作。 + url: 'curd/order_list', //order_refund,order_info + title: '订单页/退款页/订单详情页' //可接入的C端订单操作。退款申请操作。 }, { url: 'curd/cart', - title: '购物车页'//购物车管理,合并支付,改变SKU/数量。 + title: '购物车页' //购物车管理,合并支付,改变SKU/数量。 }, { url: 'curd/shop_list', title: '店铺采购单页' //类美团,左侧4字分类,右侧单列商品,底部结算。 @@ -449,7 +461,7 @@ methods: { chgshow(idx) { this.demos[idx].show = !this.demos[idx].show; - if(this.demos[idx].show) + if (this.demos[idx].show) this.setstorage('_demoindex', idx); }, godemo(itm) { diff --git a/fapp/ciyon_ap/pages/demo/page/func.vue b/fapp/ciyon_ap/pages/demo/page/func.vue index ab9ab84..af65d7f 100644 --- a/fapp/ciyon_ap/pages/demo/page/func.vue +++ b/fapp/ciyon_ap/pages/demo/page/func.vue @@ -629,7 +629,7 @@ 特别的,在message下,支持3秒内异步,需自行实现。
- getstrparam(str, split='&') + getstrparam(str, split='|') 将简易字符串解析成object。
一般在系统配置等场景使用。
diff --git a/fapp/ciyon_ap/pages/demo/page/theme.vue b/fapp/ciyon_ap/pages/demo/page/theme.vue index 5b35f2b..c982ac7 100644 --- a/fapp/ciyon_ap/pages/demo/page/theme.vue +++ b/fapp/ciyon_ap/pages/demo/page/theme.vue @@ -2,8 +2,8 @@ - - 暗黑模式 + + 暗黑模式 this.settheme() diff --git a/fapp/ciyon_ap/pages/main/index.vue b/fapp/ciyon_ap/pages/main/index.vue index a5d86ee..0252946 100644 --- a/fapp/ciyon_ap/pages/main/index.vue +++ b/fapp/ciyon_ap/pages/main/index.vue @@ -43,8 +43,7 @@ - - + 主标题 小标题小标题小标题小标题小标题 diff --git a/fapp/ciyon_ap/pages/main/me.vue b/fapp/ciyon_ap/pages/main/me.vue index 5234c3c..1cad636 100644 --- a/fapp/ciyon_ap/pages/main/me.vue +++ b/fapp/ciyon_ap/pages/main/me.vue @@ -21,7 +21,7 @@ --- - 余额 + 提现 @@ -66,13 +66,13 @@ - + - 充值 + 图标名称 - + - 提现 + 图标名称 @@ -104,7 +104,7 @@ - + @@ -147,7 +147,7 @@ }, methods: { async getinit() { - await this.getauth(); + this.getauth(); var retjson = this.callajax({ func: 'me.usrbuy_get', cache: 86400, diff --git a/fapp/ciyon_ap/pages/main/me_bank_info.vue b/fapp/ciyon_ap/pages/main/me_bank_info.vue new file mode 100644 index 0000000..8f8c098 --- /dev/null +++ b/fapp/ciyon_ap/pages/main/me_bank_info.vue @@ -0,0 +1,91 @@ + + + + + \ No newline at end of file diff --git a/fapp/ciyon_ap/pages/main/me_cash.vue b/fapp/ciyon_ap/pages/main/me_cash.vue index e20fd94..6879087 100644 --- a/fapp/ciyon_ap/pages/main/me_cash.vue +++ b/fapp/ciyon_ap/pages/main/me_cash.vue @@ -24,6 +24,12 @@ {{init.user.cash}}元 + + + + + + diff --git a/fapp/ciyon_ap/pages/main/me_cash_charge.vue b/fapp/ciyon_ap/pages/main/me_cash_charge.vue index cd114af..760775a 100644 --- a/fapp/ciyon_ap/pages/main/me_cash_charge.vue +++ b/fapp/ciyon_ap/pages/main/me_cash_charge.vue @@ -73,11 +73,14 @@ methods: { async getinit() { this.init.charges = []; - this.init.charges.push(1000); - this.init.charges.push(5000); this.init.charges.push(10000); this.init.charges.push(50000); + this.init.charges.push(100000); + this.init.charges.push(500000); this.init.code = 1; + this.money = this.toint(this.opn.pay); + if(this.money > 0) + this.paynow(); }, async paynow(e) { if(this.money <= 0) diff --git a/fapp/ciyon_ap/pages/main/me_cash_ie.vue b/fapp/ciyon_ap/pages/main/me_cash_ie.vue index ebb90a5..3697384 100644 --- a/fapp/ciyon_ap/pages/main/me_cash_ie.vue +++ b/fapp/ciyon_ap/pages/main/me_cash_ie.vue @@ -9,7 +9,7 @@ - + {{item.name}} diff --git a/fapp/ciyon_ap/pages/main/me_invoicetitle.vue b/fapp/ciyon_ap/pages/main/me_invoicetitle.vue index d5989f9..87f612a 100644 --- a/fapp/ciyon_ap/pages/main/me_invoicetitle.vue +++ b/fapp/ciyon_ap/pages/main/me_invoicetitle.vue @@ -136,6 +136,7 @@ items.push({ func: 'del', name: '删除', + style: 'color:var(--dag5)', data: dat }); this.popmenu({ diff --git a/fapp/ciyon_ap/pages/main/me_real.vue b/fapp/ciyon_ap/pages/main/me_real.vue index 8003bf8..e4b6c05 100644 --- a/fapp/ciyon_ap/pages/main/me_real.vue +++ b/fapp/ciyon_ap/pages/main/me_real.vue @@ -7,6 +7,11 @@ 您已提交申请,等待审核... 您的申请正在审核中... 您已申请通过 + + {{init.data.name}} + {{init.data.idid}} + {{todatetime(init.data.addtimes)}} 申请 + @@ -34,18 +39,18 @@ - + - + - + - + - + @@ -54,7 +59,7 @@ - + @@ -82,14 +87,21 @@ this.init = retjson; if (retjson.code != 1) return; - if (retjson.data && retjson.data.auditstatus == 100) { + if (retjson.data && retjson.data.auditstatus == 100 && !this.me.truename) { + this.me.truename = retjson.data.name; + this.me.idid = retjson.data.idid; + this.setstorage('me', this.me); var app = getApp(); var page = app.getpage(1); - if (page && page.refreshme) - page.refreshme(); + page.me = this.me; } + setTimeout(() => { + this.getrefsSync('cameraocr').Step(1); + }, 500); }, async submit(e) { + // e.detail.value.name = '张东'; + // e.detail.value.idno = '152304200111157127'; if (e.detail.value.name.length < 1) return this.toast('请输入姓名'); if (e.detail.value.idno.length < 10) @@ -114,6 +126,7 @@ uni.navigateBack(); }, async chgidcard(e) { + console.log(e); this.idimg = e.tempimg; if (this._loading) return this.toast('请稍后再试'); diff --git a/fapp/ciyon_ap/pages/main/me_shipaddr.vue b/fapp/ciyon_ap/pages/main/me_shipaddr.vue index 4bb28ec..e2124a8 100644 --- a/fapp/ciyon_ap/pages/main/me_shipaddr.vue +++ b/fapp/ciyon_ap/pages/main/me_shipaddr.vue @@ -139,6 +139,7 @@ items.push({ func: 'del', name: '删除', + style: 'color:var(--dag5)', data: dat }); this.popmenu({ diff --git a/fapp/ciyon_ap/util/ciy.js b/fapp/ciyon_ap/util/ciy.js index 78b1a3a..7dab1cf 100644 --- a/fapp/ciyon_ap/util/ciy.js +++ b/fapp/ciyon_ap/util/ciy.js @@ -2,7 +2,7 @@ ================================================================================= * License: GPL-2.0 license * Author: 众产® https://ciy.cn/code -* Version: 0.1.15 +* Version: 0.1.16 ================================================================================= app函数库 * alert (await)默认alert @@ -82,12 +82,14 @@ page函数库 * inputmsg (await)输入弹出框 * sleep (await)延迟毫秒 * load_ciydict (await)获取远程静态dict + * load_svgicon (await)获取远程静态svgicon * shareparam 分享链接转换 * getstrparam 解析简易参数 * urlparam 解析url * arrayfind 从数组中匹配值。返回index * objdeepmerge object合并,自动避开静态字典,自动处理带id数组 + * objtolist 将object并入list数组 * objclone 深度复制obj * str2date 字符串转Date * bin2hex bin转hex字符串 @@ -116,6 +118,7 @@ page默认数据 * opn 页面urlget参数 * me 用户状态 * g 用户及字典数据引用 + * pagedata 页面间数据传递 替代vuex\Pinia * jsnurl 指向动态服务器(多个)。默认t * header_* 页面边角尺寸 * footer_* 页面边角尺寸 @@ -159,7 +162,7 @@ export default { var sys = uni.getSystemInfoSync(); // #endif app.globalData._sysinfo = sys; - + app.globalData.ciy_page_data = {}; app.globalData._header_statusbar_height = sys.statusBarHeight; if (sys.safeAreaInsets) app.globalData._footer_safe_height = sys.safeAreaInsets.bottom; @@ -343,12 +346,15 @@ export default { }, 500); } var header = {}; - header[app.globalData.tokenfield] = app.getstorage("_" + app.globalData.tokenfield); - if (opt.data) - opt.data._pf = 'MB'; + header['ciyauth'] = app.getstorage("_" + app.globalData.tokenfield); + opt.data = opt.data || {}; + opt.data._pf = 'MB'; + if (opt.pagethis) + opt.data = Object.assign({}, opt.pagethis.opn, opt.data); uni.request({ url: url, data: opt.data, + withCredentials: true, dataType: 'text', method: opt.data ? 'POST' : 'GET', header: header, @@ -385,6 +391,22 @@ export default { errmsg: '返回JSON错误:' + res.statusCode }); } + var dictversion = res.header[app.globalData.tokenfield + 're']; + if (dictversion) { + console.log('restorage new', dictversion); + app.globalData._restorage = true; //通知app.vue自动刷新 + } + var newauth = ''; + for (var i in res.header) { + if (i.toLowerCase() == '_ciyauth') + newauth = res.header[i]; + } + if (!newauth) + newauth = json['_ciyauth']; + if (newauth) { + console.log('newauth new', newauth); + app.setstorage('_' + app.globalData.tokenfield, newauth); + } if (json.code != 1) { if (json.code == 2) { app.removestorage('me'); @@ -392,27 +414,13 @@ export default { if (pg.isPage) pg.getauth(); return reject({ - errmsg: '请重新登录' + errmsg: '' }); } else { return reject(json); } } try { - var dictversion = res.header[app.globalData.tokenfield + 're']; - if (dictversion) { - console.log('restorage new', dictversion); - app.globalData._restorage = true; //通知app.vue自动刷新 - } - var newauth = ''; - for (var i in res.header) { - if (i.toLowerCase() == app.globalData.tokenfield) - newauth = res.header[i]; - } - if (newauth) { - console.log('newauth new', newauth); - app.setstorage('_' + app.globalData.tokenfield, newauth); - } //delete json.code; if (opt.cache > 0) { app.setstorage(opt.cachekey, { @@ -488,6 +496,8 @@ export default { cs.extdata = arr[code][d].extdata; if (arr[code][d].clas) cs.clas = arr[code][d].clas; + if (arr[code][d].isuse != 1) + cs.isuse = arr[code][d].isuse; if (arr[code][d].upid > 0) { for (var i in arr[code]) { if (arr[code][d].upid == arr[code][i].id) { @@ -749,6 +759,7 @@ export default { header_title_margin: 0, //顶部标题栏左右留白(正好躲过胶囊,且可使文字居中) footer_safe_height: 0, //底部安全高度(躲过刘海屏、底部横线等) pageclass: 'dark', + pagedata: {}, //外部g.page_init sysinfo: {}, version: '', isPage: false, @@ -789,16 +800,17 @@ export default { if (upid > 0) this.setstorage('upid', upid); this.pagepost = { //page快捷检索post值 - query: {}, - ...this.opn + query: {} }; this.header_statusbar_height = app.globalData._header_statusbar_height; this.header_title_height = app.globalData._header_title_height; this.header_title_margin = app.globalData._header_title_margin; this.footer_safe_height = app.globalData._footer_safe_height; + this.pagedata = app.globalData.ciy_page_data; this.version = app.globalData._version; this.sysinfo = app.globalData._sysinfo; 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; @@ -902,16 +914,23 @@ export default { return str; }, - async gourl(b, type, initdata) { //url支持 http[web]、![原型]、*[alert提示]、$[需登录常规url]、常规url + async gourl(b, type, initdata, initkey) { //url支持 http[web]、![原型]、*[alert提示]、$[需登录常规url]、常规url var url = ''; if (typeof(b) != 'string') { url = b.currentTarget.dataset.url; if (!initdata) { - initdata = b.currentTarget.dataset.initdata; + initdata = b.currentTarget.dataset.init; + } + if (!initkey) { + initkey = b.currentTarget.dataset.key; } } else { url = b; } + if (!initdata) + initdata = {}; + if (!initkey) + initkey = 'base'; if (!url) return console.warn('gourl传参错误:' + url); var app = getApp(); @@ -935,9 +954,11 @@ export default { if (auth.me.id == 0) return; } - if (initdata) - app.globalData.ciy_page_init = initdata; - app.globalData.ciy_page_g = this.g; + app.globalData.ciy_page_data[initkey] = { + ...initdata + }; + if (this.isPage) + app.globalData.ciy_page_g = this.g; if (type == 'redirect') { uni.redirectTo({ url: url, @@ -972,7 +993,7 @@ export default { goweb(url, name) { var app = getApp(); url += (url.indexOf('?') == -1) ? '?' : '&'; - url += '_' + app.globalData.tokenfield + '=' + app.getstorage('_' + app.globalData.tokenfield); + url += '_ciyauth=' + app.getstorage('_' + app.globalData.tokenfield); uni.navigateTo({ url: '/pages/pub/web?web=' + encodeURIComponent(url) + (name ? '&name=' + name : ''), animationType: 'pop-in', @@ -1129,7 +1150,7 @@ export default { if (key == 'step') { val.duration = this.toint(val.duration); if (val.duration < 16) - val.duration = 16; + val.duration = 100; animation.step(val); cb(animation.export()); await this.sleep(val.duration); @@ -1372,6 +1393,8 @@ export default { return '.' + m2; }, tocciy(cciy) { + if (!cciy) + return ''; var hex = cciy.toString(16).toUpperCase(); hex = hex.substring(hex.length - 12); hex = hex.replace(/^0+/, ''); @@ -1518,6 +1541,7 @@ export default { if (!ori) return ''; var retstr = ''; + ori = ori + ''; if (ori.length > pstr.length) { retstr = ori.substring(0, ori.length - pstr.length); ori = ori.substring(ori.length - pstr.length); @@ -1796,7 +1820,7 @@ export default { if (item.data) this.gourl(item.url, item.type, { ...item.data - }); + }, item.key); else this.gourl(item.url, item.type); return; @@ -1948,7 +1972,42 @@ export default { return e; //不返回,res为 undefined }); }, - + async load_svgicon(url) { + if (url.indexOf('.local.') === -1) + url = url.replace('http://', 'https://'); + return new Promise((resolve, reject) => { + uni.request({ + url: url, + dataType: 'text', + method: 'GET', + fail: res => { + res._url = url; + this.uperr("h5.loadsvgicon.fail", res); + return reject({ + errmsg: 'dict' + res.errMsg + }); + }, + success: res => { + var ind = res.data.indexOf(':'); + if (ind == -1) + return reject({ + errmsg: 'svgicon数据缺少合规图标' + }); + var lines = res.data.split('\n'); + var svgs = {}; + for (var i in lines) { + var idx = lines[i].indexOf(':'); + if (idx == -1) + continue; + svgs[lines[i].substring(0, idx)] = lines[i].substring(idx + 1); + } + return resolve(svgs); + } + }); + }).catch(e => { + return e; //不返回,res为 undefined + }); + }, shareparam(opn) { var app = getApp(); var param = {}; @@ -1977,7 +2036,7 @@ export default { return param; }, getstrparam(str, split) { - split = split || '&'; + split = split || '|'; var strs = str.split(split); var ret = {}; for (var i in strs) { @@ -2053,6 +2112,19 @@ export default { delete src.errmsg; return src; }, + objtolist(list, data) { + if (!list || !data) + return; + if (!this.isarray(list)) + return; + if (!this.isobject(data)) + return; + let idx = this.arrayfind(list, data.id, 'id'); + if (idx == -1) + list.unshift(data); + else + list[idx] = this.objdeepmerge(list[idx], data); + }, objclone(obj) { if (obj instanceof Date) { return new Date(obj.getTime()); @@ -2470,8 +2542,7 @@ export default { 1024) + 'KB', gf); var app = getApp(); var header = {}; - header[app.globalData.tokenfield] = app.getstorage("_" + app.globalData - .tokenfield); + header['ciyauth'] = app.getstorage("_" + app.globalData.tokenfield); var filepath = gf.tempFilePath || gf.tempImagePath || gf.path; var now = new Date(); var fext = this.file_ext(gf.name); diff --git a/fapp/ciyon_ap/util/lang/en.json b/fapp/ciyon_ap/util/lang/en.json index 586142b..6f5b751 100644 --- a/fapp/ciyon_ap/util/lang/en.json +++ b/fapp/ciyon_ap/util/lang/en.json @@ -39,6 +39,8 @@ "query.btn_reset":"Reset", "query.btn_close":"Close", + "page.btn_pub":"Publish", + "page.btn_edit":"Edit", "page.btn_submit":"Submit", "page.btn_refresh":"Refresh", "page.loading":"Loading", diff --git a/fapp/ciyon_ap/util/lang/fr.json b/fapp/ciyon_ap/util/lang/fr.json index f91878b..ab2da4f 100644 --- a/fapp/ciyon_ap/util/lang/fr.json +++ b/fapp/ciyon_ap/util/lang/fr.json @@ -39,6 +39,8 @@ "query.btn_reset": "Réinitialiser", "query.btn_close": "Fermer", + "page.btn_pub":"Publier", + "page.btn_edit":"Éditer", "page.btn_submit": "Soumettre", "page.btn_refresh": "Actualiser", "page.loading": "Chargement", diff --git a/fapp/ciyon_ap/util/lang/ja.json b/fapp/ciyon_ap/util/lang/ja.json index c4ce282..e3f2dda 100644 --- a/fapp/ciyon_ap/util/lang/ja.json +++ b/fapp/ciyon_ap/util/lang/ja.json @@ -40,6 +40,8 @@ "query.btn_reset":"リセット", "query.btn_close":"閉じる", + "page.btn_pub":"公開", + "page.btn_edit":"編集", "page.btn_submit":"送信", "page.btn_refresh":"リフレッシュ", "page.loading":"ロード中", diff --git a/fapp/ciyon_ap/util/lang/zh-Hans.json b/fapp/ciyon_ap/util/lang/zh-Hans.json index fc9e19c..32fff8a 100644 --- a/fapp/ciyon_ap/util/lang/zh-Hans.json +++ b/fapp/ciyon_ap/util/lang/zh-Hans.json @@ -40,6 +40,7 @@ "query.btn_close":"关闭", "page.btn_pub":"发布", + "page.btn_edit":"修改", "page.btn_submit":"提交", "page.btn_refresh":"刷新", "page.loading":"加载中", diff --git a/fapp/ciyon_ap/util/lang/zh-Hant.json b/fapp/ciyon_ap/util/lang/zh-Hant.json index 499e788..86196ad 100644 --- a/fapp/ciyon_ap/util/lang/zh-Hant.json +++ b/fapp/ciyon_ap/util/lang/zh-Hant.json @@ -40,6 +40,8 @@ "query.btn_reset":"重置", "query.btn_close":"關閉", + "page.btn_pub":"發佈", + "page.btn_edit":"編輯", "page.btn_submit":"提交", "page.btn_refresh":"刷新", "page.loading":"載入中", diff --git a/fapp/ciyon_ap/util/style.css b/fapp/ciyon_ap/util/style.css index 6e705f0..1efe589 100644 --- a/fapp/ciyon_ap/util/style.css +++ b/fapp/ciyon_ap/util/style.css @@ -161,6 +161,7 @@ body, view, text { box-sizing: border-box; + font-size-adjust: ex-height 0.53; } ::-webkit-scrollbar { @@ -252,23 +253,6 @@ text { opacity: 0.5; } -.ciy-list .title { - position: relative; - color: var(--txt9); - font-weight: bold; - margin-left: 1em; -} - -.ciy-list .title::before { - content: ''; - position: absolute; - left: -1em; - width: 0.5em; - height: 1.5em; - border-radius: 5px; - background: linear-gradient(-60deg, var(--man4), var(--man7)); -} - .ciy-list .l0 { font-size: 0.8em; padding-right: 6em; @@ -283,6 +267,7 @@ text { .ciy-list .l2 { display: flex; align-items: center; + padding: 0.5em 0; } .ciy-list .l2>label { @@ -353,7 +338,7 @@ text { right: 1em; width: 4em; height: 4em; - opacity: 0.6; + opacity: 0.95; z-index: 10; border-radius: 2em; background: linear-gradient(90deg, #8568f7, #4981ff); @@ -463,16 +448,8 @@ text { width: 80%; } -.btn.dis { - border: 1px solid var(--bg6); - background: var(--bg1) !important; - color: var(--bg5); -} - -.btn.dis:active { - background: var(--bg1) !important; - color: var(--txt9) !important; - border: 1px solid var(--bg9); +.btn[disabled] { + opacity: 0.5; } .btn.def { @@ -513,11 +490,6 @@ text { color: var(--txt8); } -.ciy-tip>view, -.ciy-tip>div { - margin-bottom: 0.5em; -} - /*断行*/ .ciy-height { height: 0.3em; @@ -547,11 +519,11 @@ text { padding-bottom: 0.2em; } -.ciy-grid .grid3 { +.ciy-grid.grid3 .grid { width: 33.3%; } -.ciy-grid .grid5 { +.ciy-grid.grid5 .grid { width: 20%; } @@ -585,6 +557,38 @@ text { } /*标题分隔*/ +.ciy-title { + display: flex; + align-items: center; + padding: 0.8em 1em; + font-size: 1.1em; + position: relative; + font-weight: bolder; + color: var(--txt9); +} + +.ciy-title.mk::before { + content: ""; + width: 0.4em; + height: 1.5em; + margin-right: 0.3em; + border-radius: 0.3em; + vertical-align: middle; + background: linear-gradient(-60deg, var(--man4), var(--man7)); +} + + +.ciy-title .title { + flex: 1; + color: var(--txt9); +} + +.ciy-title .right { + font-size: 0.9em; + font-weight: normal; + color: var(--txt5); +} + .ciy-caption { display: flex; align-items: center; @@ -598,7 +602,8 @@ text { border-bottom: 1px solid var(--bg6); } -.ciy-caption .mk { +.ciy-caption.mk::before { + content: ""; width: 0.3em; height: 1.5em; margin-right: 0.3em; @@ -646,7 +651,8 @@ text { font-weight: bold; } -.ciy-card>.title .mk { +.ciy-card>.title.mk::before { + content: ""; width: 0.2em; display: inline-block; border-radius: 0.2em; @@ -873,40 +879,33 @@ text { .md-h1 { font-weight: bold; font-size: 1.2em; - margin: 0 0.3em; + margin-left: 0.3em; line-height: 1.5em; text-align: left; - padding: 0.5em; + padding: 0.5em 0 0.5em 0.5em; } .md-h2 { font-weight: bold; font-size: 1.1em; - margin: 0 0.4em; + margin-left: 0.4em; line-height: 1.8em; - padding: 0.5em; + padding: 0.5em 0 0.5em 0.5em; } -.md-h3 { +.md-h3, +.md-h4, +.md-h5 { font-weight: bold; font-size: 1em; - margin: 0 1.5em; + margin-left: 0.5em; line-height: 1.5em; - padding: 0.5em; -} - -.md-h4 { - font-weight: bold; - font-size: 1em; - margin: 0 2em; - line-height: 1.5em; - padding: 0.5em; + padding: 0.5em 0 0.5em 0.5em; } .md-content { font-size: 1em; text-indent: 1em; - padding: 0.3em 1em; line-height: 2em; white-space: pre-wrap; } @@ -924,47 +923,43 @@ text { border-radius: 0.2em; } -.txt-smmm { +.txt-smmm.txt-smmm.txt-smmm { font-size: 0.7rem; } -.txt-smm { +.txt-smm.txt-smm.txt-smm { font-size: 0.8rem; } -.txt-sm { +.txt-sm.txt-sm.txt-sm { font-size: 0.9rem; } -.txt-lg { +.txt-lg.txt-lg.txt-lg { font-size: 1.2rem; } -.txt-lgg { +.txt-lgg.txt-lgg.txt-lgg { font-size: 1.5rem; } -.txt-lggg { +.txt-lggg.txt-lggg.txt-lggg { font-size: 2rem; } -.txt-lgggg { +.txt-lgggg.txt-lgggg.txt-lgggg { font-size: 3rem; } -.txt-wb { +.txt-wb.txt-wb.txt-wb { font-weight: bold; } -.txt-wl { +.txt-wl.txt-wl.txt-wl { font-weight: lighter; } -.txt-un { - text-decoration: underline; -} - -.txt-un-hover:hover { +.txt-un.txt-un.txt-un { text-decoration: underline; } @@ -994,75 +989,75 @@ text { text-overflow: ellipsis; } -.txt1 { +.txt1.txt1.txt1 { color: var(--txt1); } -.txt2 { +.txt2.txt2.txt2 { color: var(--txt2); } -.txt3 { +.txt3.txt3.txt3 { color: var(--txt3); } -.txt4 { +.txt4.txt4.txt4 { color: var(--txt4); } -.txt5 { +.txt5.txt5.txt5 { color: var(--txt5); } -.txt6 { +.txt6.txt6.txt6 { color: var(--txt6); } -.txt7 { +.txt7.txt7.txt7 { color: var(--txt7); } -.txt8 { +.txt8.txt8.txt8 { color: var(--txt8); } -.txt9 { +.txt9.txt9.txt9 { color: var(--txt9); } -.bg1 { +.bg1.bg1.bg1 { background-color: var(--bg1); } -.bg2 { +.bg2.bg2.bg2 { background-color: var(--bg2); } -.bg3 { +.bg3.bg3.bg3 { background-color: var(--bg3); } -.bg4 { +.bg4.bg4.bg4 { background-color: var(--bg4); } -.bg5 { +.bg5.bg5.bg5 { background-color: var(--bg5); } -.bg6 { +.bg6.bg6.bg6 { background-color: var(--bg6); } -.bg7 { +.bg7.bg7.bg7 { background-color: var(--bg7); } -.bg8 { +.bg8.bg8.bg8 { background-color: var(--bg8); } -.bg9 { +.bg9.bg9.bg9 { background-color: var(--bg9); } @@ -1106,215 +1101,188 @@ text { padding-bottom: 1rem; } -.mx1 { +.mx0.mx0.mx0 { + margin-left: 0; + margin-right: 0; +} + +.mx1.mx1.mx1 { margin-left: 0.25rem; margin-right: 0.25rem; } -.mx2 { +.mx2.mx2.mx2 { margin-left: 0.5rem; margin-right: 0.5rem; } -.mx3 { +.mx3.mx3.mx3 { margin-left: 0.75rem; margin-right: 0.75rem; } -.mx4 { +.mx4.mx4.mx4 { margin-left: 1rem; margin-right: 1rem; } -.my1 { +.my0.my0.my0 { + margin-top: 0; + margin-bottom: 0; +} + +.my1.my1.my1 { margin-top: 0.25rem; margin-bottom: 0.25rem; } -.my2 { +.my2.my2.my2 { margin-top: 0.5rem; margin-bottom: 0.5rem; } -.my3 { +.my3.my3.my3 { margin-top: 0.75rem; margin-bottom: 0.75rem; } -.my4 { +.my4.my4.my4 { margin-top: 1rem; margin-bottom: 1rem; } -.r1 { - border-radius: 0.25rem; -} - -.r2 { - border-radius: 0.5rem; -} - -.r3 { - border-radius: 0.75rem; -} - -.r4 { - border-radius: 1rem; -} - -.r5 { - border-radius: 2rem; -} - .block.block { display: block; } -.flex { +.flex.flex { display: flex; } -.flexcol { +.flexcol.flexcol { display: flex; flex-direction: column; } -.flex1 { +.flex1.flex1 { flex: 1; min-width: 0; } -.flexnone { +.flexnone.flexnone { flex: none; } -.flex-center { +.flex-center.flex-center { align-items: center; } -.flex-top { - align-items: flex-start; -} - -.flex-wrap { +.flex-wrap.flex-wrap { flex-wrap: wrap; } -.auto-w { - width: auto; -} - -.auto-wmin { - min-width: auto; -} - -.hide { +.hide.hide.hide { display: none; } -.noselect { +.noselect.noselect.noselect { user-select: none; } -.tran5 { +.tran5.tran5.tran5 { transition: all .5s; -webkit-transition: all .5s; } -.tran1 { - transition: all 1s; - -webkit-transition: all 1s; -} - -.sta { +.sta.sta.sta { position: static; } -.abs { +.abs.abs.abs { position: absolute; } -.fix { +.fix.fix.fix { position: fixed; } -.rel { +.rel.rel.rel { position: relative; } -.sti { +.sti.sti.sti { position: sticky; z-index: 40; } -.t0 { +.t0.t0.t0 { top: 0; } -.l0 { +.l0.l0.l0 { left: 0; } -.r0 { +.r0.r0.r0 { right: 0; } -.b0 { +.b0.b0.b0 { bottom: 0; } -.t1 { +.t1.t1.t1 { top: 0.5em; } -.l1 { +.l1.l1.l1 { left: 0.5em; } -.r1 { +.r1.r1.r1 { right: 0.5em; } -.b1 { +.b1.b1.b1 { bottom: 0.5em; } -.t2 { +.t2.t2.t2 { top: 1em; } -.l2 { +.l2.l2.l2 { left: 1em; } -.r2 { +.r2.r2.r2 { right: 1em; } -.b2 { +.b2.b2.b2 { bottom: 1em; } -.lh1 { +.lh1.lh1.lh1 { line-height: 1em; } -.lh2 { +.lh2.lh2.lh2 { line-height: 1.5em; } -.lh3 { +.lh3.lh3.lh3 { line-height: 2em; } -.lh4 { +.lh4.lh4.lh4 { line-height: 2.5em; } -.ti1 { +.ti1.ti1.ti1 { text-indent: 1em; } -.ti2 { +.ti2.ti2.ti2 { text-indent: 2em; } \ No newline at end of file diff --git a/fapp/ciyon_ap/vite.config.js b/fapp/ciyon_ap/vite.config.js index fc23022..58f357d 100644 --- a/fapp/ciyon_ap/vite.config.js +++ b/fapp/ciyon_ap/vite.config.js @@ -2,7 +2,6 @@ import { defineConfig } from 'vite' import uni from '@dcloudio/vite-plugin-uni' - // @yck-web/vite-plugin-template-inset const htmlPlugin_ciy = () => { return { @@ -30,8 +29,7 @@ const htmlPlugin_ciy = () => { export default defineConfig({ plugins: [htmlPlugin_ciy(), uni()], resolve: { - alias: { - }, + alias: {}, }, css: { preprocessorOptions: { diff --git a/fapp/贡献代码.bat b/fapp/贡献代码.bat index 9d57e3e..9f90fa3 100644 --- a/fapp/贡献代码.bat +++ b/fapp/贡献代码.bat @@ -1,4 +1,7 @@ -xcopy ciydao\components ciyon_ap\components /s /y /v +xcopy ciydao\components\ciy* ciyon_ap\components /s /y /v +xcopy ciydao\pages\demo ciyon_ap\pages\demo /s /y /v +xcopy ciydao\pages\main ciyon_ap\pages\main /s /y /v +xcopy ciydao\pages\pub ciyon_ap\pages\pub /s /y /v xcopy ciydao\util ciyon_ap\util /s /y /v xcopy ciydao\main.js ciyon_ap\main.js /s /y /v xcopy ciydao\vite.config.js ciyon_ap\vite.config.js /s /y /v