feat: 个人小程序-关注个人公众号

This commit is contained in:
eric
2022-11-25 21:38:03 +08:00
parent 26fb8c3193
commit 77d925c856
7 changed files with 32 additions and 40 deletions

36
dist/base.wxml vendored
View File

@@ -65,14 +65,6 @@
</button>
</template>
<template name="tmpl_0_21">
<form report-submit="{{xs.b(i.p1,!1)}}" bindsubmit="eh" bindreset="eh" name="{{i.p0}}" report-submit-timeout="{{xs.b(i.p2,0)}}" style="{{i.st}}" class="{{i.cl}}" bindtap="eh" 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>
</form>
</template>
<template name="tmpl_0_24">
<template is="{{xs.c(i, 'tmpl_0_')}}" data="{{i:i}}" />
</template>
@@ -137,6 +129,10 @@
</video>
</template>
<template name="tmpl_0_36">
<official-account bindload="eh" binderror="eh" style="{{i.st}}" class="{{i.cl}}" bindtap="eh" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}"></official-account>
</template>
<template name="tmpl_0_8">
<block>{{i.v}}</block>
</template>
@@ -193,14 +189,6 @@
</text>
</template>
<template name="tmpl_1_21">
<form report-submit="{{xs.b(i.p1,!1)}}" bindsubmit="eh" bindreset="eh" name="{{i.p0}}" report-submit-timeout="{{xs.b(i.p2,0)}}" style="{{i.st}}" class="{{i.cl}}" bindtap="eh" 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>
</form>
</template>
<template name="tmpl_1_48">
<scroll-view scroll-x="{{xs.b(i.p18,!1)}}" scroll-y="{{xs.b(i.p19,!1)}}" upper-threshold="{{xs.b(i.p21,50)}}" lower-threshold="{{xs.b(i.p6,50)}}" scroll-top="{{i.p16}}" scroll-left="{{i.p15}}" scroll-into-view="{{i.p14}}" scroll-with-animation="{{xs.b(i.p17,!1)}}" enable-back-to-top="{{xs.b(i.p2,!1)}}" bindscrolltoupper="eh" bindscrolltolower="eh" bindscroll="eh" bindtouchstart="eh" bindtouchmove="eh" bindtouchend="eh" bindtouchcancel="eh" bindlongpress="eh" animation="{{i.p0}}" bindanimationstart="eh" bindanimationiteration="eh" bindanimationend="eh" bindtransitionend="eh" enable-flex="{{xs.b(i.p3,false)}}" scroll-anchoring="{{xs.b(i.p13,false)}}" refresher-enabled="{{xs.b(i.p10,false)}}" refresher-threshold="{{xs.b(i.p11,45)}}" refresher-default-style="{{xs.b(i.p9,'black')}}" refresher-background="{{xs.b(i.p8,'#FFF')}}" refresher-triggered="{{xs.b(i.p12,false)}}" enhanced="{{xs.b(i.p4,false)}}" bounces="{{xs.b(i.p1,true)}}" show-scrollbar="{{xs.b(i.p20,true)}}" paging-enabled="{{xs.b(i.p7,false)}}" fast-deceleration="{{xs.b(i.p5,false)}}" binddragstart="eh" binddragging="eh" binddragend="eh" bindrefresherpulling="eh" bindrefresherrefresh="eh" bindrefresherrestore="eh" bindrefresherabort="eh" style="{{i.st}}" class="{{i.cl}}" bindtap="eh" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
@@ -261,14 +249,6 @@
</text>
</template>
<template name="tmpl_2_21">
<form report-submit="{{xs.b(i.p1,!1)}}" bindsubmit="eh" bindreset="eh" name="{{i.p0}}" report-submit-timeout="{{xs.b(i.p2,0)}}" style="{{i.st}}" class="{{i.cl}}" bindtap="eh" 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>
</form>
</template>
<template name="tmpl_2_48">
<scroll-view scroll-x="{{xs.b(i.p18,!1)}}" scroll-y="{{xs.b(i.p19,!1)}}" upper-threshold="{{xs.b(i.p21,50)}}" lower-threshold="{{xs.b(i.p6,50)}}" scroll-top="{{i.p16}}" scroll-left="{{i.p15}}" scroll-into-view="{{i.p14}}" scroll-with-animation="{{xs.b(i.p17,!1)}}" enable-back-to-top="{{xs.b(i.p2,!1)}}" bindscrolltoupper="eh" bindscrolltolower="eh" bindscroll="eh" bindtouchstart="eh" bindtouchmove="eh" bindtouchend="eh" bindtouchcancel="eh" bindlongpress="eh" animation="{{i.p0}}" bindanimationstart="eh" bindanimationiteration="eh" bindanimationend="eh" bindtransitionend="eh" enable-flex="{{xs.b(i.p3,false)}}" scroll-anchoring="{{xs.b(i.p13,false)}}" refresher-enabled="{{xs.b(i.p10,false)}}" refresher-threshold="{{xs.b(i.p11,45)}}" refresher-default-style="{{xs.b(i.p9,'black')}}" refresher-background="{{xs.b(i.p8,'#FFF')}}" refresher-triggered="{{xs.b(i.p12,false)}}" enhanced="{{xs.b(i.p4,false)}}" bounces="{{xs.b(i.p1,true)}}" show-scrollbar="{{xs.b(i.p20,true)}}" paging-enabled="{{xs.b(i.p7,false)}}" fast-deceleration="{{xs.b(i.p5,false)}}" binddragstart="eh" binddragging="eh" binddragend="eh" bindrefresherpulling="eh" bindrefresherrefresh="eh" bindrefresherrestore="eh" bindrefresherabort="eh" style="{{i.st}}" class="{{i.cl}}" bindtap="eh" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
@@ -329,14 +309,6 @@
</text>
</template>
<template name="tmpl_3_21">
<form report-submit="{{xs.b(i.p1,!1)}}" bindsubmit="eh" bindreset="eh" name="{{i.p0}}" report-submit-timeout="{{xs.b(i.p2,0)}}" style="{{i.st}}" class="{{i.cl}}" bindtap="eh" 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>
</form>
</template>
<template name="tmpl_3_48">
<scroll-view scroll-x="{{xs.b(i.p18,!1)}}" scroll-y="{{xs.b(i.p19,!1)}}" upper-threshold="{{xs.b(i.p21,50)}}" lower-threshold="{{xs.b(i.p6,50)}}" scroll-top="{{i.p16}}" scroll-left="{{i.p15}}" scroll-into-view="{{i.p14}}" scroll-with-animation="{{xs.b(i.p17,!1)}}" enable-back-to-top="{{xs.b(i.p2,!1)}}" bindscrolltoupper="eh" bindscrolltolower="eh" bindscroll="eh" bindtouchstart="eh" bindtouchmove="eh" bindtouchend="eh" bindtouchcancel="eh" bindlongpress="eh" animation="{{i.p0}}" bindanimationstart="eh" bindanimationiteration="eh" bindanimationend="eh" bindtransitionend="eh" enable-flex="{{xs.b(i.p3,false)}}" scroll-anchoring="{{xs.b(i.p13,false)}}" refresher-enabled="{{xs.b(i.p10,false)}}" refresher-threshold="{{xs.b(i.p11,45)}}" refresher-default-style="{{xs.b(i.p9,'black')}}" refresher-background="{{xs.b(i.p8,'#FFF')}}" refresher-triggered="{{xs.b(i.p12,false)}}" enhanced="{{xs.b(i.p4,false)}}" bounces="{{xs.b(i.p1,true)}}" show-scrollbar="{{xs.b(i.p20,true)}}" paging-enabled="{{xs.b(i.p7,false)}}" fast-deceleration="{{xs.b(i.p5,false)}}" binddragstart="eh" binddragging="eh" binddragend="eh" bindrefresherpulling="eh" bindrefresherrefresh="eh" bindrefresherrestore="eh" bindrefresherabort="eh" style="{{i.st}}" class="{{i.cl}}" bindtap="eh" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/taro.js vendored
View File

@@ -1,2 +1,2 @@
/*! For license information please see taro.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["taro"],{"./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js":function(t,e,n){n.d(e,{Button:function(){return a},Image:function(){return s},Input:function(){return i},Navigator:function(){return p},RichText:function(){return o},Text:function(){return u},Textarea:function(){return c},Video:function(){return m},View:function(){return r}});var r="view",o="rich-text",u="text",a="button",i="input",c="textarea",p="navigator",s="image",m="video"},"./node_modules/@tarojs/webpack5-runner/dist/template/comp.js":function(t,e,n){var r=n("webpack/container/remote/@tarojs/runtime");Component((0,r.createRecursiveComponentConfig)())},"./node_modules/@tarojs/webpack5-runner/dist/template/custom-wrapper.js":function(t,e,n){var r=n("webpack/container/remote/@tarojs/runtime");Component((0,r.createRecursiveComponentConfig)("custom-wrapper"))}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["taro"],{"./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js":function(t,n,e){e.d(n,{Button:function(){return i},Image:function(){return s},Input:function(){return a},Navigator:function(){return p},OfficialAccount:function(){return m},RichText:function(){return r},Text:function(){return u},Textarea:function(){return c},Video:function(){return f},View:function(){return o}});var o="view",r="rich-text",u="text",i="button",a="input",c="textarea",p="navigator",s="image",f="video",m="official-account"},"./node_modules/@tarojs/webpack5-runner/dist/template/comp.js":function(t,n,e){var o=e("webpack/container/remote/@tarojs/runtime");Component((0,o.createRecursiveComponentConfig)())},"./node_modules/@tarojs/webpack5-runner/dist/template/custom-wrapper.js":function(t,n,e){var o=e("webpack/container/remote/@tarojs/runtime");Component((0,o.createRecursiveComponentConfig)("custom-wrapper"))}}]);

View File

@@ -8,7 +8,7 @@
"pathName": "pages/my/index",
"query": "",
"launchMode": "default",
"scene": null
"scene": 1011
},
{
"name": "活动详情",
@@ -44,6 +44,13 @@
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "首页",
"pathName": "pages/home/index",
"query": "",
"launchMode": "default",
"scene": 1047
}
]
}

View File

@@ -11,7 +11,7 @@ import {
Tag,
Toast,
} from "@antmjs/vantui";
import { Input, View } from "@tarojs/components";
import { Input, OfficialAccount, View } from "@tarojs/components";
import React, { useCallback, useEffect, useState } from "react";
import { Swiper, SwiperItem, Image } from "@antmjs/vantui";
import react from "react";
@@ -180,7 +180,6 @@ const Home = () => {
// Taro.navigateBack({
// delta: 1,
// });
},
});
},
@@ -465,6 +464,19 @@ const Home = () => {
{/* 小红书图文/视频信息流 */}
{/* <View> 打开信息流</View> */}
<View style={{marginTop:'20px'}}>
{" "}
{/* 个人版本未生效 */}
<OfficialAccount
onLoad={(res: any) => {
console.log("加载成功", res);
}}
onError={(res: any) => {
console.log("加载失败", res);
}}
></OfficialAccount>
</View>
<Toast id="vanToast-demo2" />
<TabbarCom active={0} />

View File

@@ -9,7 +9,7 @@ import {
TabbarItem,
Toast,
} from "@antmjs/vantui";
import { OpenData, View, Text } from "@tarojs/components";
import { OpenData, View, Text, OfficialAccount } from "@tarojs/components";
import react, { useEffect, useState } from "react";
import TabbarCom from "../components/TabbarCom";
import { Image } from "@antmjs/vantui";
@@ -302,7 +302,6 @@ const my = (props: any) => {
}}
/> */}
{/* <Cell
icon="setting"
title="版本日志"
@@ -314,6 +313,8 @@ const my = (props: any) => {
});
}}
/> */}
</View>
<Toast id="vanToast-demo2" />