index.axml 2.53 KB
<view class="page">
  <view class="app__bgc bgc"></view>
  <view class="app__bg bg"></view>
  <view class="app__content main">
    <view class="top-space"></view>
    <image class="ebg" mode="widthFix" src="/images/index/index-bg-1.png" />
    <view class="content">
      <view class="table">
        <view class="func-wrap">
          <view class="search-wrap">
            <view class="search-icon"></view>
            <input
              onInput="inputEdit"
              onConfirm="onSearchConfirm"
              data-name="queryForm.query"
              value="{{queryForm.query}}"
              class="search-input"
              placeholder="请输入您喜欢的数字"
              type="number"
            />
            <view onTap="onSearch" class="search-btn">
              搜 索
            </view>
          </view>
          <view class="tag-list">
            <view
              a:for="{{ tagList }}"
              onTap="onTagItem"
              data-data="{{item}}"
              data-index="{{index}}"
              class="tag-item {{ tagIndex == index ? 'tag-item-act' : '' }}"
              style="font-size: {{ item.fontSize || 28 }}rpx;"
            >
              {{item.name}}
            </view>
          </view>
        </view>

        <view class="number-wrap">
          <view class="number-list">
            <view
              a:for="{{ numberList }}"
              onTap="onNumberItem"
              data-data="{{item}}"
              data-index="{{index}}"
              class="number-item"
            >
              <text a:for="{{ item.numberDisplayList }}" class="text {{item.highlight ? 'highlight' : ''}}">
                {{item.number}}
              </text>
            </view>
          </view>
        </view>

        <view class="page-btn-wrap">
          <view onTap="onPagePrev" class="page-btn btn-prev">

          </view>
          <view onTap="onPageNext" class="page-btn btn-next">

          </view>
        </view>
      </view>
    </view>
    <image class="ebg" mode="widthFix" src="/images/index/index-bg-2.png" />
    <view a:if="{{ shortCutVisible }}" onTap="toTop" class="bot-btn ani-heart"></view>
  </view>
</view>

<view hidden="{{ !formVisible }}" class="popup">
  <view catchTap="onHideMask" class="popup-mask"></view>
  <view class="dialog">
    <form-comp item="{{curNumberItem}}" onChange="evtcomp"></form-comp>
  </view>
</view>

<view a:if="{{ succVisible }}" class="popup">
  <view catchTap="onHideMask" class="popup-mask"></view>
  <view class="dialog">
    <succ-comp></succ-comp>
  </view>
</view>