feat: 设置视频号-api接口

This commit is contained in:
eric
2022-12-10 20:39:33 +08:00
parent c4310a1be9
commit 57a0b5381b
5 changed files with 35 additions and 89 deletions

File diff suppressed because one or more lines are too long

View File

@@ -26,8 +26,6 @@
/*! ../wxs/utils */
/*! ./components/WeGroup */
/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
@@ -90,10 +88,6 @@
!*** ./node_modules/@antmjs/vantui/es/field/wxs.js ***!
\*****************************************************/
/*!*****************************************************!*\
!*** ./src/pages/home/components/WeGroup/index.tsx ***!
\*****************************************************/
/*!******************************************************!*\
!*** ./node_modules/@antmjs/vantui/es/grid/index.js ***!
\******************************************************/

View File

@@ -51,50 +51,11 @@
}
.Swiper-box {
min-height: 150rpx;
border-radius: 15%;
}
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/cache-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[5]!./src/pages/home/components/WeGroup/index.scss ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.weGroup {
margin-top: 40rpx;
padding: 20rpx;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
background-color: #f5f5f5;
min-height: 100rpx;
.Swiper-box .Swiper {
border-radius: 15%;
}
.weGroup .left {
width: 50x;
height: 50rpx;
margin-right: 40rpx;
}
.weGroup .right {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
padding-right: 20rpx;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
}
.weGroup .right .rightup {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
.Swiper-box .Swiper .SwiperImg {
border-radius: 15%;
}

View File

@@ -26,6 +26,14 @@
justify-content: space-between;
}
.Swiper-box{
.Swiper-box {
min-height: 150px;
}
border-radius: 15%;
.Swiper {
border-radius: 15%;
.SwiperImg {
border-radius: 15%;
}
}
}

View File

@@ -1,4 +1,3 @@
import {
Button,
Card,
@@ -21,10 +20,10 @@ import {
View,
WebView,
// ChannelVideo,
SwiperItem
SwiperItem,
} from "@tarojs/components";
import React, { useCallback, useEffect, useState } from "react";
import { Image } from "@antmjs/vantui";
import { Image } from "@antmjs/vantui";
import react from "react";
import { NoticeBar } from "@antmjs/vantui";
import Taro, { useShareTimeline } from "@tarojs/taro";
@@ -150,7 +149,7 @@ const Home = () => {
await setsystemConfig(res?.data ?? []);
setTimeout(() => {
getdetails();
}, 700);
}, 800);
},
};
await getTable(objParams);
@@ -280,9 +279,9 @@ const Home = () => {
complete: () => {
// 刷新页面数据
getsystemConfig(); //获取系统配置
// setTimeout(() => {
// getdetails(); //获取活动详情
// }, 700);
setTimeout(() => {
getdetails(); //获取活动详情
}, 800);
},
});
};
@@ -370,18 +369,19 @@ const Home = () => {
<View className="Swiper-box">
{systemConfig?.length > 0 && (
<Swiper
className='test-h'
// indicatorColor='#999'
indicatorActiveColor='#333'
// vertical //纵向
circular
indicatorDots
autoplay
className="Swiper"
// indicatorColor='#999'
indicatorActiveColor="#333"
// vertical //纵向
circular
indicatorDots
autoplay
>
{(systemConfig?.[0]?.imagesArr ?? []).map(
(item: any, index: any) => (
<SwiperItem >
<SwiperItem>
<Image
className="SwiperImg"
src={item?.url}
fit="cover"
width="100%"
@@ -391,8 +391,6 @@ const Home = () => {
)
)}
</Swiper>
)}
</View>
@@ -491,8 +489,10 @@ const Home = () => {
onClick={() => {
// 打开视频号-指定视频
Taro.openChannelsActivity({
finderUserName: "sphqzUmI0BlppCI", //视频号id
// finderUserName: "sphqzUmI0BlppCI", //视频号id,
finderUserName: systemConfig?.[0]?.videoObj?.finderUserName ?? "sphqzUmI0BlppCI",
feedId:
systemConfig?.[0]?.videoObj?.feedId ??
"export/UzFfAgtgekIEAQAAAAAAeIIQA5S-0wAAAAstQy6ubaLX4KHWvLEZgBPEj6MUcExXaL37zNPgMJpEUVVnZ9njxR_hb9_u-bQj", //视频 feedId
success: (res: any) => {
console.log("res", res);
@@ -574,24 +574,7 @@ const Home = () => {
)}
{/* 加入微信群 */}
<WeGroup />
{/* <View className="weGroup">
<View className="left">
<Image
width="50px"
height="50px"
fit="cover"
src="cloud://citynew-0givkbre03955d8c.6369-citynew-0givkbre03955d8c-1253655588/images/swiper/download-1.jpg"
/>
</View>
<View className="right">
<View className="rightup">
<View className="rightupLeft">户外 | 梧桐山</View>
<View className="rightupRight">09:18</View>
</View>
<View className="rightdown">cady: 周末组队,谁有空一起?</View>
</View>
</View> */}
{/* <WeGroup /> */}
{/* <View style={{marginTop:'10px'}}>打卡精选</View> */}
{/* 瀑布流 */}