mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-06 21:18:10 +00:00
2 lines
2.3 KiB
JavaScript
2 lines
2.3 KiB
JavaScript
import{_ as e}from"./top-tabbar.3104cdb6.js";import{d as a,r as t,H as r,o as s,c as l,w as o,b as i,u as f,x as p,y as n,f as d,n as c,a as u,g as x,i as m,E as _,j as b,F as v,t as g}from"./index-7c3a221b.js";import{a as y}from"./diy_form.2c8e1e22.js";import{t as h}from"./topTabbar.7ca2ef58.js";import{_ as k}from"./_plugin-vue_export-helper.1b428a4d.js";import"./manifest.78cc7d9b.js";const C=k(a({__name:"diy_form_result",setup(a){const k=t(null),C=t(0),j=t(0);let w=h().setTopTabbarParam({title:"",isBack:!1});r((e=>{C.value=e.record_id||0,j.value=e.form_id||0,T()}));const T=()=>{y({record_id:C.value}).then((e=>{k.value=e.data}))},F=()=>{u({url:"/app/pages/index/index",mode:"reLaunch"})},B=()=>{u({url:"/app/pages/index/diy_form",param:{form_id:j.value},mode:"redirectTo"})};return(a,t)=>{const r=x(m("top-tabbar"),e),y=_,h=b,j=v;return s(),l(h,{style:c(a.themeColor())},{default:o((()=>[k.value?(s(),l(h,{key:0,class:"w-screen h-screen flex flex-col items-center"},{default:o((()=>[i(r,{ref:"topTabbarRef",data:f(w)},null,8,["data"]),i(h,{class:"flex-1 flex flex-col items-center w-full pt-[180rpx]"},{default:o((()=>[i(y,{class:"nc-iconfont nc-icon-duihaoV6mm text-[#06ae56] mb-[30rpx] !text-[65rpx]"}),i(h,{class:"px-[30rpx] text-center leading-[1.3] text-[42rpx] font-bold mb-[30rpx]"},{default:o((()=>[p(n("default"==k.value.submitConfig.tips_type?"填写成功":k.value.submitConfig.tips_text),1)])),_:1}),i(h,{class:"text-[32rpx] mt-[32rpx] text-[#576b95]",onClick:t[0]||(t[0]=e=>{u({url:"/app/pages/index/diy_form_detail",param:{record_id:C.value},mode:"redirectTo"})})},{default:o((()=>[p(n(f(g)("viewFillingDetails")),1)])),_:1})])),_:1}),i(h,{class:"pb-[260rpx] action-wrap"},{default:o((()=>[k.value.submitConfig.success_after_action.finish?(s(),l(j,{key:0,class:"w-[380rpx] !border-0 h-[80rpx] text-[28rpx] !text-[#ffffff] !bg-[#20bf64] flex-center font-500 rounded-[6rpx]",plain:!0,onClick:F},{default:o((()=>[p(n(f(g)("complete")),1)])),_:1})):d("v-if",!0),k.value.submitConfig.success_after_action.goback?(s(),l(j,{key:1,class:"w-[380rpx] !border-0 h-[80rpx] text-[28rpx] text-[#333] !bg-[#f2f2f2] flex-center font-500 rounded-[6rpx]",plain:!0,onClick:B},{default:o((()=>[p(n(f(g)("back")),1)])),_:1})):d("v-if",!0)])),_:1})])),_:1})):d("v-if",!0)])),_:1},8,["style"])}}}),[["__scopeId","data-v-ea4a582b"]]);export{C as default};
|