摘要:
1.wxml <scroll-view class="scroll-view_H" scroll-x style="width: 100%" scroll-into-view="{{toView}}" scroll-left="{{scrollTop}}" bindscrolltoupper="up 阅读全文
摘要:
1/ 公共文件util添加 request请求 //简单封装请求 function request(params, path, isShowLoading = true, goBack = false, type = 'none', obj={}) { try { console.log(path) 阅读全文
摘要:
1/ 公共文件util添加 request请求 //简单封装请求 function request(params, path, isShowLoading = true, goBack = false, type = 'none', obj={}) { try { console.log(path) 阅读全文
摘要:
1/ wxml代码 <view class="timePick"> <picker mode="date" fields="month" value="{{timestamp}}" start="1999-01-01" end="2999-12-12" bindchange="datePickerB 阅读全文
摘要:
1/ wxml代码 <view class="timePick"> <picker mode="date" fields="month" value="{{timestamp}}" start="1999-01-01" end="2999-12-12" bindchange="datePickerB 阅读全文
摘要:
非同源图片下载(html添加canvas标签) 方法1: downloadImgByBase64(url){ console.log(22222) // 创建隐藏的可下载链接 // let blob = 'http://pic.c-ctrip.com/VacationH5Pic/mice/wecha 阅读全文
摘要:
css实现毛玻璃效果,效果图 1,html代码 2,css 阅读全文
摘要:
1,秒杀点击状态字体增大加粗,颜色加深,秒杀分“抢购中”和“即将开始”两种状态 wxml代码如下 文字的修改需要根据秒杀时间与当前时间的对比来修改,而点击实现不通效果,根据绑定的class,点击使用scroll-item-act 2,js 3,小程序中时间戳转日期 4,小程序中日期格式转时间戳只需要 阅读全文
摘要:
1,wxml 2,wxss 3,js 注:1,wxml相关代码是根据购物车商品不同类型进行分类的,如果商品类型只有一种,可以直接使用下面的代码 2,wxss可能有冗余代码 3,因为wxml中图片暂未提供,和相关方法js中未全部列举,直接使用上面的代码可能会报错,需要自己整理 4,实现后效果如下图 1 阅读全文
摘要:
需要引入html-view文件 1/js 代码 const HtmlParser=require('../../utils/html-view/index') data: { coupon_text:"", } let mobiledesc='<div><img src="../../1.png"> 阅读全文