
javascript
Sophia0326
学而时习之,温故而知新...
展开
-
小程序图片上传
实现小程序图片上传步骤:一. 结构页面1.写循环.2.点击上传事件catchtap='_chooseImage'.3.点击关闭事件catchtap='close' <view class='addImg'> //循环 <view class='addItem' wx:for='{{userImg}}' wx-if="{{userImg...原创 2018-08-16 18:08:10 · 507 阅读 · 0 评论 -
小程序显示弹窗时禁止下层的内容滚动
小程序显示弹窗时禁止下层的内容滚动① 第一种方式利用position:fixed. 禁止页面滚动.一. 页面结构html <view class="indexPage {{proInfoWindow?'indexFixed':''}}"> -----------此处为整个页面的结构内容 <button catchTap="_proInfoWi...原创 2018-08-17 16:41:35 · 13685 阅读 · 6 评论 -
订单列表三种状态切换时请求数据
<view style="height:100%;box-sizing:border-box;overflow:hidden"> <!-- tab栏头部 " --> <view class="tab_h" wx:if="{{isAuth}}"> <view class="tab_item {{curre原创 2018-08-21 14:09:50 · 2529 阅读 · 0 评论 -
追加数组, 取数组对象里的某一列值
app.globalData.saveOrder.orderGoodsDtos.map((v,i)=>{ if(v.goodsvos.length>0){ // 加一个goodNameList,把goodsName追加到列表里//如果需要把数组对象里的某一项拿出来就追加一个数组,再push进去值 v.goodsNameList=['请选择...原创 2019-01-07 16:58:21 · 2160 阅读 · 0 评论