dmAgreement.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <dm-pop-view ref='popView' title="入驻协议" :isShowConfirm="false" :maskTapHide='maskTapHide'>
  3. <view class="content">
  4. <iframe class='txt' :src='url'></iframe>
  5. <view class="xieyi" @click="agreeXieyi">
  6. <image class="icon_selected" v-if="agree" src="../../static/icons/icon_yezhu_selected.png" mode=""></image>
  7. <image class="icon_selected" v-else src="../../static/icons/icon_yezhu_unselected.png" mode=""></image>
  8. <text class="tongyi" >我已阅读并同意</text>
  9. <text class="xieyi_text">《入驻协议》</text>
  10. </view>
  11. </view>
  12. </dm-pop-view>
  13. </template>
  14. <script>
  15. import dmPopView from './dmPopView.vue'
  16. export default {
  17. props: {
  18. maskTapHide: {
  19. type: Boolean,
  20. default: true
  21. },
  22. confirmStr: {
  23. type: String,
  24. default: '确认'
  25. },
  26. cancelStr: {
  27. type: String,
  28. default: '取消'
  29. },
  30. info:Object,
  31. mobile:String,
  32. url:String
  33. },
  34. data() {
  35. return {
  36. agree:false
  37. }
  38. },
  39. mounted() {
  40. },
  41. methods: {
  42. show() {
  43. this.$refs.popView.show()
  44. },
  45. knowAction(){
  46. this.$refs.popView.hide()
  47. },
  48. confirmAction() {
  49. this.$refs.popView.hide()
  50. },
  51. agreeXieyi(){
  52. this.agree = true;
  53. this.$emit('agree',true)
  54. this.$refs.popView.hide()
  55. }
  56. },
  57. components: {
  58. dmPopView
  59. }
  60. }
  61. </script>
  62. <style scoped lang="scss">
  63. .content {
  64. width: 100%;
  65. margin-top: 40rpx;
  66. .txt{
  67. width: 100%;
  68. height: 600rpx;
  69. display: block;
  70. box-sizing: border-box;
  71. padding-left: 44rpx;
  72. padding-right: 44rpx;
  73. font-family: Verdana;
  74. font-size: 24rpx;
  75. font-family: Verdana, Verdana-Regular;
  76. font-weight: 400;
  77. text-align: left;
  78. color: #262626;
  79. border: medium none;
  80. }
  81. .xieyi{
  82. display: flex;
  83. width: 100%;
  84. justify-content: center;
  85. align-items: center;
  86. margin-top: 40rpx;
  87. margin-bottom: 40rpx;
  88. .icon_selected{
  89. width: 24rpx;
  90. height: 24rpx;
  91. margin-right: 20rpx;
  92. }
  93. .tongyi{
  94. font-size: 24rpx;
  95. font-family: Verdana, Verdana-Regular;
  96. font-weight: 400;
  97. color: #999999;
  98. display: inline-block;
  99. }
  100. .xieyi_text{
  101. font-size: 24rpx;
  102. font-family: Verdana, Verdana-Regular;
  103. font-weight: 400;
  104. color: #f07423;
  105. display: inline-block;
  106. }
  107. }
  108. }
  109. </style>