feat: 瀑布流卡片

This commit is contained in:
eric
2022-12-09 13:48:29 +08:00
parent d736aa4502
commit 57cc3aea98
11 changed files with 101 additions and 15 deletions

75
dist/base.wxml vendored
View File

@@ -137,6 +137,11 @@
<block>{{i.v}}</block>
</template>
<template name="tmpl_0_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
</template>
<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>
@@ -197,6 +202,11 @@
</scroll-view>
</template>
<template name="tmpl_1_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
</template>
<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>
@@ -257,6 +267,11 @@
</scroll-view>
</template>
<template name="tmpl_2_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
</template>
<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>
@@ -317,6 +332,11 @@
</scroll-view>
</template>
<template name="tmpl_3_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
</template>
<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>
@@ -369,6 +389,11 @@
</text>
</template>
<template name="tmpl_4_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
</template>
<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>
@@ -421,6 +446,11 @@
</text>
</template>
<template name="tmpl_5_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
</template>
<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>
@@ -465,6 +495,11 @@
</text>
</template>
<template name="tmpl_6_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
</template>
<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>
@@ -509,6 +544,11 @@
</text>
</template>
<template name="tmpl_7_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
</template>
<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>
@@ -553,6 +593,11 @@
</text>
</template>
<template name="tmpl_8_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
</template>
<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>
@@ -597,6 +642,11 @@
</text>
</template>
<template name="tmpl_9_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
</template>
<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>
@@ -641,6 +691,11 @@
</text>
</template>
<template name="tmpl_10_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
</template>
<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>
@@ -685,6 +740,11 @@
</text>
</template>
<template name="tmpl_11_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
</template>
<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>
@@ -729,6 +789,11 @@
</text>
</template>
<template name="tmpl_12_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
</template>
<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>
@@ -773,6 +838,11 @@
</text>
</template>
<template name="tmpl_13_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
</template>
<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>
@@ -817,6 +887,11 @@
</text>
</template>
<template name="tmpl_14_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
</template>
<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>

2
dist/comp.json vendored
View File

@@ -1 +1 @@
{"component":true,"usingComponents":{"comp":"./comp"}}
{"component":true,"usingComponents":{"comp":"./comp"},"custom-wrapper":"./custom-wrapper"}

View File

@@ -1 +1 @@
{"navigationBarTitleText":"活动详情","usingComponents":{"comp":"../../../../comp"}}
{"navigationBarTitleText":"活动详情","usingComponents":{"custom-wrapper":"../../../../custom-wrapper","comp":"../../../../comp"}}

View File

@@ -1 +1 @@
{"navigationBarTitleText":"活动列表","usingComponents":{"comp":"../../comp"}}
{"navigationBarTitleText":"活动列表","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}

View File

@@ -1 +1 @@
{"navigationBarTitleText":"首页","usingComponents":{"comp":"../../comp"}}
{"navigationBarTitleText":"首页","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}

View File

@@ -1 +1 @@
{"navigationBarTitleText":"山峰介绍","usingComponents":{"comp":"../../comp"}}
{"navigationBarTitleText":"山峰介绍","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}

View File

@@ -1 +1 @@
{"navigationBarTitleText":"我的","usingComponents":{"comp":"../../comp"}}
{"navigationBarTitleText":"我的","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}

2
dist/utils.wxs vendored
View File

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

View File

@@ -0,0 +1,11 @@
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 InfoCard = () => {
return <View>InfoCard</View>;
};
export default InfoCard;

View File

@@ -32,6 +32,7 @@ import { Search } from "@antmjs/vantui";
import ActiveCard from "../components/ActiveCard";
import { Dialog } from "@antmjs/vantui";
import { Loading } from "@antmjs/vantui";
import InfoCard from "./components/InfoCard";
const Home = () => {
// const { images } = COMMON
@@ -50,8 +51,6 @@ const Home = () => {
const [openid, setopenid] = useState();
const [isIn, setisIn] = useState(false);
const onChange = (e) => {};
useEffect(() => {
@@ -60,10 +59,9 @@ const Home = () => {
const getLogin = async () => {
let isLogin: any = await phoneLogin();
console.log('isLogin',isLogin)
console.log("isLogin", isLogin);
setisIn(isLogin);
};
Taro.useShareAppMessage((res) => {
if (res.from === "button") {
@@ -138,9 +136,9 @@ const Home = () => {
okFun: async (res: any) => {
console.log("systemConfig--", res);
await setsystemConfig(res?.data ?? []);
setTimeout(()=>{
getdetails()
},500)
setTimeout(() => {
getdetails();
}, 500);
// await getdetails()
},
};
@@ -535,6 +533,9 @@ const Home = () => {
<Skeleton title={true} row={4} />
)}
{/* 瀑布流 */}
{/* <InfoCard /> */}
{/* 直播live专区 */}
{/* <View>视频号直播</View> */}
@@ -554,7 +555,6 @@ const Home = () => {
}}
></OfficialAccount>
</View>
{/* 打开视频号主页-需要开放平台主主体认证 */}
{/* <View