![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信小程序
forceofnature
这个作者很懒,什么都没留下…
展开
-
微信小程序动态获取嵌套json
城市循环内嵌套区域循环,实现效果如下:城市1:区域1区域2区域3城市2:区域4区域5区域6js页面:通过访问后台获取json数据onLoad: function (options) { wx.request({ url: 'http://xxxxxxx/cityList', method:'POST', header:{ ...原创 2022-01-10 10:37:56 · 665 阅读 · 1 评论 -
微信小程序传字符串数组到django后台并依次取出数组元素
小程序传图片地址的数组回django后台,当在后台循环取出数组中的元素时,每次只能输出单个字符,像这样:只打印出了第一个字母iprint一下此时该数组的type,发现是str,应该是传递过程中数组类型发生了改变,所以需要在微信小程序端和django后台对分别数组分做处理js: JSON.stringify()var deleteImgs = JSON.stringify(that.data.deleteImgs)wx.request({ url:url, ..原创 2021-08-31 20:28:59 · 364 阅读 · 1 评论 -
微信小程序动态改变swiper整体高度并使图片居中
实现效果:以图片集中的最高图片(不超过1275rpx)为基准,其余图片居中wxml:<!-- 图片集 --><swiper indicator-dots indicator-color="rbga(255,255,255,0.5)" indicator-active-color="#6495ED" circular class="swp" style="height:{{imgheight}}rpx;" > <swiper-item wx:for="{{im原创 2021-08-13 11:27:05 · 1874 阅读 · 0 评论