const __sfc__ = defineComponent({ data() { return { customerName: '', phoneNumber: '', carModel: '', orderAmount: '' }; }, methods: { // submitOrder() { // if (this.customerName && this.phoneNumber && this.carModel && this.orderAmount) { // uni.showToast({ // title: '订单提交成功', // icon: 'success' // }); // // 这里可以添加提交订单的逻辑,例如调用API // } else { // uni.showToast({ // title: '请填写完整信息', // icon: 'none' // }); // } // } // navigateTo(page) { // // switch (page) { // // case 'home': // // uni.navigateTo({ url: '/pages/home/home' }); // // break; // // case 'order': // // uni.navigateTo({ url: '/pages/order/order' }); // // break; // // case 'profile': // // uni.navigateTo({ url: '/pages/profile/profile' }); // // break; // // default: // // break; // // } // } } }); export default __sfc__ function GenPagesHomeHomeRender(this: InstanceType): any | null { const _ctx = this const _cache = this.$.renderCache const _component_uni_icons = resolveEasyComponent("uni-icons",_easycom_uni_icons) return createElementVNode("view", utsMapOf({ class: "container" }), [ createElementVNode("view", utsMapOf({ class: "header" }), [ createElementVNode("view", utsMapOf({ class: "uni-incon" }), [ createVNode(_component_uni_icons, utsMapOf({ type: "arrow-left", size: "30" })) ]), createElementVNode("view", null, [ createElementVNode("text", utsMapOf({ class: "title" }), "北京汽车有限公司") ]) ]), createElementVNode("swiper", utsMapOf({ class: "swiper", "indicator-dots": "", autoplay: "", interval: "3000", duration: "500" }), [ createElementVNode("swiper-item", null, [ createElementVNode("image", utsMapOf({ class: "swiper-image", src: "/static/logo.png", mode: "aspectFill" })) ]), createElementVNode("swiper-item", null, [ createElementVNode("image", utsMapOf({ class: "swiper-image", src: "/static/logo.png", mode: "aspectFill" })) ]), createElementVNode("swiper-item", null, [ createElementVNode("image", utsMapOf({ class: "swiper-image", src: "/static/logo.png", mode: "aspectFill" })) ]) ]), createElementVNode("view", null, [ createElementVNode("image", utsMapOf({ class: "icon-image", src: "/static/logo.png" })) ]), createElementVNode("view", null, [ createElementVNode("button", utsMapOf({ class: "subtitle" }), "订单录入") ]) ]) } const GenPagesHomeHomeStyles = [utsMapOf([["container", padStyleMapOf(utsMapOf([["display", "flex"], ["flexDirection", "column"], ["backgroundColor", "#f5f5f5"]]))], ["header", padStyleMapOf(utsMapOf([["paddingTop", 20], ["paddingRight", 20], ["paddingBottom", 20], ["paddingLeft", 20], ["width", "100%"], ["backgroundColor", "#007aff"], ["color", "#ffffff"], ["display", "flex"], ["flexDirection", "row"], ["textAlign", "center"]]))], ["uni-incon", padStyleMapOf(utsMapOf([["width", 30], ["height", 30], ["lineHeight", "30px"]]))], ["title", padStyleMapOf(utsMapOf([["fontSize", 15], ["fontWeight", "bold"], ["width", 200], ["height", 30], ["lineHeight", "30px"], ["marginLeft", 30]]))], ["subtitle", padStyleMapOf(utsMapOf([["fontSize", 16], ["width", 100], ["marginTop", 30], ["marginRight", "auto"], ["marginBottom", 0], ["marginLeft", "auto"]]))], ["swiper", padStyleMapOf(utsMapOf([["height", 200], ["borderWidth", 10], ["borderColor", "#FF0000"], ["display", "flex"], ["flexDirection", "row"], ["alignItems", "center"]]))], ["swiper-image", padStyleMapOf(utsMapOf([["width", "50%"], ["height", "100%"], ["marginTop", 0], ["marginRight", "auto"], ["marginBottom", 0], ["marginLeft", "auto"], ["borderRadius", 8]]))], ["form", padStyleMapOf(utsMapOf([["flex", 1], ["paddingTop", 20], ["paddingRight", 20], ["paddingBottom", 20], ["paddingLeft", 20]]))], ["input", padStyleMapOf(utsMapOf([["width", "100%"], ["height", 40], ["marginBottom", 15], ["paddingTop", 10], ["paddingRight", 10], ["paddingBottom", 10], ["paddingLeft", 10], ["borderWidth", 1], ["borderStyle", "solid"], ["borderColor", "#cccccc"], ["borderRadius", 4]]))], ["submit-button", padStyleMapOf(utsMapOf([["width", "100%"], ["height", 40], ["backgroundColor", "#007aff"], ["color", "#ffffff"], ["borderWidth", "medium"], ["borderStyle", "none"], ["borderColor", "#000000"], ["borderRadius", 4], ["fontSize", 16]]))], ["footer", padStyleMapOf(utsMapOf([["display", "flex"], ["justifyContent", "space-around"], ["paddingTop", 10], ["paddingRight", 10], ["paddingBottom", 10], ["paddingLeft", 10], ["backgroundColor", "#ffffff"], ["borderTopWidth", 1], ["borderTopStyle", "solid"], ["borderTopColor", "#cccccc"]]))], ["nav-item", padStyleMapOf(utsMapOf([["textAlign", "center"]]))], ["icon-image", padStyleMapOf(utsMapOf([["width", "30%"], ["height", 140], ["marginTop", 20], ["marginRight", "auto"], ["marginBottom", 0], ["marginLeft", "auto"]]))]])] import _easycom_uni_icons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.uvue'