小程序经纬度距离
摘要:app.json "permission": { "scope.userLocation": { "desc": "你的位置信息将用于小程序位置接口的效果展示" } } 用到的页面 onShow: function () { var that = this; wx.getLocation({ typ
阅读全文
posted @
2021-06-23 16:22
wlw518
阅读(147)
推荐(0)
生成带参数的二维码(扫码跳到小程序)
摘要:public function httpRequest($url, $data='', $method='GET'){ $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL
阅读全文
posted @
2021-06-19 14:33
wlw518
阅读(412)
推荐(0)
小程序订单状态列表跳转传值
摘要:《我的页面》 orderlist:[{ ico:'/images/user/order1.png', text:'已退款', orderStatus: '8', }, { ico:'/images/user/order2.png', text:'待付款', orderStatus: '1', },
阅读全文
posted @
2021-05-20 17:39
wlw518
阅读(150)
推荐(0)
小程序分页
摘要:data: { orderlist: [], totalDataCount: 0, currentPage: 0, } /** * 生命周期函数--监听页面显示 */ onShow: function () { this.loadInitData(); }, /** * 页面上拉触底事件的处理函数
阅读全文
posted @
2021-04-01 15:33
wlw518
阅读(112)
推荐(0)
小程序 单选 与 多选 示例
摘要:单 选1 : <view class="{{rubbishindex == index?'err active':'err'}}" wx:for="{{rubbishlist}}" data-type="{{item}}" data-index="{{index}}" wx:key="index"
阅读全文
posted @
2021-03-29 15:42
wlw518
阅读(241)
推荐(0)
小程序下拉列表
摘要:/** * 页面的初始数据 */ const App = getApp(); Page({ data: { devicelist: [], idlist:[], deviceindex:0, choose_device_id: 0, }, /** * 生命周期函数--监听页面显示 */ onShow
阅读全文
posted @
2021-03-26 18:01
wlw518
阅读(83)
推荐(0)
小程序图片预览
摘要:<view class="imgbox"> <image bindtap='topic_preview' data-url='{{item}}' data-all='{{repair.imglist}}' class="img" mode="aspectFit" src="{{item}}" wx:
阅读全文
posted @
2021-03-26 14:16
wlw518
阅读(39)
推荐(0)