Mini Program, two templates in a page are reused twice, how to pass different values to this template?

template:

<template name="temp">
//  status  {{status}}
</template>

then send in status

when you use this template for the first time on this page.
<template is="temp" data="{{status}}"
</template>

I want to use this template in this page (which is a tab tab) a second time, but what should I do to use another variable status1, this time?
it won"t work if I pass status1 directly, so I think the variable name passed must be the status? used to define the template

.
// 
<template is="temp" data="{{status1}}" 
</template>

but if you reassign the status every time you switch tab, the page will have to reload, which you don"t want.

Mar.10,2021

put two template , and each time you switch tab , you can display one of them wx-if

.
Menu