当前位置:   article > 正文

如何快速制作微信小程序预约功能--在这里只要十分钟_github 微信小程序预约

github 微信小程序预约

0.jpg

1 .概述

我们在学习微信小程序或者做项目时,应该会遇到需要时间预约功能情况,那么这个时间预约功能我们应该怎么编写呢?于是就做了一个类似电商的时间预约功能,觉得有用,就独立出来成了个小插件,今天我们就分享这样的小教程。希望对大家有所帮助。

不多说了,二当家要上图来啦!

image

更多自ji关注下载

2. wxml

<!--pages/orderTime/index.wxml-->
<view class='containt'>
  <scroll-view class="scroll-view_H" scroll-x>
    <view class='list' style='width:{
   { width }}rpx'>
      <view bindtap="select" wx:for="{
   { calendar }}" wx:for-item="item" wx:for-index="index" data-index="{
   { index }}" class='listItem {
   {
   index==currentIndex? "current":""}}' wx:key='' data-date="{
   { item.date}}">
        <text class='name'>{
   { item.week }}</text>
        <text class='date'>{
   { item.date }}</text>
      </view>
    </view>
  </scroll-view>
  <view class='time'>
    <view wx:for="{
   { timeArr }}" wx:for-item="timeItem" wx:for-index="timeIndex" data-Tindex="{
   { timeIndex }}" 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/368206
推荐阅读
相关标签
  

闽ICP备14008679号