|  |  | 
 |  |  |                 {{ blLifeRecharge.getRechargeParValue(item, lifePayPhoneRate) }}元 | 
 |  |  |               </div> | 
 |  |  |             </div> | 
 |  |  |             <div class="discountTag">{{ lifePayPhoneRate }}折</div> | 
 |  |  |             <div class="discountTag" v-if="lifePayPhoneRate > 0">{{ lifePayPhoneRate }}折</div> | 
 |  |  |           </div> | 
 |  |  |         </NutRadio> | 
 |  |  |       </NutRadioGroup> | 
 |  |  | 
 |  |  |       </template> | 
 |  |  |     </ConfirmDialog> | 
 |  |  |     <NutToast :msg="state.msg" v-model:visible="state.show" type="warn" cover /> | 
 |  |  |     <NutDialog | 
 |  |  |       title="提示" | 
 |  |  |       :content="dialogState.msg" | 
 |  |  |       v-model:visible="dialogState.visible" | 
 |  |  |       @ok="onOk" | 
 |  |  |     /> | 
 |  |  |   </NutForm> | 
 |  |  | </template> | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  | const { goTo } = usePhoneBillRechargeContext(); | 
 |  |  |  | 
 |  |  | const dialogState = reactive({ | 
 |  |  |   visible: false, | 
 |  |  |   msg: '', | 
 |  |  | }); | 
 |  |  |  | 
 |  |  | const form = reactive({ | 
 |  |  |   ispCode: '', | 
 |  |  |   phone: '', | 
 |  |  | 
 |  |  | const emit = defineEmits<{ | 
 |  |  |   (e: 'goPay', orderNo: string): void; | 
 |  |  |   (e: 'paySuccess', orderNo: string): void; | 
 |  |  |   (e: 'missName', userAccountId: string): void; | 
 |  |  | }>(); | 
 |  |  |  | 
 |  |  | const { lifePayPhoneRate } = useGetRate(); | 
 |  |  | 
 |  |  |  | 
 |  |  | const formRef = ref<any>(null); | 
 |  |  |  | 
 |  |  | function onOk() {} | 
 |  |  |  | 
 |  |  | function handleSubmit() { | 
 |  |  |   if (!form.name) { | 
 |  |  |     dialogState.visible = true; | 
 |  |  |     dialogState.msg = '请先完善手机号所属机主姓名'; | 
 |  |  |     return; | 
 |  |  |   } | 
 |  |  |   if (!formRef.value) return; | 
 |  |  |   formRef.value.validate().then(({ valid, errors }: any) => { | 
 |  |  |     if (valid) { | 
 |  |  |       if (!form.name) { | 
 |  |  |         emit('missName', form.currentUserAccountId); | 
 |  |  |         return; | 
 |  |  |       } | 
 |  |  |       recharge(); | 
 |  |  |     } | 
 |  |  |   }); |