没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
微信小程序如何访问公众号文章微信小程序如何访问公众号文章
主要介绍了微信小程序如何访问公众号文章,随着小程序不断的发展,现在个人的小程序也开放了很多功能了,个人小程序直接打开公众号链接。在群里看到的一款小程序,点击
可以直接阅读文章了,需要的朋友可以参考下
前言前言
随着小程序不断的发展,现在个人的小程序也开放了很多功能了,个人小程序直接打开公众号链接。在群里看到的一款小程序,点击可以直接阅读文章了,所以琢磨了一下,写了一些源码。
主要代码:主要代码:
<web-view src="https://mp.weixin.qq.com/s?__biz=MzI2ODUxMzg4Nw==&mid=2247485016&idx=1&sn=e5f60600ea30f669264ddcf5db4fb080&chksm=eaef2168dd98a87ead60eed0f24e799c1befbfe95e341231216af72315c33a56839f92e69ef9&token=29762947&lang=zh_CN#rd"></web-view>
为了达到效果,更加具体的demo
效果如下
github地址:https://github.com/wangxiaoting666/weixinlink
weixin.wxml
<navigator url="/pages/search/search" hover-class="changestyle">
<view class="view-search">
<input class="input" placeholder-class="input-placeholder" placeholder="输入文章和链接" bindinput="bindSearchInput" />
<image class="button" src="/images/search.png" bindtap="tapSearch" />
</view>
</navigator>
<view class="container">
<view wx:for="{{cardTeams}}" wx:key="{{cardTeam.viewid}}" wx:for-item="cardTeam" class="item" bindtap="bindViewTap">
<image class="img" src="{{cardTeam.imgsrc}}" mode="scaleToFill"></image>
<view class="number-wrapper">
<text class="name">{{cardTeam.name}}</text>
<view class="count-wrapper">
<text class="count">{{cardTeam.count}}</text>
</view>
</view>
</view>
</view>
weixin.wxss
.container {
padding-top: 0;
}
.item {
width: 100%;
height: 220rpx;
position: relative;
display: flex;
margin: 10rpx 10rpx;
border-bottom: 1px solid rgb(197, 199, 199);
}
.item:first-child {
margin-top: 0;
}
.item .remove {
width: 60px;
height: 100%;
background-color: red;
position: absolute;
top: 0;
right: -60px;
display: flex;
justify-content: center;
align-items: center;
}
.item .number-wrapper {
height: 100%;
padding-top: 40rpx;
flex-direction: column;
justify-content: space-between;
}
.item .ok {
width: 60px;
height: 100%;
padding-right: 20rpx;
display: flex;
justify-content: center;
align-items: center;
background-color: #98f5ff;
}
.item .img {
width: 150rpx;
height: 150rpx;
padding: 20rpx;
}
.number-wrapper .name {
margin: 10rpx 10rpx 10rpx 10rpx;
font-size: 39rpx;
overflow: hidden;
}
.number-wrapper .count-wrapper {
display: flex;
align-items: center;
margin-left: 10rpx;
font-size: 25rpx;
}
.number-wrapper .count-wrapper .decrease-btn {
font-size: 30rpx;
}
.number-wrapper .count-wrapper .increase-btn {
font-size: 30rpx;
}
.number-wrapper .count-wrapper .count {
margin: 0 1rpx 0 1rpx;
font-size: 30rpx;
}
.number-wrapper .price-wrapper .people {
margin-left: 250rpx;
font-size: 30rpx;
}
资源评论
weixin_38702945
- 粉丝: 9
- 资源: 964
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功