Commit 72b9d843 by 李伟康

commit 提交

1 parent 049024d4
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<view :class="['block',defaultBlock(i)]"></view> <view :class="['block',defaultBlock(i)]"></view>
<view <view
class="name flex" class="name flex"
@click="i.checked = !i.checked" @click="choose(i,index)"
> >
<template v-if="!isPreview"> <template v-if="!isPreview">
<view :class="['check-box flex',{'checked':i.checked}]"> <view :class="['check-box flex',{'checked':i.checked}]">
...@@ -258,7 +258,11 @@ export default { ...@@ -258,7 +258,11 @@ export default {
processedString = processedString.replace(/<(?!div|span|p)[^>]*>/g, '</div>'); processedString = processedString.replace(/<(?!div|span|p)[^>]*>/g, '</div>');
return processedString return processedString
} },
choose(item, index) {
if(this.isPreview) return
this.insuranceList[index].checked = !item.checked
},
} }
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!