2 lines
5.1 KiB
JavaScript
2 lines
5.1 KiB
JavaScript
import{x as e,y as a,z as s,r as l,g as t,l as i,a as o,b as n,w as r,u as c,F as d,i as u,o as p,e as m,m as f,f as _,v as h,t as g}from"./index-CZsuXyof.js";import{_ as A}from"./uni-file-picker.Dkbqw_5V.js";import{r as b}from"./uni-app.es.Cv5-J_i3.js";import{_ as x,a as y}from"./uni-forms.CzErZH4E.js";import{_ as k}from"./uni-easyinput.Bm1GUSJ8.js";import{_ as j}from"./uni-icons.CE6FQOeI.js";import{_ as v}from"./shop-upload-image.h6cF0wip.js";import{J as w}from"./index.Bcr2E-Cv.js";import{J as C}from"./index.GDw7f5Yx.js";import{e as B}from"./event-bus.hELIPZJH.js";import{_ as U}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-cloud.es.t_RKYAwE.js";/* empty css */import"./Mixins.DZwwZj4P.js";/* empty css */import"./uni-popup.M4-7QhOy.js";import"./uni-popup.vue_vue_type_style_index_0_scoped_f0b957f8_lang.BhWYEB-t.js";/* empty css */const S=U({__name:"index",setup(U){const{checkLink:S}=e("util");a((()=>{B.on("business-operator",Y)})),s((()=>{B.off("business-operator")}));const Y=e=>{console.log("===================================="),console.log(e),console.log("====================================")},I=l(null),M=t({name:""}),V=t({name:""}),z=()=>{uni.showToast({title:"发布成功",icon:"none"})},E=()=>{S("pages/merchant/specifications/index")};return(e,a)=>{const s=_,l=u,t=b(i("uni-file-picker"),A),B=b(i("uni-forms-item"),x),U=b(i("uni-easyinput"),k),S=h,Y=b(i("uni-icons"),j),G=b(i("uni-forms"),y);return p(),o(d,null,[n(l,{class:"jy-commodity_release"},{default:r((()=>[n(G,{modelValue:M},{default:r((()=>[n(B,{class:"vertical-label margins",label:"商品图片",name:"name"},{default:r((()=>[n(t,{imageStyles:{width:"150rpx",height:"150rpx"},limit:"9"},{default:r((()=>[n(l,null,{default:r((()=>[n(s,{class:"wh120",src:v})])),_:1})])),_:1})])),_:1}),n(B,{class:"vertical-label margins",labelPosition:"top",label:"商品标题",name:"name"},{default:r((()=>[n(U,{type:"textarea",autoHeight:"",inputBorder:!1,maxlength:"30",placeholder:"最多输入60字符(30个汉字)"})])),_:1}),n(l,{class:"margins mb20"},{default:r((()=>[n(B,{label:"类目",name:"name"},{default:r((()=>[n(l,{class:"df jcsb aic hohp",onClick:a[0]||(a[0]=e=>I.value.open())},{default:r((()=>[n(S,{class:"click_select"},{default:r((()=>[m("点击选择")])),_:1}),n(Y,{color:"#d8d8d8",type:"arrowright",size:"18"})])),_:1}),n(c(C),{ref_key:"category",ref:I,title:"请选择申请原因",showSave:!1},{default:r((()=>[(p(),o(d,null,f(10,(a=>n(l,{class:"reason-list",onClick:s=>e.selectReason(a)},{default:r((()=>[n(S,{class:"label"},{default:r((()=>[m(g(a),1)])),_:2},1024)])),_:2},1032,["onClick"]))),64))])),_:1},512)])),_:1}),n(B,{label:"规格",name:"name"},{default:r((()=>[n(S,{class:"click_select hohp df aic",onClick:E},{default:r((()=>[m("添加规格")])),_:1})])),_:1}),n(B,{label:"价格",name:"name"},{default:r((()=>[n(U,{class:"hohp df aic",type:"number",inputBorder:!1,placeholder:"¥0.00"})])),_:1}),n(B,{label:"库存",name:"name"},{default:r((()=>[n(U,{class:"hohp df aic",type:"number",inputBorder:!1,placeholder:"输入库存"})])),_:1})])),_:1}),n(B,{class:"margins",label:"发货",name:"name"},{default:r((()=>[n(l,{class:"df jcsb aic hohp"},{default:r((()=>[n(S,{class:"click_select"},{default:r((()=>[m("点击选择")])),_:1}),n(Y,{color:"#d8d8d8",type:"arrowright",size:"18"})])),_:1}),n(c(C),{ref_key:"category",ref:I,title:"发货",showSave:!1},{default:r((()=>[n(G,{modelValue:V},{default:r((()=>[n(B,{label:"发货时间",name:"name"},{default:r((()=>[n(U,{class:"hohp df aic",type:"text",inputBorder:!1,placeholder:"输入时间"})])),_:1}),n(B,{label:"运费",name:"name"},{default:r((()=>[n(U,{class:"hohp df aic",type:"text",inputBorder:!1,placeholder:"输入运费"})])),_:1}),n(B,{label:"所在地",name:"name"},{default:r((()=>[n(U,{class:"hohp df aic",type:"text",inputBorder:!1,placeholder:"输入省,市,区"})])),_:1})])),_:1},8,["modelValue"])])),_:1},512)])),_:1}),n(B,{class:"margins",name:"name"},{default:r((()=>[n(l,{class:"df jcsb aic hohp"},{default:r((()=>[n(l,{class:"df aic hohp"},{default:r((()=>[n(s,{class:"wh50 mr40",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFNSURBVEiJ7ZQxS4JBGICf9/xIhwaDwCgHFz+kucEhsB/RnkuKRGPgEggNEc1BZlBuNvUDaolamoMwXV2ihgYHya97W8yMhk8/LBef5bh7797nvePuYMqkkcGOniSziNkD4gHztVC7K7nm+S+BniWidMMvCHdYvQmU3kgGZZVuaE62HtsATj/YiURx1EFtVfLfFYxC7wTWMHYeaAOYQJWOgOM3QUs4LLm3qCwgWpTNxsUoAv8dxFJxkDSiUZCaVtwrLbup8Qm+EHZQCsAKIg9aSe3r0fLs+ARWPck9HWNJIlRBi8zYy/EJfqDaaz/GJzDi6Gkqj6EJkkU54D207rfM9xb1UQ5Bo8A1Vrcl36gPs8xf8FxvsejeYySG1YLkGrWhixpGICU8aKRHSTrIP77kSOcNL+whZkPLbiJQNpEM4GHNa39oMP4X3/WUyfMJYe1rrAniTXQAAAAASUVORK5CYII=",mode:"aspectFit"}),n(S,null,{default:r((()=>[m("添加链接到视频")])),_:1})])),_:1}),n(Y,{color:"#d8d8d8",type:"arrowright",size:"18"})])),_:1})])),_:1})])),_:1},8,["modelValue"])])),_:1}),n(c(w),{onClick:z},{default:r((()=>[m("立即发布")])),_:1})],64)}}},[["__scopeId","data-v-db2b84af"]]);export{S as default};
|