detail.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <template>
  2. <view class="safe-area-inset-bottom">
  3. <my-bar title="发布活动" :transparent="transparent">
  4. <view slot="content" class="publish">
  5. <image src="@/static/del/del1.png" style="height: 380rpx;width: 100%;" ></image>
  6. </view>
  7. </my-bar>
  8. <view class="clock">
  9. <view class="cu-btn round sm" style="background-color: #dcdcdc;">
  10. <u-icon name="clock"></u-icon>
  11. <text class="margin-left-10">设置响应倒计时</text>
  12. </view>
  13. <view class="tips">
  14. <text>*</text>
  15. <text>如未在限定时间内响应,系统默认自动推送给旗下商户。</text>
  16. </view>
  17. </view>
  18. <view class="content">
  19. <text class="title" >消费新势能老品牌向新网红的跃迁之路一新消费品牌创造营广州食饮专场</text>
  20. <view class="data" style="margin-top: 30rpx;">
  21. <u-icon name="clock"></u-icon>
  22. <text class="margin-left-10">06/24 14:00 - 17:30</text>
  23. </view>
  24. <view class="data">
  25. <u-icon name="map"></u-icon>
  26. <text class="margin-left-10">仅限全天河区内报名</text>
  27. </view>
  28. <view class="data flex">
  29. <view class="flex">
  30. <u-icon name="grid"></u-icon>
  31. <text class="margin-left-10">餐饮类</text>
  32. </view>
  33. <view class="flex margin-left-50">
  34. <u-icon name="bag"></u-icon>
  35. <text class="margin-left-10">活动供应价80%</text>
  36. </view>
  37. </view>
  38. <view class="data">
  39. <u-icon name="coupon"></u-icon>
  40. <text class="margin-left-10">联营积分全场通用</text>
  41. </view>
  42. </view>
  43. <view class="intro">
  44. <view class="flex">
  45. <u-icon name="bookmark"></u-icon>
  46. <text class="margin-left-10">活动介绍</text>
  47. </view>
  48. <view class="desc">
  49. 2021年爆发生长了一大批新消费食饮品牌,食品饮料赛道也频频传出新品牌融资、上市的故事,新人群、新渠道、新营销崛起,让新品类、新产品得以迅速切入巿场。
  50. 那么经典品牌如何快速打入新人群、投入新渠道,玩转新营销.Topcamp新消费品牌创造营--广州食饮专场会给到你答案。
  51. </view>
  52. </view>
  53. <view class="attend">
  54. <view class="margin-bottom-20">
  55. <u-icon name="calendar-fill"></u-icon>
  56. <text class="margin-left-10">已参加</text>
  57. </view>
  58. <view class="flex">
  59. <view class="flex " style="width: 90%;">
  60. <view class="data" v-for="(item,index) in 3" :key="index">
  61. <view class="item">
  62. <image src="../../static/del/del2.png" mode=""></image>
  63. <view>
  64. <text>{{name | ellipsis}}</text>
  65. <text>0.5折</text>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="center" style="width: 10%;margin-right: 15rpx;">
  71. <u-icon name="more-circle" size="80" color="#ababab"></u-icon>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="center" style="margin:50rpx 0rpx 20rpx;">
  76. <view class="cu-btn btn-bg-color" style="width: 90%;height: 86rpx;border-radius: 12rpx;">
  77. 已通过
  78. </view>
  79. </view>
  80. </view>
  81. </template>
  82. <script>
  83. import myBar from "@/components/my-bar.vue"
  84. export default {
  85. components: {
  86. myBar
  87. },
  88. onPageScroll(obj) {
  89. this.transparent = obj.scrollTop * 0.006;
  90. },
  91. filters: {
  92. // 名称超出显示省略号
  93. ellipsis(value) {
  94. if (!value) return '';
  95. if (value.length > 4) {
  96. return value.slice(0, 3) + '...'
  97. }
  98. return value
  99. }
  100. },
  101. data() {
  102. return {
  103. transparent:'',
  104. name:'星巴克'
  105. }
  106. },
  107. methods: {
  108. }
  109. }
  110. </script>
  111. <style lang="scss" scoped>
  112. .publish {
  113. overflow: hidden;
  114. border-radius: 10rpx;
  115. height: 380rpx;
  116. position: absolute;
  117. bottom: 20rpx;
  118. left: 0;
  119. right: 0;
  120. width: 92%;
  121. margin: 0 auto -120rpx;
  122. border-radius: 10rpx;
  123. box-shadow:0rpx 16rpx 8rpx -8rpx #a8a8a8;
  124. display: flex;
  125. justify-content: center;
  126. align-items: center;
  127. flex-direction: column;
  128. text {
  129. font-size: 26rpx;
  130. color: #797979;
  131. }
  132. }
  133. .clock {
  134. background-color: #FFFFFF;
  135. height: 240rpx;
  136. padding-bottom: 20rpx;
  137. display: flex;
  138. flex-direction: column;
  139. justify-content: flex-end;
  140. align-items: center;
  141. .tips {
  142. margin-top: 10rpx;
  143. font-size: 24rpx;
  144. color: #FF9447;
  145. }
  146. }
  147. .content{
  148. padding: 15rpx 30rpx;
  149. background-color: #FFFFFF;
  150. .title{
  151. line-height: 50rpx;
  152. font-weight: 800;
  153. font-size: 32rpx;
  154. }
  155. .data{
  156. margin: 20rpx 0;
  157. color: #787878;
  158. }
  159. }
  160. .intro{
  161. margin-top: 15rpx;
  162. padding: 15rpx 30rpx;
  163. background-color: #FFFFFF;
  164. .desc{
  165. color: #9a9a9a;
  166. margin-top: 20rpx;
  167. line-height: 46rpx;
  168. font-size: 28rpx;
  169. }
  170. }
  171. .attend{
  172. margin-top: 15rpx;
  173. padding: 15rpx 0 15rpx 30rpx;
  174. background-color: #FFFFFF;
  175. .data{
  176. margin: 10rpx 20rpx 10rpx 0;
  177. $width:80rpx;
  178. .item{
  179. width: 190rpx;
  180. height: $width;
  181. background-color: #eeeeee;
  182. border-radius: 50rpx;
  183. display: flex;
  184. image{
  185. width: $width;
  186. height: $width;
  187. }
  188. view{
  189. padding-left: 10rpx;
  190. display: flex;
  191. flex-direction: column;
  192. justify-content: center;
  193. font-size: 22rpx;
  194. text:first-child{
  195. font-weight: 800;
  196. margin-bottom: 4rpx;
  197. }
  198. }
  199. }
  200. }
  201. }
  202. </style>