hldy_xcx/unpackage/dist/dev/mp-weixin/pages/login/specialsmall.js

42 lines
1.8 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const api_loginApi = require("../../api/loginApi.js");
const _sfc_main = {
__name: "specialsmall",
setup(__props) {
const special = common_vendor.ref(false);
const jumpto = () => {
api_loginApi.getMessage(common_vendor.index.getStorageSync("openid")).then((res) => {
common_vendor.index.setStorageSync("tel", res.result.tel);
common_vendor.index.setStorageSync("token", res.result.token);
common_vendor.index.setStorageSync("serverUrl", res.result.serverUrl);
common_vendor.index.setStorageSync("platId", res.result.platId);
common_vendor.index.setStorageSync("izJg", res.result.izJg);
common_vendor.index.setStorageSync("izJs", res.result.izJs);
common_vendor.index.setStorageSync("izYg", res.result.izYg);
common_vendor.index.redirectTo({
url: `/pages/index/index`
});
});
};
common_vendor.onLoad((options) => {
if (options.special == `true`) {
special.value = true;
}
});
return (_ctx, _cache) => {
return {
a: `https://www.focusnu.com/media/directive/login/introduce/allbgc.png`,
b: `https://www.focusnu.com/media/directive/index/bluephoto.png`,
c: common_vendor.t(special.value ? `变更信息` : `加盟`),
d: common_vendor.t(special.value ? `我们将尽快处理并反馈审核结果` : `请耐心等待审核结果`),
e: common_vendor.t(special.value ? `期待与您继续携手同行` : `期待您早日加入护理单元大家庭`),
f: common_vendor.o(jumpto)
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c9ad9bed"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/specialsmall.js.map