推广小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

291 lines
6.4 KiB

2 months ago
2 months ago
2 months ago
  1. <template>
  2. <view>
  3. <view class="head-box"></view>
  4. <uv-navbar autoBack title="旅行详情" leftIconColor="#fff" :bgColor="bgColor" height="100rpx" :titleStyle="{color:'#fff'}"></uv-navbar>
  5. <view class="content">
  6. <view class="content-head">
  7. <image class="image-box" src="https://cdn.uviewui.com/uview/swiper/swiper3.png" mode=""></image>
  8. <view class="msg-box">
  9. <view class="msg-box-title">泰酷辣-清迈治愈之旅</view>
  10. <view class="msg-box-time">开始时间2024.12.28 10:00</view>
  11. <view class="lingdui-box">
  12. <image class="use-img" src="@/static/image/center/3.png" mode=""></image>
  13. <view class="lingdui-msg">
  14. <view class="lingdui-msg-name">
  15. <view>VTrip微程</view>
  16. <view class="name-tip">领队</view>
  17. </view>
  18. <view>
  19. <uv-rate :count="count" v-model="value" size="23" activeColor="#FFA200"></uv-rate>
  20. </view>
  21. </view>
  22. <view class="add-wx">添加微信</view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="lv-miaoshu">
  27. <view class="title-box">旅行描述</view>
  28. <view class="value-box">
  29. <view class="tabs-box">
  30. <uv-tabs :list="list" @click="click" lineColor="#FE5E5E" :activeStyle="{color:'#FE5E5E',fontSize:'29rpx',fontWeight: 'bold'}" :inactiveStyle="{color:'#D6D6D6',fontSize:'29rpx',fontWeight: 'bold'}"></uv-tabs>
  31. </view>
  32. <view class="lv-msg-box">
  33. 当金黄的落叶轻柔地铺满了小城的每个角落我们知道最温柔的季节已悄然而至在这个收获的季节里我们诚挚邀请您加入我们的秋日私旅
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="bottom-box">
  39. <view class="price-box">
  40. <view class="peice-val"><text></text>3000</view>
  41. <view>报名费用</view>
  42. </view>
  43. <view class="caozuo-box">
  44. <view class="caozuo-item border-r">
  45. <image src="@/static/image/home/shoucang-icon.png" mode=""></image>
  46. <view>收藏</view>
  47. </view>
  48. <view class="caozuo-item">
  49. <image src="@/static/image/home/zhuanfa-icon.png" mode=""></image>
  50. <view>转发</view>
  51. </view>
  52. </view>
  53. <view class="btn-box">立即报名</view>
  54. </view>
  55. </view>
  56. </template>
  57. <script>
  58. export default{
  59. data() {
  60. return {
  61. bgColor:'transparent',
  62. count:5,
  63. value:3,
  64. list:[
  65. {
  66. name:'介绍'
  67. },
  68. {
  69. name:'路线'
  70. },
  71. {
  72. name:'费用'
  73. },
  74. {
  75. name:'须知'
  76. },
  77. {
  78. name:'代理'
  79. },
  80. ]
  81. }
  82. },
  83. onPageScroll(e) {
  84. if(e.scrollTop > 50) {
  85. this.bgColor = '#49070c'
  86. }else{
  87. this.bgColor = 'transparent'
  88. }
  89. },
  90. }
  91. </script>
  92. <style lang="scss">
  93. page {
  94. background-color: #060504;
  95. }
  96. </style>
  97. <style lang="scss" scoped>
  98. .head-box {
  99. background: url('@/static/image/nav-bg.png') no-repeat;
  100. background-size: 100% 100%;
  101. width: 100%;
  102. height: 534rpx;
  103. position: absolute;
  104. z-index: -1;
  105. }
  106. .content {
  107. padding: 0 30rpx 170rpx;
  108. padding-top: calc(var(--status-bar-height) + 110rpx);
  109. .content-head {
  110. position: relative;
  111. .image-box {
  112. width: 100%;
  113. height: 546rpx;
  114. }
  115. .msg-box {
  116. background: #1B1713;
  117. border-radius: 27rpx 27rpx 67rpx 67rpx;
  118. position: absolute;
  119. top: 429rpx;
  120. left: 0;
  121. right: 0;
  122. padding-top: 38rpx;
  123. .msg-box-title {
  124. font-weight: 500;
  125. font-size: 32rpx;
  126. color: #FFFFFF;
  127. margin-bottom: 40rpx;
  128. padding-left: 38rpx;
  129. }
  130. .msg-box-time {
  131. font-weight: 400;
  132. font-size: 27rpx;
  133. color: #999999;
  134. padding-left: 38rpx;
  135. }
  136. .lingdui-box {
  137. margin-top: 43rpx;
  138. height: 130rpx;
  139. background: #26201A;
  140. border-radius: 60rpx;
  141. display: flex;
  142. align-items: center;
  143. padding: 0 40rpx;
  144. .use-img {
  145. width: 86rpx;
  146. height: 86rpx;
  147. }
  148. .lingdui-msg {
  149. flex: 1;
  150. margin-left: 24rpx;
  151. .lingdui-msg-name {
  152. font-weight: 500;
  153. font-size: 29rpx;
  154. color: #E6E6E6;
  155. display: flex;
  156. align-items: center;
  157. margin-bottom: 11rpx;
  158. .name-tip {
  159. padding: 0 20rpx;
  160. height: 27rpx;
  161. background: #3C2D17;
  162. border-radius: 0rpx 12rpx 12rpx 12rpx;
  163. font-weight: 500;
  164. font-size: 19rpx;
  165. color: #FFA200;
  166. line-height: 27rpx;
  167. margin-left: 14rpx;
  168. }
  169. }
  170. }
  171. .add-wx {
  172. width: 172rpx;
  173. height: 51rpx;
  174. background: #3C2D17;
  175. border-radius: 23rpx 23rpx 23rpx 23rpx;
  176. text-align: center;
  177. line-height: 51rpx;
  178. font-weight: 400;
  179. font-size: 25rpx;
  180. color: #FF8A00;
  181. }
  182. }
  183. }
  184. }
  185. .title-box {
  186. font-weight: 500;
  187. font-size: 33rpx;
  188. color: #E6E6E6;
  189. text-align: center;
  190. position: relative;
  191. &::after {
  192. content: "";
  193. position: absolute;
  194. top: 50%;
  195. left: 0;
  196. transform: translate(0,-50%);
  197. width: 100%;
  198. height: 12rpx;
  199. background: url(@/static/image/home/title-line.png) no-repeat;
  200. background-size: 100% 100%;
  201. }
  202. }
  203. .lv-miaoshu {
  204. margin-top: 250rpx;
  205. .value-box {
  206. background: #1B1713;
  207. border-radius: 27rpx;
  208. margin-top: 35rpx;
  209. .tabs-box {
  210. border-bottom: 1px solid #2D241B;
  211. }
  212. .lv-msg-box {
  213. padding: 20rpx 40rpx;
  214. font-weight: 400;
  215. font-size: 27rpx;
  216. color: #E6E6E6;
  217. line-height: 41rpx;
  218. }
  219. }
  220. }
  221. }
  222. .bottom-box {
  223. position: fixed;
  224. bottom: 0;
  225. left: 0;
  226. right: 0;
  227. height: 150rpx;
  228. background-color: #1B1713;
  229. display: flex;
  230. align-items: center;
  231. padding: 0 40rpx;
  232. .price-box {
  233. font-weight: 400;
  234. font-size: 25rpx;
  235. color: #999999;
  236. flex: 1;
  237. .peice-val {
  238. font-weight: 500;
  239. font-size: 40rpx;
  240. color: #FF3535;
  241. margin-bottom: 15rpx;
  242. text {
  243. font-size: 26rpx;
  244. }
  245. }
  246. }
  247. .caozuo-box {
  248. display: flex;
  249. align-items: center;
  250. .caozuo-item {
  251. font-weight: 400;
  252. font-size: 20rpx;
  253. color: #999999;
  254. padding: 0 35rpx;
  255. text-align: center;
  256. image {
  257. width: 48rpx;
  258. height: 48rpx;
  259. margin-bottom: 10rpx;
  260. }
  261. }
  262. .border-r {
  263. position: relative;
  264. // border-right: 1px solid #4A3E32;
  265. &::after {
  266. content: "";
  267. width: 2rpx;
  268. height: 47rpx;
  269. position: absolute;
  270. right: 0;
  271. top: 50%;
  272. transform: translate(0,-50%);
  273. background-color: #4A3E32;
  274. }
  275. }
  276. }
  277. .btn-box {
  278. width: 252rpx;
  279. height: 74rpx;
  280. font-weight: 500;
  281. font-size: 32rpx;
  282. color: #FFFFFF;
  283. text-align: center;
  284. line-height: 74rpx;
  285. background: url(@/static/image/home/hdqd-btn.png) no-repeat;
  286. background-size: 100% 100%;
  287. }
  288. }
  289. </style>