Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
aixianling
2021-12-28 09:24:55 +08:00

View File

@@ -39,6 +39,16 @@
<div class="subBtn" @click="submit">确定选择</div> <div class="subBtn" @click="submit">确定选择</div>
</div> </div>
<!-- <div style="padding: 0 20px">
<div style="display: flex; justify-content: space-between; background: pink; padding: 10px 0" @click="showDiv">
<span>残疾人</span>
<u-icon name="arrow-right"></u-icon>
</div>
<div v-if="this.num % 2 == 0">
<div>1111</div>
</div>
</div> -->
</div> </div>
</template> </template>
@@ -70,8 +80,15 @@ export default {
appId: '', appId: '',
value: '', value: '',
menuLevel3Name: '', menuLevel3Name: '',
num: 1,
flag: false,
} }
}, },
watch: {
num(e, a) {
console.log(e, a)
},
},
computed: {}, computed: {},
created() { created() {
console.log(1) console.log(1)
@@ -82,6 +99,20 @@ export default {
}, },
mounted() {}, mounted() {},
methods: { methods: {
showDiv() {
this.num = this.num + 1
this.$forceUpdate()
if (this.num % 2 == 0) {
console.log('偶数')
this.flag == true
this.$forceUpdate()
} else {
console.log('奇数')
this.flag == false
this.$forceUpdate()
}
},
getDiyList() { getDiyList() {
this.$http.post('/app/appapplicationinfo/queryApplicationListByType?type=0').then((res) => { this.$http.post('/app/appapplicationinfo/queryApplicationListByType?type=0').then((res) => {
if (res.code == 0) { if (res.code == 0) {