随笔分类 - 【前端】微信小程序
摘要:// 配置底部安全区域 page { //iOS 11 padding-right: constant(safe-area-inset-right); padding-bottom: constant(safe-area-inset-bottom); padding-left: constant(s
阅读全文
摘要:<template> <div class="index"> <canvas class="canvas-poster" id="canvasPoster" :style="{width:width+'px;',height: height+'px'}" canvas-id="canvasPoste
阅读全文
摘要://根元素 .index { overflow: hidden; } .myPage{ background: #F5F4F0; height: 100vh; position: fixed; top: 0px; left: 0px; width: 100%; overflow: hidden; }
阅读全文
摘要:微信小程序将canvas隐藏,显示html+css的页面 <PosterCard /> <view class="canvas-wrap" style="position:fixed;top:999999999999999999999rpx;"> <canvas id="poster" :style
阅读全文
摘要:// 跳转到登录页 let pages = getCurrentPages(); //获取加载的页面 let currentPage = pages[pages.length - 1]; //获取当前页面的对象 let url = currentPage.route; if (url == 'pag
阅读全文
摘要://在babel.config.js添加这条 "dev:wx": "npm run build:weapp -- --watch --env production",//这是新增的 "dev:weapp": "npm run build:weapp -- --watch",//这是原来的
阅读全文
摘要:https://blog.csdn.net/u013633921/article/details/114014500
阅读全文
摘要:<template> <!-- 立即购买按钮 --> <view class='comButton'> <view class="buy" :style="{width:width,height:height,marginTop:marginTop,marginBottom:marginBottom
阅读全文
摘要:clickCanvas() { console.log("点击按钮保存"); let rpx = this.rpx; let that = this; // let width = 357 * rpx; // let height = 579 * rpx; let width = that.canv
阅读全文
摘要:小程序获取参数 let obj = wx.getLaunchOptionsSync(); //获取参数 console.log("我是mounted", obj); let arr = getCurrentPages(); //获取页面栈 console.log("页面栈", arr); onLoa
阅读全文
摘要:<template> <!-- 自定义顶部导航条 --> <view class="CustomTopNav"> <view class="CustomContent" :style="{ height: navBarHeight + 'px',backgroundColor:backgroundC
阅读全文
摘要:<template> <!-- 商品描述 --> <view class='ProductDesc'> <view class="title">— 商品详情 —</view> <!-- 商品图片 开始 --> <view class="goodsImg"> <!-- <image class="im
阅读全文
摘要:一、小程序分享到好友,需要带上path 微信小程序分享给好友 //分享微信小程序给好友 onShareAppMessage(res) { if (res.from "button") { // 来自页面内转发按钮 this.isShare = false; } return { title: thi
阅读全文
摘要:https://blog.csdn.net/weixin_42063951/article/details/111059699
阅读全文
摘要:formatRichText(html) { let newContent = html.replace(/<img[^>]*>/gi, function( match, capture ) { match = match .replace(/style="[^"]+"/gi, "") .repla
阅读全文
摘要:<li @click="goUrl('/pages/mine/collection/collectionMain?index=0')"></li> <li @click="goUrl('/pages/mine/collection/collectionMain?index=1')"></li> //
阅读全文
摘要:https://blog.csdn.net/u013288190/article/details/106076281
阅读全文
摘要:<script> export default { name: 'index', data() { return { access_token: 0 }; }, computed: {}, components: {}, created() { this.getData(); }, mounted(
阅读全文
摘要:点击链接:https://blog.csdn.net/sinat_33937178/article/details/79124022
阅读全文
摘要:链接:https://blog.csdn.net/u010637394/article/details/108129398
阅读全文

浙公网安备 33010602011771号