From 6445aa47836de2a4feb96a501b6bf58f6844df07 Mon Sep 17 00:00:00 2001
From: dengjie <209192278@qq.com>
Date: Tue, 31 Jan 2023 00:14:42 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/myAvatar/myAvatar.vue | 45 ++++++++++++++--
components/productsBtn/productsBtn.vue | 12 +++--
packageMy/bindCompany/bindCompany.vue | 37 +------------
packageMy/browseHistory/browseHistory.vue | 40 +-------------
packageMy/changeAvatar/changeAvatar.vue | 39 +-------------
packageMy/memberCenter/memberCenter.vue | 34 ------------
packageMy/myCollection/myCollection.vue | 36 +------------
packageMy/myRelease/myRelease.vue | 34 ------------
.../search-products/search-products.vue | 10 +++-
pages/my/my.vue | 53 +++++++++++++++++--
10 files changed, 113 insertions(+), 227 deletions(-)
diff --git a/components/myAvatar/myAvatar.vue b/components/myAvatar/myAvatar.vue
index 6e88eba..298ca33 100644
--- a/components/myAvatar/myAvatar.vue
+++ b/components/myAvatar/myAvatar.vue
@@ -1,7 +1,7 @@
-
+
@@ -10,15 +10,21 @@
- {{nickname}}
+ {{nickname}}
+
+
+
+
+
diff --git a/packageMy/bindCompany/bindCompany.vue b/packageMy/bindCompany/bindCompany.vue
index f312a48..c74d996 100644
--- a/packageMy/bindCompany/bindCompany.vue
+++ b/packageMy/bindCompany/bindCompany.vue
@@ -6,40 +6,20 @@
-
-
-
-
-
diff --git a/packageMy/browseHistory/browseHistory.vue b/packageMy/browseHistory/browseHistory.vue
index 44707a9..9fa25ed 100644
--- a/packageMy/browseHistory/browseHistory.vue
+++ b/packageMy/browseHistory/browseHistory.vue
@@ -1,52 +1,16 @@
-
diff --git a/packageMy/changeAvatar/changeAvatar.vue b/packageMy/changeAvatar/changeAvatar.vue
index aba0f5d..f22e39a 100644
--- a/packageMy/changeAvatar/changeAvatar.vue
+++ b/packageMy/changeAvatar/changeAvatar.vue
@@ -14,11 +14,6 @@
-
-
-
-
-
@@ -26,11 +21,7 @@
import {
apiService
} from '../../service/request'
- import login from 'pages/my/login/login'
export default {
- components: {
- login
- },
data() {
return {
avatar: '',
@@ -39,26 +30,17 @@
userInfo: {
name: ''
},
- },
- isLoad: true,
+ }
}
},
onLoad() {
this.getUser()
- if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
- this.isLoad = false
- // uni.navigateTo({
- // url: '../../pages/my/login/login'
- // })
- return
- }
- this.isLoad = true
},
methods: {
//获取头像昵称
getUser() {
this.$apiServe.getUser().then(res => {
- // console.log('头像昵称', res.data);
+ console.log('头像昵称', res.data);
var data = res.data.data
this.avatar = data.avatar
this.model.userInfo.name = data.nickname
@@ -114,23 +96,6 @@
url: '/pages/my/my'
})
}).finally(_ => {})
- },
- reOnLoad() {
- if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
- this.$toast.warn('登录失败请重试')
- this.isLoad = false
- // uni.navigateTo({
- // url: '../../pages/my/login/login'
- // })
- return
- }
- this.isLoad = true
- },
- failToLoad() {
- // uni.navigateBack({
- // url: '/pages/my/my'
- // })
- this.$toast.warn('登录失败请重试')
}
}
}
diff --git a/packageMy/memberCenter/memberCenter.vue b/packageMy/memberCenter/memberCenter.vue
index 0d2dadb..a741166 100644
--- a/packageMy/memberCenter/memberCenter.vue
+++ b/packageMy/memberCenter/memberCenter.vue
@@ -13,26 +13,16 @@
-
diff --git a/packageMy/myRelease/myRelease.vue b/packageMy/myRelease/myRelease.vue
index 89397b5..c800f1a 100644
--- a/packageMy/myRelease/myRelease.vue
+++ b/packageMy/myRelease/myRelease.vue
@@ -47,11 +47,6 @@
-
-
-
-
-
暂无更多记录
@@ -65,14 +60,9 @@
import {
dateFormatXwDetail
} from '../../utills/date.js'
- import login from 'pages/my/login/login'
export default {
- components: {
- login
- },
data() {
return {
- isLoad: true,
// id: '',
// showM: false,
content: '您确定删除吗?',
@@ -89,15 +79,6 @@
},
onLoad() {
this.getIdeasAndNeeds()
- console.log(uni.getStorageSync('loginToken'));
- if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
- this.isLoad = false
- // uni.navigateTo({
- // url: '../../pages/my/login/login'
- // })
- return
- }
- this.isLoad = true
},
methods: {
//获取创意发布
@@ -162,21 +143,6 @@
}
}
})
- },
- reOnLoad() {
- if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
- this.$toast.warn('登录失败请重试')
- this.isLoad = false
- // uni.navigateTo({
- // url: '../../pages/my/login/login'
- // })
- return
- }
- this.isLoad = true
- this.getIdeasAndNeeds()
- },
- failToLoad() {
- this.$toast.warn('登录失败请重试')
}
}
}
diff --git a/packageSearch/search-products/search-products.vue b/packageSearch/search-products/search-products.vue
index b05e305..9d9b39b 100644
--- a/packageSearch/search-products/search-products.vue
+++ b/packageSearch/search-products/search-products.vue
@@ -39,8 +39,8 @@
data() {
return {
queryParam: {
- pageSize: 10,
- pageNum: 1
+ pageSize: 10,
+ pageNum: 1
},
queryTitle: null,
productList: []
@@ -59,6 +59,12 @@
this.$apiServe.getProductList(data).then(res => {
this.productList = res.data.data
}).finally(_ => {})
+ },
+ //点击图片跳转到详情页
+ toDetailPage(item) {
+ uni.navigateTo({
+ url: '/pages/detail/productsDetail/productsDetail?id=' + item.id
+ })
}
}
}
diff --git a/pages/my/my.vue b/pages/my/my.vue
index 25bd27b..d62e5f8 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -4,7 +4,7 @@
-
+
-
+
+
+
+
+