From 5b311937503a053c0dd9264bfbd935e8363ac49e Mon Sep 17 00:00:00 2001
From: Gdpao <1341331954@qq.com>
Date: Sat, 1 Aug 2020 11:16:53 +0800
Subject: [PATCH] update
---
App.vue | 2 +-
components/informations/notice/notice.vue | 2 +-
components/remaining/remaining.vue | 2 +-
pageA/login/login.vue | 13 +-
pageA/topick/topick.vue | 24 +++-
pageB/components/shoplist/index.vue | 73 ++++++++--
pageB/components/shpoone/index.vue | 7 +-
pageB/components/userinfo/index.vue | 161 +++++++++++++++-------
pageB/details/index.vue | 8 +-
pageB/photo/index.vue | 108 ++++++++++-----
pageB/zhibo/index.nvue | 4 +-
11 files changed, 279 insertions(+), 125 deletions(-)
diff --git a/App.vue b/App.vue
index fe6063a..c2fe785 100644
--- a/App.vue
+++ b/App.vue
@@ -24,4 +24,4 @@
width: 100%;
height: var(--status-bar-height);
}
-
+
diff --git a/components/informations/notice/notice.vue b/components/informations/notice/notice.vue
index f9c37b6..36dcd48 100644
--- a/components/informations/notice/notice.vue
+++ b/components/informations/notice/notice.vue
@@ -1,6 +1,6 @@
-
+
2020-05-14 20:11
diff --git a/components/remaining/remaining.vue b/components/remaining/remaining.vue
index 041b01b..9d26b3f 100644
--- a/components/remaining/remaining.vue
+++ b/components/remaining/remaining.vue
@@ -18,7 +18,7 @@
-
+
diff --git a/pageA/login/login.vue b/pageA/login/login.vue
index 6cbb945..e4eee98 100644
--- a/pageA/login/login.vue
+++ b/pageA/login/login.vue
@@ -180,9 +180,15 @@
return false
} else {
me.loginIn(res.data.token); //存储一个字符传值
- uni.navigateTo({
- url: '/pageA/topick/topick'
- })
+ if (res.data.member.has_labels) {
+ uni.switchTab({
+ url: '/pages/index/index'
+ })
+ } else {
+ uni.navigateTo({
+ url: '/pageA/topick/topick'
+ })
+ }
// 缓存用户的信息
// uni.setStorageSync({
// key: 'user_info',
@@ -198,7 +204,6 @@
}
// 存储接口请求所需token
- me.loginIn(res.data.token); //存储一个字符传值
// // 注册返回参数
// this.$refs.uToast.show({
// title: res.message,
diff --git a/pageA/topick/topick.vue b/pageA/topick/topick.vue
index e37b703..9007497 100644
--- a/pageA/topick/topick.vue
+++ b/pageA/topick/topick.vue
@@ -59,25 +59,35 @@
},
// 点击切换颜色
tapClick(index, id) {
- // console.log(id);
+ // console.log(index);
if (this.rSelect.indexOf(index) == -1) {
- this.rSelect.push(index); // 选中状态
- this.list.push(id); //选中添加到数组里
if (this.rSelect.length > 9) {
this.$u.toast("只能选择10个标签!");
return false;
}
+ this.rSelect.push(index); // 选中状态
+ this.list.push(id); //选中添加到数组里
} else {
this.rSelect.splice(this.rSelect.indexOf(index), 1); //取消
this.list.splice(this.rSelect.indexOf(id), 1); //取消
}
// console.log(this.rSelect);
- // console.log(this.list);
+ console.log(this.list);
},
toHomePage() {
- uni.switchTab({
- url: '/pages/index/index'
- });
+ this.$u.post("StartUp/addLabel", {
+ label_ids: this.list
+ }).then(res => {
+ // console.log(res);
+ if (res.errCode == 0) {
+ // this.$u.toast(res.message);
+ uni.switchTab({
+ url: '/pages/index/index'
+ });
+ } else {
+ this.$u.toast(res.message);
+ }
+ })
},
}
diff --git a/pageB/components/shoplist/index.vue b/pageB/components/shoplist/index.vue
index 35a63d9..8e119ac 100644
--- a/pageB/components/shoplist/index.vue
+++ b/pageB/components/shoplist/index.vue
@@ -2,10 +2,17 @@
全部商品
-
+
-
-
+
+
+
+
+ {{ item.goods_advword }}
+ {{ item.goods_name }}{{ item.goods_name }}{{ item.goods_name }}{{ item.goods_name }}{{ item.goods_name }}
+ {{ item.goods_promotion_price }}
+
+
@@ -13,20 +20,30 @@
import sitem from "./item"
export default {
name:'shoplist',
+ props: ['list'],
components:{
sitem
},
data(){
return {
- show: true
+ show: true,
+ cartList: this.list || [],
}
- }
+ },
+ watch: {
+ list() {
+ this.cartList = this.list;
+ }
+ },
+ methods: {
+ toggerList() {
+ this.show = false;
+ this.$emit("hideCart",this.show);
+ }
+ }
}
\ No newline at end of file
diff --git a/pageB/components/shpoone/index.vue b/pageB/components/shpoone/index.vue
index 989bdac..530ec31 100644
--- a/pageB/components/shpoone/index.vue
+++ b/pageB/components/shpoone/index.vue
@@ -9,16 +9,13 @@
\ No newline at end of file
diff --git a/pageB/details/index.vue b/pageB/details/index.vue
index f31ffd0..f5cb249 100644
--- a/pageB/details/index.vue
+++ b/pageB/details/index.vue
@@ -20,10 +20,10 @@
-
+
-
+
@@ -35,10 +35,10 @@
-
+
-
+
diff --git a/pageB/photo/index.vue b/pageB/photo/index.vue
index 8c0725e..72b94a2 100644
--- a/pageB/photo/index.vue
+++ b/pageB/photo/index.vue
@@ -3,27 +3,26 @@
-
-
-
+
+
+
-
-
-
+
图片
-
+
- 自己黑的哈万岁哦划u将
- hasjdhajskhj
- asdjhasjdkasljdklasjkl
-
-
-
-
+ {{ list.member_nickname }}
+ {{ list.article_title }}
+ {{ list.article_content }}
+
+ {{ label.name }}
+
+
+
+
+