iphOrderGoodCard.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <!--
  2. * @Descripttion: 订单货品卡片
  3. * @version: 1.0.0
  4. * @Author: dream
  5. * @Date: 2021-03-31 09:42:58
  6. * @LastEditors: dream
  7. * @LastEditTime: 2021-04-01 17:12:03
  8. -->
  9. <template>
  10. <view class="order-good-card iph-bg-fff">
  11. <view class="u-flex u-p-t-32 u-p-l-32 u-p-r-32">
  12. <view class="icon-shop iph-icon-shop"></view>
  13. <view class="u-m-l-8 u-flex-1 u-font-28 u-line-40 text-weight-500">云东仓</view>
  14. </view>
  15. <view class="good-card u-border-bottom u-flex">
  16. <image class="good-image" :src="detail.img" mode="aspectFill" />
  17. <view class="good-info u-m-l-16 u-flex-1">
  18. <view class="u-line-2">{{detail.name}}</view>
  19. <view class="good-info-spce u-m-t-8 u-font-24 u-line-34">{{detail.spce}}</view>
  20. <view class="u-flex-1 u-flex u-col-bottom">
  21. <text class="u-m-b-2 u-font-22 u-line-32 bold price-color">¥</text>
  22. <text class="u-m-l-2 u-font-30 u-line-42 bold price-color">{{detail.salesPrice}}</text>
  23. <text class="u-flex-1 u-text-right">x{{detail.num}}</text>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="warehouse-delivery">
  28. <view class="u-flex" @click="changeDelivery">
  29. <view class="u-flex-1">配送</view>
  30. <view class="u-m-r-8">配送方式</view>
  31. <view class="enter-icon iph-icon-enter"></view>
  32. </view>
  33. <view class="u-m-t-4 u-text-right">云东仓运费金额¥200</view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. name: 'orderGoodCard',
  40. data () {
  41. return {
  42. detail: {
  43. img: 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=288400877,2749955263&fm=26&gp=0.jpg',
  44. name: '华硕天选',
  45. spce: '一件',
  46. salesPrice: 468,
  47. num: 1
  48. }
  49. }
  50. },
  51. methods: {
  52. changeDelivery () {
  53. uni.showModal({
  54. title: '配送方式说明',
  55. content: '100元-200元区间收费(当前运费200元)',
  56. showCancel: false,
  57. confirmText: '我知道了',
  58. confirmColor: '#1677FF',
  59. success: (res) => {
  60. if (res.confirm) {
  61. console.log('我知道了')
  62. }
  63. }
  64. })
  65. }
  66. }
  67. }
  68. </script>
  69. <style lang="scss" scoped>
  70. .order-good-card {
  71. .icon-shop {
  72. width: 28px;
  73. height: 28px;
  74. }
  75. .good-card {
  76. margin: 0 32px;
  77. padding: 32px 0;
  78. .good-image {
  79. width: 172px;
  80. height: 172px;
  81. border-radius: 8px;
  82. }
  83. .good-info {
  84. display: flex;
  85. flex-direction: column;
  86. height: 172px;
  87. .good-info-spce {
  88. color: $iph-desc-text;
  89. }
  90. }
  91. }
  92. .warehouse-delivery {
  93. padding: 32px;
  94. .enter-icon {
  95. width: 20px;
  96. height: 20px;
  97. }
  98. }
  99. }
  100. </style>