代码优化
This commit is contained in:
@@ -340,7 +340,7 @@
|
||||
uni.setStorageSync('qdCodeion', options.qdCode)
|
||||
}
|
||||
if (uni.getStorageSync('token')) {
|
||||
this.$Request.get('/app/common/type/813').then(res => {
|
||||
this.$u.get('/app/common/type/813').then(res => {
|
||||
if (res.code == 0 && res.data.value) {
|
||||
if (res.data.value == '是') {
|
||||
this.getActivity()
|
||||
@@ -418,7 +418,7 @@
|
||||
//#endif
|
||||
if (uni.getStorageSync('token')) {
|
||||
this.getMyLoveVideo()
|
||||
this.$Request.get('/app/common/type/813').then(res => {
|
||||
this.$u.get('/app/common/type/813').then(res => {
|
||||
if (res.code == 0 && res.data.value) {
|
||||
if (res.data.value == '是') {
|
||||
this.getActivitys()
|
||||
@@ -426,7 +426,7 @@
|
||||
}
|
||||
})
|
||||
//新用户红包 837
|
||||
this.$Request.get('/app/common/type/837').then(res => {
|
||||
this.$u.get('/app/common/type/837').then(res => {
|
||||
if (res.code == 0 && res.data.value) {
|
||||
this.xxJDNum = res.data.value;
|
||||
this.checkNewUser()
|
||||
@@ -890,6 +890,7 @@
|
||||
state: 1
|
||||
}
|
||||
this.$u.api.msg(data).then(res => {
|
||||
console.log(res)
|
||||
if (res.code == 0) {
|
||||
this.notice = res.data.list
|
||||
res.data.list.forEach(res => {
|
||||
|
||||
@@ -285,6 +285,7 @@
|
||||
title: '正在登录中...',
|
||||
})
|
||||
this.$u.post('/app/Login/registerCode?password=' + code + '&phone=' + mobile).then(res => {
|
||||
console.log(res)
|
||||
if (res.code === 0) {
|
||||
uni.setStorageSync('token', res.token)
|
||||
uni.setStorageSync('userId', res.user.userId)
|
||||
@@ -306,13 +307,8 @@
|
||||
icon: 'none'
|
||||
})
|
||||
const arr= getCurrentPages()
|
||||
if(arr.length<=1){
|
||||
return uni.reLaunch({
|
||||
url:'/pages/index/index'
|
||||
})
|
||||
}
|
||||
uni.navigateBack({
|
||||
delta: arr.length<=2?1:2
|
||||
uni.reLaunch({
|
||||
url:'/pages/index/index'
|
||||
})
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
|
||||
@@ -75,11 +75,11 @@
|
||||
this.relation = relation;
|
||||
this.invitation = relation;
|
||||
}
|
||||
this.$u.get('/app/common/type/3').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.registerCode = res.data.value
|
||||
}
|
||||
});
|
||||
// this.$u.get('/app/common/type/3').then(res => {
|
||||
// if (res.code == 0) {
|
||||
// this.registerCode = res.data.value
|
||||
// }
|
||||
// });
|
||||
},
|
||||
methods: {
|
||||
isShowAgree() {
|
||||
|
||||
Reference in New Issue
Block a user