jiuyiUniapp/jiuyi2/unpackage/dist/build/web/assets/pages-shop-refund-index.B9T...

2 lines
4.4 KiB
JavaScript
Raw Normal View History

2024-12-27 15:03:48 +08:00
import{r as e,g as a,l,a as s,b as t,w as o,u as n,F as u,i,o as r,e as _,p,t as c,c as d,m,v as f,f as y}from"./index-CZsuXyof.js";import{_ as v}from"./uni-icons.CE6FQOeI.js";import{r as j}from"./uni-app.es.Cv5-J_i3.js";import{_ as g}from"./uni-section.CrQ1Wm0g.js";import{_ as b}from"./uni-easyinput.Bm1GUSJ8.js";import{_ as x}from"./uni-file-picker.Dkbqw_5V.js";import{_ as h}from"./uni-popup.M4-7QhOy.js";import{J as k}from"./index.CPy1_mXU.js";import{_ as C}from"./shop-upload-image.h6cF0wip.js";import{J as N}from"./index.Bcr2E-Cv.js";import{_ as V}from"./_plugin-vue_export-helper.BCo6x5W8.js";/* empty css *//* empty css */import"./uni-cloud.es.t_RKYAwE.js";import"./uni-popup.vue_vue_type_style_index_0_scoped_f0b957f8_lang.BhWYEB-t.js";import"./uni-tag.Dc25ZYYL.js";/* empty css *//* empty css */import"./Mixins.DZwwZj4P.js";/* empty css */const w=V({__name:"index",setup(V){const w=e(null),U=e(null),F=e(!0),J=a({reason:"",priceNum:5.99,content:""}),M=()=>{console.log("我是提交")},T=[{label:"缺货"},{label:"不想要了"},{label:"价格太贵"},{label:"其他"}],B=()=>{F.value=!F.value,null===J.priceNum&&(J.priceNum=5.99)};return(e,a)=>{const V=f,E=j(l("uni-icons"),v),G=j(l("uni-section"),g),H=j(l("uni-easyinput"),b),I=i,L=y,P=j(l("uni-file-picker"),x),S=j(l("uni-popup"),h);return r(),s(u,null,[t(I,{class:"jy-return-refund"},{default:o((()=>[t(n(k),{showType:1,class:"mb20"}),t(G,null,{decoration:o((()=>[t(V,{class:"decoration"},{default:o((()=>[_("申请类型")])),_:1})])),content:o((()=>[t(V,{class:"content"},{default:o((()=>[_("我要退款(无需退货)")])),_:1})])),right:o((()=>[t(E,{type:"right"})])),_:1}),t(G,{class:"mb20",onClick:a[0]||(a[0]=e=>U.value.open())},{decoration:o((()=>[t(V,{class:"decoration"},{default:o((()=>[_("申请原因")])),_:1})])),content:o((()=>[t(V,{class:p(["content",!J.reason&&"noContent"])},{default:o((()=>[_(c(J.reason?J.reason:"点击选择申请原因"),1)])),_:1},8,["class"])])),right:o((()=>[t(E,{type:"right"})])),_:1}),t(G,{class:"application_amount mb20"},{content:o((()=>[t(I,{class:"jy-return-type"},{default:o((()=>[t(V,{class:"decoration"},{default:o((()=>[_("申请金额")])),_:1}),t(I,{class:"df"},{default:o((()=>[t(V,null,{default:o((()=>[_("¥")])),_:1}),F.value?(r(),d(V,{key:1},{default:o((()=>[_(c(J.priceNum),1)])),_:1})):(r(),d(H,{key:0,modelValue:J.priceNum,"onUpdate:modelValue":a[1]||(a[1]=e=>J.priceNum=e),type:"number",disabled:F.value},null,8,["modelValue","disabled"]))])),_:1})])),_:1})])),right:o((()=>[t(E,{type:"compose",onClick:B},{default:o((()=>[_(c(F.value?"修改金额":"确定修改"),1)])),_:1})])),_:1}),t(G,{class:"mb20"},{decoration:o((()=>[t(I,{class:"jy-return-type",style:{width:"100%"}},{default:o((()=>[t(V,{class:"decoration"},{default:o((()=>[_("申请说明")])),_:1}),t(I,null,{default:o((()=>[t(H,{type:"textarea",autoHeight:"",inputBorder:!1,modelValue:w.value,"onUpdate:modelValue":a[2]||(a[2]=e=>w.value=e),placeholder:"必填,请您详细填写申请说明",maxlength:"300"},null,8,["modelValue"]),t(P,{limit:"9",class:"uni-file-picker",imageStyles:{width:"150rpx",height:"150rpx"}},{default:o((()=>[t(L,{class:"wh150",src:n(C),mode:"aspectFill"},null,8,["src"])])),_:1})])),_:1})])),_:1})])),_:1}),t(G,null,{decoration:o((()=>[t(V,{class:"decoration"},{default:o((()=>[_("联系电话")])),_:1})])),content:o((()=>[t(V,{class:"decoration"},{default:o((()=>[_("123123213")])),_:1})])),_:1})])),_:1}),t(S,{ref_key:"reasonPopup",ref:U,type:"bottom"},{default:o((()=>[t(I,{class:"reason-popup f1 bfff pr"},{default:o((()=>[t(I,{class:"title"},{default:o((()=>[t(V,null,{default:o((()=>[_("请选择申请原因")])),_:1})])),_:1}),t(I,{class:"close-btn",onClick:a[3]||(a[3]=e=>U.value.close())},{default:o((()=>[_("×")])),_:1}),(r(),s(u,null,m(