临时提交

master
blak-kong 2 years ago
parent 4fa2b93067
commit e097b70963

@ -96,24 +96,21 @@ class User extends Component<any, any> {
return;
}
let url = e.currentTarget.dataset.url;
// if (url == "/pages/integral_list/integral_list") {
// // this.CreditSubscribe(url);
// return false;
// }
Taro.navigateTo({
url,
});
};
// 不检查登录跳转
goUrlNoRegister = (e) => {
let url = e.currentTarget.dataset.url;
Taro.navigateTo({
url,
});
};
gourls = (e) => {
let registerArray = ["/pages/message/message"];
let url = e.currentTarget.dataset.url;
let mobile = Taro.getStorageSync("mobile");
if (!mobile) {
if (registerArray.includes(url)) {
this.setState({ isNotRegister: true });
return;
}
}
Taro.navigateTo({
url,
});
@ -271,7 +268,7 @@ class User extends Component<any, any> {
</View>
<View
className="block"
onClick={this.gourl}
onClick={this.goUrlNoRegister}
data-url="/pages/integral_list/integral_list"
>
<Image
@ -319,7 +316,7 @@ class User extends Component<any, any> {
</View>
<View
className="block flex aitems"
onClick={this.gourls}
onClick={this.goUrlNoRegister}
data-url="/pages/integral_list/integral_list"
>
<View className="img">
@ -330,7 +327,7 @@ class User extends Component<any, any> {
<View
className="block flex aitems"
data-url="/pages/message/message"
onClick={this.gourls}
onClick={this.gourl}
>
<View className="img">
<Image src={require("../../img/4.png")} mode="aspectFill" />
@ -346,7 +343,7 @@ class User extends Component<any, any> {
<View
className="block flex aitems"
data-url="/pages/consultant/consultant"
onClick={this.gourls}
onClick={this.goUrlNoRegister}
>
<View className="img">
<Image src={require("../../img/5.png")} mode="aspectFill" />
@ -365,7 +362,7 @@ class User extends Component<any, any> {
<View
className="block flex aitems"
data-url="/pages/about/about"
onClick={this.gourls}
onClick={this.goUrlNoRegister}
>
<View className="img">
<Image src={require("../../img/7.png")} mode="aspectFill" />
@ -375,7 +372,7 @@ class User extends Component<any, any> {
<View
className="block flex aitems"
data-url="/pages/privacyPolicy/privacyPolicy"
onClick={this.gourls}
onClick={this.goUrlNoRegister}
>
<View className="img">
<Image src={require("../../img/8.png")} mode="aspectFill" />

@ -67,7 +67,9 @@ export const Ajax = (params) => {
}
if (res.data.code !== 200) {
let msg =
typeof res.data.msg == "string" ? res.data.msg : "没内容提示";
typeof res.data.msg == "string"
? res.data.msg
: "系统异常,请联系管理人员";
if (msg == "请不要操作太快哦") {
reject(res);
return false;
@ -145,7 +147,8 @@ export const AjaxuploadFile = (params) => {
return false;
}
if (o.code !== 200) {
let msg = typeof o.msg == "string" ? o.msg : "没内容提示";
let msg =
typeof o.msg == "string" ? o.msg : "系统异常,请联系管理人员";
Taro.showModal({
title: "提示",
content: msg,
@ -216,7 +219,9 @@ export const AjaxFormData = (params) => {
}
if (res.data.code !== 200) {
let msg =
typeof res.data.msg == "string" ? res.data.msg : "没内容提示";
typeof res.data.msg == "string"
? res.data.msg
: "系统异常,请联系管理人员";
if (msg == "请不要操作太快哦") {
reject(res);
return false;

Loading…
Cancel
Save