海南旅游项目 前端仓库
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.

327 lines
9.3 KiB

5 years ago
  1. <template>
  2. <view>
  3. <view class="flex-direction bg-blue justify-between align-center text-center lf-p-t-30 lf-p-b-30" style="height: 340rpx;">
  4. <view>
  5. <image src="../../static/logo.png" mode="aspectFill" style="width: 200rpx;height: 200rpx;border-radius: 50%;"></image>
  6. </view>
  7. <view class="lf-font-36 align-center text-center text-white lf-m-t-30">
  8. 小小的小可爱
  9. </view>
  10. </view>
  11. <view class="list">
  12. <view class="lf-row-between list-item" hover-class="lf-opacity" @click="$url('/pages/collect/index')">
  13. <view class="lf-row-center">
  14. <image class="icon-img" src="../../static/logo.png"></image>
  15. <text class="lf-text-vertical lf-m-l-20 lf-font-28 lf-color-black">我的订单</text>
  16. </view>
  17. <view>
  18. <u-icon name="arrow-right" color="#777" size="28"></u-icon>
  19. </view>
  20. </view>
  21. <view class="lf-row-between list-item" hover-class="lf-opacity" @click="$url('/pages/contactService/index')">
  22. <view class="lf-row-center">
  23. <image class="icon-img" src="../../static/logo.png"></image>
  24. <text class="lf-text-vertical lf-m-l-16 lf-font-28 lf-color-black">消息中心</text>
  25. </view>
  26. <view>
  27. <u-icon name="arrow-right" color="#777" size="28"></u-icon>
  28. </view>
  29. </view>
  30. <view class="lf-row-between list-item" hover-class="lf-opacity">
  31. <view class="lf-row-center">
  32. <image class="icon-img" src="../../static/logo.png"></image>
  33. <text class="lf-text-vertical lf-m-l-16 lf-font-28 lf-color-black">意见反馈</text>
  34. </view>
  35. <view>
  36. <u-icon name="arrow-right" color="#777" size="28"></u-icon>
  37. </view>
  38. <button class="feedback-btn" open-type="feedback"></button>
  39. </view>
  40. <view class="lf-row-between list-item" hover-class="lf-opacity">
  41. <view class="lf-row-center">
  42. <image class="icon-img" src="../../static/logo.png"></image>
  43. <text class="lf-text-vertical lf-m-l-16 lf-font-28 lf-color-black">我的收藏</text>
  44. </view>
  45. <view>
  46. <u-icon name="arrow-right" color="#777" size="28"></u-icon>
  47. </view>
  48. <button class="feedback-btn" open-type="feedback"></button>
  49. </view>
  50. <view class="lf-row-between list-item" hover-class="lf-opacity">
  51. <view class="lf-row-center">
  52. <image class="icon-img" src="../../static/logo.png"></image>
  53. <text class="lf-text-vertical lf-m-l-16 lf-font-28 lf-color-black">关于我们</text>
  54. </view>
  55. <view>
  56. <u-icon name="arrow-right" color="#777" size="28"></u-icon>
  57. </view>
  58. <button class="feedback-btn" open-type="feedback"></button>
  59. </view>
  60. <view class="lf-row-between list-item" hover-class="lf-opacity">
  61. <view class="lf-row-center">
  62. <image class="icon-img" src="../../static/logo.png"></image>
  63. <text class="lf-text-vertical lf-m-l-16 lf-font-28 lf-color-black">联系客服</text>
  64. </view>
  65. <view>
  66. <u-icon name="arrow-right" color="#777" size="28"></u-icon>
  67. </view>
  68. <button class="feedback-btn" open-type="feedback"></button>
  69. </view>
  70. </view>
  71. <view style="background-color: #F6F6F6;">
  72. <view class="lf-p-t-40 lf-p-b-20 text-center details-title">
  73. <view class="lf-font-32 details-text flex justify-between align-center text-center" style="color: #222;position: relative;left: 270rpx;">
  74. <view class="rhombus lf-m-l-30"></view>
  75. <view>为你推荐</view>
  76. <view class="rhombus lf-m-r-30"></view>
  77. </view>
  78. </view>
  79. <u-waterfall v-model="list" :ref="'uWaterfall-'+ tabIndex">
  80. <template v-slot:left="{leftList}">
  81. <view class="list-warter" v-for="(item, index) in leftList" :key="index">
  82. <u-lazy-load threshold="-450" :image="item.image" :index="index">
  83. <view class="list-label">已售8777</view>
  84. </u-lazy-load>
  85. <view class="lf-p-20">
  86. <view class="list-title">
  87. {{item.title}}
  88. </view>
  89. <view class="list-price">
  90. <text>{{item.price}}</text>
  91. <text class="lf-m-l-20 lf-font-24 lf-color-666 lf-line-through">¥399.00</text>
  92. </view>
  93. </view>
  94. </view>
  95. </template>
  96. <template v-slot:right="{rightList}">
  97. <view class="list-warter" v-for="(item, index) in rightList" :key="index">
  98. <u-lazy-load threshold="-450" :image="item.image" :index="index">
  99. <view class="list-label">已售8777</view>
  100. </u-lazy-load>
  101. <view class="lf-p-20">
  102. <view class="list-title">
  103. {{item.title}}
  104. </view>
  105. <view class="list-price">
  106. <text>{{item.price}}</text>
  107. <text class="lf-m-l-20 lf-font-24 lf-color-666 lf-line-through">¥399.00</text>
  108. </view>
  109. </view>
  110. </view>
  111. </template>
  112. </u-waterfall>
  113. </view>
  114. </view>
  115. </template>
  116. <script>
  117. export default {
  118. data() {
  119. return {
  120. list: [
  121. {
  122. price: 35,
  123. title: '北国风光,千里冰封,万里雪飘',
  124. shop: '李白杜甫白居易旗舰店',
  125. image: 'http://pic.sc.chinaz.com/Files/pic/pic9/202002/zzpic23327_s.jpg',
  126. },
  127. {
  128. price: 75,
  129. title: '望长城内外,惟余莽莽',
  130. shop: '李白杜甫白居易旗舰店',
  131. image: 'http://pic.sc.chinaz.com/Files/pic/pic9/202002/zzpic23325_s.jpg',
  132. },
  133. {
  134. price: 385,
  135. title: '大河上下,顿失滔滔',
  136. shop: '李白杜甫白居易旗舰店',
  137. image: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg',
  138. },
  139. {
  140. price: 784,
  141. title: '欲与天公试比高',
  142. shop: '李白杜甫白居易旗舰店',
  143. image: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/zzpic23369_s.jpg',
  144. },
  145. {
  146. price: 7891,
  147. title: '须晴日,看红装素裹,分外妖娆',
  148. shop: '李白杜甫白居易旗舰店',
  149. image: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2130_s.jpg',
  150. },
  151. {
  152. price: 2341,
  153. shop: '李白杜甫白居易旗舰店',
  154. title: '江山如此多娇,引无数英雄竞折腰',
  155. image: 'http://pic1.sc.chinaz.com/Files/pic/pic9/202002/zzpic23346_s.jpg',
  156. },
  157. {
  158. price: 661,
  159. shop: '李白杜甫白居易旗舰店',
  160. title: '惜秦皇汉武,略输文采',
  161. image: 'http://pic1.sc.chinaz.com/Files/pic/pic9/202002/zzpic23344_s.jpg',
  162. },
  163. {
  164. price: 1654,
  165. title: '唐宗宋祖,稍逊风骚',
  166. shop: '李白杜甫白居易旗舰店',
  167. image: 'http://pic1.sc.chinaz.com/Files/pic/pic9/202002/zzpic23343_s.jpg',
  168. },
  169. {
  170. price: 1678,
  171. title: '一代天骄,成吉思汗',
  172. shop: '李白杜甫白居易旗舰店',
  173. image: 'http://pic1.sc.chinaz.com/Files/pic/pic9/202002/zzpic23343_s.jpg',
  174. },
  175. {
  176. price: 924,
  177. title: '只识弯弓射大雕',
  178. shop: '李白杜甫白居易旗舰店',
  179. image: 'http://pic1.sc.chinaz.com/Files/pic/pic9/202002/zzpic23343_s.jpg',
  180. },
  181. {
  182. price: 8243,
  183. title: '俱往矣,数风流人物,还看今朝',
  184. shop: '李白杜甫白居易旗舰店',
  185. image: 'http://pic1.sc.chinaz.com/Files/pic/pic9/202002/zzpic23343_s.jpg',
  186. },
  187. ]
  188. }
  189. }
  190. }
  191. </script>
  192. <style lang="scss">
  193. .rhombus{
  194. width: 16rpx;
  195. height: 16rpx;
  196. transform: rotateZ(45deg);
  197. background: #222;
  198. }
  199. .details-title {
  200. position: relative;
  201. &::after {
  202. position: absolute;
  203. left: 144rpx;
  204. top: 60rpx;
  205. content: '';
  206. width: 69%;
  207. height: 1rpx;
  208. border-bottom: 1rpx solid rgba(0, 0, 0, 0.08)
  209. }
  210. .details-text {
  211. position: relative;
  212. // display: inline-block;
  213. width: 264rpx;
  214. background-color: #f5f5f9;
  215. z-index: 9;
  216. }
  217. }
  218. .list{
  219. margin-top: 20rpx;
  220. padding: 0 32rpx;
  221. background-color: #FFFFFF;
  222. width: 100%;
  223. height: auto;
  224. }
  225. .list-item{
  226. border-bottom: 1rpx solid #EEEEEE;
  227. height: 110rpx;
  228. box-sizing: border-box;
  229. position: relative;
  230. .icon-img{
  231. width: 50rpx;
  232. height: 50rpx;
  233. }
  234. .feedback-btn{
  235. position: absolute;
  236. width: 100%;
  237. height: 100%;
  238. z-index: 1;
  239. background: transparent;
  240. }
  241. &:last-child{
  242. border-bottom: none;
  243. }
  244. }
  245. //waterfall
  246. .list-warter {
  247. border-radius: 8px;
  248. margin: 10px 5px;
  249. margin-top: 0px;
  250. background-color: #ffffff;
  251. // padding: 8px;
  252. position: relative;
  253. overflow: hidden;
  254. }
  255. .u-close {
  256. position: absolute;
  257. top: 32rpx;
  258. right: 32rpx;
  259. }
  260. .list-image {
  261. width: 100%;
  262. border-radius: 4px;
  263. }
  264. .list-title {
  265. font-size: 28rpx;
  266. font-weight: bold;
  267. color: $u-main-color;
  268. }
  269. .list-label{
  270. position: absolute;
  271. bottom: 0;
  272. right: 0;
  273. background-color: rgba(0,0,0,0.5);
  274. width: 140rpx;
  275. height: 48rpx;
  276. border-radius: 20rpx 0rpx 0rpx 0rpx;
  277. font-size: 22rpx;
  278. color: #FFFFFF;
  279. line-height: 48rpx;
  280. text-align: center;
  281. }
  282. .list-tag {
  283. display: flex;
  284. margin-top: 5px;
  285. }
  286. .list-tag-owner {
  287. background-color: $u-type-error;
  288. color: #FFFFFF;
  289. display: flex;
  290. align-items: center;
  291. padding: 4rpx 14rpx;
  292. border-radius: 50rpx;
  293. font-size: 20rpx;
  294. line-height: 1;
  295. }
  296. .list-tag-text {
  297. border: 1px solid $u-type-primary;
  298. color: $u-type-primary;
  299. margin-left: 10px;
  300. border-radius: 50rpx;
  301. line-height: 1;
  302. padding: 4rpx 14rpx;
  303. display: flex;
  304. align-items: center;
  305. border-radius: 50rpx;
  306. font-size: 20rpx;
  307. }
  308. .list-price {
  309. font-size: 30rpx;
  310. color: $u-type-error;
  311. margin-top: 5px;
  312. }
  313. </style>