当前位置: 首页 > wzjs >正文

河南省财政厅经济建设网站数字化展厅设计方案

河南省财政厅经济建设网站,数字化展厅设计方案,短链接恢复长连接,网站开发和编程的联系需求: 如下图,要实现左图的样式,先实现框架,文字到时候 往里填就行了,原来的解决方案是想用css,html来实现,发现实现起来蛮麻烦的。我也没找到合适的实现方法,最后换使用canvas来实现&#xff…

需求:

如下图,要实现左图的样式,先实现框架,文字到时候 往里填就行了,原来的解决方案是想用css,html来实现,发现实现起来蛮麻烦的。我也没找到合适的实现方法,最后换使用canvas来实现,使用的js库是leaferui

1.安装:用game是因为有一些交互,反正体积也不大

npm install leafer-game

2.wxml

    <canvas:style="'width:'+cabox.width+'px;height:'+cabox.height+'px;'"id="leafer"type="2d":width="cabox.width":height="cabox.height"catchtouchstart="receiveEvent"catchtouchmove="receiveEvent"catchtouchend="receiveEvent"catchtouchcancel="receiveEvent"></canvas>

3.javascript

  lf = new Leafer({view: window, width: that.cabox.width, height: that.cabox.height})lf.add(Rect.one(0,0,that.cabox.width,that.cabox.height));lf.add(Rect.one({width: that.cabox.width, height: that.cabox.height, strokeWidth: 2, stroke: "black",}));lf.add(Rect.one({strokeWidth: 2,stroke: "black",width: (that.cabox.perBox * 11.5),height: (that.cabox.perBox * 11.5),x: that.cabox.perBox * 1.75,y: that.cabox.perBox * 1.75}));lf.add(Rect.one({strokeWidth: 2,stroke: "black",width: (that.cabox.perBox * 9),height: (that.cabox.perBox * 9),x: that.cabox.perBox * 3,y: that.cabox.perBox * 3}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [0, 0, that.cabox.perBox * 3, that.cabox.perBox * 3]}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [that.cabox.width, 0, that.cabox.perBox * 12, that.cabox.perBox * 3]}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [that.cabox.width, that.cabox.height, that.cabox.perBox * 12, that.cabox.perBox * 12]}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [0, that.cabox.height, that.cabox.perBox * 3, that.cabox.perBox * 12]}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [that.cabox.perBox*6, 0, that.cabox.perBox*6, that.cabox.height]}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [that.cabox.perBox*9, 0, that.cabox.perBox*9, that.cabox.height]}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [0, that.cabox.perBox*6, that.cabox.width, that.cabox.perBox*6]}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [0, that.cabox.perBox*9, that.cabox.width, that.cabox.perBox*9]}));


文章转载自:

http://wcd5mIjD.bgpfq.cn
http://93ZACpKD.bgpfq.cn
http://ipgbWacb.bgpfq.cn
http://aAgOxrIG.bgpfq.cn
http://QYGWffij.bgpfq.cn
http://hQHcjnE0.bgpfq.cn
http://E83XIkF4.bgpfq.cn
http://JFk95Hcn.bgpfq.cn
http://wuTqG4o7.bgpfq.cn
http://80wcvLL7.bgpfq.cn
http://4sCGcvMO.bgpfq.cn
http://OFHgzjUk.bgpfq.cn
http://oLrHN4SM.bgpfq.cn
http://d9on2B9U.bgpfq.cn
http://ZpE5Iq0T.bgpfq.cn
http://fcV1GjRm.bgpfq.cn
http://JXsqX5ix.bgpfq.cn
http://MbkJBhiz.bgpfq.cn
http://UlIKdisk.bgpfq.cn
http://jhj5mbPm.bgpfq.cn
http://YQniimsn.bgpfq.cn
http://9NMZfB72.bgpfq.cn
http://roXcr366.bgpfq.cn
http://xP58kbiW.bgpfq.cn
http://lIuKZoVG.bgpfq.cn
http://sTwA1ZgQ.bgpfq.cn
http://hRBEBmmI.bgpfq.cn
http://DnT7WWDM.bgpfq.cn
http://l4BgTmhG.bgpfq.cn
http://bJ3DkrTL.bgpfq.cn
http://www.dtcms.com/wzjs/738625.html

相关文章:

  • 山东省商务厅网站开发区管理处松滋市住房和城乡建设局网站
  • 电商网站如何避免客户信息泄露swing做网站
  • 沃尔玛官方网站查余额知乎网站建设入门书
  • 建设网站挣钱企业做网站有哪些好处
  • 深圳建站推广如何入侵网站后台密码
  • 龙岩相亲网网站优化怎么做分录
  • html家乡网站设计模板哪些网站可以做装修
  • 成都网站建设服务国外做游戏的视频网站有哪些
  • 网站底部关键词昆明c2c网站建设
  • 广州企业网站建设开发做网站还有钱赚吗
  • 公司网站建设的重要性合肥序曲网站建设公司怎么样
  • 潍坊有哪些网站微软网站设计
  • 高端模板建站网站推广公司兴田德润电话多少
  • 贵州建设项目门户网站微盟小程序收费标准
  • 怎么看网站使用什么做的十大免费行情软件推荐
  • 注册小规模公司流程及费用天津seo方案
  • 网站建设遇到的问题php mysql 网站开发
  • 西安微信网站制作有项目找资金的平台
  • 万州做网站多少钱代理网课
  • 永久免费wap自助建站秘塔猫ai写作官网
  • 可以做蛋白三位结构图的网站技校电子商务主要学什么
  • 网站右侧二维码代码竞价网站托管
  • 沧州网站建设定制价格威海建设集团的网站是什么
  • 搭配服装网站源码phpcms怎么做网站
  • 绿色手机网站模板招聘网站分析如何做
  • 如何推广外贸网站品牌建设内容措施
  • 深圳集团网站建设专业网页设计图片旋转
  • 做暖暖的视频网站能联系做仿瓷的网站
  • 为什么找不到做网站的软件廊坊森纳特化工有限公司
  • 简述网站制作方案和主要内容科技强国从升级镜头开始