样式修改
Showing
2 changed files
with
40 additions
and
12 deletions
| ... | @@ -105,16 +105,31 @@ function building() { | ... | @@ -105,16 +105,31 @@ function building() { |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | function popRemark(type) { | 107 | function popRemark(type) { |
| 108 | console.log(form.value) | ||
| 109 | alert(type) | ||
| 108 | if (!form.value) { | 110 | if (!form.value) { |
| 109 | building() | 111 | building() |
| 110 | return | 112 | return |
| 111 | } | 113 | } |
| 114 | // if ((form.value.isJdView == 0 && type == '1') | ||
| 115 | // || (form.value.isCarView == 0 && type == '2') | ||
| 116 | // || (form.value.isFoodView == 0 && type == '3') | ||
| 117 | // || (form.value.isMealView == 0 && type == '4') | ||
| 118 | // || (form.value.isPhotoView == 0 && type == '5') | ||
| 119 | // ) { | ||
| 120 | // building() | ||
| 121 | // return | ||
| 122 | // } | ||
| 123 | alert(type) | ||
| 124 | |||
| 112 | if ((form.value.isJdView == 0 && type == '1') | 125 | if ((form.value.isJdView == 0 && type == '1') |
| 113 | || (form.value.isCarView == 0 && type == '2') | 126 | || (type == '2') |
| 114 | || (form.value.isFoodView == 0 && type == '3') | 127 | || ( type == '3') |
| 115 | || (form.value.isMealView == 0 && type == '4') | 128 | || (form.value.isMealView == 0 && type == '4') |
| 116 | || (form.value.isPhotoView == 0 && type == '5') | 129 | || (type == '5') |
| 117 | ) { | 130 | // || (type == '0') |
| 131 | ) | ||
| 132 | { | ||
| 118 | building() | 133 | building() |
| 119 | return | 134 | return |
| 120 | } | 135 | } | ... | ... |
| ... | @@ -100,7 +100,7 @@ const props = defineProps({ | ... | @@ -100,7 +100,7 @@ const props = defineProps({ |
| 100 | default: '0' | 100 | default: '0' |
| 101 | } | 101 | } |
| 102 | }) | 102 | }) |
| 103 | const form = ref({}) | 103 | const form = ref() |
| 104 | onMounted(() => { | 104 | onMounted(() => { |
| 105 | getBaseInfoByActiveId(props.matchId).then(res => { | 105 | getBaseInfoByActiveId(props.matchId).then(res => { |
| 106 | form.value = res.data || null | 106 | form.value = res.data || null |
| ... | @@ -116,17 +116,31 @@ function building() { | ... | @@ -116,17 +116,31 @@ function building() { |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | function popRemark(type) { | 118 | function popRemark(type) { |
| 119 | console.log(form.value) | ||
| 120 | alert(type) | ||
| 119 | if (!form.value) { | 121 | if (!form.value) { |
| 120 | building() | 122 | building() |
| 121 | return | 123 | return |
| 122 | } | 124 | } |
| 123 | 125 | ||
| 126 | // if ((form.value.isJdView == 0 && type == '1') | ||
| 127 | // || (form.value.isCarView == 0 && type == '2') | ||
| 128 | // || (form.value.isFoodView == 0 && type == '3') | ||
| 129 | // || (form.value.isMealView == 0 && type == '4') | ||
| 130 | // || (type == '5' && form.value.isPhotoView == 0) | ||
| 131 | // || (type == '0')) { | ||
| 132 | // building() | ||
| 133 | // return | ||
| 134 | // } | ||
| 135 | alert(type) | ||
| 124 | if ((form.value.isJdView == 0 && type == '1') | 136 | if ((form.value.isJdView == 0 && type == '1') |
| 125 | || (form.value.isCarView == 0 && type == '2') | 137 | || (type == '2') |
| 126 | || (form.value.isFoodView == 0 && type == '3') | 138 | || ( type == '3') |
| 127 | || (form.value.isMealView == 0 && type == '4') | 139 | || (form.value.isMealView == 0 && type == '4') |
| 128 | || (type == '5' && form.value.isPhotoView == 0) | 140 | || (type == '5') |
| 129 | || (type == '0')) { | 141 | // || (type == '0') |
| 142 | ) | ||
| 143 | { | ||
| 130 | building() | 144 | building() |
| 131 | return | 145 | return |
| 132 | } | 146 | } |
| ... | @@ -144,7 +158,6 @@ function goBooking(n) { | ... | @@ -144,7 +158,6 @@ function goBooking(n) { |
| 144 | switch (n) { | 158 | switch (n) { |
| 145 | case 0: | 159 | case 0: |
| 146 | // 票务 | 160 | // 票务 |
| 147 | building() | ||
| 148 | router.push({path: `/booking/ticket/${props.matchId}`}) | 161 | router.push({path: `/booking/ticket/${props.matchId}`}) |
| 149 | break; | 162 | break; |
| 150 | case 1: | 163 | case 1: | ... | ... |
-
Please register or sign in to post a comment