diff --git a/app.wxss b/app.wxss index 2601418..2f2bd5c 100644 --- a/app.wxss +++ b/app.wxss @@ -1792,7 +1792,7 @@ page { padding: 0; height: 32px !important; line-height: 32px !important; - font-size: 16px; + font-size: 14px; } .weui-search-bar__box { height: 32px !important; diff --git a/assets/iconfont/iconfont.wxss b/assets/iconfont/iconfont.wxss index d43fe58..3d181d3 100644 --- a/assets/iconfont/iconfont.wxss +++ b/assets/iconfont/iconfont.wxss @@ -1,9 +1,8 @@ @font-face { - font-family: "iconfont"; - /* Project id 2708790 */ - src: url('//at.alicdn.com/t/c/font_2708790_9nnxschovxc.woff2?t=1702621029549') format('woff2'), - url('//at.alicdn.com/t/c/font_2708790_9nnxschovxc.woff?t=1702621029549') format('woff'), - url('//at.alicdn.com/t/c/font_2708790_9nnxschovxc.ttf?t=1702621029549') format('truetype'); + font-family: "iconfont"; /* Project id 4374774 */ + src: url('//at.alicdn.com/t/c/font_4374774_q3e6az95gpf.woff2?t=1702625989224') format('woff2'), + url('//at.alicdn.com/t/c/font_4374774_q3e6az95gpf.woff?t=1702625989224') format('woff'), + url('//at.alicdn.com/t/c/font_4374774_q3e6az95gpf.ttf?t=1702625989224') format('truetype'); } .iconfont { @@ -14,180 +13,24 @@ -moz-osx-font-smoothing: grayscale; } -.icon-nianling:before { - content: "\e621"; -} - -.icon-dingwei2:before { - content: "\e623"; -} - -.icon-shezhi4:before { - content: "\e622"; -} - -.icon-wodedaili1:before { - content: "\e61c"; -} - -.icon-wodebaoming3:before { - content: "\e61d"; -} - -.icon-wodeshoucang:before { - content: "\e620"; -} - -.icon-baoming1:before { - content: "\e61b"; -} - -.icon-jiaofuzhushouicon:before { - content: "\e618"; -} - -.icon-dianzan1:before { - content: "\e615"; -} - -.icon-yiqueren:before { - content: "\e614"; -} - -.icon-daihedui:before { - content: "\e611"; -} - -.icon-daijiesuan:before { - content: "\e612"; -} - -.icon-gongzitiao:before { - content: "\e60f"; -} - -.icon-zhanghuxinxi:before { - content: "\e60e"; -} - -.icon-dianzihetong:before { - content: "\e60d"; -} - -.icon-wodebaoming2:before { - content: "\e610"; +.icon-paizhao1:before { + content: "\e83f"; } .icon-gengduo2:before { content: "\e90e"; } -.icon-a-daotian30logo:before { - content: "\e8f2"; -} - -.icon-qiehuan:before { - content: "\e8f3"; -} - -.icon-wodetuandui:before { - content: "\e8f0"; -} - -.icon-shujudaping:before { - content: "\e8f1"; -} - -.icon-zhankai1:before { - content: "\e8ee"; -} - -.icon-xiaoxi:before { - content: "\e8ed"; -} - -.icon-duoxuan11:before { - content: "\e8e9"; -} - -.icon-shenqingjiarudaotian:before { - content: "\e8e8"; -} - -.icon-duoxuan2:before { - content: "\e8e7"; -} - -.icon-jiaobiao:before { - content: "\e8e6"; -} - -.icon-retui:before { - content: "\e8e5"; -} - -.icon-shangjiahoutai:before { - content: "\e8e0"; -} - -.icon-daohang:before { - content: "\e8df"; -} - -.icon-shoucang:before { - content: "\e8dd"; -} - -.icon-yishoucang:before { - content: "\e8de"; -} - -.icon-huadong:before { - content: "\e8dc"; -} - -.icon-shaixuan4:before { - content: "\e8db"; -} - -.icon-shenfenzheng1:before { - content: "\e8da"; -} - -.icon-paizhao3:before { - content: "\e8d9"; -} - -.icon-zizhushangchuan:before { - content: "\e8d5"; +.icon-fenxiang1:before { + content: "\e624"; } -.icon-shoudongshuru:before { - content: "\e8d6"; -} - -.icon-shuashenfenzheng:before { - content: "\e8d8"; -} - -.icon-shouji1:before { - content: "\e8d7"; -} - -.icon-jinxuan:before { - content: "\e8d4"; -} - -.icon-wei:before { - content: "\e8d3"; -} - -.icon-tuandui:before { - content: "\e8d2"; +.icon-sousuo:before { + content: "\e62e"; } -.icon-shenqingchengweidaili:before { - content: "\e8d1"; +.icon-gengduo11:before { + content: "\e75a"; } .icon-nv3:before { @@ -198,1202 +41,22 @@ content: "\e8d0"; } -.icon-weixin5:before { - content: "\e8ca"; -} - -.icon-dianhua:before { - content: "\e8cb"; -} - -.icon-qingkong1:before { - content: "\e8cd"; -} - -.icon-yigezhuanmenfuwudailidepingtai:before { - content: "\e8ce"; -} - -.icon-qiyeweixin:before { - content: "\e8cc"; -} - -.icon-weiguanzhu:before { - content: "\e8c8"; -} - -.icon-yiguanzhu:before { - content: "\e8c9"; -} - -.icon-yirenzheng:before { - content: "\e8c7"; -} - -.icon-zanting:before { - content: "\e8c1"; -} - -.icon-jia11:before { - content: "\e8c2"; -} - -.icon-jian:before { - content: "\e8c3"; -} - -.icon-kaishi:before { - content: "\e8c4"; -} - -.icon-xiangyou1:before { - content: "\e8c5"; -} - -.icon-xiangzuo1:before { - content: "\e8c6"; -} - -.icon-tianjia3:before { - content: "\e8c0"; -} - -.icon-shaixuan1:before { - content: "\e8bf"; -} - -.icon-shanchu2:before { - content: "\e8be"; -} - -.icon-dangqianzhuangtai:before { - content: "\e8bd"; -} - -.icon-gengxinshijian:before { - content: "\e8b9"; -} - -.icon-wanzhengdu:before { - content: "\e8ba"; -} - -.icon-gengxinshijian1:before { - content: "\e8bb"; -} - -.icon-wanzhengdu1:before { - content: "\e8bc"; -} - -.icon-hanshujiagong:before { - content: "\e8b5"; -} - -.icon-jinriretui:before { - content: "\e8b6"; -} - -.icon-shixisheng:before { - content: "\e8b7"; -} - -.icon-shehuigong:before { - content: "\e8b8"; -} - -.icon-beizhu:before { - content: "\e8a5"; -} - -.icon-gantan:before { - content: "\e89d"; -} - -.icon-zidongtonggao:before { - content: "\e8b4"; -} - -.icon-yilizhi:before { - content: "\e8ad"; -} - -.icon-yijiedao:before { - content: "\e8ae"; -} - -.icon-baomingchenggong:before { - content: "\e8af"; -} - -.icon-ruzhichenggong:before { - content: "\e8b0"; -} - -.icon-yuyuelizhi:before { - content: "\e8b1"; -} - -.icon-shenhezhong:before { - content: "\e8b2"; -} - -.icon-mianshitongguo:before { - content: "\e8b3"; -} - -.icon-zhuanfa2:before { - content: "\e8aa"; -} - -.icon-dianzan:before { - content: "\e8ab"; -} - -.icon-yinhangka2:before { - content: "\e8a6"; -} - -.icon-zhengjian1:before { - content: "\e8a7"; -} - -.icon-dizhiben3:before { - content: "\e8a8"; -} - -.icon-shezhi2:before { - content: "\e8a9"; -} - -.icon-zhuchangtong1:before { - content: "\e8a3"; -} - -.icon-bocai:before { - content: "\e8a4"; -} - -.icon-daotian2:before { - content: "\e8a0"; -} - -.icon-nazha1:before { - content: "\e8a1"; -} - -.icon-xiniu1:before { - content: "\e8a2"; -} - -.icon-xiniu:before { - content: "\e89f"; -} - -.icon-daotian1:before { - content: "\e89e"; -} - -.icon-shujutongji1:before { - content: "\e89c"; -} - -.icon-yuanquan:before { - content: "\e899"; -} - -.icon-luban:before { - content: "\e89a"; -} - -.icon-zhaogonghezi:before { - content: "\e89b"; -} - -.icon-lianjie:before { - content: "\e898"; -} - -.icon-tonggaoquan:before { - content: "\e897"; -} - -.icon-yulan:before { - content: "\e896"; -} - -.icon-dianhua8:before { - content: "\e894"; -} - -.icon-shenfenzheng4:before { - content: "\e895"; -} - -.icon-dianhua7:before { - content: "\e892"; -} - -.icon-shenfenzheng3:before { - content: "\e893"; -} - -.icon-dianhua6:before { - content: "\e891"; -} - -.icon-shenfenzheng2:before { - content: "\e890"; -} - -.icon-gengduo1:before { - content: "\e617"; -} - -.icon-paizhao2:before { - content: "\e88f"; -} - -.icon-shanchu1:before { - content: "\e88e"; -} - -.icon-shijian:before { - content: "\e88b"; -} - -.icon-youjindaoyuan:before { - content: "\e88c"; -} - -.icon-youyuandaojin:before { - content: "\e88d"; -} - -.icon-xiala-zuijin:before { - content: "\e88a"; -} - -.icon-bianji:before { - content: "\e887"; -} - -.icon-shouqi1:before { - content: "\e888"; -} - -.icon-fujian:before { - content: "\e889"; -} - -.icon-shujutongji:before { - content: "\e886"; -} - -.icon-fuzhi:before { - content: "\e884"; -} - -.icon-qitadizhi:before { - content: "\e883"; -} - -.icon-qingkong:before { - content: "\e881"; -} - -.icon-shanchu:before { - content: "\e882"; +.icon-yishoucang:before { + content: "\e8de"; } -.icon-zhuchangxinxi:before { - content: "\e880"; +.icon-shoucang:before { + content: "\e8dd"; } -.icon-sushe:before { - content: "\e87e"; +.icon-baoming1:before { + content: "\e61b"; } -.icon-hesuan:before { - content: "\e87d"; +.icon-dingwei2:before { + content: "\e623"; } -.icon-tijian:before { - content: "\e87f"; +.icon-nianling:before { + content: "\e621"; } - -.icon-guanbi11:before { - content: "\e87c"; -} - -.icon-duoxuan:before { - content: "\e877"; -} - -.icon-duoxuan1:before { - content: "\e878"; -} - -.icon-wodegongdan1:before { - content: "\e871"; -} - -.icon-xiangmuzhiwei:before { - content: "\e872"; -} - -.icon-xiangmutonggao:before { - content: "\e873"; -} - -.icon-wodelaoxiang3:before { - content: "\e874"; -} - -.icon-xiangmutongzhi:before { - content: "\e875"; -} - -.icon-wodexiangmu1:before { - content: "\e876"; -} - -.icon-wodebaoming1:before { - content: "\e86b"; -} - -.icon-dailishuju:before { - content: "\e86c"; -} - -.icon-wodedaili:before { - content: "\e86d"; -} - -.icon-xiezhubaoming:before { - content: "\e86e"; -} - -.icon-wodelaoxiang1:before { - content: "\e86f"; -} - -.icon-chuangjiandaili1:before { - content: "\e870"; -} - -.icon-ziying3:before { - content: "\e869"; -} - -.icon-sanfang2:before { - content: "\e86a"; -} - -.icon-dagou:before { - content: "\e865"; -} - -.icon-gongsizhengce:before { - content: "\e85f"; -} - -.icon-xinrenzhinan1:before { - content: "\e864"; -} - -.icon-qudaoguanjia:before { - content: "\e85b"; -} - -.icon-guanyuwomen3:before { - content: "\e85d"; -} - -.icon-boyinglian:before { - content: "\e85c"; -} - -.icon-bocaiyouren:before { - content: "\e85e"; -} - -.icon-nazha:before { - content: "\e860"; -} - -.icon-daotian:before { - content: "\e861"; -} - -.icon-zhuchangtong:before { - content: "\e862"; -} - -.icon-fachebao:before { - content: "\e866"; -} - -.icon-jiesuanzhushou:before { - content: "\e867"; -} - -.icon-xuanzhong4:before { - content: "\e857"; -} - -.icon-weixuanzhong4:before { - content: "\e858"; -} - -.icon-xuanzhong12:before { - content: "\e859"; -} - -.icon-biyan1:before { - content: "\e713"; -} - -.icon-nan2:before { - content: "\e71b"; -} - -.icon-tijiaochenggong2:before { - content: "\e71c"; -} - -.icon-nv2:before { - content: "\e71d"; -} - -.icon-dianhuadibulan:before { - content: "\e71e"; -} - -.icon-weixin4:before { - content: "\e71f"; -} - -.icon-dianhuadibulan-dianji:before { - content: "\e720"; -} - -.icon-xiala2:before { - content: "\e725"; -} - -.icon-kefu3:before { - content: "\e727"; -} - -.icon-wode-xuanzhong:before { - content: "\e728"; -} - -.icon-zhuanfa1:before { - content: "\e72b"; -} - -.icon-dianhua5:before { - content: "\e72c"; -} - -.icon-weixindibulan-dianji:before { - content: "\e72d"; -} - -.icon-youhuiquan1:before { - content: "\e72e"; -} - -.icon-yinhangka1:before { - content: "\e730"; -} - -.icon-shoucangdibulan-dianji:before { - content: "\e731"; -} - -.icon-zhengyan1:before { - content: "\e735"; -} - -.icon-shoucangdibulan:before { - content: "\e729"; -} - -.icon-weixindibulan:before { - content: "\e733"; -} - -.icon-wode2:before { - content: "\e72a"; -} - -.icon-daichuli2:before { - content: "\e73b"; -} - -.icon-yichuli1:before { - content: "\e73e"; -} - -.icon-xiezhubaoming1:before { - content: "\e73f"; -} - -.icon-weixuanzhong3:before { - content: "\e742"; -} - -.icon-xuanzhong3:before { - content: "\e743"; -} - -.icon-xiala11:before { - content: "\e744"; -} - -.icon-duihao2:before { - content: "\e745"; -} - -.icon-weizaizhilaoxiang1:before { - content: "\e746"; -} - -.icon-tianjia2:before { - content: "\e747"; -} - -.icon-xuanzhong-dizhi:before { - content: "\e74a"; -} - -.icon-weixuanzhong-dizhi:before { - content: "\e74b"; -} - -.icon-qita:before { - content: "\e74c"; -} - -.icon-gongsi1:before { - content: "\e74d"; -} - -.icon-jia1:before { - content: "\e74e"; -} - -.icon-dingwei1:before { - content: "\e74f"; -} - -.icon-zhanghuyue1:before { - content: "\e750"; -} - -.icon-jiazai-danchuang:before { - content: "\e751"; -} - -.icon-shibai-danchuang:before { - content: "\e752"; -} - -.icon-chenggong-danchuang:before { - content: "\e755"; -} - -.icon-baisegengduo:before { - content: "\e758"; -} - -.icon-dizhi11:before { - content: "\e759"; -} - -.icon-gengduo11:before { - content: "\e75a"; -} - -.icon-xuanzhong11:before { - content: "\e7b5"; -} - -.icon-weixuanzhong11:before { - content: "\e7b6"; -} - -.icon-weixin12:before { - content: "\e634"; -} - -.icon-morentouxiang:before { - content: "\e605"; -} - -.icon-dizhiben2:before { - content: "\e7fe"; -} - -.icon-shezhi1:before { - content: "\e805"; -} - -.icon-biyan11:before { - content: "\e807"; -} - -.icon-zhengyan11:before { - content: "\e808"; -} - -.icon-zhuyi:before { - content: "\e809"; -} - -.icon-fenxiang:before { - content: "\e80b"; -} - -.icon-shipin:before { - content: "\e80d"; -} - -.icon-paizhao:before { - content: "\e80e"; -} - -.icon-ludan1:before { - content: "\e80f"; -} - -.icon-chengyuanguanli:before { - content: "\e812"; -} - -.icon-ziying12:before { - content: "\e817"; -} - -.icon-quanbu1:before { - content: "\e821"; -} - -.icon-chuangjianren1:before { - content: "\e822"; -} - -.icon-guanliyuan1:before { - content: "\e823"; -} - -.icon-chengyuan1:before { - content: "\e824"; -} - -.icon-lajitong:before { - content: "\e856"; -} - -.icon-guanliyuan:before { - content: "\e855"; -} - -.icon-chuangjianren:before { - content: "\e854"; -} - -.icon-chengyuan:before { - content: "\e853"; -} - -.icon-nv1:before { - content: "\e852"; -} - -.icon-mendian:before { - content: "\e84f"; -} - -.icon-tongye:before { - content: "\e850"; -} - -.icon-yiye:before { - content: "\e851"; -} - -.icon-nan1:before { - content: "\e844"; -} - -.icon-wodexiangmu:before { - content: "\e841"; -} - -.icon-wodetonggao:before { - content: "\e842"; -} - -.icon-wodegongdan:before { - content: "\e843"; -} - -.icon-qudaohezuo:before { - content: "\e83b"; -} - -.icon-zhuchang:before { - content: "\e83e"; -} - -.icon-xiangce:before { - content: "\e810"; -} - -.icon-ludan:before { - content: "\e840"; -} - -.icon-paizhao1:before { - content: "\e83f"; -} - -.icon-weizaizhilaoxiang:before { - content: "\e834"; -} - -.icon-zhankai:before { - content: "\e819"; -} - -.icon-shouqi:before { - content: "\e81c"; -} - -.icon-qiye:before { - content: "\e81a"; -} - -.icon-mianshi:before { - content: "\e826"; -} - -.icon-jieren:before { - content: "\e81b"; -} - -.icon-shenfenzheng:before { - content: "\e830"; -} - -.icon-zhankai2:before { - content: "\e82e"; -} - -.icon-xiala1:before { - content: "\e82f"; -} - -.icon-quanbu:before { - content: "\e827"; -} - -.icon-dianhua-gongdan:before { - content: "\e740"; -} - -.icon-gengduo:before { - content: "\e717"; -} - -.icon-sousuo1:before { - content: "\e721"; -} - -.icon-qingchu1:before { - content: "\e723"; -} - -.icon-dianhua-gongdanxiangqing:before { - content: "\e753"; -} - -.icon-xiangzuo:before { - content: "\e754"; -} - -.icon-weixin3:before { - content: "\e600"; -} - -.icon-duihao1:before { - content: "\e7fa"; -} - -.icon-jingshi:before { - content: "\e7f9"; -} - -.icon-shuaxin:before { - content: "\e7f7"; -} - -.icon-xinrenzhinan:before { - content: "\e7d3"; -} - -.icon-guanyuwomen2:before { - content: "\e7d4"; -} - -.icon-shouji:before { - content: "\e7b4"; -} - -.icon-rili:before { - content: "\e7b1"; -} - -.icon-zanwu:before { - content: "\e6ec"; -} - -.icon-dianhua4:before { - content: "\e6e6"; -} - -.icon-chakangengduo:before { - content: "\e6eb"; -} - -.icon-guanbi1:before { - content: "\e6e7"; -} - -.icon-yinhangka-ka:before { - content: "\e6e4"; -} - -.icon-weixin-bg:before { - content: "\e6e5"; -} - -.icon-yinhangka-bg:before { - content: "\e6e2"; -} - -.icon-weixin-ka:before { - content: "\e6e3"; -} - -.icon-tianjia1:before { - content: "\e6b7"; -} - -.icon-fuzhi1:before { - content: "\e613"; -} - -.icon-jiazai:before { - content: "\e6a1"; -} - -.icon-tishi:before { - content: "\e6a2"; -} - -.icon-tijiaochenggong11:before { - content: "\e6a3"; -} - -.icon-tianjia11:before { - content: "\e6a4"; -} - -.icon-weixin2:before { - content: "\e6a5"; -} - -.icon-zhengyan:before { - content: "\e6a8"; -} - -.icon-duihao:before { - content: "\e6a9"; -} - -.icon-guanbi:before { - content: "\e6aa"; -} - -.icon-xuanzhong1:before { - content: "\e6ab"; -} - -.icon-weixuanzhong1:before { - content: "\e6ac"; -} - -.icon-dingwei:before { - content: "\e6ae"; -} - -.icon-gongsi:before { - content: "\e6af"; -} - -.icon-xuexiao:before { - content: "\e6b0"; -} - -.icon-xiangyou:before { - content: "\e6b1"; -} - -.icon-jia:before { - content: "\e6b2"; -} - -.icon-chenggong:before { - content: "\e6b3"; -} - -.icon-shibai1:before { - content: "\e6b4"; -} - -.icon-jiazai2:before { - content: "\e6b5"; -} - -.icon-chuangjiandaili:before { - content: "\e6bd"; -} - -.icon-zhengjian:before { - content: "\e6bf"; -} - -.icon-dizhiben:before { - content: "\e6c0"; -} - -.icon-shezhi:before { - content: "\e6c1"; -} - -.icon-yinhangka:before { - content: "\e6c3"; -} - -.icon-nan:before { - content: "\e6c4"; -} - -.icon-nv:before { - content: "\e6c5"; -} - -.icon-biyan:before { - content: "\e6c9"; -} - -.icon-chefeibaoxiao:before { - content: "\e6ca"; -} - -.icon-dizhiben1:before { - content: "\e6cb"; -} - -.icon-wodebaoming:before { - content: "\e6cc"; -} - -.icon-gongzitiao1:before { - content: "\e6cd"; -} - -.icon-youhuiquan:before { - content: "\e6ce"; -} - -.icon-wodejianli1:before { - content: "\e6d0"; -} - -.icon-dangqiangongzuo:before { - content: "\e6d1"; -} - -.icon-hetong:before { - content: "\e6d2"; -} - -.icon-dianhua3:before { - content: "\e6d7"; -} - -.icon-feiyongbaoxiao:before { - content: "\e6d8"; -} - -.icon-zhanghuyue:before { - content: "\e6ad"; -} - -.icon-weixin11:before { - content: "\e698"; -} - -.icon-baoming:before { - content: "\e681"; -} - -.icon-tijiaochenggong1:before { - content: "\e667"; -} - -.icon-mingxiyoujiantou:before { - content: "\e66a"; -} - -.icon-shimingrenzheng:before { - content: "\e66b"; -} - -.icon-tuiguangmingxi-mianxing:before { - content: "\e66c"; -} - -.icon-tianjia:before { - content: "\e66d"; -} - -.icon-wode-mianxing:before { - content: "\e66e"; -} - -.icon-wode1:before { - content: "\e670"; -} - -.icon-you:before { - content: "\e671"; -} - -.icon-xiayiye:before { - content: "\e65e"; -} - -.icon-kefu2:before { - content: "\e65d"; -} - -.icon-weixin:before { - content: "\e647"; -} - -.icon-liebiaoyishoucang1:before { - content: "\e645"; -} - -.icon-liebiaoshoucang1:before { - content: "\e646"; -} - -.icon-kefu1:before { - content: "\e644"; -} - -.icon-wode-red:before { - content: "\e638"; -} - -.icon-dianhua-red1:before { - content: "\e628"; -} - -.icon-dianhua2:before { - content: "\e62a"; -} - -.icon-kefu:before { - content: "\e62b"; -} - -.icon-liebiaoweishoucang:before { - content: "\e62d"; -} - -.icon-sousuo:before { - content: "\e62e"; -} - -.icon-shaixuan:before { - content: "\e62f"; -} - -.icon-shoucang-red:before { - content: "\e630"; -} - -.icon-tijiaochenggong:before { - content: "\e631"; -} - -.icon-weixin-red:before { - content: "\e632"; -} - -.icon-liebiaoyishoucang:before { - content: "\e633"; -} - -.icon-weixuanzhong:before { - content: "\e635"; -} - -.icon-xiala:before { - content: "\e636"; -} - -.icon-wode-shoucang:before { - content: "\e637"; -} - -.icon-weixin1:before { - content: "\e63a"; -} - -.icon-zhuanfa:before { - content: "\e63c"; -} - -.icon-wode:before { - content: "\e63e"; -} - -.icon-xuanzhong:before { - content: "\e641"; -} - -.icon-dianhua-red:before { - content: "\e61f"; -} - -.icon-dianhua1:before { - content: "\e61e"; -} - -.icon-message:before { - content: "\e690"; -} - -.icon-xiayiye1:before { - content: "\e695"; -} \ No newline at end of file diff --git a/components/recordBill/index.js b/components/recordBill/index.js index 6f3457d..444a651 100644 --- a/components/recordBill/index.js +++ b/components/recordBill/index.js @@ -1,6 +1,8 @@ // components/recordBill/index.js Component({ - + data:{ + // jobDetail:{} + }, /** * 组件的属性列表 */ @@ -18,7 +20,14 @@ Component({ value: '' } }, - + // observers:{ + // 'jobDetail': function(newValue){ + // console.log(newValue) + // this.setData({ + // jobDetail:newValue + // }) + // } + // }, /** * 组件的初始数据 */ @@ -27,6 +36,9 @@ Component({ }, ready () { console.log(this.data.jobDetail); + // this.setData({ + // jobDetail:this.data.jobDetail + // }) }, /** * 组件的方法列表 diff --git a/components/recordBill/index.wxml b/components/recordBill/index.wxml index 9e3b67e..8c8465a 100644 --- a/components/recordBill/index.wxml +++ b/components/recordBill/index.wxml @@ -6,11 +6,11 @@ 报名岗位 - {{jobDetail.storeJob.jobName}} + {{jobDetail.storeJob.jobName || jobDetail.jobName}} 薪资待遇 - {{jobDetail.storeJob.monthlyPay + '元/月'}} + {{jobDetail.storeJob.monthlyPay || jobDetail.monthlyPay || '-'}}元/月 @@ -30,7 +30,7 @@ - + @@ -47,7 +47,7 @@ - + diff --git a/miniprogram_npm/@miniprogram-component-plus/tabs/index.js b/miniprogram_npm/@miniprogram-component-plus/tabs/index.js deleted file mode 100644 index cfb261f..0000000 --- a/miniprogram_npm/@miniprogram-component-plus/tabs/index.js +++ /dev/null @@ -1,148 +0,0 @@ -module.exports = -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 5); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 5: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Component({ - options: { - addGlobalClass: true, - pureDataPattern: /^_/, - multipleSlots: true - }, - properties: { - tabs: { type: Array, value: [] }, - tabClass: { type: String, value: '' }, - swiperClass: { type: String, value: '' }, - activeClass: { type: String, value: '' }, - tabUnderlineColor: { type: String, value: '#07c160' }, - tabActiveTextColor: { type: String, value: '#000000' }, - tabInactiveTextColor: { type: String, value: '#000000' }, - tabBackgroundColor: { type: String, value: '#ffffff' }, - activeTab: { type: Number, value: 0 }, - swipeable: { type: Boolean, value: true }, - animation: { type: Boolean, value: true }, - duration: { type: Number, value: 500 } - }, - data: { - currentView: 0 - }, - observers: { - activeTab: function activeTab(_activeTab) { - var len = this.data.tabs.length; - if (len === 0) return; - var currentView = _activeTab - 1; - if (currentView < 0) currentView = 0; - if (currentView > len - 1) currentView = len - 1; - this.setData({ currentView: currentView }); - } - }, - lifetimes: { - created: function created() {} - }, - methods: { - handleTabClick: function handleTabClick(e) { - var index = e.currentTarget.dataset.index; - this.setData({ activeTab: index }); - this.triggerEvent('tabclick', { index: index }); - }, - handleSwiperChange: function handleSwiperChange(e) { - var index = e.detail.current; - this.setData({ activeTab: index }); - this.triggerEvent('change', { index: index }); - } - } -}); - -/***/ }) - -/******/ }); \ No newline at end of file diff --git a/miniprogram_npm/@miniprogram-component-plus/tabs/index.json b/miniprogram_npm/@miniprogram-component-plus/tabs/index.json deleted file mode 100644 index b18bd46..0000000 --- a/miniprogram_npm/@miniprogram-component-plus/tabs/index.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "component": true, - "usingComponents": {} -} \ No newline at end of file diff --git a/miniprogram_npm/@miniprogram-component-plus/tabs/index.wxml b/miniprogram_npm/@miniprogram-component-plus/tabs/index.wxml deleted file mode 100644 index ddb213c..0000000 --- a/miniprogram_npm/@miniprogram-component-plus/tabs/index.wxml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - {{item.title}} - - - - - - - - - - - - \ No newline at end of file diff --git a/miniprogram_npm/@miniprogram-component-plus/tabs/index.wxss b/miniprogram_npm/@miniprogram-component-plus/tabs/index.wxss deleted file mode 100644 index a6982e7..0000000 --- a/miniprogram_npm/@miniprogram-component-plus/tabs/index.wxss +++ /dev/null @@ -1 +0,0 @@ -.weui-tabs{width:100%}.weui-tabs-bar__wrp{width:100%;background:#fff}.weui-tabs-bar__content{width:100%;white-space:nowrap}.weui-tabs-bar__item{display:inline-block}.weui-tabs-bar__title{display:inline-block;border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:transparent} \ No newline at end of file diff --git a/miniprogram_npm/wxml-to-canvas/index.js b/miniprogram_npm/wxml-to-canvas/index.js deleted file mode 100644 index 2a4f21e..0000000 --- a/miniprogram_npm/wxml-to-canvas/index.js +++ /dev/null @@ -1,779 +0,0 @@ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(); - else if(typeof define === 'function' && define.amd) - define([], factory); - else { - var a = factory(); - for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; - } -})(window, function() { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 1); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports) { - -const hex = (color) => { - let result = null - - if (/^#/.test(color) && (color.length === 7 || color.length === 9)) { - return color - // eslint-disable-next-line no-cond-assign - } else if ((result = /^(rgb|rgba)\((.+)\)/.exec(color)) !== null) { - return '#' + result[2].split(',').map((part, index) => { - part = part.trim() - part = index === 3 ? Math.floor(parseFloat(part) * 255) : parseInt(part, 10) - part = part.toString(16) - if (part.length === 1) { - part = '0' + part - } - return part - }).join('') - } else { - return '#00000000' - } -} - -const splitLineToCamelCase = (str) => str.split('-').map((part, index) => { - if (index === 0) { - return part - } - return part[0].toUpperCase() + part.slice(1) -}).join('') - -const compareVersion = (v1, v2) => { - v1 = v1.split('.') - v2 = v2.split('.') - const len = Math.max(v1.length, v2.length) - while (v1.length < len) { - v1.push('0') - } - while (v2.length < len) { - v2.push('0') - } - for (let i = 0; i < len; i++) { - const num1 = parseInt(v1[i], 10) - const num2 = parseInt(v2[i], 10) - - if (num1 > num2) { - return 1 - } else if (num1 < num2) { - return -1 - } - } - - return 0 -} - -module.exports = { - hex, - splitLineToCamelCase, - compareVersion -} - - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - - -const xmlParse = __webpack_require__(2) -const {Widget} = __webpack_require__(3) -const {Draw} = __webpack_require__(5) -const {compareVersion} = __webpack_require__(0) - -const canvasId = 'weui-canvas' - -Component({ - properties: { - width: { - type: Number, - value: 400 - }, - height: { - type: Number, - value: 300 - } - }, - data: { - use2dCanvas: false, // 2.9.2 后可用canvas 2d 接口 - }, - lifetimes: { - attached() { - const {SDKVersion, pixelRatio: dpr} = wx.getSystemInfoSync() - const use2dCanvas = compareVersion(SDKVersion, '2.9.2') >= 0 - this.dpr = dpr - this.setData({use2dCanvas}, () => { - if (use2dCanvas) { - const query = this.createSelectorQuery() - query.select(`#${canvasId}`) - .fields({node: true, size: true}) - .exec(res => { - const canvas = res[0].node - const ctx = canvas.getContext('2d') - canvas.width = res[0].width * dpr - canvas.height = res[0].height * dpr - ctx.scale(dpr, dpr) - this.ctx = ctx - this.canvas = canvas - }) - } else { - this.ctx = wx.createCanvasContext(canvasId, this) - } - }) - } - }, - methods: { - async renderToCanvas(args) { - const {wxml, style} = args - const ctx = this.ctx - const canvas = this.canvas - const use2dCanvas = this.data.use2dCanvas - - if (use2dCanvas && !canvas) { - return Promise.reject(new Error('renderToCanvas: fail canvas has not been created')) - } - - ctx.clearRect(0, 0, this.data.width, this.data.height) - const {root: xom} = xmlParse(wxml) - - const widget = new Widget(xom, style) - const container = widget.init() - this.boundary = { - top: container.layoutBox.top, - left: container.layoutBox.left, - width: container.computedStyle.width, - height: container.computedStyle.height, - } - const draw = new Draw(ctx, canvas, use2dCanvas) - await draw.drawNode(container) - - if (!use2dCanvas) { - await this.canvasDraw(ctx) - } - return Promise.resolve(container) - }, - - canvasDraw(ctx, reserve) { - return new Promise(resolve => { - ctx.draw(reserve, () => { - resolve() - }) - }) - }, - - canvasToTempFilePath(args = {}) { - const use2dCanvas = this.data.use2dCanvas - - return new Promise((resolve, reject) => { - const { - top, left, width, height - } = this.boundary - - const copyArgs = { - x: left, - y: top, - width, - height, - destWidth: width * this.dpr, - destHeight: height * this.dpr, - canvasId, - fileType: args.fileType || 'png', - quality: args.quality || 1, - success: resolve, - fail: reject - } - - if (use2dCanvas) { - delete copyArgs.canvasId - copyArgs.canvas = this.canvas - } - wx.canvasToTempFilePath(copyArgs, this) - }) - } - } -}) - - -/***/ }), -/* 2 */ -/***/ (function(module, exports) { - - -/** - * Module dependencies. - */ - - -/** - * Expose `parse`. - */ - - -/** - * Parse the given string of `xml`. - * - * @param {String} xml - * @return {Object} - * @api public - */ - -function parse(xml) { - xml = xml.trim() - - // strip comments - xml = xml.replace(//g, '') - - return document() - - /** - * XML document. - */ - - function document() { - return { - declaration: declaration(), - root: tag() - } - } - - /** - * Declaration. - */ - - function declaration() { - const m = match(/^<\?xml\s*/) - if (!m) return - - // tag - const node = { - attributes: {} - } - - // attributes - while (!(eos() || is('?>'))) { - const attr = attribute() - if (!attr) return node - node.attributes[attr.name] = attr.value - } - - match(/\?>\s*/) - - return node - } - - /** - * Tag. - */ - - function tag() { - const m = match(/^<([\w-:.]+)\s*/) - if (!m) return - - // name - const node = { - name: m[1], - attributes: {}, - children: [] - } - - // attributes - while (!(eos() || is('>') || is('?>') || is('/>'))) { - const attr = attribute() - if (!attr) return node - node.attributes[attr.name] = attr.value - } - - // self closing tag - if (match(/^\s*\/>\s*/)) { - return node - } - - match(/\??>\s*/) - - // content - node.content = content() - - // children - let child - while (child = tag()) { - node.children.push(child) - } - - // closing - match(/^<\/[\w-:.]+>\s*/) - - return node - } - - /** - * Text content. - */ - - function content() { - const m = match(/^([^<]*)/) - if (m) return m[1] - return '' - } - - /** - * Attribute. - */ - - function attribute() { - const m = match(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/) - if (!m) return - return {name: m[1], value: strip(m[2])} - } - - /** - * Strip quotes from `val`. - */ - - function strip(val) { - return val.replace(/^['"]|['"]$/g, '') - } - - /** - * Match `re` and advance the string. - */ - - function match(re) { - const m = xml.match(re) - if (!m) return - xml = xml.slice(m[0].length) - return m - } - - /** - * End-of-source. - */ - - function eos() { - return xml.length == 0 - } - - /** - * Check for `prefix`. - */ - - function is(prefix) { - return xml.indexOf(prefix) == 0 - } -} - -module.exports = parse - - -/***/ }), -/* 3 */ -/***/ (function(module, exports, __webpack_require__) { - -const Block = __webpack_require__(4) -const {splitLineToCamelCase} = __webpack_require__(0) - -class Element extends Block { - constructor(prop) { - super(prop.style) - this.name = prop.name - this.attributes = prop.attributes - } -} - - -class Widget { - constructor(xom, style) { - this.xom = xom - this.style = style - - this.inheritProps = ['fontSize', 'lineHeight', 'textAlign', 'verticalAlign', 'color'] - } - - init() { - this.container = this.create(this.xom) - this.container.layout() - - this.inheritStyle(this.container) - return this.container - } - - // 继承父节点的样式 - inheritStyle(node) { - const parent = node.parent || null - const children = node.children || {} - const computedStyle = node.computedStyle - - if (parent) { - this.inheritProps.forEach(prop => { - computedStyle[prop] = computedStyle[prop] || parent.computedStyle[prop] - }) - } - - Object.values(children).forEach(child => { - this.inheritStyle(child) - }) - } - - create(node) { - let classNames = (node.attributes.class || '').split(' ') - classNames = classNames.map(item => splitLineToCamelCase(item.trim())) - const style = {} - classNames.forEach(item => { - Object.assign(style, this.style[item] || {}) - }) - - const args = {name: node.name, style} - - const attrs = Object.keys(node.attributes) - const attributes = {} - for (const attr of attrs) { - const value = node.attributes[attr] - const CamelAttr = splitLineToCamelCase(attr) - - if (value === '' || value === 'true') { - attributes[CamelAttr] = true - } else if (value === 'false') { - attributes[CamelAttr] = false - } else { - attributes[CamelAttr] = value - } - } - attributes.text = node.content - args.attributes = attributes - const element = new Element(args) - node.children.forEach(childNode => { - const childElement = this.create(childNode) - element.add(childElement) - }) - return element - } -} - -module.exports = {Widget} - - -/***/ }), -/* 4 */ -/***/ (function(module, exports) { - -module.exports = require("widget-ui"); - -/***/ }), -/* 5 */ -/***/ (function(module, exports) { - -class Draw { - constructor(context, canvas, use2dCanvas = false) { - this.ctx = context - this.canvas = canvas || null - this.use2dCanvas = use2dCanvas - } - - roundRect(x, y, w, h, r, fill = true, stroke = false) { - if (r < 0) return - const ctx = this.ctx - - ctx.beginPath() - ctx.arc(x + r, y + r, r, Math.PI, Math.PI * 3 / 2) - ctx.arc(x + w - r, y + r, r, Math.PI * 3 / 2, 0) - ctx.arc(x + w - r, y + h - r, r, 0, Math.PI / 2) - ctx.arc(x + r, y + h - r, r, Math.PI / 2, Math.PI) - ctx.lineTo(x, y + r) - if (stroke) ctx.stroke() - if (fill) ctx.fill() - } - - drawView(box, style) { - const ctx = this.ctx - const { - left: x, top: y, width: w, height: h - } = box - const { - borderRadius = 0, - borderWidth = 0, - borderColor, - color = '#000', - backgroundColor = 'transparent', - } = style - ctx.save() - // 外环 - if (borderWidth > 0) { - ctx.fillStyle = borderColor || color - this.roundRect(x, y, w, h, borderRadius) - } - - // 内环 - ctx.fillStyle = backgroundColor - const innerWidth = w - 2 * borderWidth - const innerHeight = h - 2 * borderWidth - const innerRadius = borderRadius - borderWidth >= 0 ? borderRadius - borderWidth : 0 - this.roundRect(x + borderWidth, y + borderWidth, innerWidth, innerHeight, innerRadius) - ctx.restore() - } - - async drawImage(img, box, style) { - await new Promise((resolve, reject) => { - const ctx = this.ctx - const canvas = this.canvas - - const { - borderRadius = 0 - } = style - const { - left: x, top: y, width: w, height: h - } = box - ctx.save() - this.roundRect(x, y, w, h, borderRadius, false, false) - ctx.clip() - - const _drawImage = (img) => { - if (this.use2dCanvas) { - const Image = canvas.createImage() - Image.onload = () => { - ctx.drawImage(Image, x, y, w, h) - ctx.restore() - resolve() - } - Image.onerror = () => { reject(new Error(`createImage fail: ${img}`)) } - Image.src = img - } else { - ctx.drawImage(img, x, y, w, h) - ctx.restore() - resolve() - } - } - - const isTempFile = /^wxfile:\/\//.test(img) - const isNetworkFile = /^https?:\/\//.test(img) - - if (isTempFile) { - _drawImage(img) - } else if (isNetworkFile) { - wx.downloadFile({ - url: img, - success(res) { - if (res.statusCode === 200) { - _drawImage(res.tempFilePath) - } else { - reject(new Error(`downloadFile:fail ${img}`)) - } - }, - fail() { - reject(new Error(`downloadFile:fail ${img}`)) - } - }) - } else { - reject(new Error(`image format error: ${img}`)) - } - }) - } - - // eslint-disable-next-line complexity - drawText(text, box, style) { - const ctx = this.ctx - let { - left: x, top: y, width: w, height: h - } = box - let { - color = '#000', - lineHeight = '1.4em', - fontSize = 14, - textAlign = 'left', - verticalAlign = 'top', - backgroundColor = 'transparent' - } = style - - if (typeof lineHeight === 'string') { // 2em - lineHeight = Math.ceil(parseFloat(lineHeight.replace('em')) * fontSize) - } - if (!text || (lineHeight > h)) return - - ctx.save() - ctx.textBaseline = 'top' - ctx.font = `${fontSize}px sans-serif` - ctx.textAlign = textAlign - - // 背景色 - ctx.fillStyle = backgroundColor - this.roundRect(x, y, w, h, 0) - - // 文字颜色 - ctx.fillStyle = color - - // 水平布局 - switch (textAlign) { - case 'left': - break - case 'center': - x += 0.5 * w - break - case 'right': - x += w - break - default: break - } - - const textWidth = ctx.measureText(text).width - const actualHeight = Math.ceil(textWidth / w) * lineHeight - let paddingTop = Math.ceil((h - actualHeight) / 2) - if (paddingTop < 0) paddingTop = 0 - - // 垂直布局 - switch (verticalAlign) { - case 'top': - break - case 'middle': - y += paddingTop - break - case 'bottom': - y += 2 * paddingTop - break - default: break - } - - const inlinePaddingTop = Math.ceil((lineHeight - fontSize) / 2) - - // 不超过一行 - if (textWidth <= w) { - ctx.fillText(text, x, y + inlinePaddingTop) - return - } - - // 多行文本 - const chars = text.split('') - const _y = y - - // 逐行绘制 - let line = '' - for (const ch of chars) { - const testLine = line + ch - const testWidth = ctx.measureText(testLine).width - - if (testWidth > w) { - ctx.fillText(line, x, y + inlinePaddingTop) - y += lineHeight - line = ch - if ((y + lineHeight) > (_y + h)) break - } else { - line = testLine - } - } - - // 避免溢出 - if ((y + lineHeight) <= (_y + h)) { - ctx.fillText(line, x, y + inlinePaddingTop) - } - ctx.restore() - } - - async drawNode(element) { - const {layoutBox, computedStyle, name} = element - const {src, text} = element.attributes - if (name === 'view') { - this.drawView(layoutBox, computedStyle) - } else if (name === 'image') { - await this.drawImage(src, layoutBox, computedStyle) - } else if (name === 'text') { - this.drawText(text, layoutBox, computedStyle) - } - const childs = Object.values(element.children) - for (const child of childs) { - await this.drawNode(child) - } - } -} - - -module.exports = { - Draw -} - - -/***/ }) -/******/ ]); -}); \ No newline at end of file diff --git a/miniprogram_npm/wxml-to-canvas/index.json b/miniprogram_npm/wxml-to-canvas/index.json deleted file mode 100644 index e8cfaaf..0000000 --- a/miniprogram_npm/wxml-to-canvas/index.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "component": true, - "usingComponents": {} -} \ No newline at end of file diff --git a/miniprogram_npm/wxml-to-canvas/index.wxml b/miniprogram_npm/wxml-to-canvas/index.wxml deleted file mode 100644 index a0010ad..0000000 --- a/miniprogram_npm/wxml-to-canvas/index.wxml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/miniprogram_npm/wxml-to-canvas/index.wxss b/miniprogram_npm/wxml-to-canvas/index.wxss deleted file mode 100644 index e69de29..0000000 diff --git a/miniprogram_npm/wxml-to-canvas/miniprogram_npm/eventemitter3/index.js b/miniprogram_npm/wxml-to-canvas/miniprogram_npm/eventemitter3/index.js deleted file mode 100644 index 752bd55..0000000 --- a/miniprogram_npm/wxml-to-canvas/miniprogram_npm/eventemitter3/index.js +++ /dev/null @@ -1,349 +0,0 @@ -module.exports = (function() { -var __MODS__ = {}; -var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; }; -var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; }; -var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } }; -var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; }; -__DEFINE__(1702541404014, function(require, module, exports) { - - -var has = Object.prototype.hasOwnProperty - , prefix = '~'; - -/** - * Constructor to create a storage for our `EE` objects. - * An `Events` instance is a plain object whose properties are event names. - * - * @constructor - * @private - */ -function Events() {} - -// -// We try to not inherit from `Object.prototype`. In some engines creating an -// instance in this way is faster than calling `Object.create(null)` directly. -// If `Object.create(null)` is not supported we prefix the event names with a -// character to make sure that the built-in object properties are not -// overridden or used as an attack vector. -// -if (Object.create) { - Events.prototype = Object.create(null); - - // - // This hack is needed because the `__proto__` property is still inherited in - // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5. - // - if (!new Events().__proto__) prefix = false; -} - -/** - * Representation of a single event listener. - * - * @param {Function} fn The listener function. - * @param {*} context The context to invoke the listener with. - * @param {Boolean} [once=false] Specify if the listener is a one-time listener. - * @constructor - * @private - */ -function EE(fn, context, once) { - this.fn = fn; - this.context = context; - this.once = once || false; -} - -/** - * Add a listener for a given event. - * - * @param {EventEmitter} emitter Reference to the `EventEmitter` instance. - * @param {(String|Symbol)} event The event name. - * @param {Function} fn The listener function. - * @param {*} context The context to invoke the listener with. - * @param {Boolean} once Specify if the listener is a one-time listener. - * @returns {EventEmitter} - * @private - */ -function addListener(emitter, event, fn, context, once) { - if (typeof fn !== 'function') { - throw new TypeError('The listener must be a function'); - } - - var listener = new EE(fn, context || emitter, once) - , evt = prefix ? prefix + event : event; - - if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++; - else if (!emitter._events[evt].fn) emitter._events[evt].push(listener); - else emitter._events[evt] = [emitter._events[evt], listener]; - - return emitter; -} - -/** - * Clear event by name. - * - * @param {EventEmitter} emitter Reference to the `EventEmitter` instance. - * @param {(String|Symbol)} evt The Event name. - * @private - */ -function clearEvent(emitter, evt) { - if (--emitter._eventsCount === 0) emitter._events = new Events(); - else delete emitter._events[evt]; -} - -/** - * Minimal `EventEmitter` interface that is molded against the Node.js - * `EventEmitter` interface. - * - * @constructor - * @public - */ -function EventEmitter() { - this._events = new Events(); - this._eventsCount = 0; -} - -/** - * Return an array listing the events for which the emitter has registered - * listeners. - * - * @returns {Array} - * @public - */ -EventEmitter.prototype.eventNames = function eventNames() { - var names = [] - , events - , name; - - if (this._eventsCount === 0) return names; - - for (name in (events = this._events)) { - if (has.call(events, name)) names.push(prefix ? name.slice(1) : name); - } - - if (Object.getOwnPropertySymbols) { - return names.concat(Object.getOwnPropertySymbols(events)); - } - - return names; -}; - -/** - * Return the listeners registered for a given event. - * - * @param {(String|Symbol)} event The event name. - * @returns {Array} The registered listeners. - * @public - */ -EventEmitter.prototype.listeners = function listeners(event) { - var evt = prefix ? prefix + event : event - , handlers = this._events[evt]; - - if (!handlers) return []; - if (handlers.fn) return [handlers.fn]; - - for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) { - ee[i] = handlers[i].fn; - } - - return ee; -}; - -/** - * Return the number of listeners listening to a given event. - * - * @param {(String|Symbol)} event The event name. - * @returns {Number} The number of listeners. - * @public - */ -EventEmitter.prototype.listenerCount = function listenerCount(event) { - var evt = prefix ? prefix + event : event - , listeners = this._events[evt]; - - if (!listeners) return 0; - if (listeners.fn) return 1; - return listeners.length; -}; - -/** - * Calls each of the listeners registered for a given event. - * - * @param {(String|Symbol)} event The event name. - * @returns {Boolean} `true` if the event had listeners, else `false`. - * @public - */ -EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) { - var evt = prefix ? prefix + event : event; - - if (!this._events[evt]) return false; - - var listeners = this._events[evt] - , len = arguments.length - , args - , i; - - if (listeners.fn) { - if (listeners.once) this.removeListener(event, listeners.fn, undefined, true); - - switch (len) { - case 1: return listeners.fn.call(listeners.context), true; - case 2: return listeners.fn.call(listeners.context, a1), true; - case 3: return listeners.fn.call(listeners.context, a1, a2), true; - case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true; - case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true; - case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true; - } - - for (i = 1, args = new Array(len -1); i < len; i++) { - args[i - 1] = arguments[i]; - } - - listeners.fn.apply(listeners.context, args); - } else { - var length = listeners.length - , j; - - for (i = 0; i < length; i++) { - if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true); - - switch (len) { - case 1: listeners[i].fn.call(listeners[i].context); break; - case 2: listeners[i].fn.call(listeners[i].context, a1); break; - case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break; - case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break; - default: - if (!args) for (j = 1, args = new Array(len -1); j < len; j++) { - args[j - 1] = arguments[j]; - } - - listeners[i].fn.apply(listeners[i].context, args); - } - } - } - - return true; -}; - -/** - * Add a listener for a given event. - * - * @param {(String|Symbol)} event The event name. - * @param {Function} fn The listener function. - * @param {*} [context=this] The context to invoke the listener with. - * @returns {EventEmitter} `this`. - * @public - */ -EventEmitter.prototype.on = function on(event, fn, context) { - return addListener(this, event, fn, context, false); -}; - -/** - * Add a one-time listener for a given event. - * - * @param {(String|Symbol)} event The event name. - * @param {Function} fn The listener function. - * @param {*} [context=this] The context to invoke the listener with. - * @returns {EventEmitter} `this`. - * @public - */ -EventEmitter.prototype.once = function once(event, fn, context) { - return addListener(this, event, fn, context, true); -}; - -/** - * Remove the listeners of a given event. - * - * @param {(String|Symbol)} event The event name. - * @param {Function} fn Only remove the listeners that match this function. - * @param {*} context Only remove the listeners that have this context. - * @param {Boolean} once Only remove one-time listeners. - * @returns {EventEmitter} `this`. - * @public - */ -EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) { - var evt = prefix ? prefix + event : event; - - if (!this._events[evt]) return this; - if (!fn) { - clearEvent(this, evt); - return this; - } - - var listeners = this._events[evt]; - - if (listeners.fn) { - if ( - listeners.fn === fn && - (!once || listeners.once) && - (!context || listeners.context === context) - ) { - clearEvent(this, evt); - } - } else { - for (var i = 0, events = [], length = listeners.length; i < length; i++) { - if ( - listeners[i].fn !== fn || - (once && !listeners[i].once) || - (context && listeners[i].context !== context) - ) { - events.push(listeners[i]); - } - } - - // - // Reset the array, or remove it completely if we have no more listeners. - // - if (events.length) this._events[evt] = events.length === 1 ? events[0] : events; - else clearEvent(this, evt); - } - - return this; -}; - -/** - * Remove all listeners, or those of the specified event. - * - * @param {(String|Symbol)} [event] The event name. - * @returns {EventEmitter} `this`. - * @public - */ -EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) { - var evt; - - if (event) { - evt = prefix ? prefix + event : event; - if (this._events[evt]) clearEvent(this, evt); - } else { - this._events = new Events(); - this._eventsCount = 0; - } - - return this; -}; - -// -// Alias methods names because people roll like that. -// -EventEmitter.prototype.off = EventEmitter.prototype.removeListener; -EventEmitter.prototype.addListener = EventEmitter.prototype.on; - -// -// Expose the prefix. -// -EventEmitter.prefixed = prefix; - -// -// Allow `EventEmitter` to be imported as module namespace. -// -EventEmitter.EventEmitter = EventEmitter; - -// -// Expose the module. -// -if ('undefined' !== typeof module) { - module.exports = EventEmitter; -} - -}, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); }) -return __REQUIRE__(1702541404014); -})() -//miniprogram-npm-outsideDeps=[] -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/miniprogram_npm/wxml-to-canvas/miniprogram_npm/eventemitter3/index.js.map b/miniprogram_npm/wxml-to-canvas/miniprogram_npm/eventemitter3/index.js.map deleted file mode 100644 index 4f2cb7b..0000000 --- a/miniprogram_npm/wxml-to-canvas/miniprogram_npm/eventemitter3/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["index.js"],"names":[],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"index.js","sourcesContent":["\n\nvar has = Object.prototype.hasOwnProperty\n , prefix = '~';\n\n/**\n * Constructor to create a storage for our `EE` objects.\n * An `Events` instance is a plain object whose properties are event names.\n *\n * @constructor\n * @private\n */\nfunction Events() {}\n\n//\n// We try to not inherit from `Object.prototype`. In some engines creating an\n// instance in this way is faster than calling `Object.create(null)` directly.\n// If `Object.create(null)` is not supported we prefix the event names with a\n// character to make sure that the built-in object properties are not\n// overridden or used as an attack vector.\n//\nif (Object.create) {\n Events.prototype = Object.create(null);\n\n //\n // This hack is needed because the `__proto__` property is still inherited in\n // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.\n //\n if (!new Events().__proto__) prefix = false;\n}\n\n/**\n * Representation of a single event listener.\n *\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} [once=false] Specify if the listener is a one-time listener.\n * @constructor\n * @private\n */\nfunction EE(fn, context, once) {\n this.fn = fn;\n this.context = context;\n this.once = once || false;\n}\n\n/**\n * Add a listener for a given event.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} once Specify if the listener is a one-time listener.\n * @returns {EventEmitter}\n * @private\n */\nfunction addListener(emitter, event, fn, context, once) {\n if (typeof fn !== 'function') {\n throw new TypeError('The listener must be a function');\n }\n\n var listener = new EE(fn, context || emitter, once)\n , evt = prefix ? prefix + event : event;\n\n if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;\n else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);\n else emitter._events[evt] = [emitter._events[evt], listener];\n\n return emitter;\n}\n\n/**\n * Clear event by name.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} evt The Event name.\n * @private\n */\nfunction clearEvent(emitter, evt) {\n if (--emitter._eventsCount === 0) emitter._events = new Events();\n else delete emitter._events[evt];\n}\n\n/**\n * Minimal `EventEmitter` interface that is molded against the Node.js\n * `EventEmitter` interface.\n *\n * @constructor\n * @public\n */\nfunction EventEmitter() {\n this._events = new Events();\n this._eventsCount = 0;\n}\n\n/**\n * Return an array listing the events for which the emitter has registered\n * listeners.\n *\n * @returns {Array}\n * @public\n */\nEventEmitter.prototype.eventNames = function eventNames() {\n var names = []\n , events\n , name;\n\n if (this._eventsCount === 0) return names;\n\n for (name in (events = this._events)) {\n if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);\n }\n\n if (Object.getOwnPropertySymbols) {\n return names.concat(Object.getOwnPropertySymbols(events));\n }\n\n return names;\n};\n\n/**\n * Return the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Array} The registered listeners.\n * @public\n */\nEventEmitter.prototype.listeners = function listeners(event) {\n var evt = prefix ? prefix + event : event\n , handlers = this._events[evt];\n\n if (!handlers) return [];\n if (handlers.fn) return [handlers.fn];\n\n for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {\n ee[i] = handlers[i].fn;\n }\n\n return ee;\n};\n\n/**\n * Return the number of listeners listening to a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Number} The number of listeners.\n * @public\n */\nEventEmitter.prototype.listenerCount = function listenerCount(event) {\n var evt = prefix ? prefix + event : event\n , listeners = this._events[evt];\n\n if (!listeners) return 0;\n if (listeners.fn) return 1;\n return listeners.length;\n};\n\n/**\n * Calls each of the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Boolean} `true` if the event had listeners, else `false`.\n * @public\n */\nEventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return false;\n\n var listeners = this._events[evt]\n , len = arguments.length\n , args\n , i;\n\n if (listeners.fn) {\n if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);\n\n switch (len) {\n case 1: return listeners.fn.call(listeners.context), true;\n case 2: return listeners.fn.call(listeners.context, a1), true;\n case 3: return listeners.fn.call(listeners.context, a1, a2), true;\n case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;\n case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\n case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\n }\n\n for (i = 1, args = new Array(len -1); i < len; i++) {\n args[i - 1] = arguments[i];\n }\n\n listeners.fn.apply(listeners.context, args);\n } else {\n var length = listeners.length\n , j;\n\n for (i = 0; i < length; i++) {\n if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);\n\n switch (len) {\n case 1: listeners[i].fn.call(listeners[i].context); break;\n case 2: listeners[i].fn.call(listeners[i].context, a1); break;\n case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;\n case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;\n default:\n if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {\n args[j - 1] = arguments[j];\n }\n\n listeners[i].fn.apply(listeners[i].context, args);\n }\n }\n }\n\n return true;\n};\n\n/**\n * Add a listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.on = function on(event, fn, context) {\n return addListener(this, event, fn, context, false);\n};\n\n/**\n * Add a one-time listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.once = function once(event, fn, context) {\n return addListener(this, event, fn, context, true);\n};\n\n/**\n * Remove the listeners of a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn Only remove the listeners that match this function.\n * @param {*} context Only remove the listeners that have this context.\n * @param {Boolean} once Only remove one-time listeners.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return this;\n if (!fn) {\n clearEvent(this, evt);\n return this;\n }\n\n var listeners = this._events[evt];\n\n if (listeners.fn) {\n if (\n listeners.fn === fn &&\n (!once || listeners.once) &&\n (!context || listeners.context === context)\n ) {\n clearEvent(this, evt);\n }\n } else {\n for (var i = 0, events = [], length = listeners.length; i < length; i++) {\n if (\n listeners[i].fn !== fn ||\n (once && !listeners[i].once) ||\n (context && listeners[i].context !== context)\n ) {\n events.push(listeners[i]);\n }\n }\n\n //\n // Reset the array, or remove it completely if we have no more listeners.\n //\n if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;\n else clearEvent(this, evt);\n }\n\n return this;\n};\n\n/**\n * Remove all listeners, or those of the specified event.\n *\n * @param {(String|Symbol)} [event] The event name.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {\n var evt;\n\n if (event) {\n evt = prefix ? prefix + event : event;\n if (this._events[evt]) clearEvent(this, evt);\n } else {\n this._events = new Events();\n this._eventsCount = 0;\n }\n\n return this;\n};\n\n//\n// Alias methods names because people roll like that.\n//\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\nEventEmitter.prototype.addListener = EventEmitter.prototype.on;\n\n//\n// Expose the prefix.\n//\nEventEmitter.prefixed = prefix;\n\n//\n// Allow `EventEmitter` to be imported as module namespace.\n//\nEventEmitter.EventEmitter = EventEmitter;\n\n//\n// Expose the module.\n//\nif ('undefined' !== typeof module) {\n module.exports = EventEmitter;\n}\n"]} \ No newline at end of file diff --git a/miniprogram_npm/wxml-to-canvas/miniprogram_npm/widget-ui/index.js b/miniprogram_npm/wxml-to-canvas/miniprogram_npm/widget-ui/index.js deleted file mode 100644 index 8d08701..0000000 --- a/miniprogram_npm/wxml-to-canvas/miniprogram_npm/widget-ui/index.js +++ /dev/null @@ -1,13 +0,0 @@ -module.exports = (function() { -var __MODS__ = {}; -var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; }; -var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; }; -var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } }; -var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; }; -__DEFINE__(1702541404015, function(require, module, exports) { -!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var r in o)("object"==typeof exports?exports:t)[r]=o[r]}}(this,(function(){return function(t){var e={};function o(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(r,i,function(e){return t[e]}.bind(null,i));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0)}([function(t,e,o){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(o(1)),l=o(2),n=0,a=function(){function t(e){var o=this;void 0===e&&(e={}),this.parent=null,this.id=t.uuid(),this.style={},this.computedStyle={},this.lastComputedStyle={},this.children={},this.layoutBox={left:0,top:0,width:0,height:0},e=Object.assign(l.getDefaultStyle(),e),this.computedStyle=Object.assign(l.getDefaultStyle(),e),this.lastComputedStyle=Object.assign(l.getDefaultStyle(),e),Object.keys(e).forEach((function(t){Object.defineProperty(o.style,t,{configurable:!0,enumerable:!0,get:function(){return e[t]},set:function(r){r!==e[t]&&void 0!==r&&(o.lastComputedStyle=o.computedStyle[t],e[t]=r,o.computedStyle[t]=r,l.scalableStyles.includes(t)&&o.style.scale&&(o.computedStyle[t]=r*o.style.scale),"scale"===t&&l.scalableStyles.forEach((function(t){e[t]&&(o.computedStyle[t]=e[t]*r)})),"hidden"===t&&(r?l.layoutAffectedStyles.forEach((function(t){o.computedStyle[t]=0})):l.layoutAffectedStyles.forEach((function(t){o.computedStyle[t]=o.lastComputedStyle[t]}))))}})})),this.style.scale&&l.scalableStyles.forEach((function(t){if(o.style[t]){var e=o.style[t]*o.style.scale;o.computedStyle[t]=e}})),e.hidden&&l.layoutAffectedStyles.forEach((function(t){o.computedStyle[t]=0}))}return t.uuid=function(){return n++},t.prototype.getAbsolutePosition=function(t){if(!t)return this.getAbsolutePosition(this);if(!t.parent)return{left:0,top:0};var e=this.getAbsolutePosition(t.parent),o=e.left,r=e.top;return{left:o+t.layoutBox.left,top:r+t.layoutBox.top}},t.prototype.add=function(t){t.parent=this,this.children[t.id]=t},t.prototype.remove=function(t){var e=this;t?this.children[t.id]&&(t.remove(),delete this.children[t.id]):Object.keys(this.children).forEach((function(t){e.children[t].remove(),delete e.children[t]}))},t.prototype.getNodeTree=function(){var t=this;return{id:this.id,style:this.computedStyle,children:Object.keys(this.children).map((function(e){return t.children[e].getNodeTree()}))}},t.prototype.applyLayout=function(t){var e=this;["left","top","width","height"].forEach((function(o){t.layout&&"number"==typeof t.layout[o]&&(e.layoutBox[o]=t.layout[o],!e.parent||"left"!==o&&"top"!==o||(e.layoutBox[o]+=e.parent.layoutBox[o]))})),t.children.forEach((function(t){e.children[t.id].applyLayout(t)}))},t.prototype.layout=function(){var t=this.getNodeTree();i.default(t),this.applyLayout(t)},t}();e.default=a},function(t,e,o){o.r(e);var r=function(){var t,e="inherit",o="ltr",r="rtl",i="row",l="row-reverse",n="column",a="column-reverse",u="flex-start",d="center",s="flex-end",y="space-between",c="space-around",f="flex-start",h="center",p="flex-end",g="stretch",v="relative",m="absolute",b={row:"left","row-reverse":"right",column:"top","column-reverse":"bottom"},x={row:"right","row-reverse":"left",column:"bottom","column-reverse":"top"},w={row:"left","row-reverse":"right",column:"top","column-reverse":"bottom"},S={row:"width","row-reverse":"width",column:"height","column-reverse":"height"};function W(t){return void 0===t}function L(t){return t===i||t===l}function k(t,e){if(void 0!==t.style.marginStart&&L(e))return t.style.marginStart;var o=null;switch(e){case"row":o=t.style.marginLeft;break;case"row-reverse":o=t.style.marginRight;break;case"column":o=t.style.marginTop;break;case"column-reverse":o=t.style.marginBottom}return void 0!==o?o:void 0!==t.style.margin?t.style.margin:0}function j(t,e){if(void 0!==t.style.marginEnd&&L(e))return t.style.marginEnd;var o=null;switch(e){case"row":o=t.style.marginRight;break;case"row-reverse":o=t.style.marginLeft;break;case"column":o=t.style.marginBottom;break;case"column-reverse":o=t.style.marginTop}return null!=o?o:void 0!==t.style.margin?t.style.margin:0}function B(t,e){if(void 0!==t.style.borderStartWidth&&t.style.borderStartWidth>=0&&L(e))return t.style.borderStartWidth;var o=null;switch(e){case"row":o=t.style.borderLeftWidth;break;case"row-reverse":o=t.style.borderRightWidth;break;case"column":o=t.style.borderTopWidth;break;case"column-reverse":o=t.style.borderBottomWidth}return null!=o&&o>=0?o:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function E(t,e){if(void 0!==t.style.borderEndWidth&&t.style.borderEndWidth>=0&&L(e))return t.style.borderEndWidth;var o=null;switch(e){case"row":o=t.style.borderRightWidth;break;case"row-reverse":o=t.style.borderLeftWidth;break;case"column":o=t.style.borderBottomWidth;break;case"column-reverse":o=t.style.borderTopWidth}return null!=o&&o>=0?o:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function C(t,e){return function(t,e){if(void 0!==t.style.paddingStart&&t.style.paddingStart>=0&&L(e))return t.style.paddingStart;var o=null;switch(e){case"row":o=t.style.paddingLeft;break;case"row-reverse":o=t.style.paddingRight;break;case"column":o=t.style.paddingTop;break;case"column-reverse":o=t.style.paddingBottom}return null!=o&&o>=0?o:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,e)+B(t,e)}function T(t,e){return function(t,e){if(void 0!==t.style.paddingEnd&&t.style.paddingEnd>=0&&L(e))return t.style.paddingEnd;var o=null;switch(e){case"row":o=t.style.paddingRight;break;case"row-reverse":o=t.style.paddingLeft;break;case"column":o=t.style.paddingBottom;break;case"column-reverse":o=t.style.paddingTop}return null!=o&&o>=0?o:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,e)+E(t,e)}function O(t,e){return B(t,e)+E(t,e)}function _(t,e){return k(t,e)+j(t,e)}function R(t,e){return C(t,e)+T(t,e)}function A(t,e){return e.style.alignSelf?e.style.alignSelf:t.style.alignItems?t.style.alignItems:"stretch"}function P(t,e){if(e===r){if(t===i)return l;if(t===l)return i}return t}function D(t,e){return function(t){return t===n||t===a}(t)?P(i,e):n}function H(t){return t.style.position?t.style.position:"relative"}function M(t){return H(t)===v&&t.style.flex>0}function I(t,e){return t.layout[S[e]]+_(t,e)}function N(t,e){return void 0!==t.style[S[e]]&&t.style[S[e]]>=0}function F(t,e){return void 0!==t.style[e]}function q(t,e){return void 0!==t.style[e]?t.style[e]:0}function z(t,e,o){var r={row:t.style.minWidth,"row-reverse":t.style.minWidth,column:t.style.minHeight,"column-reverse":t.style.minHeight}[e],i={row:t.style.maxWidth,"row-reverse":t.style.maxWidth,column:t.style.maxHeight,"column-reverse":t.style.maxHeight}[e],l=o;return void 0!==i&&i>=0&&l>i&&(l=i),void 0!==r&&r>=0&&le?t:e}function G(t,e){void 0===t.layout[S[e]]&&N(t,e)&&(t.layout[S[e]]=U(z(t,e,t.style[S[e]]),R(t,e)))}function J(t,e,o){e.layout[x[o]]=t.layout[S[o]]-e.layout[S[o]]-e.layout[w[o]]}function K(t,e){return void 0!==t.style[b[e]]?q(t,b[e]):-q(t,x[e])}function Q(r,E,Q){var X=function(t,r){var i;return(i=t.style.direction?t.style.direction:e)===e&&(i=void 0===r?o:r),i}(r,Q),Y=P(function(t){return t.style.flexDirection?t.style.flexDirection:n}(r),X),Z=D(Y,X),$=P(i,X);G(r,Y),G(r,Z),r.layout.direction=X,r.layout[b[Y]]+=k(r,Y)+K(r,Y),r.layout[x[Y]]+=j(r,Y)+K(r,Y),r.layout[b[Z]]+=k(r,Z)+K(r,Z),r.layout[x[Z]]+=j(r,Z)+K(r,Z);var tt=r.children.length,et=R(r,$);if(function(t){return void 0!==t.style.measure}(r)){var ot=!W(r.layout[S[$]]),rt=t;rt=N(r,$)?r.style.width:ot?r.layout[S[$]]:E-_(r,$),rt-=et;var it=!N(r,$)&&!ot,lt=!N(r,n)&&W(r.layout[S[n]]);if(it||lt){var nt=r.style.measure(rt);it&&(r.layout.width=nt.width+et),lt&&(r.layout.height=nt.height+R(r,n))}if(0===tt)return}var at,ut,dt,st,yt=function(t){return"wrap"===t.style.flexWrap}(r),ct=function(t){return t.style.justifyContent?t.style.justifyContent:"flex-start"}(r),ft=C(r,Y),ht=C(r,Z),pt=R(r,Y),gt=R(r,Z),vt=!W(r.layout[S[Y]]),mt=!W(r.layout[S[Z]]),bt=L(Y),xt=null,wt=null,St=t;vt&&(St=r.layout[S[Y]]-pt);for(var Wt=0,Lt=0,kt=0,jt=0,Bt=0,Et=0;LtSt&&at!==Wt){Rt--,kt=1;break}At&&(H(dt)!==v||M(dt))&&(At=!1,Pt=at),Dt&&(H(dt)!==v||Xt!==g&&Xt!==f||W(dt.layout[S[Z]]))&&(Dt=!1,Ht=at),At&&(dt.layout[w[Y]]+=Nt,vt&&J(r,dt,Y),Nt+=I(dt,Y),Ft=U(Ft,z(dt,Z,I(dt,Z)))),Dt&&(dt.layout[w[Z]]+=jt+ht,mt&&J(r,dt,Z)),kt=0,Tt+=qt,Lt=at+1}var zt=0,Ut=0,Gt=0;if(Gt=vt?St-Tt:U(Tt,0)-Tt,0!==Ot){var Jt,Kt,Qt=Gt/_t;for(It=Mt;null!==It;)(Jt=Qt*It.style.flex+R(It,Y))!==(Kt=z(It,Y,Jt))&&(Gt-=Kt,_t-=It.style.flex),It=It.nextFlexChild;for((Qt=Gt/_t)<0&&(Qt=0),It=Mt;null!==It;)It.layout[S[Y]]=z(It,Y,Qt*It.style.flex+R(It,Y)),Ct=t,N(r,$)?Ct=r.layout[S[$]]-et:bt||(Ct=E-_(r,$)-et),V(It,Ct,X),dt=It,It=It.nextFlexChild,dt.nextFlexChild=null}else ct!==u&&(ct===d?zt=Gt/2:ct===s?zt=Gt:ct===y?(Gt=U(Gt,0),Ut=Ot+Rt-1!=0?Gt/(Ot+Rt-1):0):ct===c&&(zt=(Ut=Gt/(Ot+Rt))/2));for(Nt+=zt,at=Pt;at1&&mt){var $t=r.layout[S[Z]]-gt,te=$t-jt,ee=0,oe=ht,re=function(t){return t.style.alignContent?t.style.alignContent:"flex-start"}(r);re===p?oe+=te:re===h?oe+=te/2:re===g&&$t>jt&&(ee=te/Et);var ie=0;for(at=0;at=0&&L(e))return t.style.borderStartWidth;var o=null;switch(e){case\"row\":o=t.style.borderLeftWidth;break;case\"row-reverse\":o=t.style.borderRightWidth;break;case\"column\":o=t.style.borderTopWidth;break;case\"column-reverse\":o=t.style.borderBottomWidth}return null!=o&&o>=0?o:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function E(t,e){if(void 0!==t.style.borderEndWidth&&t.style.borderEndWidth>=0&&L(e))return t.style.borderEndWidth;var o=null;switch(e){case\"row\":o=t.style.borderRightWidth;break;case\"row-reverse\":o=t.style.borderLeftWidth;break;case\"column\":o=t.style.borderBottomWidth;break;case\"column-reverse\":o=t.style.borderTopWidth}return null!=o&&o>=0?o:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function C(t,e){return function(t,e){if(void 0!==t.style.paddingStart&&t.style.paddingStart>=0&&L(e))return t.style.paddingStart;var o=null;switch(e){case\"row\":o=t.style.paddingLeft;break;case\"row-reverse\":o=t.style.paddingRight;break;case\"column\":o=t.style.paddingTop;break;case\"column-reverse\":o=t.style.paddingBottom}return null!=o&&o>=0?o:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,e)+B(t,e)}function T(t,e){return function(t,e){if(void 0!==t.style.paddingEnd&&t.style.paddingEnd>=0&&L(e))return t.style.paddingEnd;var o=null;switch(e){case\"row\":o=t.style.paddingRight;break;case\"row-reverse\":o=t.style.paddingLeft;break;case\"column\":o=t.style.paddingBottom;break;case\"column-reverse\":o=t.style.paddingTop}return null!=o&&o>=0?o:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,e)+E(t,e)}function O(t,e){return B(t,e)+E(t,e)}function _(t,e){return k(t,e)+j(t,e)}function R(t,e){return C(t,e)+T(t,e)}function A(t,e){return e.style.alignSelf?e.style.alignSelf:t.style.alignItems?t.style.alignItems:\"stretch\"}function P(t,e){if(e===r){if(t===i)return l;if(t===l)return i}return t}function D(t,e){return function(t){return t===n||t===a}(t)?P(i,e):n}function H(t){return t.style.position?t.style.position:\"relative\"}function M(t){return H(t)===v&&t.style.flex>0}function I(t,e){return t.layout[S[e]]+_(t,e)}function N(t,e){return void 0!==t.style[S[e]]&&t.style[S[e]]>=0}function F(t,e){return void 0!==t.style[e]}function q(t,e){return void 0!==t.style[e]?t.style[e]:0}function z(t,e,o){var r={row:t.style.minWidth,\"row-reverse\":t.style.minWidth,column:t.style.minHeight,\"column-reverse\":t.style.minHeight}[e],i={row:t.style.maxWidth,\"row-reverse\":t.style.maxWidth,column:t.style.maxHeight,\"column-reverse\":t.style.maxHeight}[e],l=o;return void 0!==i&&i>=0&&l>i&&(l=i),void 0!==r&&r>=0&&le?t:e}function G(t,e){void 0===t.layout[S[e]]&&N(t,e)&&(t.layout[S[e]]=U(z(t,e,t.style[S[e]]),R(t,e)))}function J(t,e,o){e.layout[x[o]]=t.layout[S[o]]-e.layout[S[o]]-e.layout[w[o]]}function K(t,e){return void 0!==t.style[b[e]]?q(t,b[e]):-q(t,x[e])}function Q(r,E,Q){var X=function(t,r){var i;return(i=t.style.direction?t.style.direction:e)===e&&(i=void 0===r?o:r),i}(r,Q),Y=P(function(t){return t.style.flexDirection?t.style.flexDirection:n}(r),X),Z=D(Y,X),$=P(i,X);G(r,Y),G(r,Z),r.layout.direction=X,r.layout[b[Y]]+=k(r,Y)+K(r,Y),r.layout[x[Y]]+=j(r,Y)+K(r,Y),r.layout[b[Z]]+=k(r,Z)+K(r,Z),r.layout[x[Z]]+=j(r,Z)+K(r,Z);var tt=r.children.length,et=R(r,$);if(function(t){return void 0!==t.style.measure}(r)){var ot=!W(r.layout[S[$]]),rt=t;rt=N(r,$)?r.style.width:ot?r.layout[S[$]]:E-_(r,$),rt-=et;var it=!N(r,$)&&!ot,lt=!N(r,n)&&W(r.layout[S[n]]);if(it||lt){var nt=r.style.measure(rt);it&&(r.layout.width=nt.width+et),lt&&(r.layout.height=nt.height+R(r,n))}if(0===tt)return}var at,ut,dt,st,yt=function(t){return\"wrap\"===t.style.flexWrap}(r),ct=function(t){return t.style.justifyContent?t.style.justifyContent:\"flex-start\"}(r),ft=C(r,Y),ht=C(r,Z),pt=R(r,Y),gt=R(r,Z),vt=!W(r.layout[S[Y]]),mt=!W(r.layout[S[Z]]),bt=L(Y),xt=null,wt=null,St=t;vt&&(St=r.layout[S[Y]]-pt);for(var Wt=0,Lt=0,kt=0,jt=0,Bt=0,Et=0;LtSt&&at!==Wt){Rt--,kt=1;break}At&&(H(dt)!==v||M(dt))&&(At=!1,Pt=at),Dt&&(H(dt)!==v||Xt!==g&&Xt!==f||W(dt.layout[S[Z]]))&&(Dt=!1,Ht=at),At&&(dt.layout[w[Y]]+=Nt,vt&&J(r,dt,Y),Nt+=I(dt,Y),Ft=U(Ft,z(dt,Z,I(dt,Z)))),Dt&&(dt.layout[w[Z]]+=jt+ht,mt&&J(r,dt,Z)),kt=0,Tt+=qt,Lt=at+1}var zt=0,Ut=0,Gt=0;if(Gt=vt?St-Tt:U(Tt,0)-Tt,0!==Ot){var Jt,Kt,Qt=Gt/_t;for(It=Mt;null!==It;)(Jt=Qt*It.style.flex+R(It,Y))!==(Kt=z(It,Y,Jt))&&(Gt-=Kt,_t-=It.style.flex),It=It.nextFlexChild;for((Qt=Gt/_t)<0&&(Qt=0),It=Mt;null!==It;)It.layout[S[Y]]=z(It,Y,Qt*It.style.flex+R(It,Y)),Ct=t,N(r,$)?Ct=r.layout[S[$]]-et:bt||(Ct=E-_(r,$)-et),V(It,Ct,X),dt=It,It=It.nextFlexChild,dt.nextFlexChild=null}else ct!==u&&(ct===d?zt=Gt/2:ct===s?zt=Gt:ct===y?(Gt=U(Gt,0),Ut=Ot+Rt-1!=0?Gt/(Ot+Rt-1):0):ct===c&&(zt=(Ut=Gt/(Ot+Rt))/2));for(Nt+=zt,at=Pt;at1&&mt){var $t=r.layout[S[Z]]-gt,te=$t-jt,ee=0,oe=ht,re=function(t){return t.style.alignContent?t.style.alignContent:\"flex-start\"}(r);re===p?oe+=te:re===h?oe+=te/2:re===g&&$t>jt&&(ee=te/Et);var ie=0;for(at=0;at { - let result = null - - if (/^#/.test(color) && (color.length === 7 || color.length === 9)) { - return color - // eslint-disable-next-line no-cond-assign - } else if ((result = /^(rgb|rgba)\((.+)\)/.exec(color)) !== null) { - return '#' + result[2].split(',').map((part, index) => { - part = part.trim() - part = index === 3 ? Math.floor(parseFloat(part) * 255) : parseInt(part, 10) - part = part.toString(16) - if (part.length === 1) { - part = '0' + part - } - return part - }).join('') - } else { - return '#00000000' - } -} - -const splitLineToCamelCase = (str) => str.split('-').map((part, index) => { - if (index === 0) { - return part - } - return part[0].toUpperCase() + part.slice(1) -}).join('') - -const compareVersion = (v1, v2) => { - v1 = v1.split('.') - v2 = v2.split('.') - const len = Math.max(v1.length, v2.length) - while (v1.length < len) { - v1.push('0') - } - while (v2.length < len) { - v2.push('0') - } - for (let i = 0; i < len; i++) { - const num1 = parseInt(v1[i], 10) - const num2 = parseInt(v2[i], 10) - - if (num1 > num2) { - return 1 - } else if (num1 < num2) { - return -1 - } - } - - return 0 -} - -module.exports = { - hex, - splitLineToCamelCase, - compareVersion -} diff --git a/pages/collect/index.wxml b/pages/collect/index.wxml index 3cba8ff..b9cb445 100644 --- a/pages/collect/index.wxml +++ b/pages/collect/index.wxml @@ -18,7 +18,7 @@ - {{item.jobName || item.aliasName}} + {{item.jobName || item.aliasName}} diff --git a/pages/detail/index.js b/pages/detail/index.js index 81ae5d4..7f9fc6b 100644 --- a/pages/detail/index.js +++ b/pages/detail/index.js @@ -1606,4 +1606,12 @@ Page({ iosDialogTobe: false, }); }, + onShareAppMessage: function () { + // menu:[‘shareAppMessage’,‘shareTimeline’] + // return custom share data when user share. + }, + onShareTimeline: function () {}, + share(){ + this.onShareAppMessage() + }, }); diff --git a/pages/detail/index.wxml b/pages/detail/index.wxml index 5e01638..1d71124 100644 --- a/pages/detail/index.wxml +++ b/pages/detail/index.wxml @@ -41,7 +41,7 @@ {{citys}}{{jobDetail.store.distance}} - + {{jobDetail.storeJob.genderRestrict}} 丨{{jobDetail.storeJob.age}} @@ -49,7 +49,7 @@ - + 郑州一才工作 @@ -113,12 +113,26 @@ 微信 --> - + + + + + + + - - + + {{jobDetail.storeJob.collected - 1 == 0 ? '已' : ''}}收藏 @@ -127,7 +141,7 @@ 收藏 - + diff --git a/pages/index/index.js b/pages/index/index.js index 38b8180..dc0c8c0 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -3,6 +3,7 @@ const app = getApp(); const commonUtil = require("../../utils/commonUtil.js"); Page({ data: { + jobDetail:{}, toped: "1", chaShowed: false, isTrigger: false, @@ -3058,5 +3059,19 @@ Page({ wx.navigateTo({ url: "/pages/filterPage/index", }); - }, + }, + goNewEnroll (e) { + let that = this; + console.log(e.currentTarget.dataset.job); + // this.data.recordBillShow = true + this.setData({ + jobDetail:e.currentTarget.dataset.job, + recordBillShow: true + }) + // setTimeout(()=>{ + // that.setData({ + // recordBillShow: true + // }) + // },10) + } }); diff --git a/pages/index/index.json b/pages/index/index.json index 5b28bc4..5dda9a3 100644 --- a/pages/index/index.json +++ b/pages/index/index.json @@ -1,3 +1,6 @@ { - "navigationStyle":"custom" + "navigationStyle":"custom", + "usingComponents": { + "record-bill": "../../components/recordBill/index" + } } \ No newline at end of file diff --git a/pages/index/index.wxml b/pages/index/index.wxml index 775e0e2..3a8a297 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -40,7 +40,7 @@ {{item.jobName || item.aliasName}} - + 报名 @@ -80,3 +80,5 @@ + + \ No newline at end of file diff --git a/pages/jobListSearch/index.js b/pages/jobListSearch/index.js index cd9f795..f49dad7 100644 --- a/pages/jobListSearch/index.js +++ b/pages/jobListSearch/index.js @@ -2421,5 +2421,14 @@ Page({ }, onUnload() { console.log("destory"); - }, + }, + goNewEnroll (e) { + let that = this; + console.log(e.currentTarget.dataset.job); + // this.data.recordBillShow = true + this.setData({ + jobDetail:e.currentTarget.dataset.job, + recordBillShow: true + }) + } }); diff --git a/pages/jobListSearch/index.json b/pages/jobListSearch/index.json index 84dd50b..9c34545 100644 --- a/pages/jobListSearch/index.json +++ b/pages/jobListSearch/index.json @@ -1,7 +1,9 @@ { - "usingComponents": {}, "navigationBarTitleText": "搜索", "navigationBarBackgroundColor": "#fff", "navigationBarTextStyle": "black", - "backgroundColor": "#f5f5f5" + "backgroundColor": "#f5f5f5", + "usingComponents": { + "record-bill": "../../components/recordBill/index" + } } \ No newline at end of file diff --git a/pages/jobListSearch/index.wxml b/pages/jobListSearch/index.wxml index 2a16f1e..9b9adc7 100644 --- a/pages/jobListSearch/index.wxml +++ b/pages/jobListSearch/index.wxml @@ -1,4 +1,4 @@ - + @@ -88,249 +88,66 @@ --> - - - - {{searchCityParamStorage.name == '' ? '全国' : searchCityParamStorage.shortName}} - - - - {{firstMenu}} - - - - - - 综合排序 - 工价优先 - 距离优先 - - - - - {{ secondMenu }} - - - - - 男女不限 - 男生 - 女生 - - - - - 分类 - - - {{selectBrandList.length}} - - - - - - - {{item.name}} - - - - - - - - - - - - - - - - - 筛选 - - - {{selectJobList.length}} - - - - 薪资福利 - - - {{item.name}} - - - 食宿保障 - - - {{item.name}} - - - 班制特色 - - - {{item.name}} - - - 其它特色 - - - {{item.name}} - - - - - - - - - - - - - - - - - - - {{firstMenu}} - - - {{secondMenu}} - - - - {{item.name}} - - - - - {{item.name}} - - - - - - 清除 - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - {{item.jobName}} - {{item.aliasName}} - {{item.salaryClassifyValue}} - - - - - {{item.district == "" ?'':item.district + ' | ' }} - {{item.distanceKm}} - {{item.age}} + + + {{item.jobName || item.aliasName}} + + 报名 + + + + {{item.monthlyPay}}元/月,{{item.age}} + + + + + 郑州一才工作 + + + 1分钟前 + - {{item.monthlyPay}} - - - - {{item1}} - 暂无特色 - - - 报名 - - - 报名 - - - - - + + 没有符合条件的职位 + + + 已经到底啦~ + 上滑加载更多 + + + + + 暂无记录 - - 没有符合条件的职位 - - - - 已经到底啦~ - 上滑加载更多 - - - + + + @@ -477,3 +294,4 @@ + \ No newline at end of file diff --git a/pages/login/index.wxml b/pages/login/index.wxml index bc26b31..e6f3ce8 100644 --- a/pages/login/index.wxml +++ b/pages/login/index.wxml @@ -8,12 +8,12 @@ - + - 为劳动者创造价值 + @@ -41,7 +41,7 @@ - + diff --git a/pages/mine/index.wxml b/pages/mine/index.wxml index 5f13bb4..66c3434 100644 --- a/pages/mine/index.wxml +++ b/pages/mine/index.wxml @@ -62,7 +62,7 @@ - + diff --git a/pages/mine/trueName/index.wxml b/pages/mine/trueName/index.wxml index da8d058..670731d 100644 --- a/pages/mine/trueName/index.wxml +++ b/pages/mine/trueName/index.wxml @@ -1,6 +1,6 @@ - 实名认证 + 实名认证 {{trueName}} diff --git a/pages/mineAgency/index.wxml b/pages/mineAgency/index.wxml index 03a712e..b37028f 100644 --- a/pages/mineAgency/index.wxml +++ b/pages/mineAgency/index.wxml @@ -1,11 +1,14 @@ - - - + + + + 搜索 + + - + {{item.title}} diff --git a/pages/mineAgency/index.wxss b/pages/mineAgency/index.wxss index 331279f..1b3ef45 100644 --- a/pages/mineAgency/index.wxss +++ b/pages/mineAgency/index.wxss @@ -1,5 +1,6 @@ /* pages/mineAgency/index.wxss */ page { + background-color: #fff !important; } .mineAgencyContainer { background-color: #fff; @@ -11,6 +12,6 @@ page { border-radius: 50%; } .subItem{ - padding: 0 6px; + padding: 0 16px; height: 76px; } \ No newline at end of file diff --git a/project.private.config.json b/project.private.config.json index 9d1933f..2b5717f 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -4,7 +4,7 @@ "urlCheck": false }, "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", - "projectname": "signupHelper", + "projectname": "报名助手", "condition": { "miniprogram": { "list": [