"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const api = require("../../api.js");
|
|
const _sfc_main = common_vendor.defineComponent({
|
|
data() {
|
|
return {
|
|
list: [],
|
|
currentIndex: "",
|
|
clientInfo: new UTSJSONObject({}),
|
|
certFront: "",
|
|
carPic: "",
|
|
certBack: ""
|
|
};
|
|
},
|
|
onLoad(options) {
|
|
this.clientInfo = UTS.JSON.parse(decodeURIComponent(options.clientInfo));
|
|
common_vendor.index.__f__("log", "at pages/views/carTwo.uvue:42", this.clientInfo.appOrderCarList[0].carSeries);
|
|
},
|
|
mounted() {
|
|
api.childList(new UTSJSONObject({ pid: getApp().pid })).then((res = null) => {
|
|
this.list = res.result.records;
|
|
});
|
|
},
|
|
methods: {
|
|
getBack() {
|
|
common_vendor.index.navigateBack({ delta: 1 });
|
|
},
|
|
getPid(id = null, name = null) {
|
|
this.clientInfo.appOrderCarList[0].carSeries = this.clientInfo.appOrderCarList[0].carSeries + name;
|
|
api.childList(new UTSJSONObject({ pid: id })).then((res = null) => {
|
|
if (res.result.records.length == 0) {
|
|
if (this.pagesCount >= 10) {
|
|
common_vendor.index.redirectTo({
|
|
url: "/pages/index/PayPal?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo))
|
|
});
|
|
} else {
|
|
common_vendor.index.navigateTo({
|
|
url: "/pages/index/PayPal?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo))
|
|
});
|
|
}
|
|
} else {
|
|
getApp().pid = id;
|
|
if (this.pagesCount >= 10) {
|
|
common_vendor.index.redirectTo({
|
|
url: "/pages/views/carFinal?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo))
|
|
});
|
|
} else {
|
|
common_vendor.index.navigateTo({
|
|
url: "/pages/views/carFinal?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo))
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
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.list, (item, index, i0) => {
|
|
return {
|
|
a: common_vendor.t(item.name),
|
|
b: "3a4b3914-1-" + i0,
|
|
c: index,
|
|
d: common_vendor.o(($event) => $options.getPid(item.id, item.name), index)
|
|
};
|
|
}),
|
|
d: common_vendor.p({
|
|
type: "right",
|
|
color: "#c0c0c0"
|
|
}),
|
|
e: $data.currentIndex,
|
|
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/carTwo.js.map
|