![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
微信小程序
微信小程序
92huahua
每天积累一点点
展开
-
抽奖需求之微信小程序与H5页面交互---微信小程序页面跳转到H5页面,再从H5跳转到小程序页面
微信小程序页面跳转到H5页面wx.navigateTo({ url: '/chat/pages/chat/chat?id=helper',})html<viewclass="page-box"><web-viewsrc="{{urlAll}}"></web-view></view>jsPage({/***页面的初始数据*/data:{urlAll:''},...原创 2021-02-04 11:01:24 · 263 阅读 · 0 评论 -
微信小程序使用echarts,图表不跟随父元素及页面滑动的问题
1、使用旧的cavas即设置force-use-old-canvas=“true"即可,< ec-canvas id=“mychart-dom-bar_{{index}}” canvas-id=“mychart-bar_{{index}}” ec=”{{ ec }}" force-use-old-canvas=“true” >< /ec-canvas>2、看看自己是不是在 config里设置了config = {“disableScroll”:true},如果设置了就去掉。3原创 2020-12-07 11:16:15 · 3160 阅读 · 11 评论 -
微信小程序---微信小程序中实现地图的demo及流程
1.下载地图包 : qqmap-wx-jssdk.min.js2.在小程序的管理页面配置小程序的请求域名:https://apis.map.qq.com3.使用wxml<view class="page-box"> <map id="citymap" name="citymap" longitude="{{longitude}}" latitude="{{latitude}}" polyline="{{polyline}}" markers原创 2020-11-20 16:28:03 · 1122 阅读 · 0 评论 -
微信小程序中如何跳H5页面
在A页面点击按钮跳转H5页面,首先要配置下面的路由,页面如下面写WXML<view class="page-box"> <web-view src="{{urlAll}}" ></web-view></view>JSPage({ /** * 页面的初始数据 */ data: { urlAll: '' }, /** * 生命周期函数--监听页面加载 */ onLoad: fun.原创 2020-11-20 16:11:30 · 397 阅读 · 0 评论 -
微信小程序给上一个页面赋值
//点击了确定letvm=thisletpages=getCurrentPages()//当前页面letprevPage=pages[pages.length-2]//上一页面vm.data.goodsList.map(item=>{item.discountPrice=vm.data.discPricereturnitem})pr...原创 2020-11-04 14:56:58 · 536 阅读 · 0 评论 -
微信小程序的video列表,实现同一时间只能播放一个视频及iOS进行video列表渲染时,无法播放问题
wxml<view class="page-box"> <scroll-view scroll-y="true" class='infoWord' style="height:calc(100% - {{statusBarHeight}}px - 88rpx - 32rpx); "> <view class='video-box' wx:for='{{videoData}}' wx:key='index'> <view clas.原创 2020-10-19 21:14:53 · 1507 阅读 · 0 评论 -
微信小程序中使用echart
在component中组件中定义一个echart的组件<!--wxml中--><view class="line"> <ec-canvas id="mychart-dom-line" canvas-id="mychart-line" ec="{{ ec }}"></ec-canvas></view>// 引入echart.jsimport * as echarts from '../../../Components/ec-ca原创 2020-09-15 12:47:52 · 339 阅读 · 0 评论 -
微信小程序+腾讯地图SDK实现地图
wxml模块<map id="citymap" name="citymap" longitude="{{longitude}}" latitude="{{latitude}}" polyline="{{polyline}}" markers="{{markers}}" scale="16" style="width: 100%; height: 100%;" show-location> js模块//引入地图包var QQMapWX = r原创 2020-08-24 21:12:37 · 970 阅读 · 0 评论 -
Taro开发小程序如何阻止事件冒泡
在 Taro 中不能像微信小程序一样,使用 catchEvent阻止事件冒泡,必须在执行事件中调用e.stopPropagation.clickHandle = e => { // 阻止事件冒泡 e.stopPropagation();};原创 2020-08-15 13:47:28 · 738 阅读 · 0 评论