8.28 修改事件详情相关概念模块样式,增加股票详情信息来源展示
This commit is contained in:
@@ -5,7 +5,8 @@ const common_assets = require("../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
contentTop: ""
|
||||
contentTop: "",
|
||||
isAgree: false
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
@@ -16,11 +17,34 @@ const _sfc_main = {
|
||||
* 点击一键登录
|
||||
*/
|
||||
clickOneClickLogin() {
|
||||
if (!this.isAgree) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请阅读并同意我们的《用户服务协议》和《隐私政策》",
|
||||
icon: "none"
|
||||
});
|
||||
return;
|
||||
}
|
||||
common_vendor.index.login({
|
||||
provider: "weixin",
|
||||
success(res) {
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:49", res.code);
|
||||
let param = { code: res.code, isJson: 1 };
|
||||
request_api.loginByWx(param).then((res2) => {
|
||||
if (res2.code == 200) {
|
||||
common_vendor.index.showToast({
|
||||
title: res2.message
|
||||
});
|
||||
common_vendor.index.setStorageSync("token", res2.data.token);
|
||||
setTimeout(function() {
|
||||
common_vendor.index.switchTab({
|
||||
url: "/pages/index/index"
|
||||
});
|
||||
}, 1e3);
|
||||
} else
|
||||
common_vendor.index.showToast({
|
||||
title: res2.message,
|
||||
icon: "none"
|
||||
});
|
||||
}).catch((error) => {
|
||||
});
|
||||
},
|
||||
@@ -40,11 +64,15 @@ const _sfc_main = {
|
||||
* 点击同意
|
||||
*/
|
||||
clickAgree() {
|
||||
this.isAgree = !this.isAgree;
|
||||
},
|
||||
/**
|
||||
* 点击查看协议
|
||||
*/
|
||||
clickProtocol() {
|
||||
clickProtocol(type) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine/web/web?type=" + type
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -57,7 +85,7 @@ if (!Math) {
|
||||
_easycom_navBar();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
leftText: "登录",
|
||||
hideNavBg: true,
|
||||
@@ -67,10 +95,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
c: common_assets._imports_0$1,
|
||||
d: common_vendor.o(($event) => $options.clickOneClickLogin()),
|
||||
e: common_vendor.o(($event) => $options.clickCodeLogin()),
|
||||
f: common_vendor.o(($event) => $options.clickAgree()),
|
||||
g: common_vendor.o(($event) => $options.clickProtocol()),
|
||||
h: common_vendor.o(($event) => $options.clickProtocol())
|
||||
};
|
||||
f: $data.isAgree
|
||||
}, $data.isAgree ? {
|
||||
g: common_assets._imports_3$5
|
||||
} : {
|
||||
h: common_assets._imports_4$3
|
||||
}, {
|
||||
i: common_vendor.o(($event) => $options.clickAgree()),
|
||||
j: common_vendor.o(($event) => $options.clickProtocol(2)),
|
||||
k: common_vendor.o(($event) => $options.clickProtocol(3))
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
|
||||
Reference in New Issue
Block a user