From a871e050f64a9f0408a204c93266242d1481e814 Mon Sep 17 00:00:00 2001
From: ghusermoon <2673031505@qq.com>
Date: Wed, 12 Aug 2020 15:24:13 +0800
Subject: [PATCH 1/5] update goods price 8.12
---
pageB/sdetails/index.vue | 5 ++++-
pageC/groupBuy/index.vue | 6 +++---
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/pageB/sdetails/index.vue b/pageB/sdetails/index.vue
index 3e9a71b..fb20226 100644
--- a/pageB/sdetails/index.vue
+++ b/pageB/sdetails/index.vue
@@ -23,10 +23,13 @@
{{ goodsInfo.goods_name }}
-
+
¥{{ goodsInfo.pintuan_price || '0.00' }}
¥{{ goodsInfo.goods_price || '0.00' }}
+
+ ¥{{ goodsInfo.goods_price || '0.00' }}
+
diff --git a/pageC/groupBuy/index.vue b/pageC/groupBuy/index.vue
index 9b3ad21..16e4279 100644
--- a/pageC/groupBuy/index.vue
+++ b/pageC/groupBuy/index.vue
@@ -10,8 +10,8 @@
-
-
+
+
@@ -22,7 +22,7 @@ import SpecialGoods from "../../components/shop/special-shop/index";
export default {
data() {
return {
- pageSize: 12,
+ pageSize: 6,
tabList: [],
current: -1,
swiperCurrent: 0,
From 22812469a89f89b9a1347e3a0b09a323576c5da3 Mon Sep 17 00:00:00 2001
From: Gdpao <1341331954@qq.com>
Date: Wed, 12 Aug 2020 15:35:47 +0800
Subject: [PATCH 2/5] GDPAO
---
App.vue | 1 -
pageB/photo/index.vue | 4 +-
pageB/video/video.nvue | 161 ++++++++++++++++++++++++++++++++---------
pages/index/index.vue | 20 ++---
4 files changed, 136 insertions(+), 50 deletions(-)
diff --git a/App.vue b/App.vue
index e15be00..4ad52c3 100644
--- a/App.vue
+++ b/App.vue
@@ -41,7 +41,6 @@
@import "/static/css/normalize";
/* 顶部自定义导航留白 */
.status_bar {
- z-index: 1000;
width: 100%;
height: var(--status-bar-height);
}
diff --git a/pageB/photo/index.vue b/pageB/photo/index.vue
index fd55862..bff54e2 100644
--- a/pageB/photo/index.vue
+++ b/pageB/photo/index.vue
@@ -531,9 +531,11 @@ export default {
this.comment_num = res.data.num;
// console.log(this.comment_num);
this.is_edit = false;
- if (res.data.data.pid) {
+ console.log(res.data.data.reply_id);
+ if (res.data.data.reply_id) {
this.commentList[this.comment_id].reply_count = true;
this.allList[this.comment_id].unshift(res.data.data);
+ console.log(this.allList,111);
} else {
this.commentList.unshift(res.data.data);
}
diff --git a/pageB/video/video.nvue b/pageB/video/video.nvue
index aa0ae33..dd229cb 100644
--- a/pageB/video/video.nvue
+++ b/pageB/video/video.nvue
@@ -29,18 +29,18 @@
-
-
+
+
- {{ item.goods_advword }}
- {{ item.goods_name }}
- ¥{{ item.goods_promotion_price }}
+ {{ item.goods_advword }}
+ {{ item.goods_name }}
+ ¥{{ item.goods_promotion_price }}
-
+
@@ -57,14 +57,15 @@
- 回复
+ 回复
{{ item.content }}
-
+
发送
@@ -73,6 +74,12 @@
+
+
+
+ 发送
+
@@ -89,7 +96,7 @@
-
+
努力加载中
@@ -119,10 +126,19 @@
fixTop: 0,
list: {},
labelLen: [],
+ cart_len: 0, // 购物车个数
cart_type: false, // 显示购物车
is_comment: false, // 显示评论
+ is_edit: false, // 显示输入
+ is_focus: false, //
comment_num: 0, // 评论数
+ edit_text: "有爱评论,说点好听的 ~",
+ edit_text_other: "有爱评论,说点好听的 ~",
+ pid: 0, // 主键
+ reply_id: 0, // 回复id
page: 0,
+ comment_id: 0,
+ send_value: "", // 评论
commentList: [], // 评论列表
src: "",
is_play: true,
@@ -170,6 +186,7 @@
this.list = res.data.data.info;
this.src = res.data.data.info.video_path;
this.cart_len = res.data.data.info.goods.length;
+ console.log(this.cart_len);
let item = res.data.data.info.label;
let arr = [];
item.forEach(data => {
@@ -217,11 +234,21 @@
pid: this.pid,
reply_id: this.reply_id,
},
+ header: {
+ Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
+ },
success: (res) => {
if (res.data.errCode == 0) {
this.send_value = "";
this.comment_num = res.data.num;
- console.log(res.data);
+ if (res.data.data.data.reply_id) {
+ // this.commentList[this.comment_id].reply_count = true;
+ // this.allList[this.comment_id].unshift(res.data.data);
+ // console.log(this.allList, 111);
+ } else {
+ this.commentList.unshift(res.data.data.data);
+ }
+ console.log(this.commentList);
} else {
uni.showToast({
title: res.data.message,
@@ -288,6 +315,9 @@
// 打开弹窗
openPopup(data) {
// console.log(data);
+ if (this.cart_len >= 2) {
+
+ }
this.cart_type = data.cart;
this.is_comment = data.comment;
if (this.is_comment) {
@@ -296,9 +326,33 @@
// this.is_play = true;
}
},
+ // 打开评论输入
+ openKeyInput(data,index) {
+ console.log(this.is_focus);
+ this.is_edit = true;
+ setTimeout(() => {
+ this.is_focus = true;
+ }, 200)
+ this.comment_id = index;
+ if (data.id) {
+ this.edit_text_other = "回复@" + data.member_nickname;
+ this.pid = data.id;
+ this.reply_id = data.member_id;
+ } else {
+ this.edit_text_other = "有爱评论,说点好听的 ~";
+ this.pid = "";
+ this.reply_id = "";
+ }
+ // console.log(this.pid, this.edit_text_other);
+ },
+ blue() {
+ this.is_focus = false;
+ console.log(111);
+ },
// 关闭评论
closeComment() {
this.is_comment = false;
+ this.is_edit = false;
// console.log(this.is_comment,this.is_play);
// if (!this.is_comment && this.is_play) {
// console.log(1);
@@ -316,7 +370,7 @@
// 跳转
goGoodInfo(id) {
uni.navigateTo({
- url: "/pageB/sdetails/index?id=" + id + "&type=" + 1,
+ url: "/pageB/sdetails/index?id=" + id + "&type=" + 1,
})
},
// stop
@@ -376,44 +430,47 @@
border-radius: 10rpx;
background-color: rgba(255, 255, 255, .6);
}
-
+
.good-one {
- position: absolute;
- bottom: 300rpx;
- right: 100rpx;
- width: 450rpx;
+ position: fixed;
+ bottom: 260rpx;
+ right: 160rpx;
+ width: 420rpx;
padding: 20rpx;
border-radius: 10rpx;
- background-color: rgba(0,0,0,0.6);
+ background-color: rgba(0, 0, 0, 0.6);
}
-
+
.one-list {
flex-direction: row;
}
-
+
.one-image {
width: 160rpx;
height: 160rpx;
margin-right: 20rpx;
border-radius: 4rpx;
}
-
+
.one-box {
- justify-content: space-between;
+ justify-content: space-around;
+ color: #333;
}
-
+
.title-one {
- width: 100rpx;
+ width: 200rpx;
font-size: 28rpx;
color: #fff;
lines: 1;
+ text-overflow: ellipsis;
}
-
+
.content-one {
- width: 100rpx;
+ width: 200rpx;
font-size: 24rpx;
color: #fff;
lines: 2;
+ text-overflow: ellipsis;
}
.mask {
@@ -431,6 +488,7 @@
left: 0;
width: 750rpx;
height: 700rpx;
+ padding-bottom: 50rpx;
margin-bottom: 88rpx;
background-color: #fff;
}
@@ -529,6 +587,30 @@
color: #333;
}
+ .edit-box {
+ /* #ifdef H5 */
+ display: flex;
+ /* #endif */
+ z-index: 10000;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ flex-direction: row;
+ align-items: center;
+ justify-content: space-between;
+ width: 750rpx;
+ height: 88rpx;
+ padding: 0 20rpx;
+ background-color: #fff;
+ }
+
+ .edit-input {
+ width: 600rpx;
+ height: 88rpx;
+ font-size: 24rpx;
+ color: #333;
+ }
+
.cart-box {
z-index: 99;
position: fixed;
@@ -549,33 +631,35 @@
border-bottom-width: 1rpx;
background-color: #fff;
}
-
- .cart-list {
-
- }
-
+
+ .cart-list {}
+
.cart-list-header {
padding: 20rpx;
flex-direction: row;
border-bottom-width: 1rpx;
border-bottom-color: #ececec;
}
-
+
.goods-img {
width: 160rpx;
height: 160rpx;
- margin-right: 10rpx;
+ border-radius: 10rpx;
+ margin-right: 20rpx;
}
-
+
.goods-info {
justify-content: space-around;
}
-
+
.good-title {
+ width: 500rpx;
color: #333;
font-size: 30rpx;
+ lines: 2;
+ text-overflow: ellipsis;
}
-
+
.good-price {
font-size: 28rpx;
color: #FF3131;
@@ -624,7 +708,6 @@
}
.label {
- lines: 3;
width: 100rpx;
height: 40rpx;
padding: 4rpx 10rpx;
@@ -632,6 +715,7 @@
margin-bottom: 10rpx;
font-size: 26rpx;
text-align: center;
+ line-height: 38rpx;
color: #666666;
border-radius: 10rpx;
background-color: rgba(255, 255, 255, .6);
@@ -655,4 +739,9 @@
height: 30rpx;
color: #999;
}
+
+ .placeholder-class {
+ font-size: 13px;
+ color: #666;
+ }
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 257bdca..075019f 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -98,11 +98,7 @@
width: 750rpx;
display: flex;
flex-direction: column;
- height: 100vh;
- /* #ifdef APP-PLUS */
- padding-bottom: 88rpx;
- /* #endif */
- overflow: hidden;
+ height: 100vh;
.top {
z-index: 10000;
@@ -135,9 +131,8 @@
.card {
width: 100%;
- height: 100%;
- margin-top: 88rpx;
- // pointer-events: none;
+ height: calc(100vh + 500rpx);
+ padding-top: 88rpx;
.box {
width: 100%;
@@ -147,17 +142,18 @@
.list {
display: flex;
- padding-bottom: 50rpx;
- margin-bottom: 50rpx;
+ // height: 100vh;
+ // padding-bottom: 100rpx;
+ // margin-bottom: 50rpx;
}
}
.tuijian {
width: 750rpx;
+ padding: 30rpx;
margin-left: -30rpx;
height: 400rpx;
background-color: #ececec;
- padding: 30rpx;
.title {
width: 100%;
From 3b5515d317f8a4646e9756b2c23def1293ab802b Mon Sep 17 00:00:00 2001
From: ghusermoon <2673031505@qq.com>
Date: Wed, 12 Aug 2020 16:01:43 +0800
Subject: [PATCH 3/5] fixing bug add address 8.12
---
components/mine/address-active/index.vue | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/components/mine/address-active/index.vue b/components/mine/address-active/index.vue
index 8f08166..933ee42 100644
--- a/components/mine/address-active/index.vue
+++ b/components/mine/address-active/index.vue
@@ -80,7 +80,6 @@ export default {
// 判断是不是编辑页面 调用接口
confirmBtn() {
if(!this.debounce) return;
- this.debounce = false;
this.info ? this.editAddress() : this.addAddress();
},
// chooseArea() {
@@ -119,6 +118,7 @@ export default {
},
addAddress() {
if(!this.validateValue()) return false;
+ this.debounce = false;
this.$u.api.addressAdd({
area_id: this.area_id,
city_id: this.city_id,
@@ -144,6 +144,7 @@ export default {
},
editAddress() {
if(!this.validateValue()) return false;
+ this.debounce = false;
this.$u.api.addressEdit({
address_id: this.info.address_id,
area_id: this.area_id,
From c03fff99e07168172124f669459e0c09929d9637 Mon Sep 17 00:00:00 2001
From: ghusermoon <2673031505@qq.com>
Date: Wed, 12 Aug 2020 18:38:14 +0800
Subject: [PATCH 4/5] fixing bug 8.12
---
common/api/user.js | 4 ++--
components/comment/index.vue | 2 +-
components/shop/list/item.vue | 2 +-
pageB/sdetails/index.vue | 8 ++++----
pageE/mine/MineConcerns.vue | 11 ++++++-----
pageE/order/Details.vue | 6 ++++--
pageE/order/RefundOrder.vue | 1 +
pageE/tool/MineHistory.vue | 14 +++++++++-----
pageE/tool/SendWash.vue | 33 ++++++++++++++++++---------------
9 files changed, 46 insertions(+), 35 deletions(-)
diff --git a/common/api/user.js b/common/api/user.js
index 899a148..5fc0775 100644
--- a/common/api/user.js
+++ b/common/api/user.js
@@ -408,8 +408,8 @@ export default {
return vm.$u.post('article/articleCollectList');
},
// 关注用户列表
- attentionMemberList() {
- return vm.$u.post('member/attentionMemberList');
+ attentionMemberList({ page = 1 } = {}) {
+ return vm.$u.post('member/attentionMemberList', { page: page });
},
}
}
diff --git a/components/comment/index.vue b/components/comment/index.vue
index 3795916..f93bb87 100644
--- a/components/comment/index.vue
+++ b/components/comment/index.vue
@@ -2,7 +2,7 @@
-
+
@@ -75,10 +75,13 @@
-
-
- 发送
+
+
+
+ 发送
+
+
@@ -124,6 +127,7 @@
return {
videoSize: {},
fixTop: 0,
+ editTop: 0,
list: {},
labelLen: [],
cart_len: 0, // 购物车个数
@@ -238,6 +242,7 @@
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
success: (res) => {
+ this.is_edit = false;
if (res.data.errCode == 0) {
this.send_value = "";
this.comment_num = res.data.num;
@@ -249,6 +254,11 @@
this.commentList.unshift(res.data.data.data);
}
console.log(this.commentList);
+ } else if (res.data.errCode == 401) {
+ uni.showToast({
+ title: "您还没有登录,请先登录!",
+ icon: "none"
+ })
} else {
uni.showToast({
title: res.data.message,
@@ -327,12 +337,21 @@
}
},
// 打开评论输入
- openKeyInput(data,index) {
- console.log(this.is_focus);
- this.is_edit = true;
+ openKeyInput(data, index) {
+ let me = this;
+ this.is_focus = true;
setTimeout(() => {
- this.is_focus = true;
- }, 200)
+ this.is_edit = true;
+ }, 500)
+ uni.onKeyboardHeightChange(function(res) {
+ console.log(res);
+ if (res.height == 0) {
+ me.is_focus = false;
+ me.is_edit = false;
+ } else {
+ me.editTop = res.height;
+ }
+ })
this.comment_id = index;
if (data.id) {
this.edit_text_other = "回复@" + data.member_nickname;
@@ -347,7 +366,6 @@
},
blue() {
this.is_focus = false;
- console.log(111);
},
// 关闭评论
closeComment() {
@@ -387,6 +405,10 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 推荐达人
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 您还没有关注哦,赶紧去点点关注!
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/mine/index.vue b/pages/mine/index.vue
index e047b68..689adba 100644
--- a/pages/mine/index.vue
+++ b/pages/mine/index.vue
@@ -47,7 +47,7 @@
我的订单
查看全部订单
-
+
@@ -180,7 +180,7 @@ export default {
.mine-top {
// width: 100%;
height: 272rpx;
- background: #FF780F;
+ background-color: #F0AD4E;
.top {
padding: 40rpx 0 0 30rpx;
display: flex;
@@ -242,13 +242,11 @@ export default {
}
}
.bottom {
- box-sizing: border-box;
- padding: 0 30rpx;
display: flex;
- // justify-content: space-between;
- justify-content: flex-start;
+ justify-content: space-around;
+ padding: 0 10rpx;
+ box-sizing: border-box;
> view {
- margin-right: 80rpx;
text-align: center;
font-size: 26rpx;
font-weight: 500;
@@ -268,35 +266,35 @@ export default {
}
@mixin common-mine($content-padding-top, $content-padding-bottom, $image-width, $image-height) {
box-sizing: border-box;
- width: 690rpx;
+ width: 750rpx;
background: rgba(255,255,255,1);
- border-radius: 10rpx;
- margin: 30rpx auto 0;
- padding: 0 20rpx;
+ // border-radius: 10rpx;
+ margin: 20rpx auto 0;
.title {
- height: 76rpx;
- font-size: 28rpx;
- color: #666;
- position: relative;
display: flex;
align-items: center;
- &::after {
- content: "";
- position: absolute;
- width: 650rpx;
- height: 1rpx;
- background: rgba(234,234,234,1);
- bottom: 0;
- left: 50%;
- transform: translate(-50%,0);
- }
+ height: 76rpx;
+ padding: 0 20rpx;
+ font-size: 28rpx;
+ color: #666;
+ border-bottom: 1px solid #ececec;
+ // &::after {
+ // content: "";
+ // position: absolute;
+ // width: 650rpx;
+ // height: 1rpx;
+ // background: rgba(234,234,234,1);
+ // bottom: 0;
+ // left: 50%;
+ // transform: translate(-50%,0);
+ // }
}
.title-text-more {
font-size: 24rpx;
color: #999;
}
.content {
- padding: $content-padding-top 0 $content-padding-bottom;
+ padding: $content-padding-top 20rpx $content-padding-bottom;
display: flex;
> view {
text-align: center;
diff --git a/pages/zhibo/index.nvue b/pages/zhibo/index.nvue
index f981639..cf05ced 100644
--- a/pages/zhibo/index.nvue
+++ b/pages/zhibo/index.nvue
@@ -507,7 +507,11 @@ export default {
},
success(res){
console.log(res)
- that.info = res.data.data
+ that.info = res.data.data;
+ uni.showToast({
+ title: res.data.message,
+ icon: "none"
+ })
// that.list= res.data.data
}
})