个人案例
- KingStore
一款专业学习奥数的网站 +春联 +祝福语 实现自定义动态分享
Buysns扫码体验
那为什么返回的结果是对的呢,
增加审核的版本可以通过审核吗?[图片]
2020-03-25是啊,很怪啊,我在上调用getImageInfo的时候有打印,在里面就是没有定义了
getImageInfo 不能使用云下载的图片- 当前 Bug 的表现(可附上截图) - 预期表现 - 复现路径 - 提供一个最简复现 Demo function getImageInfo(url) { return new Promise((resolve, reject) => { wx.getImageInfo({ src: url, success: resolve, fail: reject, }) }) } //----------------------这个地址这样获取的---------------- wx.cloud.getTempFileURL({ fileList: [this.data.bgfileID], success: res => { // get temp file URL console.log("dowload file OK222!!!!>>>>") console.log(res.fileList[0].tempFileURL) console.log("dowload file OK222!!!!>>>>") this.setData({ mydrawbg: res.fileList[0].tempFileURL, //切换分享的背景 }) }, fail: err => { // handle error } }) } https://XXXXXXXX-buysns-XXXXXX.tcb.qcloud.la/buysns/myshare/BgPic/my-image.jpg在PC开发时可用,再真机上不可以用报错, [publib]:1 getImageInfo:fail parameter error: parameter.src should be String instead of Undefined; 是要设軒不较验域吗
2019-02-27谢谢,我找也找到了,实验出来了。
云开发,上传文件,设置设置路经云开发,上传文件,设置设置路经 [图片] chooseOneImage(e) { var that =this wx.chooseImage({ count: 1, // sizeType: ['original '], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success: function (res) { const filePath = res.tempFilePaths[0] console.log(filePath) // 上传图片 const cloudPath = 'my-image' + filePath.match(/\.[^.]+?$/)[0] console.log('cloudPath>>',cloudPath) wx.cloud.uploadFile({ cloudPath, filePath, success: res => { console.log('[上传文件] 成功:', res) console.log(res.fileID) console.log(cloudPath) console.log(filePath) app.globalData.fileID = res.fileID app.globalData.cloudPath = cloudPath app.globalData.imagePath = filePath 打开相册的代码,怎么样才能上传到我指字的路经 我的环境/目录A /目录A子目录 现在网上的代码都是环境的根据下了
2019-02-26是兼容性问题了,是我贴错代码了, 我还有 other2: function () { //console.log("11111>>>") wx.navigateTo({ url: '/pages/XXX/XXX?status=' }) },
我的小程序在IOS10.2.1 最新版微信上Button点不了,界面乱- 当前 Bug 的表现(可附上截图) [图片] [图片] - 预期表现 [图片] - 复现路径 1>图1》祝福BUTTON 不能点,我点没有反应, 2>图2》界面会出现异常,正常手机是图3, - 提供一个最简复现 Demo 第一个问题的代码》 <view class='other'> <image src='/img/icon11.png'></image> <text>祝福</text> <button bindtap='other2' ></button> </view> .other { height: 120rpx; width: 120rpx; position: fixed; bottom: 0rpx; right:0rpx; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 24rpx; background: rgba(0, 0, 0, .6); border-radius: 50%; z-index: 999; } .other image { height: 70rpx; width: 70rpx; } .other text { color: #fff; } .other button { position: absolute; height: 100%; width: 100%; opacity: 0.1; z-index: 999; } other2: function () { console.log("11111>>>") var wish="" wx.navigateTo({ url: '/pages/XX/XX?status=0&XXXX=' }) }, 第2个问题》》 <view class="inner"> <view class="wishes-panel"> <image class="bg" src="/img/wishes-panel.png"></image> .inner{ height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; } .wishes-panel{ position: relative; width: 460rpx; height: 754rpx; padding: 132rpx 113rpx 0; font-size: 34rpx; color: #424242; } .wishes-panel .bg{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
2019-02-18我不是提供了代码片段吗? 还需要什么 上面连胜说的应该比准确
分享的界面怎么 对齐- 需求的场景描述(希望解决的问题) 分享界面设计???? /** * 用户点击右上角分享 */ onShareAppMessage(res) { let id = wx.getStorageSync('shareId') // 分享产品的Id if (res.from === 'button') { } let positionId = this.data.positionId return { title: "我推荐小学奥数免费学习网站buysns给你,"+this.data.title, imageUrl: this.data.imag, path: '/pages/home/home?pageId=' + positionId+'&.................参数" } }, - 希望提供的能力 样式能局中处理?能自定义局中,或样式设计 [图片]
2019-01-25