- 请问wx.chooseLocation在本地和真机没问题,但是上线之后不触发了,为啥?
// 此处是地图选择 selectMap: function (e) { var that = this; wx.chooseLocation({ success: function (e) { that.setData({ hiddenDZ: true }) that.setData({ bxdzmc:e.name, bxdzwz: e.address, }); } }); },
2021-04-05 - 扫普通链接二维码打开小程序,已经发布但是只有管理员和开发者可以扫描进入?
谢谢大家!
2021-04-03 - 请问云开发短信只有100条额度,怎么提升?或者从哪里购买?
请问云开发短信只有100条额度,怎么提升?或者从哪里购买?
2021-04-02 - 小程序 如何遍历数组中的数组?里面的数组是图片路径?
0:{ bookNum: 17 picUrls: Array(3) 0: "http://bookcover.yuewen.com/qdbimg/349573/1019664125/150" 1: "http://bookcover.yuewen.com/qdbimg/349573/1979049/150" 2: "http://bookcover.yuewen.com/qdbimg/349573/1024868626/150" length: 3 tagId: 1 tagName: "仙侠"} 1: {tagId: 2, tagName: "历史", bookNum: 7, picUrls: Array(3)} 2: {tagId: 3, tagName: "科幻", bookNum: 14, picUrls: Array(3)} 3: {tagId: 4, tagName: "都市", bookNum: 13, picUrls: Array(3)} 4: {tagId: 5, tagName: "玄幻", bookNum: 22, picUrls: Array(3)} 5: {tagId: 6, tagName: "轻小说", bookNum: 16, picUrls: Array(3)} 6: {tagId: 7, tagName: "悬疑", bookNum: 4, picUrls: Array(3)} 7: {tagId: 8, tagName: "游戏", bookNum: 6, picUrls: Array(3)} 8: {tagId: 9, tagName: "奇幻", bookNum: 1, picUrls: Array(3)} 这是我写的一层可以出来,二层出不来 <view class="typeBookItem" wx:for="{{bookSearchCategory}}" wx:for-item="item" wx:key="tagId"> <view class="typeBookTitle">{{item.tagName}}</view> <view class="typeBookCount">{{item.bookNum}}</view> <view class="typeBookImgs" wx:for="{{item.picUrls}}" wx:for-item="abc" wx:key="index"> <image src="{{abc}}"></image> </view> </view>
2021-04-01 - canvas 网络图片,真机调试,getImageInfo缓存到本地也不行?
求解惑,谢谢大家
2021-03-29 - 小程序 canvas 画云存储的地址的图片怎么画?getImageInfo 好像不对
let bgUrl = '' // canvas绘制网络图片需保存至本地 wx.getImageInfo({ src: '',//服务器返回的图片地址 success: function (res) { console.log(res); bgUrl = res.Path }, fail: function (res) { console.log(res); } }); ctx.drawImage(bgUrl, 0, 0, wigth, height);
2021-03-27 - 小程序 绘制早安签到图片
请问如何绘制签到早安图片,并分享朋友圈,毫无思路!!!谢谢大家!
2021-03-23 - .where 如何实现动态添加查询条件(筛选)?
请问不想写这么多if else 怎么办? if (params.username == '' && params.company == '' && params.project == '' && params.bigclassname == '') { wx.cloud.database().collection("demoorder").where({ date: _.gte(new Date(params.startDate)).and(_.lte(new Date(params.endDate))) }) .skip(len) .limit(20) .get({ success(res) { }, fail(res) { } }) } else if (params.username != "" && params.company == "" && params.project == "" && params.bigclassname == "") { wx.cloud.database().collection("demoorder").where({ date: _.gte(new Date(params.startDate)).and(_.lte(new Date(params.endDate))) }) .skip(len) .limit(20) .get({ success(res) { }, fail(res) { } }) } else if (params.username == "" && params.company != "" && params.project == "" && params.bigclassname == "") { wx.cloud.database().collection("demoorder").where({ date: _.gte(new Date(params.startDate)).and(_.lte(new Date(params.endDate))) }) .skip(len) .limit(20) .get({ success(res) { }, fail(res) { } }) }else if{}等等
2021-01-30