猫妈狗爸伴宠师小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.4 KiB

3 months ago
3 months ago
2 months ago
3 months ago
3 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
3 months ago
3 months ago
  1. <template>
  2. <up-modal :show="show" :showConfirmButton="false">
  3. <view class="slot-content box">
  4. <image class="w-100" :src="state.info.partnerBackground"></image>
  5. <view class="size-32 fw700 title text-c w-100">
  6. <view v-html="configList?.succeed_join?.paramValueArea"></view>
  7. </view>
  8. <view class="size-32 fw700 w-100 text-c" v-html="state.info.promptText">
  9. </view>
  10. <view class="btn color-fff size-30 flex-rowc" @tap="close">
  11. 我知道了
  12. </view>
  13. </view>
  14. </up-modal>
  15. </template>
  16. <script setup>
  17. import {
  18. watch,
  19. ref,
  20. watchEffect,
  21. onMounted,
  22. reactive
  23. } from "vue"
  24. import {
  25. useStore
  26. } from "vuex"
  27. import { computed } from "vue"
  28. const props = defineProps({
  29. open: false
  30. })
  31. const store = useStore();
  32. const emit = defineEmits(['close'])
  33. const show = ref(false)
  34. const configList = computed(() => {
  35. return store.getters.configList
  36. })
  37. watch(() => props.open, (val) => {
  38. show.value = val
  39. })
  40. const state = reactive({
  41. info: {}
  42. })
  43. const close = () => {
  44. emit("close", false)
  45. }
  46. </script>
  47. <style scoped lang="scss">
  48. @import "@/style/index.scss";
  49. .box {
  50. width: 632rpx;
  51. background-color: #fff;
  52. border-radius: 8rpx;
  53. image {
  54. height: 190rpx;
  55. }
  56. .title {
  57. margin-top: 100rpx;
  58. margin-bottom: 45rpx;
  59. }
  60. .btn {
  61. width: 594rpx;
  62. height: 94rpx;
  63. border-radius: 94rpx;
  64. background-color: $mainColor;
  65. margin-top: 168rpx;
  66. }
  67. }
  68. </style>