"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const api = require("../../api.js");
|
|
const js_airport = require("../../js/airport.js");
|
|
const _sfc_main = common_vendor.defineComponent({
|
|
data() {
|
|
return {
|
|
currentIndex: "",
|
|
letter: "",
|
|
clientInfo: new UTSJSONObject({}),
|
|
indexList: [],
|
|
certFront: "",
|
|
carPic: "",
|
|
certBack: ""
|
|
};
|
|
},
|
|
onLoad(options) {
|
|
this.clientInfo = UTS.JSON.parse(decodeURIComponent(options.clientInfo));
|
|
common_vendor.index.__f__("log", "at pages/views/carOne.uvue:52", this.clientInfo.appOrderCarList[0].carSeries);
|
|
},
|
|
mounted() {
|
|
api.getList().then((res = null) => {
|
|
let list = js_airport.transformBrands(res.result);
|
|
this.indexList = list;
|
|
});
|
|
},
|
|
methods: {
|
|
scrollToIndex(letter = null) {
|
|
this.letter = letter;
|
|
this.currentIndex = letter;
|
|
},
|
|
getID(id = null, name = null) {
|
|
common_vendor.index.__f__("log", "at pages/views/carOne.uvue:66", id);
|
|
this.clientInfo.appOrderCarList[0].carSeries = name;
|
|
getApp().pid = id;
|
|
common_vendor.index.redirectTo({
|
|
url: "/pages/views/carTwo?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo))
|
|
});
|
|
},
|
|
getBack() {
|
|
common_vendor.index.__f__("log", "at pages/views/carOne.uvue:78", 1);
|
|
common_vendor.index.navigateBack({ delta: 1 });
|
|
}
|
|
}
|
|
});
|
|
if (!Array) {
|
|
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
|
|
_easycom_uni_icons2();
|
|
}
|
|
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
|
if (!Math) {
|
|
_easycom_uni_icons();
|
|
}
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return {
|
|
a: common_vendor.p({
|
|
type: "left",
|
|
size: "30"
|
|
}),
|
|
b: common_vendor.o((...args) => $options.getBack && $options.getBack(...args)),
|
|
c: common_vendor.f($data.indexList, (item, index, i0) => {
|
|
return {
|
|
a: common_vendor.t(item.letter),
|
|
b: common_vendor.f(item.cars, (car, i, i1) => {
|
|
return {
|
|
a: common_vendor.t(car.name),
|
|
b: i,
|
|
c: common_vendor.o(($event) => $options.getID(car.id, car.name), i)
|
|
};
|
|
}),
|
|
c: common_vendor.sei(item.letter, "view"),
|
|
d: index
|
|
};
|
|
}),
|
|
d: $data.currentIndex,
|
|
e: common_vendor.f($data.indexList, (item, index, i0) => {
|
|
return {
|
|
a: common_vendor.t(item.letter),
|
|
b: common_vendor.n($data.letter == item.letter ? "test1" : ""),
|
|
c: index,
|
|
d: common_vendor.o(($event) => $options.scrollToIndex(item.letter), index)
|
|
};
|
|
}),
|
|
f: common_vendor.sei(_ctx.virtualHostId, "view")
|
|
};
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/views/carOne.js.map
|