You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
2.8 KiB
2 lines
2.8 KiB
"use strict";const r=require("../../../common/vendor.js"),u=require("../../index.js");require("../../url/index.js");require("../../store/index.js");require("../../store/app.js");require("../../platform/index.js");require("../../platform/provider/wechat/index.js");require("../../platform/provider/wechat/miniProgram.js");require("../../api/member/auth.js");require("../../request/index.js");require("../../config/index.js");require("../../helper/index.js");require("../../helper/test.js");require("../../helper/digit.js");require("../../api/member/social.js");require("../../api/member/user.js");require("../../platform/provider/apple/index.js");require("../../platform/share.js");require("../../router/index.js");require("../../hooks/useModal.js");require("../../helper/throttle.js");require("../../platform/pay.js");require("../../api/pay/order.js");require("../../store/user.js");require("../../store/cart.js");require("../../api/trade/cart.js");require("../../api/pay/wallet.js");require("../../api/trade/order.js");require("../../store/sys.js");require("../../store/modal.js");require("../../config/zIndex.js");Array||r.resolveComponent("uni-search-bar")();const b=()=>"../../../uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.js";Math||b();const q={__name:"s-search-block",props:{data:{type:Object,default:()=>({})},elBackground:{type:String,default:""},height:{type:Number,default:36},iconColor:{type:String,default:"#b0b3bf"},fontColor:{type:String,default:"#b0b3bf"},placeholder:{type:String,default:"这是一个搜索框"},radius:{type:Number,default:10},width:{type:String,default:"100%"},navbar:{type:Boolean,default:!0}},emits:["click"],setup(e,{emit:n}){const o=r.reactive({searchVal:""}),c=n,d=e,l=()=>{c("click")};function s(i){i.value&&(u.sheep.$router.go("/pages/goods/list",{keyword:i.value}),setTimeout(()=>{o.searchVal=""},100))}return(i,g)=>r.e({a:e.navbar},e.navbar?{b:r.s({color:d.iconColor}),c:r.t(e.placeholder),d:r.s({color:e.fontColor,width:e.width})}:{},{e:!e.navbar},e.navbar?{}:{f:r.o(s),g:r.o(a=>o.searchVal=a),h:r.p({radius:e.data.borderRadius,placeholder:e.data.placeholder,cancelButton:"none",clearButton:"none",modelValue:o.searchVal})},{i:r.f(e.data.hotKeywords,(a,t,h)=>({a:r.t(a),b:r.o(m=>r.unref(u.sheep).$router.go("/pages/goods/list",{keyword:a}),t),c:t})),j:r.s({color:e.data.textColor}),k:e.data.hotKeywords&&e.data.hotKeywords.length&&e.navbar},e.data.hotKeywords&&e.data.hotKeywords.length&&e.navbar?{l:r.f(e.data.hotKeywords,(a,t,h)=>({a:r.t(a),b:t})),m:r.s({color:e.data.textColor,marginRight:"10rpx"})}:{},{n:r.o(l),o:r.s({borderRadius:e.radius+"px",background:e.elBackground,height:e.height+"px",width:e.width}),p:r.n({"border-content":e.navbar})})}},f=r._export_sfc(q,[["__scopeId","data-v-1f3fe5bf"],["__file","D:/xiangmu/佰安出行/app/s-applet/sheep/components/s-search-block/s-search-block.vue"]]);wx.createComponent(f);
|