美甲小程序
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

54 Zeilen
1.9 KiB

  1. <view class="head-box">
  2. <view class="head-search" bindtap="skipSearch">
  3. <i style="padding: 0 10rpx 0 20rpx">
  4. <image class="search-icon" src="/images/search-icon.png"></image>
  5. </i>
  6. <input disabled class="head-input" placeholder="请输入" placeholder-style="color:#999999" />
  7. </view>
  8. </view>
  9. <view class="body-box">
  10. <!-- 美甲效果 -->
  11. <view class="head-title">美甲效果</view>
  12. <view class="swiper-box">
  13. <swiper class="swiper" current="{{ isItem }}" bindchange="onSwiperItem">
  14. <block wx:for="{{searchData}}" wx:key="index">
  15. <swiper-item>
  16. <view class="imageUrl-box">
  17. <view class="itemTitle">色号:{{item.name}}</view>
  18. <image class="imageUrl" src="{{ item.img }}"></image>
  19. </view>
  20. </swiper-item>
  21. </block>
  22. </swiper>
  23. </view>
  24. <view class="head-title">指甲色</view>
  25. </view>
  26. <!-- 指甲色 -->
  27. <scroll-view class="scroll-view" scroll-x scroll-into-view="{{ 'i' + isItem }}" scroll-with-animation bindscrolltolower="onbolwerRight" bindscrolltoupper="onbolwerLeft">
  28. <block wx:for="{{searchData}}" wx:key="index">
  29. <view class="scroll-view-box" bindtap="setSearchColor" data-index="{{index}}" id="{{ 'i' + index}}">
  30. <image src="{{item.img}}"></image>
  31. <view class="{{ isItem === index ? 'itemColor' : 'itemTitle' }}" >{{item.name}}</view>
  32. </view>
  33. </block>
  34. </scroll-view>
  35. <view class="bottom-box">
  36. <view class="input-box">
  37. <input class="inputItem" type="number" placeholder="请输入要查询的克数" bindinput="onInputGram"/>
  38. <view class="text-g">g</view>
  39. </view>
  40. <view class="button-box" bindtap="skipInquire">
  41. <image src="/images/serch.png" class="serch-n" mode="widthFix"></image>
  42. <text>查询</text>
  43. </view>
  44. </view>
  45. <view hidden="{{ hLoading }}" >
  46. <loading ></loading>
  47. </view>