C端小程序
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.

84 Zeilen
3.3 KiB

  1. <!--pages/index/detail/index.wxml-->
  2. <view>
  3. <swiper class="index-slide" autoplay="true" circular="false">
  4. <block wx:for="{{imglist}}" wx:key="unique">
  5. <swiper-item>
  6. <image src="{{item}}" class="index-slide-image" mode='widthFix'/>
  7. </swiper-item>
  8. </block>
  9. </swiper>
  10. <view class='merchant-detail'>
  11. <!-- 品牌信息 -->
  12. <view class='merchant-brand' style='position:relative;z-index:9'>
  13. <view>
  14. <image src='{{data.merchantImgUrl}}' mode='aspectFill'></image>
  15. </view>
  16. <view>
  17. <text>{{data.merchantName}}</text>
  18. <text>{{data.title}}</text>
  19. </view>
  20. <view class='fenxiang' wx:if="{{data.type!=50&&data.type!=51}}">
  21. <image class="fenxiang" src='{{share01}}' mode="widthFix"></image>
  22. <button class='share user-motto' data-id='{{data.id}}' data-couponId='{{data.couponId}}' data-title='{{data.title}}' id="shareBtn" open-type="share" hover-class="other-button-hover"></button>
  23. </view>
  24. </view>
  25. <!-- 一个商铺 -->
  26. <!-- 多个商铺 -->
  27. <view class='merchant-shop'>
  28. <view>
  29. <view>
  30. <text>商户位置</text>
  31. </view>
  32. <view class='merchants'>
  33. <text wx:for="{{shopVoList}}" wx:key="{{index}}">{{item.buildingName}}{{item.floorName}}--{{item.shopNumber}}</text>
  34. </view>
  35. </view>
  36. </view>
  37. <!-- 联系方式 -->
  38. <view class='merchant-phone'>
  39. <view>
  40. <text>联系商户</text>
  41. </view>
  42. <view>
  43. <view style='display:block;text-align:left;margin-right:20rpx;'>
  44. <text>{{data.merchantLinkPhone}}</text>
  45. </view>
  46. <image bindtap='phone' data-merchantLinkPhone='{{data.merchantLinkPhone}}' class="tel" src="{{teljpgUrl}}" mode="widthFix" />
  47. </view>
  48. </view>
  49. <!-- 商户简介 -->
  50. <view class='merchant-phones'>
  51. <view class="swiper-tab">
  52.     <view class="swiper-tab-item {{currentTab==0?'active-tab':''}}" data-current="0" bindtap="clickTab">优惠信息</view>
  53.     <view class="swiper-tab-item {{currentTab==1?'active-tab':''}}" data-current="1" bindtap="clickTab">商家简介</view>
  54.   </view>
  55.   <swiper current="{{currentTab}}" duration="300" bindchange="swiperTabView">
  56. <!-- 商户对应的活动 -->
  57.     <swiper-item>
  58.       <view class='coupons clearfix'>
  59. <c-coupons wx:if="{{couponList.length!=0}}" wx:for="{{couponList}}" paramAtoB="{{loading}}" wx:key="unique" data="{{item}}" list="{{couponList}}" />
  60. </view>
  61. <view class='dingdan' wx:if="{{list.length==0}}">
  62. <image src="{{actUrl}}" mode="widthFix"></image>
  63. <text>请您敬请期待</text>
  64. <text>我们正在筹备一大波优惠活动</text>
  65. </view>
  66. <view class="loading" wx:if="{{loading}}"><image src="{{loadingUrl}}" mode="widthFix"></image>{{content}}</view>
  67. <view class='loadingtext' wx:if="{{loadingtext}}">{{loadingtext}}</view>
  68.     </swiper-item>
  69.     <swiper-item>
  70.       <view>
  71. <text wx:if="{{data.summary}}">{{data.summary}}</text>
  72. <text wx:else>{{"信息完善中,敬请期待。"}}</text>
  73. </view>
  74.     </swiper-item>
  75.   </swiper>
  76. <view class='merchant-info'>
  77. <view hidden='currentTabsIndex!=0'>
  78. <text wx:if="{{data.summary}}">{{data.summary}}</text>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. </view>