<view class="fcb">
<Icon
type="img" iconNameOrRoute="item.icon" iconWidth="46rpx"
iconHeight="46rpx"
/>
<view class="delivery-content">
<view class="delivery-lable">{{ item.label }}</view>
<view class="delivery-des" v-if="item.description">{{ item.description }}</view>
</view>
<radio
style="transform: scale(0.9) translateX(10rpx)"
color="#E1AE58" value="index" checked="currentPaymentIndex === item.value" />
</view>
</label>
</radio-group>
</view>
<view class="footer-btn">
<tui-form-button @click="comfirmChooseThisPayment()"> 确定 </tui-form-button>
</view>
</view>
</uni-popup>
</view>
</template> <script setup lang="ts"> import selectReycleMethods from './components/selectReycleMethods.vue' const selectRecycleMethodsRef = ref(null) const currentRecycleMethod = ref({ label: '', value: null, description: '', }) const defaultRecyeleIndex = ref(null) function getcurrenRecycleMethod(method) { currentRecycleMethod.value = method } function selectRecycleMethod() { selectRecycleMethodsRef.value.open() } </script> <template> <view> 11111{{ currentRecycleMethod.label }} <view @click="selectRecycleMethod">点击点击</view> <selectReycleMethods ref="selectRecycleMethodsRef" defaultPaymentIndex="defaultRecyeleIndex" currentMethod="currentRecycleMethod" @choosed="getcurrenRecycleMethod"
/>
</view>
</template>
执行打印会报错
16:51:09.381 null is not an object (evaluating 're.el=al.el')
16:51:09.381 Le@weex-main-jsfm.js:44:71934
16:51:09.381 run@weex-main-jsfm.js:23:188174
16:51:09.381 weex-main-jsfm.js:44:72239
16:51:09.381 We@weex-main-jsfm.js:44:72397
16:51:09.381 Ce@weex-main-jsfm.js:44:70377
16:51:09.381 Se@weex-main-jsfm.js:44:70072
16:51:09.381 qe@weex-main-jsfm.js:44:65984
16:51:09.381 qn@weex-main-jsfm.js:44:77259
16:51:09.381 ct@weex-main-jsfm.js:45:106975
16:51:09.381 mountPage@weex-main-jsfm.js:46:23210
16:51:09.381 of@weex-main-jsfm.js:46:212011
16:51:09.381 weex-main-jsfm.js:46:213810
16:51:09.381 Promise@[native code]
16:51:09.381 II@weex-main-jsfm.js:46:213800
16:51:09.381 weex-main-jsfm.js:46:213540
16:51:09.381 Vf@weex-main-jsfm.js:46:208801
16:51:09.381 Fv@weex-main-jsfm.js:46:213530
16:51:09.381 weex-main-jsfm.js:45:352398
16:51:09.381 Promise@[native code]
16:51:09.381 weex-main-jsfm.js:45:352387
16:51:09.381 app-service.js:110:642742
16:51:09.381 generatorResume@[native code]
16:51:09.381 Ns@app-service.js:1:642
16:51:09.381 promiseReactionJob@[native code] __ERROR