兼兼街租房小程序
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.

370 lines
7.2 KiB

  1. <template>
  2. <view class="container">
  3. <view class="ant-banner-box ">
  4. <image class="ant-banner" mode="aspectFill" src=""/>
  5. <view class="ant-banner-card ">
  6. <image class="ant-banner-header" mode="aspectFill" src="@/static/image/logo.jpg"/>
  7. <view class="ant-banner-panl">
  8. <view class="ant-banner-name">江华便民百晓生</view>
  9. <view class="ant-banner-tag">成长值857</view>
  10. </view>
  11. </view>
  12. <view class="ant-card">
  13. <view class="ant-art-font">SVIP</view>
  14. <view class="ant-art-span">开团 VIP 会员享受超多便捷服务</view>
  15. <view class="ant-art-more">查看更多</view>
  16. </view>
  17. </view>
  18. <view class="ant-home-content">
  19. <view class="ant-menu-card">
  20. <view class="ant-flex-line">
  21. <view class="ant-icon-menu">
  22. <view class="ant-icon-menu-box">
  23. <view class="ant-icon">
  24. <image src="@/static/image/logo.jpg"></image>
  25. </view>
  26. <view class="ant-text">粉丝</view>
  27. </view>
  28. </view>
  29. <view class="ant-icon-menu">
  30. <view class="ant-icon-menu-box">
  31. <view class="ant-icon">
  32. <image src="@/static/image/logo.jpg"></image>
  33. </view>
  34. <view class="ant-text">邀请</view>
  35. </view>
  36. </view>
  37. <view class="ant-icon-menu">
  38. <view class="ant-icon-menu-box">
  39. <view class="ant-icon">
  40. <image src="@/static/image/logo.jpg"></image>
  41. </view>
  42. <view class="ant-text">订阅</view>
  43. </view>
  44. </view>
  45. <view class="ant-icon-menu">
  46. <view class="ant-icon-menu-box">
  47. <view class="ant-icon">
  48. <image src="@/static/image/logo.jpg"></image>
  49. </view>
  50. <view class="ant-text">客服</view>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="ant-pand-item-box">
  56. <view class="ant-flex-line">
  57. <view class="ant-icon-image">
  58. <image src="@/static/image/logo.jpg"></image>
  59. </view>
  60. <view class="ant-pand-item">
  61. 我的发布
  62. </view>
  63. </view>
  64. <!-- <view class="ant-flex-line">
  65. <view class="ant-icon-image">
  66. <image src="@/static/image/logo.jpg"></image>
  67. </view>
  68. <view class="ant-pand-item">
  69. 实名认证
  70. </view>
  71. </view> -->
  72. <view class="ant-flex-line">
  73. <view class="ant-icon-image">
  74. <image src="@/static/image/logo.jpg"></image>
  75. </view>
  76. <view class="ant-pand-item">
  77. 联系我们
  78. </view>
  79. </view>
  80. </view>
  81. <view class="content-end">
  82. <view class="line"/>
  83. <view class="center">瀚海黎明信技术支持</view>
  84. </view>
  85. </view>
  86. </view>
  87. </template>
  88. <script>
  89. export default{
  90. data(){
  91. return{
  92. image:"@/static/image/logo.jpg"
  93. }
  94. },
  95. onLoad() {
  96. },
  97. // 隐藏微信h5的标题栏
  98. onReady() {
  99. },
  100. methods:{
  101. }
  102. }
  103. </script>
  104. <style lang="scss">
  105. .ant-menu-card{
  106. top: -40rpx;
  107. z-index: 1;
  108. margin: 0 24rpx;
  109. width: calc(100vw - 96rpx);
  110. border-radius: 16rpx;
  111. min-height: 100rpx;
  112. padding: 24rpx;
  113. .ant-icon-menu{
  114. width: 150rpx;
  115. flex: 1;
  116. .ant-icon-menu-box{
  117. width: 100rpx;
  118. height: 100rpx;
  119. padding: 20rpx;
  120. border-radius: 20rpx;
  121. margin: 10rpx auto;
  122. background: linear-gradient(180deg, #f7f7fc -10%, #ffffff);
  123. box-shadow: 8rpx 8rpx 20rpx rgba(134, 136, 136, 0.2);
  124. .ant-icon{
  125. width: 60rpx;
  126. height: 60rpx;
  127. margin: 8rpx auto;
  128. border-radius: 12rpx;
  129. // border: 1rpx dashed #ccc;
  130. image{
  131. width: 60rpx;
  132. height: 60rpx;
  133. border-radius: 12rpx;
  134. }
  135. }
  136. .ant-text{
  137. width: 100%;
  138. font-size: 24rpx;
  139. color: #222;
  140. font-weight: bolder;
  141. line-height: 42rpx;
  142. text-align: center;
  143. }
  144. }
  145. }
  146. }
  147. .ant-banner-box{
  148. position: fixed;
  149. top: 0;
  150. left: 0;
  151. .ant-banner{
  152. width: 100vw;
  153. height: 480rpx;
  154. background: radial-gradient(circle farthest-side at top left,
  155. rgb(65,117,255) 0, rgb(92,221,224) 20%,
  156. rgb(65,117,255) 60%, rgb(61,221,209) 100%)
  157. }
  158. .ant-banner-card{
  159. position: fixed;
  160. top: 140rpx;
  161. left: 42rpx;
  162. display: flex;
  163. .ant-banner-header{
  164. width: 120rpx;
  165. height: 120rpx;
  166. border-radius: 50%;
  167. border: 1rpx solid #FFF;
  168. }
  169. .ant-banner-panl{
  170. padding: 10rpx 30rpx;
  171. .ant-banner-name{
  172. font-weight: bolder;
  173. color: #FFF;
  174. font-size: 34rpx;
  175. margin-bottom: 20rpx;
  176. }
  177. .ant-banner-tag{
  178. background-color: rgba(255, 255, 255, .4);
  179. width: 120rpx;
  180. height: 30rpx;
  181. line-height: 30rpx;
  182. border-radius: 40rpx;
  183. color: #FFF;
  184. font-size: 22rpx;
  185. padding: 5rpx 20rpx;
  186. }
  187. }
  188. }
  189. .ant-card{
  190. padding: 24rpx;
  191. width: calc(100vw - 72rpx - 48rpx);
  192. height: 160rpx;
  193. background: linear-gradient(155deg,
  194. rgb(22,24,184), rgb(77, 78, 255), rgb(26,83,204));
  195. border-top-left-radius: 42rpx;
  196. border-top-right-radius: 42rpx;
  197. position: absolute;
  198. bottom: -20rpx;
  199. left: 36rpx;
  200. }
  201. .ant-art-font{
  202. font-size: 48rpx;
  203. font-weight: bolder;
  204. padding: 25rpx 20rpx 0;
  205. }
  206. .ant-art-span{
  207. font-size: 24rpx;
  208. padding: 10rpx 20rpx 10rpx;
  209. }
  210. .ant-art-more{
  211. font-size: 24rpx;
  212. padding: 10rpx 20rpx 10rpx;
  213. position: absolute;
  214. top: 50rpx;
  215. right: 40rpx;
  216. }
  217. .ant-art-more::after{
  218. content: "";
  219. position: absolute;
  220. top: 17.5rpx;
  221. right: 6rpx;
  222. width: 10rpx;
  223. height: 10rpx;
  224. border-bottom: 1rpx solid #FFF;
  225. border-right: 1rpx solid #FFF;
  226. transform: rotate(-45deg);
  227. }
  228. }
  229. .ant-home-content{
  230. width: 100vw;
  231. min-height: calc(100vh - 460rpx);
  232. background: linear-gradient(0deg, rgb(255,255,255), rgb(224,224,250), rgb(249, 249, 252));
  233. position: absolute;
  234. top: 460rpx;
  235. margin-bottom: 100rpx;
  236. .ant-pand-item-box{
  237. width: calc(100vw - 186rpx);
  238. min-height: 400rpx;
  239. background: #fff;
  240. border-radius: 18rpx;
  241. margin: 10rpx auto;
  242. padding: 36rpx;
  243. color: #000;
  244. font-weight: bolder;
  245. .ant-flex-line{
  246. height: 120rpx;
  247. line-height: 120rpx;
  248. border-bottom: 1rpx solid #eee;
  249. position: relative;
  250. .ant-icon-image{
  251. width: 80rpx;
  252. height: 80rpx;
  253. border-radius: 12rpx;
  254. // border: 1rpx dashed #ccc;
  255. margin-right: 24rpx;
  256. image{
  257. width: 80rpx;
  258. height: 80rpx;
  259. border-radius: 12rpx;
  260. }
  261. }
  262. }
  263. .ant-flex-line:last-of-type{
  264. border-bottom: 0 !important;
  265. }
  266. .ant-flex-line::after{
  267. content: "";
  268. position: absolute;
  269. top: 62rpx;
  270. right: 15rpx;
  271. width: 12rpx;
  272. height: 12rpx;
  273. border-bottom: 2rpx solid;
  274. border-right: 2rpx solid;
  275. transform: rotate(-45deg);
  276. }
  277. }
  278. }
  279. .ant-home-content::after{
  280. content: " ";
  281. position: absolute;
  282. top: -1rpx;
  283. left: calc(50vw - 25rpx);
  284. width: 50rpx;
  285. height: 25rpx;
  286. background-color: #454ff7;
  287. clip-path: polygon(0% 0%, 50% 100%, 100% 0%);
  288. -webkit-clip-path: polygon(0% 0%, 50% 100%, 100% 0%);
  289. }
  290. </style>
  291. <script>
  292. export default {
  293. data() {
  294. return {
  295. banner: {url:''},
  296. information: [],
  297. id: ''
  298. }
  299. },
  300. onReachBottom() {
  301. console.log("reach bottom")
  302. },
  303. methods: {
  304. toUri(uri) {
  305. uni.navigateTo({url: uri})
  306. },
  307. getImageUrl(uri){
  308. return baseUrl + "/" + uri;
  309. },
  310. getDayString(str){
  311. return str.substr(0, 16)
  312. },
  313. }
  314. }
  315. </script>