detail.vue 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. <template>
  2. <view>
  3. <zj-page-layout
  4. :hasFooter="true"
  5. :isScroll="true"
  6. :refresherTriggered="refresherTriggered"
  7. @refresherrefresh="refresherrefresh">
  8. <view class="top-container">
  9. <view class="user">
  10. <image src="@/static/common/logo.png"></image>
  11. <view class="info">
  12. <view class="name">张三</view>
  13. <view class="phone">联系电话:138****2233</view>
  14. </view>
  15. </view>
  16. <view class="btns">
  17. <u-button type="warning" text="分享好友" class="share"></u-button>
  18. <u-button type="error" text="立即联系" class="contact"></u-button>
  19. <u-button type="primary" text="立即购买" class="buy" @tap="$navPage(`/pages/goods/order`)"></u-button>
  20. </view>
  21. </view>
  22. <view class="info-container">
  23. <view class="title">
  24. <view class="tit">商品名称</view>
  25. <view class="price">¥1234.00</view>
  26. </view>
  27. <view class="des">商品描述商品描述商品描述商品描述商品描述</view>
  28. <view class="tags">
  29. <view class="it">格力</view>
  30. <view class="it">7200w</view>
  31. <view class="it">一级能效</view>
  32. </view>
  33. <view class="info">
  34. <view class="left">
  35. <text>23小时前发布</text>
  36. <text>20人浏览</text>
  37. </view>
  38. <view class="right">库存10</view>
  39. </view>
  40. <view class="bottom">
  41. <view class="left-location">天河区棠下</view>
  42. <view class="right-stats">
  43. <view class="it">
  44. <text class="iconfont icon-dianzan"></text>
  45. <text class="text">点赞</text>
  46. </view>
  47. <view class="it">
  48. <text class="iconfont icon-pinglun"></text>
  49. <text class="text">收藏</text>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="remark-container">
  55. <view class="title">
  56. <view class="tit">全部留言</view>
  57. <view class="right">内容违规,我要举报</view>
  58. </view>
  59. <view class="item">
  60. <view class="top">
  61. <image src="@/static/common/logo.png"></image>
  62. <view class="user">
  63. <view class="name">李海</view>
  64. <view class="time">2023-11-12 20:22:33</view>
  65. </view>
  66. </view>
  67. <view class="content">
  68. <view class="left">商品很nice</view>
  69. <view class="right"><text class="iconfont icon-bianji"></text><text>回复</text></view>
  70. </view>
  71. <view class="reply">主人回复:好的,我知道了</view>
  72. </view>
  73. </view>
  74. <template slot="footer">
  75. <view class="bottom-container">
  76. <u-button text="留言" type="primary" shape="circle" @click="isShowRemarkDialog = true"></u-button>
  77. <u-button text="操作" type="primary" shape="circle" @click="isShowActionDialog = true"></u-button>
  78. </view>
  79. </template>
  80. </zj-page-layout>
  81. <zj-dialog-remark
  82. ref="remarkDialog"
  83. :isShow="isShowRemarkDialog"
  84. @close="isShowRemarkDialog = false">
  85. </zj-dialog-remark>
  86. <u-action-sheet
  87. :actions="actionList"
  88. :title="'操作'"
  89. :show="isShowActionDialog"
  90. @close="isShowActionDialog = false"
  91. @select="selectAction">
  92. </u-action-sheet>
  93. </view>
  94. </template>
  95. <script>
  96. import zjDialogRemark from '@/components/zj-dialog/zj-dialog-remark.vue';
  97. export default {
  98. components: {
  99. zjDialogRemark
  100. },
  101. data() {
  102. return {
  103. refresherTriggered: false,
  104. isShowRemarkDialog: false,
  105. actionList: [
  106. {name: '已卖出'},
  107. {name: '下架'},
  108. {name: '重新上架'},
  109. {name: '编辑'},
  110. ],
  111. isShowActionDialog: false,
  112. }
  113. },
  114. methods: {
  115. selectAction() {
  116. }
  117. }
  118. }
  119. </script>
  120. <style lang="scss" scoped>
  121. .top-container {
  122. background: #ffffff;
  123. margin-top: 30rpx;
  124. padding: 30rpx;
  125. .user {
  126. display: flex;
  127. align-items: center;
  128. image {
  129. width: 88rpx;
  130. height: 88rpx;
  131. border-radius: 50%;
  132. }
  133. .info {
  134. margin-left: 12rpx;
  135. .name {
  136. font-size: 28rpx;
  137. }
  138. .phone {
  139. font-size: 28rpx;
  140. margin-top: 12rpx;
  141. }
  142. }
  143. }
  144. .btns {
  145. display: flex;
  146. justify-content: space-between;
  147. margin-top: 30rpx;
  148. ::v-deep .u-button {
  149. width: 188rpx;
  150. height: 68rpx;
  151. line-height: 68rpx;
  152. font-size: 28rpx;
  153. color: #ffffff;
  154. margin: 0;
  155. }
  156. .share {
  157. }
  158. }
  159. }
  160. .info-container {
  161. background: #ffffff;
  162. padding: 30rpx;
  163. margin-top: 30rpx;
  164. .title {
  165. display: flex;
  166. justify-content: space-between;
  167. .tit {
  168. font-size: 32rpx;
  169. }
  170. .price {
  171. font-size: 28rpx;
  172. color: $assist-color;
  173. }
  174. }
  175. .des {
  176. margin-top: 12rpx;
  177. font-size: 28rpx;
  178. color: $reg-font;
  179. }
  180. .tags {
  181. margin-top: 12rpx;
  182. display: flex;
  183. .it {
  184. background: #f1f1f1;
  185. font-size: 20rpx;
  186. margin-right: 20rpx;
  187. padding: 8rpx 12rpx;
  188. border-radius: 8rpx;
  189. }
  190. }
  191. .info {
  192. display: flex;
  193. justify-content: space-between;
  194. margin-top: 20rpx;
  195. .left {
  196. text {
  197. font-size: 24rpx;
  198. color: $sec-font;
  199. margin-right: 20rpx;
  200. }
  201. }
  202. .right {
  203. font-size: 24rpx;
  204. color: $sec-font;
  205. }
  206. }
  207. .bottom {
  208. border-top: 1px solid #eaeaea;
  209. margin-top: 20rpx;
  210. padding-top: 20rpx;
  211. display: flex;
  212. align-items: center;
  213. justify-content: space-between;
  214. .left-location {
  215. font-size: 24rpx;
  216. color: $sec-font;
  217. }
  218. .right-stats {
  219. display: flex;
  220. align-items: center;
  221. .it {
  222. display: flex;
  223. align-items: center;
  224. margin-left: 16rpx;
  225. .iconfont {
  226. font-size: 28rpx;
  227. color: $sec-font;
  228. }
  229. .text {
  230. font-size: 24rpx;
  231. margin-left: 4rpx;
  232. color: $sec-font;
  233. }
  234. }
  235. }
  236. }
  237. }
  238. .remark-container {
  239. background: #ffffff;
  240. margin-top: 30rpx;
  241. padding: 30rpx;
  242. .title {
  243. display: flex;
  244. align-items: center;
  245. justify-content: space-between;
  246. .tit {
  247. font-weight: 500;
  248. }
  249. .right {
  250. font-size: 24rpx;
  251. color: $sec-font;
  252. }
  253. }
  254. .item {
  255. padding: 30rpx 0;
  256. border-bottom: 1px solid #eaeaea;
  257. &:last-child {
  258. border: none;
  259. }
  260. .top {
  261. display: flex;
  262. image {
  263. width: 88rpx;
  264. height: 88rpx;
  265. border-radius: 50%;
  266. flex-shrink: 0;
  267. }
  268. .user {
  269. margin-left: 20rpx;
  270. flex: 1;
  271. display: flex;
  272. flex-direction: column;
  273. justify-content: center;
  274. .name {
  275. }
  276. .time {
  277. color: $sec-font;
  278. font-size: 24rpx;
  279. margin-top: 8rpx;
  280. }
  281. }
  282. .status {
  283. color: $assist-color;
  284. }
  285. }
  286. .content {
  287. margin-top: 20rpx;
  288. display: flex;
  289. justify-content: space-between;
  290. align-items: center;
  291. .left {
  292. font-size: 28rpx;
  293. }
  294. .right {
  295. font-size: 24rpx;
  296. background: #eaeaea;
  297. display: flex;
  298. align-items: center;
  299. padding: 8rpx 12rpx;
  300. margin-left: 40rpx;
  301. border-radius: 8rpx;
  302. .iconfont {
  303. font-size: 24rpx;
  304. margin-right: 4rpx;
  305. }
  306. }
  307. }
  308. .reply {
  309. margin-top: 20rpx;
  310. font-size: 24rpx;
  311. color: $sec-font;
  312. border-left: 4rpx solid $theme-color;
  313. padding-left: 8rpx;
  314. }
  315. }
  316. }
  317. .bottom-container {
  318. padding: 20rpx 30rpx;
  319. display: flex;
  320. align-items: center;
  321. justify-content: flex-end;
  322. .u-button {
  323. width: auto;
  324. height: 60rpx;
  325. margin: 0;
  326. margin-left: 20rpx;
  327. }
  328. }
  329. </style>