收款定制开发【jQuery案例】todolist待办事项清单 jQuery+JS实现

💹 收款定制开发完整代码在文章末尾,收款定制开发完整文件在博客主页自取!!!

文章目录:


前言:

收款定制开发近期完成了一个仿 todolist 收款定制开发的一个任务事项管理页面,收款定制开发简洁的布局,收款定制开发斜对称的设计更加美观,收款定制开发仅仅用到了本地存储,纯前端,收款定制开发这篇文章给大家分享源收款定制开发码并分析一下其 jQuery 实现过程



一:页面展示:  

  • 收款定制开发未添加事项页面:

  • 添加事项(回车,收款定制开发点击添加均可触发): 

  •  收款定制开发做完事项后勾选左侧选项

  •  收款定制开发点击右侧橙色按钮删除事项

  •  主题切换(收款定制开发目前写入了两个主题):

  •  收款定制开发左侧工具栏操作说明


二:收款定制开发功能实现分析

此版块带大家简单分析一下各个功能的实现原理,其实本案例不是单纯的创建元素添加元素,而是每次操作都从本地存储中拿到数据,然后将数据重新分配加载到页面中,对于要多次获取数据,更新存放数据,加载渲染页面,我们将上述功能封装为函数以便多次调用

2.1  数据存放形式

本案例中数据是存放在 localStorage 本地存储中,格式是的形式,每一个要添加的数据都包含两个属性放在对象内,再把该对象作为数组元素放入数组内

数据存放形式:

todolist=[{ title:' 要添加的任务 ' done:' false '}]

属性titledone
含义输入框内输入的要添加的信息事情是否已完成,完成为 true,未完成为 false

补充:本地存储只能存放字符串类型,而数据更新我们需要在数组的形式上进行,对此我们就需要不断地在数组和字符串之间切换,这就需要两种本地存储的格式转化:

  • JSON.parse():将字符串转换为原先的格式(作用为从本地存储取出数据后进行数组操作)

  • JSON.stringify():将其他格式的数据转换为字符串格式(作用为存进本地存储)


2.2 添加数据过程分析

数据添加大致分为以下过程:

  1. //第一步:得到本地存储已存放的数据
  2. getData()
  3. //第二步:更新数据,即将输入的内容添加进数据中
  4. 数组的push方法添加数据
  5. //第三步:保存数据到本地存储
  6. saveData()
  7. //第四步:重新渲染加载页面
  8. show()

2.3 添加数据 

是使用按下回车添加数据和点击添加建添加数据,两个的实现代码大同小异,只讲解回车添加数据,此内容和上述添加步骤一致,此处只为功能函数的调用,重点在于各个函数的封装

  1. //按回车处理数据
  2. $('.text').on('keydown',function(event){
  3. if(event.keyCode===13){
  4. if($('.text').val()!=''){
  5. //得到原先存储的数据
  6. var local=getData();
  7. //更新本地存储数据
  8. local.push({title:$('.text').val(), done:false})
  9. saveData(local);
  10. show()
  11. notodo_num();
  12. hasdo_num()
  13. isnull()
  14. $('.text').val('')
  15. }else{
  16. alert('您需要输入内容才能添加!')
  17. }
  18. }
  19. })

2.4 获取数据 getData 

获取数据的分析如下:

  • 首先我们使用 localstorage 的方法得到存放过数据的数组 ----- todolist
  • 如果得到的不为空,说明之前便有数据,只需要将数据从字符串形式转为数组形式即可
  • 如果为空,则返回一个空数组
  1. function getData(){
  2. var data=window.localStorage.getItem('todolist')
  3. if(data!=null){
  4. data = JSON.parse(data);
  5. return data;
  6. }else{
  7. return [];
  8. }
  9. }

2.5 保存数据 saveData 

保存数据到本地存储分析如下:

  • 首先这个函数是有传参的,调用该函数时要把处理好的数组数据传入
  • 然后执行一步转化操作将数组形式转为字符串形式以便传入本地存储
  • 最后使用 localstorage 的方法传入本地存储即可
  1. function saveData(arr){
  2. arr=JSON.stringify(arr);
  3. window.localStorage.setItem('todolist',arr);
  4. }

2.6  渲染页面函数 show 

渲染页面过程如下:

  • 首先在函数内调用 getData 函数获取到已存储的数据
  • 将已完成列表和未完成列表的内容全部清空重新渲染,防止出现重复添加的bug
  • 使用 each 方法遍历所有数组对象并一一添加,添加时创建的元素顺便给右侧的删除按钮添加了自定义属性 id,方便后续删除操作使用
  • 添加时要判断  数组对象的第二个属性 done,是 false 就添加到未完成队列,是 true 就添加到完成队列
  1. function show(){
  2. var data=getData();
  3. $('.notodo-ul').empty();
  4. $('.hasdo-ul').empty();
  5. $.each(data,function( ndex,item){
  6. if(item.done==true){
  7. var li=$('<li><input type="checkbox" class="hasdo-check" checked="true"><div class="hasdo-main">'+item.title+'</div><div class="right-btn" id="'+index+'">-</div></li>')
  8. $('.hasdo-ul').prepend(li)
  9. }else if(item.done==false){
  10. var li=$('<li><input type="checkbox" class="notodo-check"><div class="notodo-main">'+item.title+'</div><div class="right-btn" id="'+index+'">-</div></li>')
  11. $('.notodo-ul').prepend(li)
  12. }
  13. })
  14. }

2.7 删除按钮实现 

点击按钮删除对应事项的分析:

  • 点击删除后弹出确认弹窗,点击确认后执行以下过程
  • 先调用了 getData 获取到本地存储内的数据
  • 对获取到的数据进行操作,show 函数中我们已经添加了给创建的每一个元素添加了一个自定义属性 id,其中 id 的值就是 each 方法遍历时自动编排的索引值,我们得到点击事项的索引值
  • 然后对该索引处的对象进行数组的截取操作 splice 即可去除对应点击的数据
  • 然后再 saveData 保存数据,show 渲染数据即可
  1. $('.notodo-ul, .hasdo-ul').on('click','.right-btn',function(){
  2. $('.yn-box').fadeIn(200)
  3. $('.mask').show()
  4. $('.yes').on('click',function(){
  5. //修改数据
  6. var data=getData();
  7. var index=$(this).attr('id')
  8. data.splice(index,1)
  9. //保存到本地存储数据
  10. saveData(data)
  11. //重渲染页面
  12. show()
  13. notodo_num()
  14. hasdo_num()
  15. isnull()
  16. $('.yn-box').fadeOut(200)
  17. $('.mask').hide()
  18. })
  19. $('.no').on('click',function(){
  20. $('.yn-box').fadeOut(200)
  21. $('.mask').hide()
  22. })
  23. })

2.8 完成与未完成事件的转化 

这一步是容易引起误解的地方,很多人认为该步骤是单单将某个要转换列表的元素转换过去即可,其实不然,我们还是更改过 done 属性后,重新保存数据,渲染页面


完成与未完成转换分析:

  • 首先还是获取数据,然后对其进行操作
  • 仍然是得到点击的 自定义属性 id 的值,但此处需要通过其兄弟元素删除按钮来间接得到
  • 然后更改其 done 的值为当前 单选框表单的选中状态,正好对应选中的 true 与 false

  • 再接着保存数据,渲染页面即可

  1. //完成未完成转换按钮
  2. $('.notodo-ul, .hasdo-ul').on('click','input',function(){
  3. //获取更改数据
  4. var data=getData()
  5. var index=$(this).siblings('.right-btn').attr('id')
  6. data[index].done=$(this).prop('checked')
  7. //保存数据
  8. saveData(data)
  9. //重新渲染页面
  10. show();
  11. notodo_num()
  12. hasdo_num()
  13. isnull();
  14. })

2.9 其他函数

剩下的函数都通俗易懂不需要过多解释了


判断是否没有数据:

没有数据就要让背景的空提示图显示出来

  1. function isnull(){
  2. if($('.notodo-ul').children().length==0){
  3. $('.notodo-null').fadeIn(500)
  4. }
  5. else if($('.notodo-ul').children().length!=0){
  6. $('.notodo-null').fadeOut(200)
  7. }
  8. if($('.hasdo-ul').children().length==0){
  9. $('.hasdo-null').fadeIn(500)
  10. }
  11. else if($('.hasdo-ul').children().length!=0){
  12. $('.hasdo-null').fadeOut(200)
  13. }
  14. }

更新完成与未完成的个数显示:

  1. function notodo_num(){
  2. var notodonum=$('.notodo-ul').children().length
  3. $('.notodo-number').text(notodonum)
  4. }
  5. //完成个数
  6. function hasdo_num(){
  7. var hasdonum=$('.hasdo-ul').children().length
  8. $('.hasdo-number').text(hasdonum)
  9. }

更新主题:

  1. $('.pink').on('click',function(){
  2. $('.head-map, .tool-box, .tdlist-brand, .op').css({
  3. 'backgroundColor':'rgb(255, 117, 117)'
  4. })
  5. $('.select-text').css({
  6. 'backgroundColor':'rgb(255, 165, 165)'
  7. })
  8. $('.value').css({
  9. 'backgroundColor':'#ffe2e2'
  10. })
  11. $('.notodo-banner').css({
  12. 'backgroundColor':'#b055e8'
  13. })
  14. $('.hasdo-banner').css({
  15. 'backgroundColor':'#b055e8'
  16. })
  17. $('.mask').css({
  18. 'backgroundColor':'rgba(0, 0, 0, 0.324)'
  19. })
  20. })

三:完整代码获取 

jQuery + JS文件:

  1. document.addEventListener('DOMContentLoaded',function(){
  2. document.addEventListener('selectstart',function(event){
  3. event.preventDefault();
  4. })
  5. document.addEventListener('contextmenu',function(event){
  6. event.preventDefault();
  7. })
  8. })
  9. $(function(){
  10. show();
  11. isnull();
  12. notodo_num();
  13. hasdo_num()
  14. $('.add-img').on('mouseover',function(){
  15. $(this).prop('src','./img/添加2.png')
  16. })
  17. $('.add-img').on('mouseout',function(){
  18. $(this).prop('src','./img/添加1.png')
  19. })
  20. // 主题下拉
  21. var flag1=true;
  22. $('.select-text').on('click',function(){
  23. if(flag1==true){
  24. $('.select').stop().slideDown(600)
  25. $('.select-text').text('▲ 切换主题');
  26. flag1=false;
  27. }else if(flag1==false){
  28. $('.select').stop().slideUp(600)
  29. $('.select-text').text('▼ 切换主题');
  30. flag1=true;
  31. }
  32. })
  33. // ---------------------------主功能区---------------------------
  34. //数组对象形式存储数据
  35. //按回车处理数据
  36. $('.text').on('keydown',function(event){
  37. if(event.keyCode===13){
  38. if($('.text').val()!=''){
  39. //得到原先存储的数据
  40. var local=getData();
  41. //更新本地存储数据
  42. local.push({title:$('.text').val(), done:false})
  43. saveData(local);
  44. show()
  45. notodo_num();
  46. hasdo_num()
  47. isnull()
  48. $('.text').val('')
  49. }else{
  50. alert('您需要输入内容才能添加!')
  51. }
  52. }
  53. })
  54. //按下添加建添加数据
  55. $('.add-img').on('click',function(event){
  56. if($('.text').val()!=''){
  57. //得到原先存储的数据
  58. var local=getData();
  59. //更新本地存储数据
  60. local.push({title:$('.text').val(), done:false})
  61. saveData(local);
  62. show()
  63. notodo_num();
  64. hasdo_num()
  65. isnull()
  66. $('.text').val('')
  67. }else{
  68. alert('您需要输入内容才能添加!')
  69. }
  70. })
  71. function getData(){
  72. var data=window.localStorage.getItem('todolist')
  73. if(data!=null){
  74. data = JSON.parse(data);
  75. return data;
  76. }else{
  77. return [];
  78. }
  79. }
  80. function saveData(arr){
  81. arr=JSON.stringify(arr);
  82. window.localStorage.setItem('todolist',arr);
  83. }
  84. //更新渲染函数 show data-load()
  85. function show(){
  86. var data=getData();
  87. $('.notodo-ul').empty();
  88. $('.hasdo-ul').empty();
  89. $.each(data,function( ndex,item){
  90. if(item.done==true){
  91. var li=$('<li><input type="checkbox" class="hasdo-check" checked="true"><div class="hasdo-main">'+item.title+'</div><div class="right-btn" id="'+index+'">-</div></li>')
  92. $('.hasdo-ul').prepend(li)
  93. }else if(item.done==false){
  94. var li=$('<li><input type="checkbox" class="notodo-check"><div class="notodo-main">'+item.title+'</div><div class="right-btn" id="'+index+'">-</div></li>')
  95. $('.notodo-ul').prepend(li)
  96. }
  97. })
  98. }
  99. //del-right
  100. $('.notodo-ul, .hasdo-ul').on('click','.right-btn',function(){
  101. $('.yn-box').fadeIn(200)
  102. $('.mask').show()
  103. $('.yes').on('click',function(){
  104. //修改数据
  105. var data=getData();
  106. var index=$(this).attr('id')
  107. data.splice(index,1)
  108. //保存到本地存储数据
  109. saveData(data)
  110. //重渲染页面
  111. show()
  112. notodo_num()
  113. hasdo_num()
  114. isnull()
  115. $('.yn-box').fadeOut(200)
  116. $('.mask').hide()
  117. })
  118. $('.no').on('click',function(){
  119. $('.yn-box').fadeOut(200)
  120. $('.mask').hide()
  121. })
  122. })
  123. //完成未完成转换按钮
  124. $('.notodo-ul, .hasdo-ul').on('click','input',function(){
  125. //获取更改数据
  126. var data=getData()
  127. var index=$(this).siblings('.right-btn').attr('id')
  128. data[index].done=$(this).prop('checked')
  129. //保存数据
  130. saveData(data)
  131. //重新渲染页面
  132. show();
  133. notodo_num()
  134. hasdo_num()
  135. isnull();
  136. })
  137. function isnull(){
  138. if($('.notodo-ul').children().length==0){
  139. $('.notodo-null').fadeIn(500)
  140. }
  141. else if($('.notodo-ul').children().length!=0){
  142. $('.notodo-null').fadeOut(200)
  143. }
  144. if($('.hasdo-ul').children().length==0){
  145. $('.hasdo-null').fadeIn(500)
  146. }
  147. else if($('.hasdo-ul').children().length!=0){
  148. $('.hasdo-null').fadeOut(200)
  149. }
  150. }
  151. //待完成个数
  152. function notodo_num(){
  153. var notodonum=$('.notodo-ul').children().length
  154. $('.notodo-number').text(notodonum)
  155. }
  156. //完成个数
  157. function hasdo_num(){
  158. var hasdonum=$('.hasdo-ul').children().length
  159. $('.hasdo-number').text(hasdonum)
  160. }
  161. //改变主题
  162. //粉色系
  163. $('.pink').on('click',function(){
  164. $('.head-map, .tool-box, .tdlist-brand, .op').css({
  165. 'backgroundColor':'rgb(255, 117, 117)'
  166. })
  167. $('.select-text').css({
  168. 'backgroundColor':'rgb(255, 165, 165)'
  169. })
  170. $('.value').css({
  171. 'backgroundColor':'#ffe2e2'
  172. })
  173. $('.notodo-banner').css({
  174. 'backgroundColor':'#b055e8'
  175. })
  176. $('.hasdo-banner').css({
  177. 'backgroundColor':'#b055e8'
  178. })
  179. $('.mask').css({
  180. 'backgroundColor':'rgba(0, 0, 0, 0.324)'
  181. })
  182. })
  183. //原色
  184. $('.ori').on('click',function(){
  185. $('.head-map, .tool-box, .tdlist-brand, .op').css({
  186. 'backgroundColor':'rgb(87, 87, 87)'
  187. })
  188. $('.select-text').css({
  189. 'backgroundColor':'rgb(165, 165, 165)'
  190. })
  191. $('.value').css({
  192. 'backgroundColor':'rgb(222, 219, 194)'
  193. })
  194. $('.notodo-banner').css({
  195. 'backgroundColor':'rgb(0, 100, 123)'
  196. })
  197. $('.hasdo-banner').css({
  198. 'backgroundColor':'rgb(0, 94, 41)'
  199. })
  200. $('.mask').css({
  201. 'backgroundColor':'rgba(0, 0, 0, 0.324)'
  202. })
  203. })
  204. //操作说明
  205. $('.op').on('click',function(){
  206. $('.op-box').stop().fadeIn(100)
  207. $('.mask').stop().show()
  208. $('.close').on('click',function(){
  209. $('.op-box').stop().fadeOut(100)
  210. $('.mask').stop().hide()
  211. })
  212. })
  213. })

HTML文件: 

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>todoList 待办事项清单</title>
  8. <link rel="stylesheet" href="./tdlist.css">
  9. <script src="./jquery.js"></script>
  10. <script src="./tdlist.js"></script>
  11. </head>
  12. <body>
  13. <div class="head-map clearfix">
  14. <img src="./img/待办事项.png" alt="todoList-img-title" title="todoList 待办事项清单" class="map-img">
  15. <div class="map-title">todoList 待办事项清单</div>
  16. <input type="text" class="text" placeholder="在此输入你的待办事项">
  17. <img src="./img/添加1.png" alt="添加事项按钮" title="点击此处添加" class="add-img">
  18. <div class="select-box">
  19. <div class="select-text">▼ 切换主题</div>
  20. <ul class="select">
  21. <li class="pink">粉色系主题</li>
  22. <li>...</li>
  23. <li>...</li>
  24. <li>...</li>
  25. <li>...</li>
  26. <li class="ori">原色</li>
  27. <li>...敬请期待</li>
  28. </ul>
  29. </div>
  30. </div>
  31. <div class="value">
  32. <div class="tool-box">
  33. <div class="op">操作说明</div>
  34. </div>
  35. <div class="right-box">
  36. <div class="notodo-box">
  37. <div class="notodo-null">
  38. <img src="./img/空盒子.png" alt="" class="notodo-null-img">
  39. <p class="notodo-null-p">无待完成事项</p>
  40. </div>
  41. <div class="notodo-banner">
  42. <img src="./img/未完成.png" alt="" class="notodo-img">
  43. <p class="notodo-p">未完成事项</p>
  44. <div class="notodo-number">0</div>
  45. </div>
  46. <!-- 未完成事项ul -->
  47. <ul class="notodo-ul">
  48. </ul>
  49. </div>
  50. <div class="hasdo-box">
  51. <div class="hasdo-null">
  52. <img src="./img/空盒子.png" alt="" class="hasdo-null-img">
  53. <p class="hasdo-null-p">无已完成事项</p>
  54. </div>
  55. <div class="hasdo-banner">
  56. <img src="./img/已完成.png" alt="" class="hasdo-img">
  57. <p class="hasdo-p">已完成事项</p>
  58. <div class="hasdo-number">0</div>
  59. </div>
  60. <!-- 已完成事项ul -->
  61. <ul class="hasdo-ul">
  62. </ul>
  63. </div>
  64. </div>
  65. <div class="tdlist-brand">
  66. <div class="brand">todoList@MYT 卡卡西最近怎么样 V1.0.0版本 2022 5.21</div>
  67. </div>
  68. </div>
  69. <div class="yn-box">
  70. <div class="yn-text">
  71. <img src="./img/疑问.png" alt="" class="yn-img">
  72. <p class="yn-p">确认删除该事项?</p>
  73. </div>
  74. <button class="no">返&nbsp; 回</button>
  75. <button class="yes">确&nbsp; 认</button>
  76. </div>
  77. <div class="mask"></div>
  78. <div class="op-box">
  79. <div class="close">x</div>
  80. <img src="./img/WY_M098291%$`PPANSX(K3H.png" alt="" class="op-p">
  81. <img src="./img/EYENL2)326`(LXZ2DE4`[]E.png" alt="" class="op-img">
  82. </div>
  83. </body>
  84. </html>

css文件:

  1. /* todoList 清单css样式文件 */
  2. *{
  3. margin: 0;
  4. padding: 0;
  5. }
  6. /* body{
  7. background-color: rgb(196, 196, 196);
  8. } */
  9. /* 头部导航块 */
  10. .head-map{
  11. position: relative;
  12. box-sizing: border-box;
  13. width: 100%;
  14. height: 90px;
  15. background-color: rgb(87, 87, 87);
  16. border-bottom:8px solid rgb(255, 255, 255)
  17. }
  18. .map-img{
  19. box-sizing: border-box;
  20. position: absolute;
  21. top: 15px;
  22. left: 40px;
  23. width: 47px;
  24. height: 47px;
  25. }
  26. .map-title{
  27. box-sizing: border-box;
  28. word-spacing: 3px;
  29. letter-spacing: 1px;
  30. width: 340px;
  31. height: 50px;
  32. line-height: 50px;
  33. text-align: center;
  34. /* background-color: #fff; */
  35. margin-top: 15px;
  36. margin-left: 70px;
  37. font-size: 24px;
  38. font-weight: bold;
  39. color: rgb(255, 255, 255);
  40. }
  41. .text{
  42. position: absolute;
  43. right: 420px;
  44. top: 22px;
  45. box-sizing: border-box;
  46. width: 380px;
  47. height: 38px;
  48. outline:none;
  49. line-height:40px ;
  50. padding-left: 10px;
  51. border-radius:12px ;
  52. border: none;
  53. font-size: 18px;
  54. font-weight: bold;
  55. color: rgb(90, 90, 90);
  56. }
  57. ::placeholder{
  58. font-size: 18px;
  59. font-weight: 500;
  60. color: rgb(122, 122, 122);
  61. }
  62. .add-img{
  63. box-sizing: border-box;
  64. position:absolute;
  65. top: 16px;
  66. right: 355px;
  67. width: 50px;
  68. height: 50px;
  69. cursor: pointer;
  70. }
  71. .select-box{
  72. position: absolute;
  73. top: 22px;
  74. right: 50px;
  75. width: 160px;
  76. height: 40px;
  77. background-color: #fff;
  78. }
  79. .select-text{
  80. border: 1px solid rgb(63, 63, 63);
  81. text-align: center;
  82. padding-right: 10px;
  83. line-height: 40px;
  84. box-sizing: border-box;
  85. width: 160px;
  86. height: 40px;
  87. font-weight: bold;
  88. letter-spacing: 1.4px;
  89. text-shadow: 1.2px 1.2px 1.2px black;
  90. background-color: rgb(165, 165, 165);
  91. color: rgb(255, 255, 255);
  92. cursor: pointer;
  93. }
  94. .select-text:hover{
  95. text-shadow: 1.2px 1.2px 1.2px white;
  96. text-shadow: none;
  97. color: rgb(81, 81, 81);
  98. background-color: rgb(193, 193, 193);
  99. }
  100. .select{
  101. position: absolute;
  102. box-sizing: border-box;
  103. width: 160px;
  104. display: none;
  105. z-index: 10;
  106. }
  107. .select li{
  108. box-sizing: border-box;
  109. border-left: 1px solid black;
  110. border-right: 1px solid black;
  111. width: 160px;
  112. height: 40px;
  113. border-bottom: 1px solid black;
  114. background-color: #fff;
  115. list-style: none;
  116. text-align: center;
  117. line-height: 38px;
  118. cursor: pointer;
  119. }
  120. .select li:last-child{
  121. background-color: rgb(207, 207, 207);
  122. }
  123. .select li:last-child:hover{
  124. background-color:rgb(207, 207, 207);
  125. }
  126. .select li:hover{
  127. background-color: rgb(255, 229, 182);
  128. }
  129. /* 双伪元素解决塌陷 */
  130. .clearfix::before,
  131. .clearfix::after{
  132. content: ' ';
  133. display: table;
  134. }
  135. .clearfix::after{
  136. clear: both;
  137. }
  138. .value{
  139. position: relative;
  140. width: 100%;
  141. background-color: rgb(222, 219, 194);
  142. overflow: hidden; /*清除浮动影响*/
  143. }
  144. .tool-box{
  145. position: relative;
  146. float: left;
  147. width: 6.6%;
  148. height: 758.4px;
  149. background-color: rgb(87, 87, 87);
  150. }
  151. .op{
  152. position: absolute;
  153. width: 100%;
  154. height: 60px;
  155. background-color: rgb(87,87,87);
  156. border-bottom: 2px solid white;
  157. text-align: center;
  158. line-height: 60px;
  159. color: white;
  160. font-size: 16px;
  161. letter-spacing: 1.3px;
  162. cursor: pointer;
  163. }
  164. .right-box{
  165. float: left;
  166. width: 93.4%;
  167. height: 700px;
  168. }
  169. .notodo-box{
  170. position: relative;
  171. box-sizing: border-box;
  172. float: left;
  173. width: 50%;
  174. height: 700px;
  175. overflow: scroll;
  176. }
  177. .notodo-null{
  178. box-sizing: border-box;
  179. position: absolute;
  180. top: 180px;
  181. left: 200px;
  182. width: 260px;
  183. height: 320px;
  184. display: none;
  185. }
  186. .notodo-null-img{
  187. position: absolute;
  188. top: 50px;
  189. left: 60px;
  190. width: 135px;
  191. height: 135px;
  192. }
  193. .notodo-null-p{
  194. position: absolute;
  195. top: 180px;
  196. left: 36px;
  197. font-size: 30px;
  198. font-weight: bold;
  199. color: rgb(134, 134, 134);
  200. }
  201. .notodo-banner{
  202. position: fixed;
  203. top: 90px;
  204. left: 98px;
  205. background-color: rgb(0, 100, 123);
  206. width: 45%;
  207. height: 90px;
  208. border-radius: 30px;
  209. z-index: 11;
  210. }
  211. .notodo-img{
  212. position: absolute;
  213. bottom: 30px;
  214. left: 235px;
  215. width: 30px;
  216. height: 30px;
  217. }
  218. .notodo-p{
  219. letter-spacing: 2px;
  220. position: absolute;
  221. font-size: 26px;
  222. font-weight: bold;
  223. bottom: 30px;
  224. left: 270px;
  225. color: rgb(233, 233, 233);
  226. }
  227. .notodo-number{
  228. position: absolute;
  229. top: 23px;
  230. right: 28px;
  231. background-color: #fff;
  232. width: 40px;
  233. height: 40px;
  234. text-align: center;
  235. line-height: 40px;
  236. border-radius: 100%;
  237. font-size: 18px;
  238. color: rgb(73, 73, 73);
  239. font-weight: bold;
  240. background-color: rgb(246, 246, 246);
  241. }
  242. .hasdo-box{
  243. position: relative;
  244. box-sizing: border-box;
  245. float: left;
  246. width: 50%;
  247. height: 700px;
  248. overflow: scroll;
  249. }
  250. .hasdo-null{
  251. box-sizing: border-box;
  252. position: absolute;
  253. top: 180px;
  254. left: 200px;
  255. width: 260px;
  256. height: 320px;
  257. display: none;
  258. }
  259. .hasdo-null-img{
  260. position: absolute;
  261. top: 50px;
  262. left: 60px;
  263. width: 135px;
  264. height: 135px;
  265. }
  266. .hasdo-null-p{
  267. position: absolute;
  268. top: 180px;
  269. left: 36px;
  270. font-size: 30px;
  271. font-weight: bold;
  272. color: rgb(133, 133, 133);
  273. }
  274. .hasdo-banner{
  275. position: fixed;
  276. bottom: 76px;
  277. right: 21px;
  278. background-color: rgb(0, 94, 41);
  279. width: 45%;
  280. height: 90px;
  281. border-radius: 30px;
  282. z-index: 11;
  283. }
  284. .hasdo-img{
  285. position: absolute;
  286. top: 30px;
  287. left: 235px;
  288. width: 30px;
  289. height: 30px;
  290. }
  291. .hasdo-p{
  292. letter-spacing: 2px;
  293. position: absolute;
  294. font-size: 26px;
  295. font-weight: bold;
  296. top: 25px;
  297. left: 270px;
  298. color: rgb(232, 232, 232);
  299. }
  300. .hasdo-number{
  301. position: absolute;
  302. top: 23px;
  303. right: 28px;
  304. background-color: #fff;
  305. width: 40px;
  306. height: 40px;
  307. text-align: center;
  308. line-height: 40px;
  309. border-radius: 100%;
  310. font-size: 18px;
  311. color: rgb(73, 73, 73);
  312. font-weight: bold;
  313. background-color: rgb(246, 246, 246);
  314. }
  315. /*notodo ul li */
  316. .notodo-ul{
  317. margin-top: 100px;
  318. box-sizing: border-box;
  319. }
  320. .notodo-ul li{
  321. overflow: hidden;
  322. position: relative;
  323. box-sizing: border-box;
  324. border-top-left-radius: none;
  325. border-bottom-left-radius: none;
  326. border-top-right-radius: 25px;
  327. border-bottom-right-radius: 25px;
  328. border-top: 1px solid grey;
  329. border-bottom: 1px solid grey;
  330. border-right: 1px solid grey;
  331. border-left: 10px solid rgb(0, 100, 123);;
  332. list-style: none;
  333. margin-bottom: 12px;
  334. margin-left: 27px;
  335. width: 610px;
  336. background-color: #fff;
  337. /* border: 1px solid grey; */
  338. }
  339. .notodo-check{
  340. cursor: pointer;
  341. float: left;
  342. position: absolute;
  343. left: 15px;
  344. top:50%;
  345. transform: translateY(-50%);
  346. width: 20px;
  347. height: 20px;
  348. background-color: rgb(187, 187, 187);
  349. }
  350. .notodo-main{
  351. padding: 3px;
  352. margin-left: 50px;
  353. float: left;
  354. width: 475px;
  355. line-height: 40px;
  356. padding-left: 10px;
  357. padding-right:10px;
  358. letter-spacing: 1px;
  359. word-break: break-all;
  360. background-color: rgb(239, 239, 239);
  361. }
  362. .right-btn{
  363. cursor: pointer;
  364. position: absolute;
  365. right: 15px;
  366. top: 50%;
  367. transform: translateY(-50%);
  368. box-sizing: border-box;
  369. border: 1px solid rgb(72, 72, 72);
  370. border-radius: 100%;
  371. float: left;
  372. width: 26px;
  373. height: 26px;
  374. text-align: center;
  375. line-height:20px ;
  376. font-size: 20px;
  377. font-weight: bold;
  378. color: rgb(94, 94, 94);
  379. background-color: rgb(255, 210, 98);
  380. }
  381. .right-btn:hover{
  382. background-color: rgb(255, 244, 180);
  383. }
  384. /*hasdo ul li */
  385. .hasdo-ul{
  386. position: absolute;
  387. bottom: 90px;
  388. box-sizing: border-box;
  389. }
  390. .hasdo-ul li{
  391. overflow: hidden;
  392. position: relative;
  393. box-sizing: border-box;
  394. border-top-left-radius: none;
  395. border-bottom-left-radius: none;
  396. border-top-right-radius: 25px;
  397. border-bottom-right-radius: 25px;
  398. border-top: 1px solid grey;
  399. border-bottom: 1px solid grey;
  400. border-right: 1px solid grey;
  401. border-left: 10px solid rgb(57, 80, 85);;
  402. list-style: none;
  403. margin-bottom: 12px;
  404. margin-left: 27px;
  405. width: 610px;
  406. background-color: rgb(205, 205, 205);
  407. /* border: 1px solid grey; */
  408. }
  409. .hasdo-check{
  410. cursor: pointer;
  411. float: left;
  412. position: absolute;
  413. left: 15px;
  414. top:50%;
  415. transform: translateY(-50%);
  416. width: 20px;
  417. height: 20px;
  418. background-color: rgb(205, 205, 205);
  419. }
  420. .hasdo-main{
  421. padding: 3px;
  422. margin-left: 50px;
  423. float: left;
  424. width: 475px;
  425. line-height: 40px;
  426. padding-left: 10px;
  427. padding-right:10px;
  428. letter-spacing: 1px;
  429. word-break: break-all;
  430. /* background-color: rgb(155, 155, 155); */
  431. }
  432. .right-btn{
  433. cursor: pointer;
  434. position: absolute;
  435. right: 15px;
  436. top: 50%;
  437. transform: translateY(-50%);
  438. box-sizing: border-box;
  439. border: 1px solid rgb(72, 72, 72);
  440. border-radius: 100%;
  441. float: left;
  442. width: 26px;
  443. height: 26px;
  444. text-align: center;
  445. line-height:20px ;
  446. font-size: 20px;
  447. font-weight: bold;
  448. color: rgb(94, 94, 94);
  449. background-color: rgb(255, 210, 98);
  450. }
  451. .right-btn:hover{
  452. background-color: rgb(255, 244, 180);
  453. }
  454. /* 底部商标 */
  455. .tdlist-brand{
  456. box-sizing: border-box;
  457. float: left;
  458. background-color: rgb(87, 87, 87);
  459. width: 93.4%;
  460. height: 58.4px;
  461. border-left: 3px solid white;
  462. text-align: center;
  463. line-height:58.4px ;
  464. }
  465. .brand{
  466. font-size: 6px;
  467. color: white;
  468. }
  469. .yn-box{
  470. z-index: 100;
  471. position: absolute;
  472. top: 160px;
  473. left: 500px;
  474. box-sizing: border-box;
  475. width: 500px;
  476. height: 450px;
  477. background-color: rgb(233, 233, 233);
  478. border: 1px solid black;
  479. border-top: 30px solid rgb(105, 105, 105);
  480. display: none;
  481. }
  482. .yn-text{
  483. position: relative;
  484. box-sizing: border-box;
  485. width: 498px;
  486. height: 300px;
  487. background-color: rgb(233, 233, 233);
  488. }
  489. .yn-img{
  490. position: absolute;
  491. top: 85px;
  492. left: 180px;
  493. width: 135px;
  494. height: 135px;
  495. }
  496. .yn-p{
  497. position: absolute;
  498. top: 245px;
  499. left: 153px;
  500. font-size: 25px;
  501. font-weight: bold;
  502. color: rgb(98, 98, 98);
  503. }
  504. .no{
  505. position: absolute;
  506. bottom: 43px;
  507. left: 40px;
  508. width: 180px;
  509. height: 60px;
  510. background-color: #fff;
  511. border: none;
  512. background-color: rgb(209, 0, 0);
  513. color: white;
  514. font-size: 23px;
  515. font-weight: bold;
  516. text-align: center;
  517. line-height: 60px;
  518. border-radius: 12px;
  519. }
  520. .yes{
  521. position: absolute;
  522. bottom: 43px;
  523. right: 40px;
  524. width: 180px;
  525. height: 60px;
  526. background-color: #fff;
  527. border: none;
  528. background-color: rgb(0, 169, 34);
  529. color: white;
  530. font-size: 23px;
  531. font-weight: bold;
  532. text-align: center;
  533. line-height: 60px;
  534. border-radius: 12px;
  535. }
  536. .yes:hover{
  537. background-color: rgb(84, 215, 104);
  538. color: rgb(52, 52, 52);
  539. }
  540. .no:hover{
  541. background-color: rgb(213, 90, 90);
  542. color: rgb(42, 42, 42);
  543. }
  544. .mask{
  545. position: absolute;
  546. top: 0;
  547. left: 0;
  548. z-index: 50;
  549. background-color: rgba(0, 0, 0, 0.324);
  550. width: 100%;
  551. height: 849px;
  552. display: none;
  553. }
  554. .op-box{
  555. display: none;
  556. z-index: 101;
  557. position: absolute;
  558. top: 25px;
  559. left: 120px;
  560. width: 1200px;
  561. height: 800px;
  562. border: 1px solid black;
  563. background-color: #fff;
  564. }
  565. .close{
  566. cursor: pointer;
  567. z-index: 101;
  568. position: absolute;
  569. top: 0;
  570. right: -25px;
  571. width: 20px;
  572. height: 20px;
  573. border: 1px solid black;
  574. background-color: #fff;
  575. text-align: center;
  576. line-height:16px ;
  577. font-size: 20px;
  578. font-weight:600;
  579. }
  580. .op-p{
  581. position: absolute;
  582. top: 0;
  583. left: 0;
  584. width: 800px;
  585. height: 300px;
  586. }
  587. .op-img{
  588. position: absolute;
  589. bottom: 50px;
  590. left: 40px;
  591. width: 700px;
  592. height: 450px;
  593. }

 

 

 

 

网站建设定制开发 软件系统开发定制 定制软件开发 软件开发定制 定制app开发 app开发定制 app开发定制公司 电商商城定制开发 定制小程序开发 定制开发小程序 客户管理系统开发定制 定制网站 定制开发 crm开发定制 开发公司 小程序开发定制 定制软件 收款定制开发 企业网站定制开发 定制化开发 android系统定制开发 定制小程序开发费用 定制设计 专注app软件定制开发 软件开发定制定制 知名网站建设定制 软件定制开发供应商 应用系统定制开发 软件系统定制开发 企业管理系统定制开发 系统定制开发