freightAlert.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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="text-content">
  7. <view class="title">运费说明</view>
  8. <view class="text">
  9. <text>所有仪器类商品都是到付;针对非仪器类商品,若您所在的机构购买了包邮服务,则为包邮;否则,也是到付。包邮服务可以联系客服进行购买,</text>
  10. </view>
  11. <view class="tel">客服热线:<text class="txt">{{cellPhone}}</text></view>
  12. </view>
  13. <view class="btn" @tap="hideFreight">确定</view>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default{
  20. name:'alert',
  21. props:['cellPhone'],
  22. data() {
  23. return{
  24. }
  25. },
  26. created() {
  27. },
  28. onLoad(){
  29. },
  30. methods:{
  31. hideFreight(){
  32. this.$parent.isfreightTip = false
  33. },
  34. },
  35. onShow(){
  36. }
  37. }
  38. </script>
  39. <style lang="scss">
  40. /*弹窗*/
  41. .model-warp.none{
  42. display: none;
  43. }
  44. .model-warp.show{
  45. display: block;
  46. }
  47. .freight-alert{
  48. width: 100%;
  49. height: 100%;
  50. background: rgba(0,0,0,.5);
  51. position: fixed;
  52. top: 0;
  53. left: 0;
  54. z-index: 8888;
  55. transition: all 0.4s;
  56. &.none{
  57. display: none;
  58. }
  59. &.show{
  60. display: block;
  61. }
  62. .content{
  63. width: 518rpx;
  64. height: 420rpx;
  65. position: absolute;
  66. background: $bg-color;
  67. left: 0;
  68. right: 0;
  69. bottom: 0;
  70. top: 0;
  71. margin: auto;
  72. .text-content{
  73. width: 448rpx;
  74. height: 264rpx;
  75. padding: 35rpx;
  76. float: left;
  77. .title{
  78. line-height: 40rpx;
  79. font-size: $font-size-base;
  80. color: $text-color;
  81. text-align: center;
  82. font-weight: bold;
  83. margin-bottom: 32rpx;
  84. }
  85. .text{
  86. line-height: 36rpx;
  87. font-size: $font-size-sb;
  88. color: $text-color;
  89. text-align: justify;
  90. margin-top: 22rpx;
  91. }
  92. .tel{
  93. line-height: 36rpx;
  94. font-size: $font-size-sb;
  95. color: $text-color;
  96. text-align: justify;
  97. margin-top: 22rpx;
  98. font-weight: bold;
  99. .txt{
  100. margin-left: 10rpx;
  101. }
  102. }
  103. }
  104. .btn{
  105. width: 100%;
  106. height: 88rpx;
  107. float: left;
  108. background: $btn-confirm;
  109. line-height: 88rpx;
  110. font-size: $font-size-base;
  111. text-align: center;
  112. color: #FFFFFF;
  113. border-radius: 0;
  114. padding: 0;
  115. margin-top: 2rpx;
  116. }
  117. }
  118. }
  119. </style>