zs 1 năm trước cách đây
mục cha
commit
08b0c449a7

+ 20 - 14
pagesHome/sell/index.vue

@@ -35,9 +35,9 @@
 									<u-icon name="arrow-right"></u-icon>
 								</template>
 							</u-form-item>
-							<u-form-item label="上牌日期" prop="date">
+							<u-form-item label="上牌日期" prop="start">
 								<picker name="date" @change="dateChange" mode="date">
-									<view class="picker">{{form.date||'请选择'}}</view>
+									<view class="picker">{{form.start||'请选择'}}</view>
 								</picker>
 								<template #right>
 									<u-icon name="arrow-right"></u-icon>
@@ -58,14 +58,17 @@
 									<u-icon name="arrow-right"></u-icon>
 								</template>
 							</u-form-item>
-							<u-form-item label="估值地区" prop="phone">
-								<text class="picker" @tap="toCity">{{form.city?.name||'请选择'}}</text>
+							<u-form-item label="估值地区" prop="place">
+								<text class="picker" @tap="toCity">{{form.place?.name||'请选择'}}</text>
 								<template #right>
 									<u-icon name="arrow-right"></u-icon>
 								</template>
 							</u-form-item>
-							<u-form-item label="手机号" prop="phone">
-								<input class="input" v-model="form.phone" placeholder="填写常用手机号" />
+							<u-form-item label="联系人" prop="contacts">
+								<input class="input" v-model="form.contacts" placeholder="填写联系人" />
+							</u-form-item>
+							<u-form-item label="联系电话" prop="tel">
+								<input class="input" v-model="form.tel" placeholder="填写常用手机号" />
 							</u-form-item>
 						</u--form>
 					</view>
@@ -112,10 +115,9 @@
 		]
 	});
 	// 字典表
-	const courseList = ref([{ value: '1', label: '1万' }, { value: '2', label: '2万' }, { value: '3', label: '3万' }, { value: '4', label: '4万' }, { value: '5', label: '5万' }]);
+	const courseList = ref([{ value: '1', label: '1万公里' }, { value: '2', label: '2万公里' }, { value: '3', label: '3万公里' }, { value: '4', label: '4万公里' }, { value: '5', label: '5万公里' }]);
 	onLoad(async () => {
 		await searchConfig();
-		await search();
 	})
 	onShow(() => {
 		uni.$on('toRoute', function (data) {
@@ -129,23 +131,27 @@
 	const searchConfig = async () => {
 		config.value = uni.getStorageSync('config');
 	};
-	// 查询
-	const search = async () => {
-	};
 	// 上牌日期
 	const dateChange = (e) => {
-		console.log(e);
+		form.value.start = e.target.value;
 	};
 	// 行驶里程
 	const courseChange = (e) => {
-		console.log(e);
+		const data = courseList.value[e.detail.value]
+		if (data) form.value.course = data.label
 	};
-	// 选择城市
+	// 选择上牌城市
 	const toCity = () => {
 		uni.navigateTo({
 			url: `/pagesHome/city/index`,
 		})
 	};
+	// 选择估值城市
+	const toPlace = () => {
+		uni.navigateTo({
+			url: `/pagesHome/city/index`,
+		})
+	};
 	// 选择品牌
 	const toSelect = () => {
 		uni.navigateTo({

+ 0 - 1
pagesHome/shop/index.vue

@@ -162,7 +162,6 @@
 	// 基本信息
 	const config = ref({});
 	const id = ref('');
-	const imageURL = ref('https://cdn.uviewui.com/uview/album/1.jpg');
 	// 店铺
 	const shop = ref({});
 	const type = ref('0');

+ 25 - 20
unpackage/dist/dev/mp-weixin/pagesHome/sell/index.js

@@ -31,10 +31,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
         }
       ]
     });
-    const courseList = common_vendor.ref([{ value: "1", label: "1万" }, { value: "2", label: "2万" }, { value: "3", label: "3万" }, { value: "4", label: "4万" }, { value: "5", label: "5万" }]);
+    const courseList = common_vendor.ref([{ value: "1", label: "1万公里" }, { value: "2", label: "2万公里" }, { value: "3", label: "3万公里" }, { value: "4", label: "4万公里" }, { value: "5", label: "5万公里" }]);
     common_vendor.onLoad(async () => {
       await searchConfig();
-      await search();
     });
     common_vendor.onShow(() => {
       common_vendor.index.$on("toRoute", function(data) {
@@ -47,13 +46,13 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     const searchConfig = async () => {
       config.value = common_vendor.index.getStorageSync("config");
     };
-    const search = async () => {
-    };
     const dateChange = (e) => {
-      console.log(e);
+      form.value.start = e.target.value;
     };
     const courseChange = (e) => {
-      console.log(e);
+      const data = courseList.value[e.detail.value];
+      if (data)
+        form.value.course = data.label;
     };
     const toCity = () => {
       common_vendor.index.navigateTo({
@@ -124,14 +123,14 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
           label: "车辆车型",
           prop: "type"
         }),
-        p: common_vendor.t(form.value.date || "请选择"),
+        p: common_vendor.t(form.value.start || "请选择"),
         q: common_vendor.o(dateChange),
         r: common_vendor.p({
           name: "arrow-right"
         }),
         s: common_vendor.p({
           label: "上牌日期",
-          prop: "date"
+          prop: "start"
         }),
         t: common_vendor.t(form.value.course || "请选择"),
         v: common_vendor.o(courseChange),
@@ -153,32 +152,38 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
           label: "上牌城市",
           prop: "city"
         }),
-        E: common_vendor.t(((_h = form.value.city) == null ? void 0 : _h.name) || "请选择"),
+        E: common_vendor.t(((_h = form.value.place) == null ? void 0 : _h.name) || "请选择"),
         F: common_vendor.o(toCity),
         G: common_vendor.p({
           name: "arrow-right"
         }),
         H: common_vendor.p({
           label: "估值地区",
-          prop: "phone"
+          prop: "place"
         }),
-        I: form.value.phone,
-        J: common_vendor.o(($event) => form.value.phone = $event.detail.value),
+        I: form.value.contacts,
+        J: common_vendor.o(($event) => form.value.contacts = $event.detail.value),
         K: common_vendor.p({
-          label: "手机号",
-          prop: "phone"
+          label: "联系人",
+          prop: "contacts"
+        }),
+        L: form.value.tel,
+        M: common_vendor.o(($event) => form.value.tel = $event.detail.value),
+        N: common_vendor.p({
+          label: "联系电话",
+          prop: "tel"
         }),
-        L: common_vendor.sr("uForm", "1d378803-2"),
-        M: common_vendor.p({
+        O: common_vendor.sr("uForm", "1d378803-2"),
+        P: common_vendor.p({
           model: form.value,
           rules: rules.value,
           labelWidth: "65",
           ["border-bottom"]: true
         }),
-        N: common_vendor.o(toEvaluate),
-        O: agree.value,
-        P: common_vendor.o(toAgree),
-        Q: common_vendor.o(changeAgree)
+        Q: common_vendor.o(toEvaluate),
+        R: agree.value,
+        S: common_vendor.o(toAgree),
+        T: common_vendor.o(changeAgree)
       });
     };
   }

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
unpackage/dist/dev/mp-weixin/pagesHome/sell/index.wxml


+ 0 - 1
unpackage/dist/dev/mp-weixin/pagesHome/shop/index.js

@@ -22,7 +22,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     });
     const config = common_vendor.ref({});
     const id = common_vendor.ref("");
-    common_vendor.ref("https://cdn.uviewui.com/uview/album/1.jpg");
     const shop = common_vendor.ref({});
     const type = common_vendor.ref("0");
     const is_show = common_vendor.ref(false);