zs hai 1 ano
pai
achega
b00b3fab16

+ 10 - 10
pages/home/index.vue

@@ -71,16 +71,16 @@
 			limit: limit.value,
 			status: '0'
 		}
-		const res = await $api('car', 'GET', info);
-		if (res.errcode === 0) {
-			list.value = list.value.concat(res.data)
-			total.value = res.total
-		} else {
-			uni.showToast({
-				title: res.errmsg || '',
-				icon: 'error',
-			});
-		}
+		// const res = await $api('car', 'GET', info);
+		// if (res.errcode === 0) {
+		// 	list.value = list.value.concat(res.data)
+		// 	total.value = res.total
+		// } else {
+		// 	uni.showToast({
+		// 		title: res.errmsg || '',
+		// 		icon: 'error',
+		// 	});
+		// }
 	};
 	// 搜索
 	const toChange = () => {

+ 52 - 49
pages/index/index.vue

@@ -20,59 +20,62 @@
 	})
 	// config信息
 	const searchConfig = async () => {
-		let res = await $api(`config`, 'GET', {});
-		if (res.errcode == 0) {
-			config.value = res.data
-			uni.setStorage({
-				key: 'config',
-				data: res.data,
-			})
-		}
+		// let res = await $api(`config`, 'GET', {});
+		// if (res.errcode == 0) {
+		// 	config.value = res.data
+		// 	uni.setStorage({
+		// 		key: 'config',
+		// 		data: res.data,
+		// 	})
+		// }
 	};
 	// 查询
 	const search = async () => {
-		uni.getStorage({
-			key: 'openid',
-			success: function (res) {
-				uni.reLaunch({
-					url: `/pages/home/index`
-				})
-			},
-			fail: function (err) {
-				uni.login({
-					success: async function (res) {
-						if (res.code) {
-							uni.reLaunch({
-								url: `/pages/home/index`
-							})
-							const aee = await $app('/wechat/api/login/app', 'GET', {
-								js_code: res.code,
-								config: $config.wx_projectkey
-							})
-							if (aee.errcode == '0') {
-								uni.setStorage({
-									key: "openid",
-									data: aee.data.openid
-								})
-								uni.reLaunch({
-									url: `/pages/home/index`
-								})
-							} else {
-								uni.showToast({
-									title: aee.errmsg,
-									icon: 'none'
-								})
-							}
-						} else {
-							uni.showToast({
-								title: res.errMsg,
-								icon: 'none'
-							})
-						}
-					}
-				});
-			}
+		uni.reLaunch({
+			url: `/pages/home/index`
 		})
+		// uni.getStorage({
+		// 	key: 'openid',
+		// 	success: function (res) {
+		// 		uni.reLaunch({
+		// 			url: `/pages/home/index`
+		// 		})
+		// 	},
+		// 	fail: function (err) {
+		// 		uni.login({
+		// 			success: async function (res) {
+		// 				if (res.code) {
+		// 					uni.reLaunch({
+		// 						url: `/pages/home/index`
+		// 					})
+		// 					const aee = await $app('/wechat/api/login/app', 'GET', {
+		// 						js_code: res.code,
+		// 						config: $config.wx_projectkey
+		// 					})
+		// 					if (aee.errcode == '0') {
+		// 						uni.setStorage({
+		// 							key: "openid",
+		// 							data: aee.data.openid
+		// 						})
+		// 						uni.reLaunch({
+		// 							url: `/pages/home/index`
+		// 						})
+		// 					} else {
+		// 						uni.showToast({
+		// 							title: aee.errmsg,
+		// 							icon: 'none'
+		// 						})
+		// 					}
+		// 				} else {
+		// 					uni.showToast({
+		// 						title: res.errMsg,
+		// 						icon: 'none'
+		// 					})
+		// 				}
+		// 			}
+		// 		});
+		// 	}
+		// })
 	};
 </script>
 <style lang="scss" scoped>

BIN=BIN
static/home.png


BIN=BIN
static/homeHL.png


BIN=BIN
static/my.png


BIN=BIN
static/myHL.png


+ 3 - 13
unpackage/dist/dev/mp-weixin/pages/home/index.js

@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
   __name: "index",
   setup(__props) {
     var _a, _b;
-    const $api = (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
+    (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
     (_b = common_vendor.getCurrentInstance()) == null ? void 0 : _b.appContext.config.globalProperties.$config;
     const config = common_vendor.ref({ logoUrl: [] });
     const list = common_vendor.ref([]);
@@ -36,21 +36,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
       config.value = common_vendor.index.getStorageSync("config");
     };
     const search = async () => {
-      const info = {
+      ({
         skip: skip.value,
         limit: limit.value,
         status: "0"
-      };
-      const res = await $api("car", "GET", info);
-      if (res.errcode === 0) {
-        list.value = list.value.concat(res.data);
-        total.value = res.total;
-      } else {
-        common_vendor.index.showToast({
-          title: res.errmsg || "",
-          icon: "error"
-        });
-      }
+      });
     };
     const toChange = () => {
       common_vendor.index.navigateTo({

+ 5 - 52
unpackage/dist/dev/mp-weixin/pages/index/index.js

@@ -4,66 +4,19 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
   __name: "index",
   setup(__props) {
     var _a, _b, _c;
-    const $api = (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
-    const $app = (_b = common_vendor.getCurrentInstance()) == null ? void 0 : _b.appContext.config.globalProperties.$app;
-    const $config = (_c = common_vendor.getCurrentInstance()) == null ? void 0 : _c.appContext.config.globalProperties.$config;
+    (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
+    (_b = common_vendor.getCurrentInstance()) == null ? void 0 : _b.appContext.config.globalProperties.$app;
+    (_c = common_vendor.getCurrentInstance()) == null ? void 0 : _c.appContext.config.globalProperties.$config;
     const config = common_vendor.ref({ logo: [] });
     common_vendor.onLoad(async () => {
       await searchConfig();
       await search();
     });
     const searchConfig = async () => {
-      let res = await $api(`config`, "GET", {});
-      if (res.errcode == 0) {
-        config.value = res.data;
-        common_vendor.index.setStorage({
-          key: "config",
-          data: res.data
-        });
-      }
     };
     const search = async () => {
-      common_vendor.index.getStorage({
-        key: "openid",
-        success: function(res) {
-          common_vendor.index.reLaunch({
-            url: `/pages/home/index`
-          });
-        },
-        fail: function(err) {
-          common_vendor.index.login({
-            success: async function(res) {
-              if (res.code) {
-                common_vendor.index.reLaunch({
-                  url: `/pages/home/index`
-                });
-                const aee = await $app("/wechat/api/login/app", "GET", {
-                  js_code: res.code,
-                  config: $config.wx_projectkey
-                });
-                if (aee.errcode == "0") {
-                  common_vendor.index.setStorage({
-                    key: "openid",
-                    data: aee.data.openid
-                  });
-                  common_vendor.index.reLaunch({
-                    url: `/pages/home/index`
-                  });
-                } else {
-                  common_vendor.index.showToast({
-                    title: aee.errmsg,
-                    icon: "none"
-                  });
-                }
-              } else {
-                common_vendor.index.showToast({
-                  title: res.errMsg,
-                  icon: "none"
-                });
-              }
-            }
-          });
-        }
+      common_vendor.index.reLaunch({
+        url: `/pages/home/index`
       });
     };
     return (_ctx, _cache) => {

+ 0 - 207
unpackage/dist/dev/mp-weixin/pages/select/index.js

@@ -1,207 +0,0 @@
-"use strict";
-const common_vendor = require("../../common/vendor.js");
-if (!Array) {
-  const _easycom_u_search2 = common_vendor.resolveComponent("u-search");
-  _easycom_u_search2();
-}
-const _easycom_u_search = () => "../../node-modules/uview-plus/components/u-search/u-search.js";
-if (!Math) {
-  _easycom_u_search();
-}
-const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
-  __name: "index",
-  setup(__props) {
-    var _a, _b;
-    const $api = (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
-    const $config = (_b = common_vendor.getCurrentInstance()) == null ? void 0 : _b.appContext.config.globalProperties.$config;
-    const config = common_vendor.ref({ logoUrl: [] });
-    const list = common_vendor.ref([]);
-    const total = common_vendor.ref(0);
-    const skip = common_vendor.ref(0);
-    const limit = common_vendor.ref(6);
-    const page = common_vendor.ref(0);
-    const is_bottom = common_vendor.ref(false);
-    common_vendor.ref(0);
-    const typeList = common_vendor.ref([
-      {
-        title: "5万以下",
-        type: "0"
-      },
-      {
-        title: "5-10万",
-        type: "1"
-      },
-      {
-        title: "10-15万",
-        type: "2"
-      },
-      {
-        title: "更多条件",
-        type: "3"
-      }
-    ]);
-    const carList = common_vendor.ref([]);
-    common_vendor.onShow(async () => {
-      await searchOther();
-      await searchConfig();
-      await clearPage();
-      await search();
-    });
-    common_vendor.onPullDownRefresh(async () => {
-      await clearPage();
-      await searchOther();
-      await search();
-      common_vendor.index.stopPullDownRefresh();
-    });
-    const searchOther = async () => {
-      let res;
-      res = await $api(`brand`, "GET", { skip: 0, limit: 4, is_use: "0" });
-      if (res.errcode === 0)
-        carList.value = res.data;
-      carList.value.push({
-        name: "更多品牌",
-        type: "4"
-      });
-    };
-    const searchConfig = async () => {
-      config.value = common_vendor.index.getStorageSync("config");
-    };
-    const search = async () => {
-      const info = {
-        skip: skip.value,
-        limit: limit.value,
-        status: "0"
-      };
-      const res = await $api("car", "GET", info);
-      if (res.errcode === 0) {
-        list.value = list.value.concat(res.data);
-        total.value = res.total;
-      } else {
-        common_vendor.index.showToast({
-          title: res.errmsg || "",
-          icon: "error"
-        });
-      }
-    };
-    const toChange = () => {
-      common_vendor.index.navigateTo({
-        url: `/pagesHome/type/index`
-      });
-    };
-    const toRoute = (item) => {
-      common_vendor.index.navigateTo({
-        url: `/${item.route}`
-      });
-    };
-    const toCommon = (item, type) => {
-      if (type == "0") {
-        if (item.type == "4") {
-          common_vendor.index.navigateTo({
-            url: `/pagesHome/brand/index?type=${item.type}`
-          });
-        } else {
-          common_vendor.index.navigateTo({
-            url: `/pagesHome/search/index?brand=${item.name}`
-          });
-        }
-      } else {
-        if (item.type == "3") {
-          common_vendor.index.navigateTo({
-            url: `/pagesHome/search/index?type=${item.type}`
-          });
-        } else {
-          common_vendor.index.navigateTo({
-            url: `/pagesHome/search/index?money=${item.title}`
-          });
-        }
-      }
-    };
-    const toView = (item) => {
-      common_vendor.index.navigateTo({
-        url: `/pagesHome/car/index?id=${item.id || item._id}`
-      });
-    };
-    const toPage = () => {
-      if (total.value > list.value.length) {
-        common_vendor.index.showLoading({
-          title: "加载中",
-          mask: true
-        });
-        page.value = page.value + 1;
-        skip.value = page.value * limit.value;
-        search();
-        common_vendor.index.hideLoading();
-      } else
-        is_bottom.value = true;
-    };
-    const clearPage = () => {
-      list.value = [];
-      skip.value = 0;
-      limit.value = 6;
-      page.value = 0;
-    };
-    return (_ctx, _cache) => {
-      return common_vendor.e({
-        a: common_vendor.o(toChange),
-        b: common_vendor.p({
-          shape: "square",
-          ["show-action"]: false,
-          placeholder: "品牌/车系"
-        }),
-        c: common_vendor.f(common_vendor.unref($config).searchList, (item, index, i0) => {
-          return {
-            a: common_vendor.n(item.icon),
-            b: common_vendor.t(item.title || "暂无"),
-            c: index,
-            d: common_vendor.o(($event) => toRoute(item), index)
-          };
-        }),
-        d: common_vendor.f(carList.value, (item, index, i0) => {
-          return {
-            a: item.logo && item.logo.length > 0 ? item.logo[0].url : "/static/logo.png",
-            b: common_vendor.t(item.name),
-            c: index,
-            d: common_vendor.o(($event) => toCommon(item, "0"), index)
-          };
-        }),
-        e: common_vendor.f(typeList.value, (item, index, i0) => {
-          return {
-            a: common_vendor.t(item.title || "暂无"),
-            b: index,
-            c: common_vendor.o(($event) => toCommon(item, "1"), index)
-          };
-        }),
-        f: common_vendor.f(list.value, (item, index, i0) => {
-          return common_vendor.e({
-            a: item.file && item.file.length > 0 ? item.file[0].url : "",
-            b: common_vendor.t(item.series || "暂无"),
-            c: common_vendor.t(item.year || "暂无"),
-            d: common_vendor.t(item.style || "暂无"),
-            e: item.year
-          }, item.year ? {
-            f: common_vendor.t(item.year || "暂无")
-          } : {}, {
-            g: item.mileage
-          }, item.mileage ? {
-            h: common_vendor.t(item.mileage || "暂无")
-          } : {}, {
-            i: item.place
-          }, item.place ? {
-            j: common_vendor.t(item.place || "暂无")
-          } : {}, {
-            k: common_vendor.t(item.total_money || "0"),
-            l: index,
-            m: common_vendor.o(($event) => toView(item), index)
-          });
-        }),
-        g: is_bottom.value
-      }, is_bottom.value ? {
-        h: common_vendor.t(config.value.bottom_title || "没有更多了!")
-      } : {}, {
-        i: common_vendor.o(toPage)
-      });
-    };
-  }
-});
-const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4723889f"], ["__file", "D:/project/赋强公证/notarization_applet/pages/select/index.vue"]]);
-wx.createPage(MiniProgramPage);

+ 0 - 7
unpackage/dist/dev/mp-weixin/pages/select/index.json

@@ -1,7 +0,0 @@
-{
-  "navigationBarTitleText": "选车",
-  "enablePullDownRefresh": true,
-  "usingComponents": {
-    "u-search": "../../node-modules/uview-plus/components/u-search/u-search"
-  }
-}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 1
unpackage/dist/dev/mp-weixin/pages/select/index.wxml


+ 0 - 104
unpackage/dist/dev/mp-weixin/pages/select/index.wxss

@@ -1,104 +0,0 @@
-/**
- * 这里是uni-app内置的常用样式变量
- *
- * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
- * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
-/* uni.scss */
-.content.data-v-4723889f {
-  display: flex;
-  flex-direction: column;
-  width: 100vw;
-  height: 100vh;
-}
-.content .top.data-v-4723889f {
-  margin: 2vw;
-}
-.content .bottom.data-v-4723889f {
-  position: relative;
-  flex-grow: 1;
-}
-.content .bottom .one .one_1.data-v-4723889f {
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
-  padding: 2vw 4vw;
-}
-.content .bottom .one .one_1 .list.data-v-4723889f {
-  display: flex;
-  flex-direction: column;
-  align-items: center;
-}
-.content .bottom .one .one_1 .list .title.data-v-4723889f {
-  margin: 1vw 0 0 0;
-  font-size: var(--font14Size);
-}
-.content .bottom .one .one_2 .image.data-v-4723889f {
-  width: 35px;
-  height: 35px;
-  border-radius: 35px;
-}
-.content .bottom .one .one_3.data-v-4723889f {
-  padding: 2vw;
-}
-.content .bottom .one .one_3 .list.data-v-4723889f {
-  background-color: var(--f9Color);
-}
-.content .bottom .one .one_3 .list .name.data-v-4723889f {
-  padding: 2vw 4vw;
-  font-size: var(--font14Size);
-}
-.content .bottom .two.data-v-4723889f {
-  margin: 2vw;
-}
-.content .bottom .two .list.data-v-4723889f {
-  display: flex;
-  margin: 1vw 0 0 0;
-  padding: 1vw;
-}
-.content .bottom .two .list .left .image.data-v-4723889f {
-  width: 130px;
-  height: 100px;
-  border-radius: 2px;
-}
-.content .bottom .two .list .right.data-v-4723889f {
-  display: flex;
-  flex-direction: column;
-  justify-content: space-between;
-  margin: 0 0 0 2vw;
-  width: 100%;
-}
-.content .bottom .two .list .right .name.data-v-4723889f {
-  font-size: var(--font14Size);
-}
-.content .bottom .two .list .right .other.data-v-4723889f {
-  color: var(--f85Color);
-  font-size: var(--font12Size);
-}
-.content .bottom .two .list .right .money.data-v-4723889f {
-  color: var(--fF0Color);
-  font-size: var(--font12Size);
-}
-.content .bottom .two .list .right .money text.data-v-4723889f:first-child {
-  font-size: var(--font18Size);
-}
-.scroll-view.data-v-4723889f {
-  position: absolute;
-  top: 0;
-  left: 0;
-  right: 0;
-  bottom: 0;
-}
-.scroll-view .list-scroll-view.data-v-4723889f {
-  display: flex;
-  flex-direction: column;
-}
-.is_bottom.data-v-4723889f {
-  width: 100%;
-  text-align: center;
-}
-.is_bottom text.data-v-4723889f {
-  padding: 2vw 0;
-  display: inline-block;
-  color: var(--f85Color);
-  font-size: var(--font12Size);
-}

+ 1 - 1
unpackage/dist/dev/mp-weixin/project.config.json

@@ -25,7 +25,7 @@
     "miniprogram": {
       "list": [
         {
-          "name": "首页",
+          "name": "赋强公证",
           "pathName": "pages/index/index",
           "query": ""
         }

BIN=BIN
unpackage/dist/dev/mp-weixin/static/home.png


BIN=BIN
unpackage/dist/dev/mp-weixin/static/homeHL.png


BIN=BIN
unpackage/dist/dev/mp-weixin/static/my.png


BIN=BIN
unpackage/dist/dev/mp-weixin/static/myHL.png