"use strict";const e=require("../../common/vendor.js"),n=e.defineComponent({data:()=>({firstFocus:!0,ServiceName:"",product:[new UTSJSONObject({id:1,name:"数码",children:[new UTSJSONObject({id:12,name:"耳机",children:[new UTSJSONObject({id:121,name:"漫步者"}),new UTSJSONObject({id:122,name:"倍思"})]}),new UTSJSONObject({id:13,name:"电脑",children:[new UTSJSONObject({id:131,name:"联想"}),new UTSJSONObject({id:132,name:"小米"}),new UTSJSONObject({id:133,name:"戴尔"})]})]}),new UTSJSONObject({id:2,name:"家用电器",children:[new UTSJSONObject({id:11,name:"手机",children:[new UTSJSONObject({id:111,name:"iphone"}),new UTSJSONObject({id:112,name:"vivo"}),new UTSJSONObject({id:113,name:"oppo"})]})]})],product_2:[],FirstIndex:0,name:""}),onLoad(){e.index.request({url:"https://gpt.aiym.run/contract/miniapp/product/categories",method:"GET",header:new UTSJSONObject({"Content-Type":"application/json","X-Access-Token":"11"}),success:e=>{console.log(e.data.result)}})},methods:{toBack(){e.index.navigateBack({delta:1})},toNext(){console.log(111),e.index.navigateTo({url:"/pages/views/payment"})},nameClick(){},FirstLevelChange(e=null){this.FirstIndex=e,this.product_2=this.product[e-1].children},selctRadio(e=null){console.log(e),this.name=e}},searchName(){console.log("1")}});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 t=e._export_sfc(n,[["render",function(n,t,o,i,c,a){return{a:e.o(a.toBack),b:e.p({type:"left",size:"30",color:"#c2d4de",size:1}),c:e.p({type:"search",size:20}),d:e.o((e=>c.ServiceName=e)),e:e.p({inputBorder:!1,placeholder:"请输入服务名称",focus:c.firstFocus,modelValue:c.ServiceName}),f:e.o(((...e)=>n.searchName&&n.searchName(...e))),g:e.f(c.product,((n,t,o)=>({a:e.t(n.name),b:e.n(c.FirstIndex===n.id?"click_color":""),c:e.o((e=>a.FirstLevelChange(n.id)))}))),h:e.f(c.product_2,((n,t,o)=>({a:e.t(n.name),b:e.n(n.name===c.name?"select_color":""),c:n.name==c.name,d:e.o((e=>a.selctRadio(n.name)))}))),i:e.o(((...e)=>a.toNext&&a.toNext(...e))),j:e.sei(n.virtualHostId,"view")}}]]);wx.createPage(t);
|