feat: 添加微信群

This commit is contained in:
eric
2022-12-10 19:13:05 +08:00
parent c1f5807fad
commit b287c4da8e
10 changed files with 153 additions and 126 deletions

2
dist/app.js vendored

File diff suppressed because one or more lines are too long

120
dist/base.wxml vendored
View File

@@ -137,14 +137,6 @@
<block>{{i.v}}</block> <block>{{i.v}}</block>
</template> </template>
<template name="tmpl_0_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_0_container"> <template name="tmpl_0_container">
<template is="{{xs.a(0, i.nn, l)}}" data="{{i:i,cid:0,l:xs.f(l,i.nn)}}" /> <template is="{{xs.a(0, i.nn, l)}}" data="{{i:i,cid:0,l:xs.f(l,i.nn)}}" />
</template> </template>
@@ -205,14 +197,6 @@
</scroll-view> </scroll-view>
</template> </template>
<template name="tmpl_1_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_1_container"> <template name="tmpl_1_container">
<template is="{{xs.a(1, i.nn, l)}}" data="{{i:i,cid:1,l:xs.f(l,i.nn)}}" /> <template is="{{xs.a(1, i.nn, l)}}" data="{{i:i,cid:1,l:xs.f(l,i.nn)}}" />
</template> </template>
@@ -273,14 +257,6 @@
</scroll-view> </scroll-view>
</template> </template>
<template name="tmpl_2_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_2_container"> <template name="tmpl_2_container">
<template is="{{xs.a(2, i.nn, l)}}" data="{{i:i,cid:2,l:xs.f(l,i.nn)}}" /> <template is="{{xs.a(2, i.nn, l)}}" data="{{i:i,cid:2,l:xs.f(l,i.nn)}}" />
</template> </template>
@@ -341,14 +317,6 @@
</scroll-view> </scroll-view>
</template> </template>
<template name="tmpl_3_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_3_container"> <template name="tmpl_3_container">
<template is="{{xs.a(3, i.nn, l)}}" data="{{i:i,cid:3,l:xs.f(l,i.nn)}}" /> <template is="{{xs.a(3, i.nn, l)}}" data="{{i:i,cid:3,l:xs.f(l,i.nn)}}" />
</template> </template>
@@ -401,14 +369,6 @@
</text> </text>
</template> </template>
<template name="tmpl_4_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_4_container"> <template name="tmpl_4_container">
<template is="{{xs.a(4, i.nn, l)}}" data="{{i:i,cid:4,l:xs.f(l,i.nn)}}" /> <template is="{{xs.a(4, i.nn, l)}}" data="{{i:i,cid:4,l:xs.f(l,i.nn)}}" />
</template> </template>
@@ -461,14 +421,6 @@
</text> </text>
</template> </template>
<template name="tmpl_5_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_5_container"> <template name="tmpl_5_container">
<template is="{{xs.a(5, i.nn, l)}}" data="{{i:i,cid:5,l:xs.f(l,i.nn)}}" /> <template is="{{xs.a(5, i.nn, l)}}" data="{{i:i,cid:5,l:xs.f(l,i.nn)}}" />
</template> </template>
@@ -513,14 +465,6 @@
</text> </text>
</template> </template>
<template name="tmpl_6_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_6_container"> <template name="tmpl_6_container">
<template is="{{xs.a(6, i.nn, l)}}" data="{{i:i,cid:6,l:xs.f(l,i.nn)}}" /> <template is="{{xs.a(6, i.nn, l)}}" data="{{i:i,cid:6,l:xs.f(l,i.nn)}}" />
</template> </template>
@@ -565,14 +509,6 @@
</text> </text>
</template> </template>
<template name="tmpl_7_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_7_container"> <template name="tmpl_7_container">
<template is="{{xs.a(7, i.nn, l)}}" data="{{i:i,cid:7,l:xs.f(l,i.nn)}}" /> <template is="{{xs.a(7, i.nn, l)}}" data="{{i:i,cid:7,l:xs.f(l,i.nn)}}" />
</template> </template>
@@ -617,14 +553,6 @@
</text> </text>
</template> </template>
<template name="tmpl_8_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_8_container"> <template name="tmpl_8_container">
<template is="{{xs.a(8, i.nn, l)}}" data="{{i:i,cid:8,l:xs.f(l,i.nn)}}" /> <template is="{{xs.a(8, i.nn, l)}}" data="{{i:i,cid:8,l:xs.f(l,i.nn)}}" />
</template> </template>
@@ -669,14 +597,6 @@
</text> </text>
</template> </template>
<template name="tmpl_9_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_9_container"> <template name="tmpl_9_container">
<template is="{{xs.a(9, i.nn, l)}}" data="{{i:i,cid:9,l:xs.f(l,i.nn)}}" /> <template is="{{xs.a(9, i.nn, l)}}" data="{{i:i,cid:9,l:xs.f(l,i.nn)}}" />
</template> </template>
@@ -721,14 +641,6 @@
</text> </text>
</template> </template>
<template name="tmpl_10_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_10_container"> <template name="tmpl_10_container">
<template is="{{xs.a(10, i.nn, l)}}" data="{{i:i,cid:10,l:xs.f(l,i.nn)}}" /> <template is="{{xs.a(10, i.nn, l)}}" data="{{i:i,cid:10,l:xs.f(l,i.nn)}}" />
</template> </template>
@@ -773,14 +685,6 @@
</text> </text>
</template> </template>
<template name="tmpl_11_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_11_container"> <template name="tmpl_11_container">
<template is="{{xs.a(11, i.nn, l)}}" data="{{i:i,cid:11,l:xs.f(l,i.nn)}}" /> <template is="{{xs.a(11, i.nn, l)}}" data="{{i:i,cid:11,l:xs.f(l,i.nn)}}" />
</template> </template>
@@ -825,14 +729,6 @@
</text> </text>
</template> </template>
<template name="tmpl_12_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_12_container"> <template name="tmpl_12_container">
<template is="{{xs.a(12, i.nn, l)}}" data="{{i:i,cid:12,l:xs.f(l,i.nn)}}" /> <template is="{{xs.a(12, i.nn, l)}}" data="{{i:i,cid:12,l:xs.f(l,i.nn)}}" />
</template> </template>
@@ -877,14 +773,6 @@
</text> </text>
</template> </template>
<template name="tmpl_13_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_13_container"> <template name="tmpl_13_container">
<template is="{{xs.a(13, i.nn, l)}}" data="{{i:i,cid:13,l:xs.f(l,i.nn)}}" /> <template is="{{xs.a(13, i.nn, l)}}" data="{{i:i,cid:13,l:xs.f(l,i.nn)}}" />
</template> </template>
@@ -929,14 +817,6 @@
</text> </text>
</template> </template>
<template name="tmpl_14_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_14_container"> <template name="tmpl_14_container">
<template is="{{xs.a(14, i.nn, l)}}" data="{{i:i,cid:14,l:xs.f(l,i.nn)}}" /> <template is="{{xs.a(14, i.nn, l)}}" data="{{i:i,cid:14,l:xs.f(l,i.nn)}}" />
</template> </template>

File diff suppressed because one or more lines are too long

View File

@@ -34,6 +34,8 @@
/*! ../wxs/utils */ /*! ../wxs/utils */
/*! ./components/WeGroup */
/*! ./context */ /*! ./context */
/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ /*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
@@ -116,6 +118,10 @@
!*** ./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 ***!
\******************************************************/ \******************************************************/

View File

@@ -53,3 +53,52 @@
-ms-flex-pack: justify; -ms-flex-pack: justify;
justify-content: space-between; justify-content: space-between;
} }
.Swiper-box {
min-height: 150rpx;
}
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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;
}
.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;
}

2
dist/utils.wxs vendored
View File

@@ -1,6 +1,6 @@
module.exports = { module.exports = {
a: function (l, n, s) { a: function (l, n, s) {
var a = ["7","0","19","5","2","12","6","4","51","52","26","21","48","53","54","channel-video"] var a = ["7","0","19","5","2","12","6","4","51","52","26","21","48","53","54"]
var b = ["4","51","52","26","21","48","53","54"] var b = ["4","51","52","26","21","48","53","54"]
if (a.indexOf(n) === -1) { if (a.indexOf(n) === -1) {
l = 0 l = 0

View File

@@ -0,0 +1,37 @@
.weGroup {
// width: 100%;
margin-top: 40px;
padding: 20px;
// padding-left: 20px;
// padding-right: 20px;
display: flex;
flex-direction: row;
background-color: #f5f5f5;
min-height: 100px;
.left {
width: 50x;
height: 50px;
margin-right: 40px;
}
.right {
display: flex;
padding-right: 20px;
flex: 1;
flex-direction: column;
// align-items: center;
justify-content: space-between;
.rightup{
// width: 100%;
// background-color: red;
display: flex;
flex-direction: row;
// align-items: center;
justify-content: space-between;
}
.rightdown{
}
}
}
//

View File

@@ -0,0 +1,29 @@
import { Button, Checkbox, Form, FormItem, Icon, Image } from "@antmjs/vantui";
import { Input, View, Text } from "@tarojs/components";
import react, { useEffect } from "react";
import "./index.scss";
import { PowerScrollView } from "@antmjs/vantui";
const WeGroup = () => {
return (
<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>
);
};
export default WeGroup;

View File

@@ -25,3 +25,7 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.Swiper-box{
min-height: 150px;
}

View File

@@ -1,6 +1,7 @@
import { import {
Button, Button,
Card, Card,
Cell,
Col, Col,
Divider, Divider,
Grid, Grid,
@@ -39,6 +40,7 @@ import ActiveCard from "../components/ActiveCard";
import { Dialog } from "@antmjs/vantui"; import { Dialog } from "@antmjs/vantui";
import { Loading } from "@antmjs/vantui"; import { Loading } from "@antmjs/vantui";
import InfoCard from "./components/InfoCard"; import InfoCard from "./components/InfoCard";
import WeGroup from "./components/WeGroup";
const Home = () => { const Home = () => {
// const { images } = COMMON // const { images } = COMMON
@@ -144,7 +146,7 @@ const Home = () => {
await setsystemConfig(res?.data ?? []); await setsystemConfig(res?.data ?? []);
setTimeout(() => { setTimeout(() => {
getdetails(); getdetails();
}, 500); }, 700);
// await getdetails() // await getdetails()
}, },
}; };
@@ -277,7 +279,7 @@ const Home = () => {
getsystemConfig(); //获取系统配置 getsystemConfig(); //获取系统配置
setTimeout(() => { setTimeout(() => {
getdetails(); //获取活动详情 getdetails(); //获取活动详情
}, 500); }, 700);
}, },
}); });
}; };
@@ -476,7 +478,7 @@ const Home = () => {
/> */} /> */}
<GridItem <GridItem
icon="manager" icon="video"
className="iconStyle" className="iconStyle"
text="视频" text="视频"
onClick={() => { onClick={() => {
@@ -564,6 +566,26 @@ const Home = () => {
<Skeleton title={true} row={4} /> <Skeleton title={true} row={4} />
)} )}
{/* 加入微信群 */}
<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> */}
{/* 瀑布流 */} {/* 瀑布流 */}
{/* <InfoCard /> */} {/* <InfoCard /> */}