shareModel.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template name="sharealert">
  2. <view class="alert spec" :class="specClass">
  3. <view class="model-warp">
  4. <view class="content">
  5. <view class="text-content">
  6. <view class="title">分享登录</view>
  7. <view class="text">
  8. <text>分享后,机构联系人可直接通过分享页面登录并绑定微信成为运营人员</text>
  9. </view>
  10. </view>
  11. <view class="alert-btn">
  12. <view class="btn btn-cancel" @click="hideConfirm">取消</view>
  13. <!-- #ifdef MP-WEIXIN -->
  14. <button class="btn btn-confirm" open-type="share" @click="btnConfirm(bindId)">去分享</button>
  15. <!-- #endif -->
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default{
  23. name:'sharealert',
  24. props:{
  25. bindId:{
  26. type:Number
  27. }
  28. },
  29. data() {
  30. return{
  31. shareCode:'',
  32. }
  33. },
  34. created() {
  35. },
  36. methods:{
  37. hideConfirm(){
  38. this.$parent.isShareModal = false
  39. },
  40. btnConfirm(orderID){//点击事件
  41. this.$emit('btnConfirm')
  42. }
  43. }
  44. }
  45. </script>
  46. <style lang="scss">
  47. /*弹窗*/
  48. .model-warp.none{
  49. display: none;
  50. }
  51. .model-warp.show{
  52. display: block;
  53. }
  54. .model-warp{
  55. width: 100%;
  56. height: 100%;
  57. background: rgba(0,0,0,0.3);
  58. position: fixed;
  59. top: 0;
  60. left: 0;
  61. z-index: 10000;
  62. transition: all 0.4s;
  63. &.none{
  64. display: none;
  65. }
  66. &.show{
  67. display: block;
  68. }
  69. .content{
  70. width: 518rpx;
  71. height: 360rpx;
  72. position: absolute;
  73. background: $bg-color;
  74. left: 0;
  75. right: 0;
  76. bottom: 0;
  77. top: 0;
  78. margin: auto;
  79. border-radius: 24rpx;
  80. .text-content{
  81. width: 448rpx;
  82. height: 200rpx;
  83. padding: 30rpx 35rpx;
  84. float: left;
  85. .title{
  86. line-height: 44rpx;
  87. font-size: $font-size-28;
  88. color: $text-color;
  89. text-align: center;
  90. font-weight: bold;
  91. margin-bottom: 36rpx;
  92. }
  93. .share{
  94. line-height: 36rpx;
  95. font-size: $font-size-26;
  96. color: $text-color;
  97. text-align: justify;
  98. margin-top: 22rpx;
  99. font-weight: normal;
  100. .txt{
  101. margin-left: 10rpx;
  102. color: #FF2A2A;
  103. }
  104. }
  105. .text{
  106. line-height: 44rpx;
  107. font-size: $font-size-28;
  108. color: $text-color;
  109. text-align: justify;
  110. margin-top: 22rpx;
  111. }
  112. }
  113. .alert-btn{
  114. width: 80%;
  115. height: 70rpx;
  116. display: flex;
  117. margin: 0 auto;
  118. .btn{
  119. flex: 1;
  120. line-height: 70rpx;
  121. font-size: $font-size-28;
  122. text-align: center;
  123. color: #FFFFFF;
  124. border-radius: 35rpx;
  125. padding: 0;
  126. margin: 0 15rpx;
  127. &.btn-cancel{
  128. background: #e1e1e1;
  129. }
  130. &.btn-confirm{
  131. background: #4ad04c;
  132. }
  133. }
  134. }
  135. }
  136. }
  137. </style>