diypage.wxml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <!-- nova-travel/page/page-view/page-view.wxml -->
  2. <view class="page-view">
  3. <view class="diy-phone">
  4. <view class="phone-body">
  5. <view class="phone-main" style="background: {{background}}">
  6. <!-- 头部nav组件 -->
  7. <nav wx:if="{{titleName}}" type="{{titleType}}" background-color="{{activeColor ? activeColor : '#ffffff'}}" title="{{titleName}}" frontColor="{{activeColor? titleColor : '#000000'}}" />
  8. <block wx:for="{{blocks}}" wx:key="index">
  9. <!-- 搜索框 -->
  10. <diy-searchbar options="{{item}}" wx:if="{{item.type == 'searchbar'}}" />
  11. <!-- 导航列表 -->
  12. <diy-guidelist options="{{item}}" wx:if="{{item.type == 'guidelist'}}" />
  13. <!-- 公告栏 -->
  14. <diy-hotdotbar options="{{item}}" wx:if="{{item.type == 'hotdotbar'}}" />
  15. <!-- 辅助线 -->
  16. <diy-guideline options="{{item}}" wx:if="{{item.type == 'guideline'}}" />
  17. <!-- 轮播组 -->
  18. <diy-imgswiper options="{{item}}" wx:if="{{item.type == 'imgswiper'}}" />
  19. <!-- 图标组 -->
  20. <diy-icongroup options="{{item}}" wx:if="{{item.type == 'icongroup'}}" />
  21. <!-- 单图组 -->
  22. <diy-singleimg options="{{item}}" wx:if="{{item.type == 'singleimg'}}" />
  23. <!-- 多图组 -->
  24. <diy-multipleimg options="{{item}}" wx:if="{{item.type == 'multipleimg'}}" />
  25. <!-- 视频组 -->
  26. <diy-video options="{{item}}" wx:if="{{item.type == 'video'}}"></diy-video>
  27. <!-- 商品组 -->
  28. <diy-goodsgroup options="{{item}}" wx:if="{{item.type == 'goodsgroup'}}" />
  29. <!-- 商品组 -->
  30. <diy-lessongroup options="{{item}}" wx:if="{{item.type == 'lessongroup'}}" />
  31. <!-- 优惠券组 -->
  32. <diy-coupon options="{{item}}" wx:if="{{item.type == 'coupons'}}"></diy-coupon>
  33. <!-- 辅助线 -->
  34. <diy-guideline options="{{item}}" wx:if="{{item.type == 'guideline'}}" />
  35. <!-- 文章组 -->
  36. <diy-content options="{{item}}" wx:if="{{item.type == 'article'}}"></diy-content>
  37. <!-- 拼团 -->
  38. <diy-group options="{{item}}" wx:if="{{item.type == 'spellgroup'}}"></diy-group>
  39. <!-- 我的/个人页面 -->
  40. <diy-my options="{{item}}" active="{{item.active ? item.active : 1}}" wx:if="{{item.type == 'myTemplate'}}" />
  41. <!-- 商品分类 -->
  42. <diy-classify options="{{item}}" bgColor="{{activeColor?activeColor:''}}" wx:if="{{item.type == 'classify'}}" />
  43. <!-- 人物介绍 -->
  44. <diy-intro options="{{item}}" wx:if="{{item.type == 'intro'}}" />
  45. <!-- 门店组 -->
  46. <diy-store options="{{item}}" wx:if="{{item.type == 'store'}}"></diy-store>
  47. <!-- 秒杀 -->
  48. <diy-seckill options="{{item}}" wx:if="{{item.type == 'seckill'}}"></diy-seckill>
  49. <!-- 各人信息 -->
  50. <diy-personal options="{{item}}" wx:if="{{item.type == 'personal'}}"></diy-personal>
  51. <!-- 我的功能 -->
  52. <diy-myfunction options="{{item}}" wx:if="{{item.type == 'myfunction'}}"></diy-myfunction>
  53. <!-- 个人账户 -->
  54. <diy-account options="{{item}}" wx:if="{{item.type == 'account'}}"></diy-account>
  55. <!-- 个人账户 -->
  56. <diy-richtext options="{{item}}" wx:if="{{item.type == 'richtext'}}"></diy-richtext>
  57. <!-- 商家信息 -->
  58. <block wx:if="{{item.type == 'shopStore'}}">
  59. <view wx:for="{{item.data}}" wx:for-item="shopInfo" wx:key="index" style="border-radius:{{item.style.borderRadius}}rpx;background-color: {{item.style.backgroundColor}};margin:{{item.style.margin.top}}rpx {{item.style.margin.right}}rpx {{item.style.margin.bottom}}rpx {{item.style.margin.left}}rpx; padding:{{item.style.padding.top}}rpx {{item.style.padding.right}}rpx {{item.style.padding.bottom}}rpx {{item.style.padding.left}}rpx;" bindtap="toStoreDetail" data-item="{{shopInfo}}">
  60. <view style="display: flex; height: {{item.style.height}}rpx; width:100%;align-items: center; margin-right: 10px; padding: 10px;">
  61. <image wx:if="{{shopInfo.image}}" src="{{shopInfo.image}}" style="width: 100%; height: 200rpx; margin-right: 20rpx; border-radius: 20rpx;" />
  62. <image wx:else src="../../images/shop.jpg" style="width: 200rpx; height: 200rpx; margin-right: 20rpx; border-radius: 20rpx;" />
  63. <view>
  64. <view style="font-size: {{item.style.shopNameStyle.fontSize}}rpx;color:{{item.style.shopNameStyle.color}};">
  65. {{shopInfo.storeName ? shopInfo.storeName : '店铺名称' }}
  66. </view>
  67. <view style="font-size: {{item.style.shopAddressStyle.fontSize}}rpx;color:{{item.style.shopAddressStyle.color}};">
  68. {{shopInfo.address ? shopInfo.address : '店铺地址' }}
  69. </view>
  70. <view style="font-size: {{item.style.shopTypeStyle.fontSize}}rpx;color:{{item.style.shopTypeStyle.color}};">
  71. {{shopInfo.type ? shopInfo.type : '店铺类型' }}
  72. </view>
  73. <view style="font-size: {{item.style.shopPhoneStyle.fontSize}}rpx;color:{{item.style.shopPhoneStyle.color}};">
  74. {{shopInfo.phone ? shopInfo.phone : '联系电话' }}
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </block>
  80. <!-- 课程组 -->
  81. <block wx:if="{{item.type == 'lesson'}}">
  82. <view style="background-color:{{item.style.backgroundColor}};border-radius:{{item.style.borderRadius}}rpx;overflow-y:auto;box-sizing:border-box;">
  83. <!-- 一栏 -->
  84. <view wx:if="{{item.column == 'one'}}" class="fui-goods-group block">
  85. <view class="fui-goods-item-one" wx:for="{{item.data.list}}" wx:for-item="lesson" wx:key="index" style="height:200rpx;border-radius:{{item.style.shopBox.shopBorderRadius}}rpx;box-sizing: border-box; padding: 0;margin-bottom:20rpx;">
  86. <image class="image" src="{{lesson.image ? lesson.image : '/nova-travel/images/goods-1.jpg' }}" mode="aspectFit" style="border-radius:{{item.style.shopBox.shopBorderRadius}}rpx;height:100%;" />
  87. <view class="tag">{{item.style.dataText}}</view>
  88. <view class="detail" style="padding: 10px;box-sizing:border-box;">
  89. <view class="name" style="color: {{item.style.nameColor}}" wx:if="{{item.showName}}">
  90. {{lesson.name}}
  91. </view>
  92. <view style="color: {{item.style.nameColor}}" wx:if="{{item.showName}}">
  93. {{lesson.teacherName}}
  94. </view>
  95. <view style="height:18px;">
  96. <text style="color:{{item.style.originalPriceColor}};" wx:if="{{item.showOriginalPrice}}">
  97. 原价:¥{{ lesson.originalPrice }}
  98. </text>
  99. </view>
  100. <!-- <view class="productprice noheight"></view> -->
  101. <view class="price">
  102. <view class="text" style="color: {{item.style.priceColor}}" wx:if="{{item.showPrice}}">
  103. <text class="minprice">¥{{ lesson.price }}</text>
  104. </view>
  105. <text class="buy" style="width:40px;border-radius:20px;text-align:center;color:{{item.style.buttonTextColor}};background-color:{{item.style.buttonBackground}};">
  106. 购买
  107. </text>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. <!-- 两栏 -->
  113. <view wx:if="{{item.column == 'two'}}" class="fui-goods-group block">
  114. <view class="fui-goods-item" wx:for="{{item.data.list}}" wx:for-item="lesson" wx:key="index" style="height:{{item.style.shopBox.height}}rpx;border-radius:{{item.style.shopBox.shopBorderRadius}}rpx;box-sizing: border-box; padding: 0;">
  115. <image class="image" src="{{lesson.image ? lesson.image : '/nova-travel/images/goods-1.jpg' }}" mode="scaleToFill" style="border-radius:{{item.style.shopBox.shopBorderRadius}}rpx;" />
  116. <view class="tag">{{item.style.dataText}}</view>
  117. <view class="detail">
  118. <view class="name" style="color: {{item.style.nameColor}}" wx:if="{{item.showName}}">
  119. {{lesson.name}}
  120. </view>
  121. <view style="color: {{item.style.nameColor}}" wx:if="{{item.showName}}">
  122. {{lesson.teacherName}}
  123. </view>
  124. <view style="height:18px;">
  125. <text style="color:{{item.style.originalPriceColor}};" wx:if="{{item.showOriginalPrice}}">
  126. 原价:¥{{ lesson.originalPrice }}
  127. </text>
  128. </view>
  129. <!-- <view class="productprice noheight"></view> -->
  130. <view class="price">
  131. <view class="text" style="color: {{item.style.priceColor}}" wx:if="{{item.showPrice}}">
  132. <text class="minprice">¥{{ lesson.price }}</text>
  133. </view>
  134. <text class="buy" style="width:40px;border-radius:20px;text-align:center;color:{{item.style.buttonTextColor}};background-color:{{item.style.buttonBackground}};">
  135. 购买
  136. </text>
  137. </view>
  138. </view>
  139. </view>
  140. </view>
  141. </view>
  142. </block>
  143. </block>
  144. </view>
  145. </view>
  146. </view>
  147. </view>