国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 熱點(diǎn) > 微信 > 正文

微信小程序如何訪問(wèn)公眾號(hào)文章

2024-07-22 01:18:04
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

前言

隨著小程序不斷的發(fā)展,現(xiàn)在個(gè)人的小程序也開放了很多功能了,個(gè)人小程序直接打開公眾號(hào)鏈接。在群里看到的一款小程序,點(diǎn)擊可以直接閱讀文章了,所以琢磨了一下,寫了一些源碼。

主要代碼:

<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>

為了達(dá)到效果,更加具體的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;}/* 搜索框樣式 */.view-search { display: flex; flex-direction: row; height: 70rpx; margin: 20rpx; padding: 5rpx; border: 1px #e4e2e2 solid; border-width: thin; align-items: center;}.input { flex: 1; height: 60rpx;}.input-placeholder { color: #999;}.button { width: 60rpx; height: 60rpx;}            
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 武定县| 竹北市| 托里县| 蓝山县| 石柱| 金沙县| 泰兴市| 陆河县| 绥江县| 图片| 海兴县| 方正县| 德惠市| 桂平市| 锦屏县| 威海市| 鄂托克前旗| 鄂伦春自治旗| 湛江市| 扶沟县| 崇文区| 临武县| 龙江县| 昭苏县| 汝城县| 布拖县| 衡阳市| 株洲市| 花莲县| 淄博市| 崇礼县| 和顺县| 东阿县| 汕头市| 冷水江市| 抚州市| 盐城市| 共和县| 东乌珠穆沁旗| 晋州市| 陵川县|