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

100 lines
5.8 KiB

3 months ago
  1. const __sfc__ = defineComponent({
  2. data() {
  3. return {
  4. customerName: '',
  5. phoneNumber: '',
  6. carModel: '',
  7. orderAmount: ''
  8. };
  9. },
  10. methods: {
  11. // submitOrder() {
  12. // if (this.customerName && this.phoneNumber && this.carModel && this.orderAmount) {
  13. // uni.showToast({
  14. // title: '订单提交成功',
  15. // icon: 'success'
  16. // });
  17. // // 这里可以添加提交订单的逻辑,例如调用API
  18. // } else {
  19. // uni.showToast({
  20. // title: '请填写完整信息',
  21. // icon: 'none'
  22. // });
  23. // }
  24. // }
  25. // navigateTo(page) {
  26. // // switch (page) {
  27. // // case 'home':
  28. // // uni.navigateTo({ url: '/pages/home/home' });
  29. // // break;
  30. // // case 'order':
  31. // // uni.navigateTo({ url: '/pages/order/order' });
  32. // // break;
  33. // // case 'profile':
  34. // // uni.navigateTo({ url: '/pages/profile/profile' });
  35. // // break;
  36. // // default:
  37. // // break;
  38. // // }
  39. // }
  40. }
  41. });
  42. export default __sfc__;
  43. function GenPagesHomeHomeRender(this: InstanceType<typeof __sfc__>): any | null {
  44. const _ctx = this;
  45. const _cache = this.$.renderCache;
  46. const _component_uni_icons = resolveEasyComponent("uni-icons", _easycom_uni_icons);
  47. return createElementVNode("view", utsMapOf({ class: "container" }), [
  48. createElementVNode("view", utsMapOf({ class: "header" }), [
  49. createElementVNode("view", utsMapOf({ class: "uni-incon" }), [
  50. createVNode(_component_uni_icons, utsMapOf({
  51. type: "arrow-left",
  52. size: "30"
  53. }))
  54. ]),
  55. createElementVNode("view", null, [
  56. createElementVNode("text", utsMapOf({ class: "title" }), "北京汽车有限公司")
  57. ])
  58. ]),
  59. createElementVNode("swiper", utsMapOf({
  60. class: "swiper",
  61. "indicator-dots": "",
  62. autoplay: "",
  63. interval: "3000",
  64. duration: "500"
  65. }), [
  66. createElementVNode("swiper-item", null, [
  67. createElementVNode("image", utsMapOf({
  68. class: "swiper-image",
  69. src: "/static/logo.png",
  70. mode: "aspectFill"
  71. }))
  72. ]),
  73. createElementVNode("swiper-item", null, [
  74. createElementVNode("image", utsMapOf({
  75. class: "swiper-image",
  76. src: "/static/logo.png",
  77. mode: "aspectFill"
  78. }))
  79. ]),
  80. createElementVNode("swiper-item", null, [
  81. createElementVNode("image", utsMapOf({
  82. class: "swiper-image",
  83. src: "/static/logo.png",
  84. mode: "aspectFill"
  85. }))
  86. ])
  87. ]),
  88. createElementVNode("view", null, [
  89. createElementVNode("image", utsMapOf({
  90. class: "icon-image",
  91. src: "/static/logo.png"
  92. }))
  93. ]),
  94. createElementVNode("view", null, [
  95. createElementVNode("button", utsMapOf({ class: "subtitle" }), "订单录入")
  96. ])
  97. ]);
  98. }
  99. 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"]]))]])];
  100. import _easycom_uni_icons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.uvue';
  101. //# sourceMappingURL=home.uvue.map