当前位置:   article > 正文

菜谱微信小程序源码,包含后端业务逻辑_菜谱小程序源码

菜谱小程序源码

 每日分享两个小程序源码

下载地址:无极低码:wheart.cn

 

 

 

 

 首页代码,更多代码请搜索无极低码进行下载

  1. //index.js
  2. //获取应用实例
  3. var app = getApp()
  4. var arr_name = ["美容", "减肥", "保健养生", "人群", "时节", "餐时", "器官", "调养",
  5. "肠胃消化", "孕产哺乳", "经期", "女性疾病", "男性", "呼吸道", "血管",
  6. "心脏", "肝胆脾胰", "神经系统", "口腔", "肌肉骨骼", "其他"]
  7. var arr_link = [1, 10, 15, 52, 62, 68, 75, 82, 98, 112, 147, 161, 218, 166, 182,
  8. 188, 192, 197, 202, 205, 212, 227, 132]
  9. var file = "../../pages/list/list"
  10. Page({
  11. data: {
  12. items: [{
  13. id: "1",
  14. src: "../../res/img/meirong.png",
  15. text: arr_name[0]
  16. }, {
  17. id: "10",
  18. src: "../../res/img/jianfei.png",
  19. text: arr_name[1]
  20. }, {
  21. id: "15",
  22. src: "../../res/img/jiankangyangsheng.png",
  23. text: arr_name[2]
  24. }, {
  25. id: "52",
  26. src: "../../res/img/renqun.png",
  27. text: arr_name[3]
  28. }, {
  29. id: "62",
  30. src: "../../res/img/shijie.png",
  31. text: arr_name[4]
  32. }, {
  33. id: "68",
  34. src: "../../res/img/canshi.png",
  35. text: arr_name[5]
  36. }, {
  37. id: "75",
  38. src: "../../res/img/qiguan.png",
  39. text: arr_name[6]
  40. }, {
  41. id: "82",
  42. src: "../../res/img/tiaoyang.png",
  43. text: arr_name[7]
  44. }, {
  45. id: "98",
  46. src: "../../res/img/chagnweixiaohua.png",
  47. text: arr_name[8]
  48. }, {
  49. id: "112",
  50. src: "../../res/img/yunchanpuru.png",
  51. text: arr_name[9]
  52. }, {
  53. id: "147",
  54. src: "../../res/img/jingqi.png",
  55. text: arr_name[10]
  56. }, {
  57. id: "161",
  58. src: "../../res/img/nvxingjibing.png",
  59. text: arr_name[11]
  60. }, {
  61. id: "218",
  62. src: "../../res/img/nanxing.png",
  63. text: arr_name[12]
  64. }, {
  65. id: "166",
  66. src: "../../res/img/huxidao.png",
  67. text: arr_name[13]
  68. }, {
  69. id: "182",
  70. src: "../../res/img/xueguan.png",
  71. text: arr_name[14]
  72. }, {
  73. id: "188",
  74. src: "../../res/img/xinzang.png",
  75. text: arr_name[15]
  76. }, {
  77. id: "192",
  78. src: "../../res/img/gandanpiy.png",
  79. text: arr_name[16]
  80. }, {
  81. id: "197",
  82. src: "../../res/img/shenjingxitong.png",
  83. text: arr_name[17]
  84. }, {
  85. id: "202",
  86. src: "../../res/img/kouqiang.png",
  87. text: arr_name[18]
  88. }, {
  89. id: "205",
  90. src: "../../res/img/jirouguge.png",
  91. text: arr_name[19]
  92. }, {
  93. id: "212",
  94. src: "../../res/img/qita.png",
  95. text: arr_name[20]
  96. }],
  97. url:file,
  98. },
  99. })
  1. <!--index.wxml-->
  2. <view class="row">
  3. <navigator wx:for="{{items}}" url="{{url}}?listId={{item.id}}&listName={{item.text}}">
  4. <view class="item_size">
  5. <image class="img" src="{{item.src}}"></image>
  6. <text class="text">{{item.text}}</text>
  7. </view>
  8. </navigator>
  9. </view>

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/341340
推荐阅读
相关标签
  

闽ICP备14008679号