feat: 设置视频号-api接口
This commit is contained in:
2
dist/pages/home/index.js
vendored
2
dist/pages/home/index.js
vendored
File diff suppressed because one or more lines are too long
6
dist/pages/home/index.js.LICENSE.txt
vendored
6
dist/pages/home/index.js.LICENSE.txt
vendored
@@ -26,8 +26,6 @@
|
|||||||
|
|
||||||
/*! ../wxs/utils */
|
/*! ../wxs/utils */
|
||||||
|
|
||||||
/*! ./components/WeGroup */
|
|
||||||
|
|
||||||
/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
||||||
|
|
||||||
/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
||||||
@@ -90,10 +88,6 @@
|
|||||||
!*** ./node_modules/@antmjs/vantui/es/field/wxs.js ***!
|
!*** ./node_modules/@antmjs/vantui/es/field/wxs.js ***!
|
||||||
\*****************************************************/
|
\*****************************************************/
|
||||||
|
|
||||||
/*!*****************************************************!*\
|
|
||||||
!*** ./src/pages/home/components/WeGroup/index.tsx ***!
|
|
||||||
\*****************************************************/
|
|
||||||
|
|
||||||
/*!******************************************************!*\
|
/*!******************************************************!*\
|
||||||
!*** ./node_modules/@antmjs/vantui/es/grid/index.js ***!
|
!*** ./node_modules/@antmjs/vantui/es/grid/index.js ***!
|
||||||
\******************************************************/
|
\******************************************************/
|
||||||
|
|||||||
49
dist/pages/home/index.wxss
vendored
49
dist/pages/home/index.wxss
vendored
@@ -51,50 +51,11 @@
|
|||||||
}
|
}
|
||||||
.Swiper-box {
|
.Swiper-box {
|
||||||
min-height: 150rpx;
|
min-height: 150rpx;
|
||||||
|
border-radius: 15%;
|
||||||
}
|
}
|
||||||
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
.Swiper-box .Swiper {
|
||||||
!*** 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 ***!
|
border-radius: 15%;
|
||||||
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
||||||
.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;
|
|
||||||
}
|
}
|
||||||
.weGroup .left {
|
.Swiper-box .Swiper .SwiperImg {
|
||||||
width: 50x;
|
border-radius: 15%;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,14 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Swiper-box{
|
.Swiper-box {
|
||||||
min-height: 150px;
|
min-height: 150px;
|
||||||
|
border-radius: 15%;
|
||||||
|
|
||||||
|
.Swiper {
|
||||||
|
border-radius: 15%;
|
||||||
|
.SwiperImg {
|
||||||
|
border-radius: 15%;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
Card,
|
Card,
|
||||||
@@ -21,10 +20,10 @@ import {
|
|||||||
View,
|
View,
|
||||||
WebView,
|
WebView,
|
||||||
// ChannelVideo,
|
// ChannelVideo,
|
||||||
SwiperItem
|
SwiperItem,
|
||||||
} from "@tarojs/components";
|
} from "@tarojs/components";
|
||||||
import React, { useCallback, useEffect, useState } from "react";
|
import React, { useCallback, useEffect, useState } from "react";
|
||||||
import { Image } from "@antmjs/vantui";
|
import { Image } from "@antmjs/vantui";
|
||||||
import react from "react";
|
import react from "react";
|
||||||
import { NoticeBar } from "@antmjs/vantui";
|
import { NoticeBar } from "@antmjs/vantui";
|
||||||
import Taro, { useShareTimeline } from "@tarojs/taro";
|
import Taro, { useShareTimeline } from "@tarojs/taro";
|
||||||
@@ -150,7 +149,7 @@ const Home = () => {
|
|||||||
await setsystemConfig(res?.data ?? []);
|
await setsystemConfig(res?.data ?? []);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
getdetails();
|
getdetails();
|
||||||
}, 700);
|
}, 800);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
await getTable(objParams);
|
await getTable(objParams);
|
||||||
@@ -280,9 +279,9 @@ const Home = () => {
|
|||||||
complete: () => {
|
complete: () => {
|
||||||
// 刷新页面数据
|
// 刷新页面数据
|
||||||
getsystemConfig(); //获取系统配置
|
getsystemConfig(); //获取系统配置
|
||||||
// setTimeout(() => {
|
setTimeout(() => {
|
||||||
// getdetails(); //获取活动详情
|
getdetails(); //获取活动详情
|
||||||
// }, 700);
|
}, 800);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -370,18 +369,19 @@ const Home = () => {
|
|||||||
<View className="Swiper-box">
|
<View className="Swiper-box">
|
||||||
{systemConfig?.length > 0 && (
|
{systemConfig?.length > 0 && (
|
||||||
<Swiper
|
<Swiper
|
||||||
className='test-h'
|
className="Swiper"
|
||||||
// indicatorColor='#999'
|
// indicatorColor='#999'
|
||||||
indicatorActiveColor='#333'
|
indicatorActiveColor="#333"
|
||||||
// vertical //纵向
|
// vertical //纵向
|
||||||
circular
|
circular
|
||||||
indicatorDots
|
indicatorDots
|
||||||
autoplay
|
autoplay
|
||||||
>
|
>
|
||||||
{(systemConfig?.[0]?.imagesArr ?? []).map(
|
{(systemConfig?.[0]?.imagesArr ?? []).map(
|
||||||
(item: any, index: any) => (
|
(item: any, index: any) => (
|
||||||
<SwiperItem >
|
<SwiperItem>
|
||||||
<Image
|
<Image
|
||||||
|
className="SwiperImg"
|
||||||
src={item?.url}
|
src={item?.url}
|
||||||
fit="cover"
|
fit="cover"
|
||||||
width="100%"
|
width="100%"
|
||||||
@@ -391,8 +391,6 @@ const Home = () => {
|
|||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
</Swiper>
|
</Swiper>
|
||||||
|
|
||||||
|
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
@@ -491,8 +489,10 @@ const Home = () => {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
// 打开视频号-指定视频
|
// 打开视频号-指定视频
|
||||||
Taro.openChannelsActivity({
|
Taro.openChannelsActivity({
|
||||||
finderUserName: "sphqzUmI0BlppCI", //视频号id
|
// finderUserName: "sphqzUmI0BlppCI", //视频号id,
|
||||||
|
finderUserName: systemConfig?.[0]?.videoObj?.finderUserName ?? "sphqzUmI0BlppCI",
|
||||||
feedId:
|
feedId:
|
||||||
|
systemConfig?.[0]?.videoObj?.feedId ??
|
||||||
"export/UzFfAgtgekIEAQAAAAAAeIIQA5S-0wAAAAstQy6ubaLX4KHWvLEZgBPEj6MUcExXaL37zNPgMJpEUVVnZ9njxR_hb9_u-bQj", //视频 feedId
|
"export/UzFfAgtgekIEAQAAAAAAeIIQA5S-0wAAAAstQy6ubaLX4KHWvLEZgBPEj6MUcExXaL37zNPgMJpEUVVnZ9njxR_hb9_u-bQj", //视频 feedId
|
||||||
success: (res: any) => {
|
success: (res: any) => {
|
||||||
console.log("res", res);
|
console.log("res", res);
|
||||||
@@ -574,24 +574,7 @@ const Home = () => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{/* 加入微信群 */}
|
{/* 加入微信群 */}
|
||||||
<WeGroup />
|
{/* <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> */}
|
|
||||||
|
|
||||||
{/* <View style={{marginTop:'10px'}}>打卡精选</View> */}
|
{/* <View style={{marginTop:'10px'}}>打卡精选</View> */}
|
||||||
{/* 瀑布流 */}
|
{/* 瀑布流 */}
|
||||||
|
|||||||
Reference in New Issue
Block a user