freightAlert.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template name="alert">
  2. <view class="alert spec" :class="specClass">
  3. <!-- 运费弹窗说明 -->
  4. <view class="freight-alert" @tap="hideFreight">
  5. <view class="content">
  6. <view class="title">
  7. <text>运费规则</text>
  8. <text class="iconfont icon-iconfontguanbi" @click.stop="hideFreight"></text>
  9. </view>
  10. <view class="text-content">
  11. <view class="text-h1">一、除含有仪器类、家具类等指定商品的订单,运费规则如下:</view>
  12. <view class="text">
  13. <text>1、首单,全国包邮(注:如果首单中含有不包邮的指定商品,则首单只能"到付");</text>
  14. <text>2、订单商品总额满1000元,全国包邮;</text>
  15. <text>3、订单商品总额不足1000元,深圳市内运费10元,广东省内深圳市外运费15元,其它地方运费到付;</text>
  16. <text>4、地推送货上门无需运费(注:下单可选择运费是否到付)。</text>
  17. </view>
  18. <view class="text-h1">二、含有仪器类、家具类等指定商品的订单,运费到付。</view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default{
  26. name:'alert',
  27. props:{},
  28. data() {
  29. return{
  30. }
  31. },
  32. created() {
  33. },
  34. onLoad(){
  35. },
  36. methods:{
  37. hideFreight(){
  38. this.$parent.isfreightTip = false
  39. },
  40. },
  41. onShow(){
  42. }
  43. }
  44. </script>
  45. <style lang="scss">
  46. /*弹窗*/
  47. .model-warp.none{
  48. display: none;
  49. }
  50. .model-warp.show{
  51. display: block;
  52. }
  53. .freight-alert{
  54. width: 100%;
  55. height: 100%;
  56. background: rgba(0,0,0,.5);
  57. position: fixed;
  58. top: 0;
  59. left: 0;
  60. z-index: 8888;
  61. transition: all 0.4s;
  62. &.none{
  63. display: none;
  64. }
  65. &.show{
  66. display: block;
  67. }
  68. .content{
  69. width: 530rpx;
  70. height: 710rpx;
  71. position: absolute;
  72. background: $bg-color;
  73. left: 0;
  74. right: 0;
  75. bottom: 0;
  76. top: 0;
  77. margin: auto;
  78. padding: 20rpx 25rpx;
  79. border-radius: 12rpx;
  80. .title{
  81. width: 100%;
  82. height: 68rpx;
  83. line-height: 68rpx;
  84. font-size: $font-size-28;
  85. color: $text-color;
  86. text-align: center;
  87. margin-bottom: 32rpx;
  88. position: relative;
  89. .icon-iconfontguanbi{
  90. width: 68rpx;
  91. height: 68rpx;
  92. text-align: center;
  93. line-height: 68rpx;
  94. position: absolute;
  95. right: 0;
  96. top: 0;
  97. font-size: $font-size-36;
  98. color: #999999;
  99. }
  100. }
  101. .text-content{
  102. width: 100%;
  103. height: auto;
  104. .text{
  105. padding: 40rpx 0;
  106. line-height: 44rpx;
  107. font-size: $font-size-26;
  108. color:#666666;
  109. text-align: justify;
  110. }
  111. .text-h1{
  112. line-height: 44rpx;
  113. font-size: $font-size-28;
  114. color: $text-color;
  115. text-align: justify;
  116. }
  117. }
  118. .btn{
  119. width: 100%;
  120. height: 88rpx;
  121. float: left;
  122. background: $btn-confirm;
  123. line-height: 88rpx;
  124. font-size: $font-size-28;
  125. text-align: center;
  126. color: #FFFFFF;
  127. border-radius: 0;
  128. padding: 0;
  129. margin-top: 2rpx;
  130. }
  131. }
  132. }
  133. </style>