From 9b2997b6944cef74c0cffa670d225552d3613877 Mon Sep 17 00:00:00 2001
From: jia <1451658316@qq.com>
Date: Mon, 4 Sep 2023 19:29:36 +0800
Subject: [PATCH 1/6] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=A7=86=E9=A2=91?=
=?UTF-8?q?=E4=B8=8B=E6=BB=91=E6=B2=A1=E6=95=B0=E6=8D=AE=E7=9A=84=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=EF=BC=8C=E4=BB=A5=E5=8F=8A=E4=BF=AE=E6=94=B9=E4=BE=9B?=
=?UTF-8?q?=E5=BA=94=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/nongKe/supply_chain/suppliers.vue | 6 +-
pages/short_video/appSwiper/index.nvue | 86 ++++++-------
pages/short_video/nvueSwiper/index.nvue | 158 +++++++++++++-----------
pages/supply_chains/supply_chains.vue | 9 +-
4 files changed, 128 insertions(+), 131 deletions(-)
diff --git a/pages/nongKe/supply_chain/suppliers.vue b/pages/nongKe/supply_chain/suppliers.vue
index d6dc7e4..622db03 100644
--- a/pages/nongKe/supply_chain/suppliers.vue
+++ b/pages/nongKe/supply_chain/suppliers.vue
@@ -30,13 +30,13 @@
-
+
+
-
+ -->
diff --git a/pages/short_video/appSwiper/index.nvue b/pages/short_video/appSwiper/index.nvue
index 952185d..994a540 100644
--- a/pages/short_video/appSwiper/index.nvue
+++ b/pages/short_video/appSwiper/index.nvue
@@ -1,6 +1,6 @@
-
+
+
@@ -489,7 +489,7 @@
// console.log('到后台');
},
onLoad(options) {
-
+
this.videoID = options.id || 0;
this.isUser = options.user == 1 ? true : false;
this.userUid = options.uid ? options.uid : 0;
@@ -595,7 +595,7 @@
}
});
},
-
+
// #endif
/**
* 获取个人用户信息
@@ -657,15 +657,15 @@
}
});
},
- // // 授权回调
- // onLoadFun() {
- // this.isShowAuth = false
- // this.getUserInfo()
- // },
- // 授权关闭
- // authColse: function(e) {
- // this.isShowAuth = e
- // },
+ // 授权回调
+ onLoadFun() {
+ this.isShowAuth = false
+ this.getUserInfo()
+ },
+ //授权关闭
+ authColse: function(e) {
+ this.isShowAuth = e
+ },
moreTap(item) {
item.isMore = !item.isMore;
},
@@ -690,35 +690,26 @@
getData() {
// 这里就是数据加载完以后再向后端发送数据的地方,
let that = this;
- if (!that.loadVideo) return
- that.loadVideo = true
-
- deoList(that.videoID).then(res => {
- that.loadVideo = false
- that.getVideoData([res.data]);
- }).catch(err => {
- return uni.showToast({
- title: err,
- icon: 'none',
- duration: 2000
- });
- })
- // that.isUser ?
- // myVideoList(that.userUid, {
- // page: that.page,
- // limit: that.limit,
- // is_star: that.isSatrt,
- // community_id: that.videoID
- // }).then(res => {
+ // if (!that.loadVideo) return
+ // that.loadVideo = true
+ // '
+ // deoList(that.videoID).then(res => {
// that.loadVideo = false
- // that.getVideoData(res.data.list);
- // }).catch(err => {
- // return uni.showToast({
- // title: err,
- // icon: 'none',
- // duration: 2000
- // });
- // }) :
+ // that.getVideoData([res.data]);
+ // }).catch(err => {
+ // return uni.showToast({
+ // title: err,
+ // icon: 'none',
+ // duration: 2000
+ // });
+ // })'
+ // that.isUser ?
+ videoList().then(res=>{
+ that.getVideoData(res.data.list);
+ })
+
+
+ //:
// graphicLstApi({
// page: that.page,
// limit: that.limit,
@@ -750,19 +741,18 @@
})
},
getVideoData(list) {
- console.log(list,'111111')
+
if (list.length == 0) return
let that = this;
that.loadVideo = list.length == that.limit
- // that.page = that.page + 1;
- that.page = 1
+ that.page = that.page + 1
var msg = list
for (let i = 0; i < msg.length; i++) {
msg[i]['isMore'] = false
msg[i]['community_id'] = msg[i]['community_id'].toString()
that.dataList.push(msg[i])
}
- console.log(that.dataList)
+
if (that.dataList.length !== 0) {
that.dataList[that.k].state = 'play';
setTimeout(function() {
@@ -888,9 +878,9 @@
// 这个方法主要就是用来第一次进入视频播放时用来处理
deoList(this.videoID).then(async (res) => {
this.loadVideo = false
- this.page = 1;
+ this.userUid=res.data.uid
+ this.page = this.page + 1;
var msg = [res.data];
- console.log(res.data)
for (let i = 0; i < msg.length; i++) {
msg[i]['isMore'] = false
msg[i]['playIng'] = false
@@ -900,7 +890,7 @@
msg[i]['community_id'] = msg[i]['community_id'].toString()
}
this.dataList = msg;
- console.log(this.dataList)
+
if (this.dataList.length !== 0) {
this.dataList[this.k].state = 'play';
uni.createVideoContext(this.dataList[this.k].community_id, this).play()
diff --git a/pages/short_video/nvueSwiper/index.nvue b/pages/short_video/nvueSwiper/index.nvue
index 20e5574..3b2a460 100644
--- a/pages/short_video/nvueSwiper/index.nvue
+++ b/pages/short_video/nvueSwiper/index.nvue
@@ -15,7 +15,7 @@
-
-
@@ -54,7 +58,6 @@
5.show-loading:这里默认去掉播放转圈的标志
v-if="Math.abs(k-index)<=1"
-->
-
@@ -311,6 +317,7 @@
} from '@/utils';
import comment from '@/components/comment.vue';
import mentioned from '@/components/mentioned.vue';
+
import {
HTTP_REQUEST_URL
} from '@/config/app';
@@ -335,11 +342,13 @@
components: {
comment,
mentioned,
- authorize
+ authorize,
+
},
computed: configMap({
community_reply_status: 0
}, mapGetters(['isLogin', 'uid'])),
+
data() {
return {
isTriggered: false,
@@ -352,7 +361,7 @@
deleteHeight: 0,
dataList: [],
k: 0,
- max: 1,
+ max: 2,
oldVideo: "",
voice: "",
timeout: "",
@@ -420,7 +429,6 @@
watch: {
k(new_k, old_k) {
const max = new_k + 2;
-
if (this.max < max) {
this.max = max;
}
@@ -428,7 +436,6 @@
this.oldCurrent = this.currentNav
return false
}
-
this.dataList[old_k].playIng = false //如果视频暂停,就加载封面
this.dataList[old_k].isplay = true
this.dataList[old_k].state = 'pause'
@@ -451,7 +458,6 @@
}
},
onLoad(options) {
- console.log(options)
this.getOptions(options);
this.videoID = options.id;
this.isUser = options.user == 1 ? true : false;
@@ -736,56 +742,55 @@
},
get() {
let that = this
- that.loadVideo = true
- deoList(that.videoID).then(res => {
- // console.log(res.data)
- that.videoData([res.data])
- if (res.data.list.length < that.limit) {
- this.loadMore = false;
- }
- }).catch(err => {
- return uni.showToast({
- title: err,
- icon: 'none',
- duration: 2000
- });
- })
-
- // myVideoList(that.userUid, {
- // page: that.page,
- // limit: that.limit,
- // is_star: that.isSatrt,
- // community_id: that.videoID
- // }).then(res => {
- // that.videoData(res.data.list)
- // if (res.data.list.length < that.limit) {
- // this.loadMore = false;
- // }
- // }).catch(err => {
- // return uni.showToast({
- // title: err,
- // icon: 'none',
- // duration: 2000
- // });
- // })
- // :
- // graphicLstApi({
- // page: that.page,
- // limit: that.limit,
- // category_id: -1
- // }).then(res => {
- // that.videoData(res.data.list)
- // if (res.data.list.length < that.limit) {
- // this.loadMore = false;
- // }
- // }).catch(err => {
- // return uni.showToast({
- // title: err,
- // icon: 'none',
- // duration: 2000
- // });
- // })
+ // 1.这里引入后端请求数据
+ deoList(this.videoID).then(res => {
+ that.videoData([res.data])
+ if (res.data.list.length < that.limit) {
+ this.loadMore = false;
+ }
+ }).catch(err => {
+ return uni.showToast({
+ title: err,
+ icon: 'none',
+ duration: 2000
+ });
+ })
+ // that.isUser ?
+ // myVideoList(that.userUid, {
+ // page: that.page,
+ // limit: that.limit,
+ // is_star: that.isSatrt,
+ // community_id: that.videoID
+ // }).then(res => {
+ // that.videoData(res.data.list)
+ // if (res.data.list.length < that.limit) {
+ // this.loadMore = false;
+ // }
+ // }).catch(err => {
+ // return uni.showToast({
+ // title: err,
+ // icon: 'none',
+ // duration: 2000
+ // });
+ // }) :
+ // graphicLstApi({
+ // page: that.page,
+ // limit: that.limit,
+ // category_id: -1
+ // }).then(res => {
+ // that.videoData(res.data.list)
+ // if (res.data.list.length < that.limit) {
+ // this.loadMore = false;
+ // }
+ // }).catch(err => {
+ // return uni.showToast({
+ // title: err,
+ // icon: 'none',
+ // duration: 2000
+ // });
+ // })
+ that.loadVideo = true
},
getFocusList() {
let that = this;
@@ -821,21 +826,16 @@
msg[i]['isplay'] = true
msg[i]['loading'] = false
that.dataList.push(msg[i])
- {console.log(i,that.k)}
//#ifndef H5
-
if (i == 0 && that.k == 0) {
-
this.dataList[0].isplay = false
this.dataList[0].playIng = true
this.dataList[0].state = 'play'
this.dataList[0].loading = false
- console.log('32')
uni.createVideoContext(that.dataList[0].community_id + '' + 0, that).play()
}
//#endif
}
-
//#ifdef MP
if (this.k == 0) {
this.videoShare(this.dataList[0]);
@@ -1282,8 +1282,6 @@
z-index: 9;
width: 750rpx;
height: 120rpx;
-
-
flex-direction: row;
justify-content: center;
align-items: center;
@@ -1305,7 +1303,7 @@
margin-right: 40rpx;
margin-left: 20rpx;
font-size: 30rpx;
- color: #000;
+ color: #333;
margin-top: 60rpx;
}
}
@@ -1313,12 +1311,24 @@
.items {
margin: 0 30rpx;
+ image {
+ width: 58rpx;
+ height: 58rpx;
+
+ }
+
.tName {
- color: #000;
- font-size: 32rpx;
+ font-size: 33rpx;
+ font-family: PingFang SC-Medium, PingFang SC;
+ font-weight: 500;
+ color: #737373;
+ line-height: 50px;
&.on {
- font-size: 38rpx;
+ font-size: 33rpx;
+ font-family: PingFang SC-Medium, PingFang SC;
+ font-weight: 500;
+ color: #333333;
}
}
@@ -1395,7 +1405,7 @@
.userInfo {
position: absolute;
- bottom: 120px;
+ bottom: 60rpx;
right: 20rpx;
flex-direction: column;
text-align: center;
diff --git a/pages/supply_chains/supply_chains.vue b/pages/supply_chains/supply_chains.vue
index de5301f..58a64d5 100644
--- a/pages/supply_chains/supply_chains.vue
+++ b/pages/supply_chains/supply_chains.vue
@@ -245,7 +245,7 @@ export default {
where1: {
page: 1,
- limit: 6
+ limit: 10
},
currentItemId: 69, // 默认获取 社区的数据 0 表示推荐 || 69 社区
keyword: '',
@@ -293,7 +293,6 @@ export default {
onReachBottom() {
if (this.status == 'nomore') return;
this.status = 'loading';
-
this.where.page = ++this.where.page;
this.list()
},
@@ -349,13 +348,11 @@ export default {
list(id) {
if (id) {
spuInfo(id, this.where1).then(res => {
- // console.log(res)
- this.cateGoods = res.data.list
+ this.cateGoods.push(...res.data.list)
})
} else {
getProductHot(1, 10).then(res => {
- // console.log(res)
- this.cateGoods = res.data.list
+ this.cateGoods.push(...res.data.list)
})
}
From e3872c2c4c0db9b14a615418bc11390a789af5ab Mon Sep 17 00:00:00 2001
From: jia <1451658316@qq.com>
Date: Mon, 4 Sep 2023 19:52:13 +0800
Subject: [PATCH 2/6] =?UTF-8?q?=E6=9B=B4=E6=94=B9h5=E8=A7=86=E9=A2=91?=
=?UTF-8?q?=E6=92=AD=E6=94=BE=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/short_video/nvueSwiper/index.nvue | 33 +++++++++++++++----------
1 file changed, 20 insertions(+), 13 deletions(-)
diff --git a/pages/short_video/nvueSwiper/index.nvue b/pages/short_video/nvueSwiper/index.nvue
index 3b2a460..681e11a 100644
--- a/pages/short_video/nvueSwiper/index.nvue
+++ b/pages/short_video/nvueSwiper/index.nvue
@@ -743,19 +743,26 @@
get() {
let that = this
// 1.这里引入后端请求数据
-
- deoList(this.videoID).then(res => {
- that.videoData([res.data])
- if (res.data.list.length < that.limit) {
- this.loadMore = false;
- }
- }).catch(err => {
- return uni.showToast({
- title: err,
- icon: 'none',
- duration: 2000
- });
- })
+ if(this.videoID){
+ deoList(this.videoID).then(res => {
+ that.videoData([res.data])
+ if (res.data.list.length < that.limit) {
+ this.loadMore = false;
+ }
+ }).catch(err => {
+ return uni.showToast({
+ title: err,
+ icon: 'none',
+ duration: 2000
+ });
+ })
+ this.videoID=''
+ }else{
+ videoList().then(res=>{
+ that.videoData(res.data.list);
+ })
+ }
+
// that.isUser ?
// myVideoList(that.userUid, {
// page: that.page,
From 173d2fa17d06d8ca2a13b062307a62711f3cb661 Mon Sep 17 00:00:00 2001
From: jia <1451658316@qq.com>
Date: Mon, 4 Sep 2023 20:12:53 +0800
Subject: [PATCH 3/6] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=95=86=E5=93=81?=
=?UTF-8?q?=E5=88=97=E8=A1=A8=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/supply_chains/supply_chains.vue | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/pages/supply_chains/supply_chains.vue b/pages/supply_chains/supply_chains.vue
index 58a64d5..b6a5c19 100644
--- a/pages/supply_chains/supply_chains.vue
+++ b/pages/supply_chains/supply_chains.vue
@@ -242,11 +242,7 @@ export default {
page: 1,
limit: 6
},
- where1: {
-
- page: 1,
- limit: 10
- },
+
currentItemId: 69, // 默认获取 社区的数据 0 表示推荐 || 69 社区
keyword: '',
location: '',
@@ -294,6 +290,7 @@ export default {
if (this.status == 'nomore') return;
this.status = 'loading';
this.where.page = ++this.where.page;
+
this.list()
},
mounted() {
@@ -351,7 +348,7 @@ export default {
this.cateGoods.push(...res.data.list)
})
} else {
- getProductHot(1, 10).then(res => {
+ getProductHot(this.where.page,this.where.limit).then(res => {
this.cateGoods.push(...res.data.list)
})
}
From 6ef701651bd11deb7cbc18dd3e6fdf2571e0c36a Mon Sep 17 00:00:00 2001
From: jia <1451658316@qq.com>
Date: Tue, 5 Sep 2023 09:09:27 +0800
Subject: [PATCH 4/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=BB=91=E5=8A=A8?=
=?UTF-8?q?=E9=A1=B6=E9=83=A8=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/gather/gather.vue | 54 ++++++++++++------------
pages/index/index.vue | 51 +++++++++++------------
pages/supply_chains/supply_chains.vue | 59 ++++++++++-----------------
3 files changed, 71 insertions(+), 93 deletions(-)
diff --git a/pages/gather/gather.vue b/pages/gather/gather.vue
index 8b22336..4cd438d 100644
--- a/pages/gather/gather.vue
+++ b/pages/gather/gather.vue
@@ -1,29 +1,25 @@
-
-
-
-
- {{ street }}
-
-
-
-
+
+
+
+
+
+
+ {{street}}
+
+
+
+
+
+
+
-
100) {
- this.backColor = 'rgba(248, 66, 33, 1)'
+ this.backColor = 'rgba(252, 252, 252, 1)'
this.isFshow = true
@@ -283,13 +279,13 @@ export default {
if (scrollTop <= 20) {
- this.backColor = 'rgba(248, 66, 33, 0)'
+ this.backColor = 'rgba(252, 252, 252, 0)'
this.isFshow = false
} else if (20 < scrollTop && scrollTop <= 100) {
- this.backColor = 'rgba(248, 66, 33, .5)'
+ this.backColor = 'rgba(252, 252, 252, .5)'
this.isFshow = true
} else if (scrollTop > 100) {
- this.backColor = 'rgba(248, 66, 33, 1)'
+ this.backColor = 'rgba(252, 252, 252, 1)'
this.isFshow = true
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 7f25d1b..a76ee01 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -5,12 +5,12 @@
-
+
- {{street}}
+ {{street}}
-
+
+
+
+
+
+
+
+ {{street}}
+
+
+
+
+
+
+
+
100) {
- this.backColor = 'rgba(248, 66, 33, 1)'
+ this.backColor = 'rgba(252, 252, 252, 1)'
this.isFshow = true
@@ -382,13 +367,13 @@ export default {
if (scrollTop <= 20) {
- this.backColor = 'rgba(248, 66, 33, 0)'
+ this.backColor = 'rgba(252, 252, 252, 0)'
this.isFshow = false
} else if (20 < scrollTop && scrollTop <= 100) {
- this.backColor = 'rgba(248, 66, 33, .5)'
+ this.backColor = 'rgba(252, 252, 252, .5)'
this.isFshow = true
} else if (scrollTop > 100) {
- this.backColor = 'rgba(248, 66, 33, 1)'
+ this.backColor = 'rgba(252, 252, 252, 1)'
this.isFshow = true
From 91f47b802103885b1287c16e0e6ff60f1149753e Mon Sep 17 00:00:00 2001
From: THK3121
Date: Tue, 5 Sep 2023 09:55:23 +0800
Subject: [PATCH 5/6] =?UTF-8?q?=E5=90=8D=E4=BC=98=E7=89=B9=E4=BA=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/nongKe/specialty/index.vue | 51 ++++++++++++++++++++++++--------
1 file changed, 38 insertions(+), 13 deletions(-)
diff --git a/pages/nongKe/specialty/index.vue b/pages/nongKe/specialty/index.vue
index 6b49b9b..196a2d3 100644
--- a/pages/nongKe/specialty/index.vue
+++ b/pages/nongKe/specialty/index.vue
@@ -15,17 +15,17 @@
江阳区
- 晴天30
+ 晴天30℃
-
-
+
+
@@ -38,12 +38,12 @@
+ width="210.28rpx" height="210.28rpx">
笑口常开地方就是的开发建设的开发建设的,v空间和客户可怜见立刻就
- $10.00
+ ¥ 10.00
@@ -54,7 +54,7 @@
-
+
@@ -66,7 +66,7 @@
特产
{{item.mer_name}}
{{item.type_name}}
+ style="font-weight: normal; font-size: 10rpx;color: #737373;padding:0 10rpx; border-radius: 10rpx; border: 1px solid #737373;">{{item.type_name}}
5.0
月销2000+
20分钟
- 1.1KM
+ 1.1km
- assa
+
+
+
+
+ 笑口常开地方就是的开发建设的开发建设的,v空间和客户可怜见立刻就
+
+
+ $10.00
+
+
+
+
+
+
-
-
-
-
@@ -226,7 +154,6 @@
this.getCateList()
this.cateGoods = []
this.getGoods()
-
this.Area()
uni.stopPullDownRefresh()
},
@@ -257,7 +184,6 @@
onReachBottom() {
if (this.status == 'nomore') return;
this.status = 'loading';
-
this.where.page = ++this.where.page;
this.getGoods()
},
@@ -400,7 +326,7 @@
this.street = e.value[1].name
- this.$nextTick(() => {
+ this.$nextTick(() => {
this.$bus.$emit('value-updated',e.value[1].name + ',' +e.value[1].code);
})
@@ -479,6 +405,7 @@
graphicLstApi(this.where).then(res => {
this.cateGoods.push(...res.data.list)
+
if (res.data.list.length < this.where.limit) this.status = 'nomore'
if (this.where.page == 1 && res.data.list.length <= 0) this.emptyShow = true
@@ -513,6 +440,7 @@
this.cateGoods = []
this.where.category_id = item.category_id
this.emptyShow = false
+ this.status = 'loadmore'
this.where.page = 1
this.getGoods(item)
this.street_id = item.id
diff --git a/pages/supply_chains/supply_chains.vue b/pages/supply_chains/supply_chains.vue
index d2a8333..e0612a6 100644
--- a/pages/supply_chains/supply_chains.vue
+++ b/pages/supply_chains/supply_chains.vue
@@ -1,90 +1,81 @@
-
-
-
-
-
-
-
-
- {{street}}
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
+
+
+
+ {{street}}
+
+
+
+
+
-
-
-
-
-
-
-
-
- september
- 9月
-
-
-
-
- {{ town }}
-
- 综合供销云市场
-
-
-
- 点击查看
-
-
-
-
-
-
+
-
-
-
-
-
-
-
- 里海云仓
- 行业分类市场
-
-
-
- 点击查看
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
- 位置权限使用说明
- 用于向你推荐最近门店
-
-
+
+ 位置权限使用说明
+ 用于向你推荐最近门店
+
+
+ image {
+ width: 100%;
+ height: 100%;
+ }
+ }
+
+ .goodslist {
+ margin: 0 auto;
+ width: 725rpx;
+ }
+
\ No newline at end of file