合同小程序前端代码仓库
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.
 
 
 
 
 

1 lines
2.6 KiB

"use strict";const e=require("../../common/vendor.js"),t=require("../../common/assets.js"),i=e.defineComponent({data:()=>({ServiceName:"",title:"北京汽车有限公司",isshow:!1,isshow_1:!1,newListData:[],allMsg:[new UTSJSONObject({name:"myhua",id:1}),new UTSJSONObject({name:"mp3",id:2}),new UTSJSONObject({name:"hello",id:3}),new UTSJSONObject({name:"world",id:4}),new UTSJSONObject({name:"warm weather",id:5}),new UTSJSONObject({name:"m3",id:6}),new UTSJSONObject({name:"hahaha",id:7})],textcontent:["公告1:欢迎使用车辆合同生成系统!","公告2:请及时查看最新用户协议。","公告3:隐私政策已更新,请知悉。","公告1:欢迎使用车辆合同生成系统!","公告2:请及时查看最新用户协议。","公告3:隐私政策已更新,请知悉。"]}),mounted(){this.allMsg=[{name:"myhua",id:1},{name:"mp3",id:2},{name:"hello",id:3},{name:"world",id:4},{name:"warm weather",id:5},{name:"m3",id:6},{name:"hahaha",id:7}],this.textcontent=this.allMsg},methods:{change_text(){this.isshow?this.isshow=!1:(this.isshow=!0,console.log("111"))},orderEntry(){console.log("111"),e.index.navigateTo({url:"/pages/views/dingDanCreate"})},searchName(){},change_city(e=null){this.title=e,this.change_text(),this.isshow_1=!0},close_view(){this.isshow_1=!1},handleSearch(e=null){if(event.target.value){let e=event.target.value.split(""),t="(.*?)";this.textcontent=[];let i=t+e.join(t)+t,n=RegExp(i,"i");this.allMsg.map((e=>{n.test(e.name)&&this.textcontent.push(e)}))}else this.textcontent=[],this.textcontent=this.allMsg}}});if(!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("uni-easyinput"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js"))();const n=e._export_sfc(i,[["render",function(i,n,s,o,a,h){return e.e({a:e.t(a.title),b:a.title,c:e.p({type:"right",size:"30",color:"#c2d4de",size:1}),d:e.o(((...e)=>h.change_text&&h.change_text(...e))),e:t._imports_0$1,f:t._imports_1,g:e.p({type:"right",size:25,color:"#306e91"}),h:e.o(((...e)=>h.orderEntry&&h.orderEntry(...e))),i:a.isshow},a.isshow?{j:e.p({type:"search",size:20}),k:e.o((e=>h.handleSearch(a.ServiceName))),l:e.o((e=>a.ServiceName=e)),m:e.p({inputBorder:!1,placeholder:"请输入服务名称",modelValue:a.ServiceName}),n:e.o(((...e)=>h.searchName&&h.searchName(...e))),o:e.f(a.textcontent,((t,i,n)=>({a:e.t(t.name),b:i,c:e.o((e=>h.change_city(t.name)),i)})))}:{},{p:a.isshow_1},a.isshow_1?{q:t._imports_2,r:e.t(a.title),s:e.o(((...e)=>h.close_view&&h.close_view(...e)))}:{},{t:e.sei(i.virtualHostId,"view")})}]]);wx.createPage(n);