activipopu.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <template name="cm-price">
  2. <!--促销活动弹窗提示-->
  3. <tui-bottom-popup :radius="true" :show="popupShow" @close="hidePopup()">
  4. <view class="tui-popup-box clearfix">
  5. <view class="tui-scrollview-box">
  6. <view class="box-text">
  7. <text>促销时间:</text> <text class="txt" v-if="Promotion.status == 1">不限时</text>
  8. <text class="txt" v-else>{{ Promotion.beginTime }} ~ {{ Promotion.endTime }}</text>
  9. </view>
  10. <view class="box-title" v-show="Promotion.mode == 2">
  11. <text>此商品参与{{ Promotion.name }},满</text>
  12. <text class="txt">¥{{ Promotion == null ? '0.00' : Promotion.touchPrice | formatPrice }}</text
  13. >减 <text class="txt">¥{{ Promotion == null ? '0.00' : Promotion.reducedPrice | formatPrice }}</text>
  14. </view>
  15. <view class="box-title" v-show="Promotion.mode == 3">
  16. <text>此商品参与{{ Promotion.name }},满</text> <text class="txt">¥{{ Promotion.touchPrice }}</text
  17. >赠送商品(赠品见订单详情)
  18. </view>
  19. </view>
  20. <view class="tui-right-flex tui-popup-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '0rpx' }">
  21. <view class="tui-flex-1"> <view class="tui-button" @click="hidePopup()">了解</view> </view>
  22. </view>
  23. </view>
  24. </tui-bottom-popup>
  25. </template>
  26. <script>
  27. import { mapGetters } from 'vuex'
  28. export default {
  29. name: 'cm-price',
  30. props: {
  31. Promotion: {
  32. type: Object
  33. },
  34. popupShow: {
  35. type: Boolean,
  36. default: false
  37. }
  38. },
  39. created() {},
  40. computed: {
  41. ...mapGetters(['hasLogin', 'isWxAuthorize', 'isIphoneX'])
  42. },
  43. methods: {
  44. hidePopup() {
  45. this.$parent.popupShow = false
  46. },
  47. goGoodActiveFn(id) {
  48. this.$parent.popupShow = false
  49. this.$api.navigateTo('/pages/goods/goods-active?id=' + id)
  50. }
  51. }
  52. }
  53. </script>
  54. <style lang="scss">
  55. .tui-flex-1 {
  56. flex: 1;
  57. }
  58. .tui-popup-box {
  59. position: relative;
  60. box-sizing: border-box;
  61. min-height: 220rpx;
  62. padding: 24rpx 24rpx 0 24rpx;
  63. }
  64. .tui-scrollview-box {
  65. width: 100%;
  66. height: auto;
  67. float: left;
  68. box-sizing: border-box;
  69. .ladder-main {
  70. width: 100%;
  71. height: 320rpx;
  72. border: 1px solid rgba(225, 86, 22, 0.3);
  73. border-radius: 10rpx;
  74. .ladder-item {
  75. width: 100%;
  76. height: 80rpx;
  77. float: left;
  78. border-bottom: 1px solid rgba(225, 86, 22, 0.3);
  79. &:nth-child(1) {
  80. .ladder-item-td {
  81. color: #333333;
  82. }
  83. }
  84. &:last-child {
  85. border-bottom: none;
  86. }
  87. .ladder-item-td {
  88. width: 50%;
  89. text-align: center;
  90. line-height: 80rpx;
  91. font-size: $font-size-24;
  92. color: $color-system;
  93. box-sizing: border-box;
  94. float: left;
  95. &:nth-child(1) {
  96. border-right: 1px solid rgba(225, 86, 22, 0.3);
  97. }
  98. }
  99. }
  100. }
  101. .box-title {
  102. font-size: $font-size-26;
  103. color: $text-color;
  104. text-align: left;
  105. line-height: 56rpx;
  106. .txt {
  107. color: $color-system;
  108. margin: 0 8rpx;
  109. }
  110. }
  111. .box-text {
  112. font-size: $font-size-26;
  113. color: $text-color;
  114. text-align: left;
  115. line-height: 56rpx;
  116. .txt {
  117. color: $color-system;
  118. }
  119. }
  120. .box-product {
  121. width: 100%;
  122. height: auto;
  123. margin-top: 20rpx;
  124. .title {
  125. font-size: $font-size-24;
  126. color: $text-color;
  127. text-align: left;
  128. line-height: 54rpx;
  129. }
  130. .box-product-main {
  131. width: 100%;
  132. height: 136rpx;
  133. .image {
  134. width: 134rpx;
  135. height: 134rpx;
  136. border: 1px solid #ebebeb;
  137. float: left;
  138. image {
  139. width: 100%;
  140. height: 100%;
  141. display: block;
  142. }
  143. }
  144. .info {
  145. width: 540rpx;
  146. height: 134rpx;
  147. float: left;
  148. margin-left: 16rpx;
  149. position: relative;
  150. .name {
  151. width: 100%;
  152. float: left;
  153. line-height: 40rpx;
  154. font-size: $font-size-28;
  155. color: $text-color;
  156. -o-text-overflow: ellipsis;
  157. text-overflow: ellipsis;
  158. display: -webkit-box;
  159. word-break: break-all;
  160. -webkit-box-orient: vertical;
  161. -webkit-line-clamp: 2;
  162. overflow: hidden;
  163. }
  164. .num {
  165. width: 100%;
  166. height: 44rpx;
  167. font-size: $font-size-24;
  168. color: $text-color;
  169. text-align: left;
  170. line-height: 44rpx;
  171. position: absolute;
  172. bottom: 0;
  173. left: 0;
  174. }
  175. }
  176. }
  177. }
  178. }
  179. .tui-popup-btn {
  180. width: 100%;
  181. height: auto;
  182. float: left;
  183. margin-top: 24rpx;
  184. .tui-button {
  185. width: 100%;
  186. height: 88rpx;
  187. background: $btn-confirm;
  188. line-height: 88rpx;
  189. text-align: center;
  190. color: #ffffff;
  191. font-size: $font-size-28;
  192. border-radius: 14rpx;
  193. }
  194. }
  195. </style>