agreement.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <view class="buttomText flex" @click="checkedChange">
  3. <image v-if='checked' class="buttomIcon" src="../../static/icon/addressIconXz.png" mode="scaleToFill">
  4. </image>
  5. <view class="buttomNo" v-else>
  6. </view>
  7. <text class="margin-l-10">勾选代表同意</text>
  8. <navigator url="./userAgreement">
  9. <text class="font-color-greed">绿津服务</text>
  10. </navigator>
  11. <text>与</text>
  12. <navigator url="./privacyAgreement">
  13. <text class="font-color-greed">隐私条例</text>
  14. </navigator>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. // 是否选中
  22. checked: false,
  23. };
  24. },
  25. methods: {
  26. checkedChange() {
  27. this.checked = !this.checked;
  28. this.$emit('checkedChange', this.checked)
  29. }
  30. },
  31. };
  32. </script>
  33. <style lang="scss">
  34. .buttomText {
  35. margin-top: 30rpx;
  36. justify-content: center;
  37. font-size: 22rpx;
  38. color: $font-color-light;
  39. .buttomIcon,
  40. .buttomNo {
  41. width: 24rpx;
  42. height: 24rpx;
  43. }
  44. .buttomNo {
  45. border: 1px solid $font-color-light;
  46. border-radius: 100rpx;
  47. }
  48. }
  49. </style>