随笔分类 -  【前端】微信小程序

摘要:// 配置底部安全区域 page { //iOS 11 padding-right: constant(safe-area-inset-right); padding-bottom: constant(safe-area-inset-bottom); padding-left: constant(s 阅读全文
posted @ 2021-09-13 17:55 Wayhome' 阅读(795) 评论(0) 推荐(0)
摘要:<template> <div class="index"> <canvas class="canvas-poster" id="canvasPoster" :style="{width:width+'px;',height: height+'px'}" canvas-id="canvasPoste 阅读全文
posted @ 2021-08-07 10:36 Wayhome' 阅读(239) 评论(0) 推荐(0)
摘要://根元素 .index { overflow: hidden; } .myPage{ background: #F5F4F0; height: 100vh; position: fixed; top: 0px; left: 0px; width: 100%; overflow: hidden; } 阅读全文
posted @ 2021-07-28 14:22 Wayhome' 阅读(758) 评论(0) 推荐(0)
摘要:微信小程序将canvas隐藏,显示html+css的页面 <PosterCard /> <view class="canvas-wrap" style="position:fixed;top:999999999999999999999rpx;"> <canvas id="poster" :style 阅读全文
posted @ 2021-07-28 13:48 Wayhome' 阅读(412) 评论(0) 推荐(0)
摘要:// 跳转到登录页 let pages = getCurrentPages(); //获取加载的页面 let currentPage = pages[pages.length - 1]; //获取当前页面的对象 let url = currentPage.route; if (url == 'pag 阅读全文
posted @ 2021-07-23 10:15 Wayhome' 阅读(1256) 评论(0) 推荐(0)
摘要://在babel.config.js添加这条 "dev:wx": "npm run build:weapp -- --watch --env production",//这是新增的 "dev:weapp": "npm run build:weapp -- --watch",//这是原来的 阅读全文
posted @ 2021-07-21 20:58 Wayhome' 阅读(199) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/u013633921/article/details/114014500 阅读全文
posted @ 2021-07-15 11:54 Wayhome' 阅读(672) 评论(0) 推荐(0)
摘要:<template> <!-- 立即购买按钮 --> <view class='comButton'> <view class="buy" :style="{width:width,height:height,marginTop:marginTop,marginBottom:marginBottom 阅读全文
posted @ 2021-07-15 09:49 Wayhome' 阅读(104) 评论(0) 推荐(0)
摘要:clickCanvas() { console.log("点击按钮保存"); let rpx = this.rpx; let that = this; // let width = 357 * rpx; // let height = 579 * rpx; let width = that.canv 阅读全文
posted @ 2021-07-14 14:22 Wayhome' 阅读(408) 评论(0) 推荐(0)
摘要:小程序获取参数 let obj = wx.getLaunchOptionsSync(); //获取参数 console.log("我是mounted", obj); let arr = getCurrentPages(); //获取页面栈 console.log("页面栈", arr); onLoa 阅读全文
posted @ 2021-07-10 15:37 Wayhome' 阅读(1929) 评论(0) 推荐(0)
摘要:<template> <!-- 自定义顶部导航条 --> <view class="CustomTopNav"> <view class="CustomContent" :style="{ height: navBarHeight + 'px',backgroundColor:backgroundC 阅读全文
posted @ 2021-07-09 11:40 Wayhome' 阅读(206) 评论(0) 推荐(0)
摘要:<template> <!-- 商品描述 --> <view class='ProductDesc'> <view class="title">— 商品详情 —</view> <!-- 商品图片 开始 --> <view class="goodsImg"> <!-- <image class="im 阅读全文
posted @ 2021-07-07 10:30 Wayhome' 阅读(1823) 评论(0) 推荐(0)
摘要:一、小程序分享到好友,需要带上path 微信小程序分享给好友 //分享微信小程序给好友 onShareAppMessage(res) { if (res.from "button") { // 来自页面内转发按钮 this.isShare = false; } return { title: thi 阅读全文
posted @ 2021-07-06 20:07 Wayhome' 阅读(138) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/weixin_42063951/article/details/111059699 阅读全文
posted @ 2021-07-01 14:45 Wayhome' 阅读(200) 评论(0) 推荐(0)
摘要:formatRichText(html) { let newContent = html.replace(/<img[^>]*>/gi, function( match, capture ) { match = match .replace(/style="[^"]+"/gi, "") .repla 阅读全文
posted @ 2021-06-28 13:55 Wayhome' 阅读(180) 评论(0) 推荐(0)
摘要:<li @click="goUrl('/pages/mine/collection/collectionMain?index=0')"></li> <li @click="goUrl('/pages/mine/collection/collectionMain?index=1')"></li> // 阅读全文
posted @ 2021-05-08 14:25 Wayhome' 阅读(95) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/u013288190/article/details/106076281 阅读全文
posted @ 2021-03-05 17:01 Wayhome' 阅读(822) 评论(0) 推荐(0)
摘要:<script> export default { name: 'index', data() { return { access_token: 0 }; }, computed: {}, components: {}, created() { this.getData(); }, mounted( 阅读全文
posted @ 2021-03-05 12:56 Wayhome' 阅读(370) 评论(0) 推荐(0)
摘要:点击链接:https://blog.csdn.net/sinat_33937178/article/details/79124022 阅读全文
posted @ 2021-02-20 17:39 Wayhome' 阅读(666) 评论(0) 推荐(0)
摘要:链接:https://blog.csdn.net/u010637394/article/details/108129398 阅读全文
posted @ 2021-02-19 18:43 Wayhome' 阅读(856) 评论(0) 推荐(0)

// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css