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

71 lines
2.3 KiB

"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));
},
mounted() {
api.childList(new UTSJSONObject({ pid: getApp().pid_1 })).then((res = null) => {
this.list = res.result.records;
});
},
methods: {
getBack() {
common_vendor.index.navigateBack({ delta: 1 });
},
getName(name = null) {
this.clientInfo.appOrderCarList[0].carSeries = this.clientInfo.appOrderCarList[0].carSeries + name;
common_vendor.index.__f__("log", "at pages/views/car.uvue:56", "3", this.clientInfo.appOrderCarList[0].carSeries);
if (getApp().flag != 1) {
common_vendor.index.redirectTo({ url: "/pages/index/PayPal?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo)) });
} else {
common_vendor.index.redirectTo({ url: "/pages/index/PayPal_pinpai?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: "08b6e8fc-1-" + i0,
c: index,
d: common_vendor.o(($event) => $options.getName(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/car.js.map