07 2021 档案
摘要://根元素 .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
阅读全文
摘要:{"type":"dark","colors":{"dropdown.background":"#414339","list.activeSelectionBackground":"#75715E","quickInputList.focusBackground":"#414339","dropdo
阅读全文
摘要:Object.entries 返回键/值对数组:[ ["name","John"], ["age", 30] ]。这就是 Map 所需要的格式 let obj = { name: "John", age: 30 }; let map = new Map(Object.entries(obj)); a
阅读全文
摘要:// 跳转到登录页 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",//这是原来的
阅读全文
摘要:getParams() { //获取url中"?"符后的字串 let url = "http://xx.xxxx.com.cn/?ClubSN={0}&PartnerSN=#/goods/distributionGoodsDetail?ProId=100259&DaId=34"; if (url.i
阅读全文
摘要:res.bgColor.split(/[()]/)
阅读全文
摘要:getTime(t) { //获取当前时间 let date = new Date(); let now = date.getTime(); //设置截止时间 let endDate = new Date(t); let end = endDate.getTime(); //时间差 let left
阅读全文
摘要:<view class='buttonBuy' :style="buttonImg"> buttonImg: { backgroundImage: "url(" + require("@/static/images/activityTemplate/activityTwo/button.png")
阅读全文
摘要: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
阅读全文
摘要:cssComb自动化格式 "csscomb.preset": { "exclude": [ ".git/**", "node_modules/**", "bower_components/**" ], "always-semicolon": true, // 在每个样式后面加“;” "block-i
阅读全文
摘要:小程序获取参数 let obj = wx.getLaunchOptionsSync(); //获取参数 console.log("我是mounted", obj); let arr = getCurrentPages(); //获取页面栈 console.log("页面栈", arr); onLoa
阅读全文
摘要:vue.runtime.esm.js:619 [Vue warn]: Duplicate keys detected: '116817'. This may cause an update error. found in > at src/pages/sort/childComps/ScrollGo
阅读全文
摘要:<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
阅读全文

浙公网安备 33010602011771号