Commit 530e0507 by luyt

feat:去掉登陆提示

1 parent 82ee14d0
...@@ -199,23 +199,23 @@ Component({ ...@@ -199,23 +199,23 @@ Component({
const { data, code, message } = await USERAPI.wxCodeLogin(); const { data, code, message } = await USERAPI.wxCodeLogin();
if (code == "0") { if (code == "0") {
this.loginToken = data; this.loginToken = data;
} else this.reLogin(message); }
wx.hideLoading(); wx.hideLoading();
} catch ({ errMsg }) { } catch ({ errMsg }) {
console.error(errMsg); console.error(errMsg);
this.reLogin(); // this.reLogin();
} }
}, },
/**获取loginToken */ /**获取loginToken */
reLogin(message) { // reLogin(message) {
wx.showModal({ // wx.showModal({
content: message || "获取loginToken失败", // content: message || "获取loginToken失败",
confirmText: "重试", // confirmText: "重试",
confirmColor: "#3666FE", // confirmColor: "#3666FE",
}).then(({ confirm }) => { // }).then(({ confirm }) => {
if (confirm) this.init(); // if (confirm) this.init();
}); // });
}, // },
// 视频下载 // 视频下载
downVideo(e) { downVideo(e) {
let { url } = e.target.dataset; let { url } = e.target.dataset;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!