demo4.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <template>
  2. <view>
  3. <view class="data">
  4. <view class="address">
  5. <view class="img">
  6. <image src="/static/icon/address.png" mode="widthFix"></image>
  7. </view>
  8. <view class="content">
  9. <text>宁夏冬美小区</text>
  10. <text>银川市兴庆区解放东路477号</text>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="data" >
  15. <view class="info">
  16. <view class="top">
  17. <view class="left">
  18. <u-icon name="hourglass-half-fill" :size="30" top="2" color="rgb(94,94,94)"></u-icon>
  19. <view class="title">订单号:<text>45217845689442452111</text></view>
  20. </view>
  21. <view class="copy">
  22. <text>复制</text>
  23. </view>
  24. </view>
  25. <view class="item">
  26. <view class="content" >
  27. <text >标题:</text>
  28. <text >代拿滑板到二楼</text>
  29. </view>
  30. <view class="content" >
  31. <text >发布时间:</text>
  32. <text >2020-10-27 17:00:22</text>
  33. </view>
  34. <view class="content" >
  35. <text >联系人:</text>
  36. <text >黄明潘</text>
  37. </view>
  38. <view class="content" >
  39. <text >联系微信:</text>
  40. <text >hmp1049127947</text>
  41. </view>
  42. <view class="content" >
  43. <view class="alignCenter">
  44. <text >联系电话:</text>
  45. </view>
  46. <view class="phone">
  47. <text class="alignCenter">19124812874</text>
  48. <image src="http://139.9.185.150/upload/bf61acb4-22fc-4812-9f80-2f59a4cd949f-phone.png" mode="widthFix"></image>
  49. </view>
  50. </view>
  51. <view class="content" >
  52. <text >价格:</text>
  53. <text class="price">¥4.00</text>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="data" >
  59. <view class="account">
  60. <view class="top">
  61. <u-icon name="account" :size="30" top="2" color="rgb(94,94,94)"></u-icon>
  62. <text>会员信息</text>
  63. </view>
  64. <view class="item">
  65. <u-avatar :show-sex ="true" size="110" src="https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg"></u-avatar>
  66. <view class="alignCenter name" >
  67. plsteins
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="data">
  73. <view class="cu-card dynamic no-card " style="margin: 10rpx 0;">
  74. <view class="cu-item shadow">
  75. <!-- 1张图片 -->
  76. <view class=" grid flex-sub col-1" style="height: 300rpx;" v-if="dataDetail.picArray.length==1">
  77. <view class="bg-img only-img" :style="{backgroundImage: 'url(' + dataDetail.picArray[0] + ')'}">
  78. </view>
  79. </view>
  80. <!-- 多张图片 -->
  81. <view class=" grid flex-sub col-4 grid-square" v-else>
  82. <view class="bg-img" :style="{backgroundImage: 'url(' + item1 + ')'}"
  83. v-for="(item1,index1) in dataDetail.picArray" :key="index1">
  84. </view>
  85. </view>
  86. </view>
  87. <view class="need-desc">
  88. <text>需求内容:</text>
  89. <text class="content">
  90. 小熊USB小风扇迷你超静音手持电风扇便携式随身小型电动充电宿舍【全新包邮】原价40闲置30到手+微信请备注
  91. </text>
  92. </view>
  93. </view>
  94. </view>
  95. <u-divider height="80" bg-color="#f1f1f1">没有更多了</u-divider>
  96. </view>
  97. </template>
  98. <script>
  99. export default {
  100. data() {
  101. return {
  102. dataDetail:{
  103. picArray:[
  104. 'https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg',
  105. 'https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg',
  106. 'https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg',
  107. 'https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg'
  108. ]
  109. }
  110. }
  111. },
  112. methods: {
  113. }
  114. }
  115. </script>
  116. <style lang="scss">
  117. .alignCenter{
  118. display: flex;flex-direction: column;justify-content: center;
  119. }
  120. .data {
  121. background-color: #FFFFFF;
  122. width: 700rpx;
  123. margin:20rpx auto;
  124. border-radius: 14rpx;
  125. box-sizing: border-box;
  126. padding: 16rpx;
  127. font-size: 28rpx;
  128. border-bottom: 1rpx solid #b6b6b6;
  129. }
  130. // 地址
  131. .address{
  132. margin: 20rpx auto;
  133. display: flex;
  134. .img{
  135. margin: 20rpx;
  136. display: flex;
  137. flex-direction: column;
  138. justify-content: center;
  139. align-items: center;
  140. image{
  141. width: 42rpx;
  142. }
  143. }
  144. .content{
  145. display: flex;
  146. flex-direction: column;
  147. margin: 10rpx 0;
  148. text{
  149. color: #a1a1a1;
  150. font-size: 28rpx;
  151. }
  152. text:first-child{
  153. margin-bottom: 20rpx;
  154. color: #333;
  155. font-weight: 800;
  156. font-size: 30rpx;
  157. }
  158. }
  159. }
  160. //基本信息
  161. .info{
  162. .top {
  163. display: flex;
  164. justify-content: space-between;
  165. padding: 20rpx 0;
  166. border-bottom: 1rpx solid #e2e2e2;
  167. .left {
  168. font-size: 28rpx;
  169. display: flex;
  170. justify-content: space-between;
  171. .title {
  172. margin: 0 10rpx;
  173. font-weight: bold;
  174. text{
  175. font-weight: 500;
  176. }
  177. }
  178. }
  179. .copy{
  180. padding-right: 20rpx;
  181. color: $base-btn-color;
  182. text-decoration: underline;
  183. }
  184. }
  185. .item {
  186. margin: 30rpx;
  187. display: flex;
  188. flex-direction: column;
  189. .content{
  190. padding: 16rpx 0;
  191. display: flex;
  192. justify-content: space-between;
  193. .price{
  194. color: #e54d42;
  195. font-size: 32rpx;
  196. font-weight: 700;
  197. }
  198. .phone{
  199. display: flex;
  200. text{
  201. margin-right: 10rpx;
  202. }
  203. image{
  204. width: 50rpx;
  205. }
  206. }
  207. }
  208. }
  209. }
  210. //会员信息
  211. .account{
  212. .top{
  213. padding: 20rpx 0;
  214. display: flex;
  215. border-bottom: 1rpx solid #e2e2e2;
  216. font-weight: 800;
  217. text{
  218. padding-left: 10rpx;
  219. }
  220. }
  221. .item{
  222. padding: 20rpx;
  223. display: flex;
  224. .name{
  225. padding-left: 40rpx;
  226. font-size: 32rpx;
  227. }
  228. }
  229. }
  230. .need-desc{
  231. padding-top: 20rpx;
  232. font-weight: 600;
  233. line-height: 48rpx;
  234. .content{
  235. font-weight: 500;
  236. }
  237. }
  238. </style>