cm-activipopu.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <template name="cm-price">
  2. <!-- 商品促销活动弹窗提示判断 -->
  3. <view class="wrap-main">
  4. </view>
  5. </template>
  6. <script>
  7. import { mapState,mapMutations } from 'vuex'
  8. export default{
  9. name:'cm-price',
  10. props:{
  11. product:{
  12. type:Object,
  13. },
  14. userIdentity: {
  15. type: Number,
  16. default: 2
  17. },
  18. ladderPriceList:{
  19. type: Array,
  20. },
  21. retailPrice:{
  22. type:String,
  23. },
  24. minBuyNumber:{
  25. type: Number,
  26. default: 1
  27. }
  28. },
  29. data() {
  30. return{
  31. popupShow:false
  32. }
  33. },
  34. filters: {
  35. NumFormat:function(text) {//处理金额
  36. return Number(text).toFixed(2);
  37. },
  38. },
  39. created() {
  40. },
  41. computed: {
  42. ...mapState(['hasLogin','isWxAuthorize'])
  43. },
  44. methods:{
  45. clickPopupShow(){
  46. this.popupShow = true
  47. },
  48. hidePopup(){
  49. this.popupShow = false
  50. },
  51. goUpgradeApply(){
  52. this.$api.navigateTo('/pages/login/apply')
  53. },
  54. loginClick(){
  55. this.$api.navigateTo('/pages/login/login')
  56. }
  57. },
  58. }
  59. </script>
  60. <style lang="scss">
  61. .tui-flex-1 {
  62. flex: 1;
  63. padding: 16rpx;
  64. }
  65. .tui-popup-box {
  66. position: relative;
  67. padding: 30rpx 0 100rpx 0;
  68. }
  69. .tui-popup-title{
  70. line-height: 60rpx;
  71. text-align: center;
  72. color: #333;
  73. font-size: 28rpx;
  74. border-bottom: 1px solid #EBEBEB;
  75. }
  76. .tui-popup-attr{
  77. width: 100%;
  78. padding: 0 20rpx;
  79. .tui-popup-attr-cell{
  80. width: 100%;
  81. height: auto;
  82. border-bottom: 1px solid #EFEFEF;
  83. font-size: 24rpx;
  84. line-height: 24rpx;
  85. display: flex;
  86. flex-wrap: wrap;
  87. .attr-cell-td{
  88. width: 238rpx;
  89. float: left;
  90. color: #999999;
  91. padding:24rpx 20rpx;
  92. display: flex;
  93. flex: 3;
  94. flex-direction: column;
  95. }
  96. .attr-cell-tr{
  97. width: 462rpx;
  98. float: left;
  99. color: #333333;
  100. padding:20rpx;
  101. display: flex;
  102. flex: 7;
  103. flex-direction: column;
  104. }
  105. &:last-child{
  106. border-bottom: none;
  107. }
  108. }
  109. }
  110. .tui-popup-btn {
  111. width: 100%;
  112. position: absolute;
  113. left: 0;
  114. bottom: 0;
  115. z-index: 9999;
  116. }
  117. </style>