- 点一个按钮打开地图,并获取定位信息,这个怎么做的?
点一个按钮打开地图,并获取定位信息,这个怎么做的?
2019-07-25 - bindtap失效怎么回事
[代码][图片] <[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'mine-top'[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'white'[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"message"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"headImg"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]form[代码] [代码]class[代码][代码]=[代码][代码]'posView'[代码] [代码]bindsubmit[代码][代码]=[代码][代码]'golevel'[代码][代码]report-submit>[代码][代码] [代码][代码]<[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]button[代码] [代码]wx:if[代码][代码]=[代码][代码]'{{userInfos.companyName==undefined||userInfos.companyName==null||userInfos.companyName==""}}'[代码] [代码]class[代码][代码]=[代码][代码]"btn"[代码] [代码]plain [代码][代码]form-type[代码][代码]=[代码][代码]'submit'[代码][代码]>[代码][代码] [代码][代码]未认证[代码][代码] [代码][代码]</[代码][代码]button[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]button[代码] [代码]wx:else [代码][代码]class[代码][代码]=[代码][代码]"btn"[代码] [代码]plain [代码][代码]form-type[代码][代码]=[代码][代码]'submit'[代码][代码]>[代码][代码] [代码][代码]{{userInfos.companyName}}[代码][代码] [代码][代码]</[代码][代码]button[代码][代码]> [代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]form[代码][代码]>[代码][代码] [代码] [代码] [代码][代码]<[代码][代码]form[代码] [代码]wx:if[代码][代码]=[代码][代码]'{{issigin=="false"}}'[代码] [代码]class[代码][代码]=[代码][代码]'forms'[代码] [代码]bindsubmit[代码][代码]=[代码][代码]'signingo'[代码][代码]report-submit>[代码][代码] [代码][代码]<[代码][代码]button[代码] [代码]class[代码][代码]=[代码][代码]"qiandao"[代码] [代码]plain [代码][代码]form-type[代码][代码]=[代码][代码]'submit'[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]text[代码][代码]>签到</[代码][代码]text[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]text[代码] [代码]class[代码][代码]=[代码][代码]"cheng"[代码][代码]>+{{goldcount}}</[代码][代码]text[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]button[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]form[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]form[代码] [代码]wx:else[代码][代码]=[代码][代码]''[代码] [代码]class[代码][代码]=[代码][代码]'forms'[代码] [代码]bindsubmit[代码][代码]=[代码][代码]'signingo'[代码][代码]report-submit>[代码][代码] [代码][代码]<[代码][代码]button[代码] [代码]class[代码][代码]=[代码][代码]"qiandao"[代码] [代码]plain [代码][代码]form-type[代码][代码]=[代码][代码]'submit'[代码][代码]>[代码][代码] [代码][代码]已签到[代码][代码] [代码][代码]</[代码][代码]button[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]form[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"picture"[代码] [代码]bindtap[代码][代码]=[代码][代码]'personal'[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]image[代码] [代码]src[代码][代码]=[代码][代码]"{{userInfos.cifPhoto}}"[代码][代码]></[代码][代码]image[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"user"[代码] [代码]bindtap[代码][代码]=[代码][代码]'personal'[代码][代码]>{{userInfos.name}}</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]wx:if[代码][代码]=[代码][代码]'{{userInfos.job==undefined||userInfos.job==null||userInfos.job==""}}'[代码] [代码]class[代码][代码]=[代码][代码]"zuoyouming"[代码] [代码]bindtap[代码][代码]=[代码][代码]'personal'[代码][代码]>{{userInfos.department}}</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]wx:else [代码][代码]class[代码][代码]=[代码][代码]"zuoyouming"[代码] [代码]bindtap[代码][代码]=[代码][代码]'personal'[代码][代码]>{{userInfos.department}}-{{userInfos.job}}</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'yulan'[代码] [代码]style[代码][代码]=[代码][代码]"display:{{flag=='true'?'':'none'}}"[代码] [代码]bindtap[代码][代码]=[代码][代码]'toyulan'[代码][代码]>预览</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]id[代码][代码]=[代码][代码]'integral'[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]text[代码] [代码]class[代码][代码]=[代码][代码]'score'[代码][代码]>{{userInfos.integral ? userInfos.integral : 0}}</[代码][代码]text[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]text[代码] [代码]class[代码][代码]=[代码][代码]'itext'[代码][代码]>可用积分</[代码][代码]text[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]signingo: [代码][代码]function[代码][代码](e) {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]var[代码] [代码]gold = that.data.goldcount;[代码][代码] [代码][代码]wx.navigateTo({[代码][代码] [代码][代码]url: [代码][代码]"../signin/signin?goldcount="[代码] [代码]+ gold[代码][代码] [代码][代码]})[代码][代码] [代码][代码]this[代码][代码].formid(e);[代码][代码] [代码][代码]},[代码][代码]personal: [代码][代码]function[代码][代码]() {[代码][代码] [代码][代码]wx.navigateTo({[代码][代码] [代码][代码]url: [代码][代码]'../personal_data/personal_data'[代码][代码],[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码]signingo: [代码][代码]function[代码][代码](e) {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]var[代码] [代码]gold = that.data.goldcount;[代码][代码] [代码][代码]wx.navigateTo({[代码][代码] [代码][代码]url: [代码][代码]"../signin/signin?goldcount="[代码] [代码]+ gold[代码][代码] [代码][代码]})[代码][代码] [代码][代码]this[代码][代码].formid(e);[代码][代码] [代码][代码]},[代码]
2019-07-24 - 如何导入小程序项目
[图片] 我选择了正确的路径,为什么新建不了
2019-07-24 - 组件editor为什么导入图片全变成犀牛图
- 当前 Bug 的表现(可附上截图) - 预期表现 - 复现路径 - 提供一个最简复现 Demo [图片] 黄色警告Do not have handler in current page: editor/editor. Please make sure that handler has been defined in editor/editor, or editor/editor has been added into app.json
2019-07-23 - onShareAppMessage 转发后不调用 success方法
onShareAppMessage 转发后不调用 success方法 [代码]/**[代码][代码] [代码][代码]* 用户点击右上角分享[代码][代码] [代码][代码]*/[代码][代码] [代码][代码]onShareAppMessage: function () {[代码][代码] [代码][代码]var that = [代码][代码]this[代码][代码] [代码][代码]return[代码] [代码]{[代码][代码] [代码][代码]title: [代码][代码]'懂银行 汇营销'[代码][代码],[代码][代码] [代码][代码]path: [代码][代码]'/pages/login/login'[代码][代码],[代码][代码] [代码][代码]imageUrl: [代码][代码]'https://www.yinqihui.net.cn/group1/M00/00/02/oYYBAFtF60GAbVNVAAKNzvi6SzE449.jpg'[代码][代码], [代码][代码] [代码][代码]success: function (res) {[代码][代码] [代码][代码]// 转发成功之后的回调[代码][代码] [代码][代码]if[代码] [代码](res.errMsg == [代码][代码]'shareAppMessage:ok'[代码][代码]) {[代码] [代码] [代码][代码]wx.request({[代码][代码] [代码][代码]url: configBase.service.baseUrl + [代码][代码]'market/addcoindetail'[代码][代码],[代码][代码] [代码][代码]method: [代码][代码]"POST"[代码][代码],[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]"detailName"[代码][代码]: [代码][代码]"分享"[代码][代码],[代码][代码] [代码][代码]"detailType"[代码][代码]: [代码][代码]"DT00"[代码][代码],[代码][代码] [代码][代码]//"detailAmt": that.data.detailAmt,[代码][代码] [代码][代码]"detailAmt"[代码][代码]: [代码][代码]100[代码][代码],[代码][代码] [代码][代码]"cifNo"[代码][代码]: wx.getStorageSync([代码][代码]'userinfo'[代码][代码]).cifNo,[代码][代码] [代码][代码]"remark"[代码][代码]: [代码][代码]"分享"[代码][代码],[代码][代码] [代码][代码]"sourceType"[代码][代码]: [代码][代码]"ST06"[代码][代码] [代码][代码]},[代码][代码] [代码][代码]success: function (res) {[代码][代码] [代码][代码]console.log(res.data)[代码][代码] [代码][代码]if[代码] [代码](res.data.errCode == [代码][代码]'000000'[代码][代码]) {[代码][代码] [代码][代码]that.todayqd();[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]});[代码] [代码] [代码][代码]api.showToast([代码][代码]'转发成功'[代码][代码]);[代码] [代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: function (res) {[代码][代码] [代码][代码]// 转发失败之后的回调[代码][代码] [代码][代码]if[代码] [代码](res.errMsg == [代码][代码]'shareAppMessage:fail cancel'[代码][代码]) {[代码][代码] [代码][代码]// 用户取消转发[代码][代码] [代码][代码]api.showToast([代码][代码]'用户取消转发'[代码][代码]);[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]if[代码] [代码](res.errMsg == [代码][代码]'shareAppMessage:fail'[代码][代码]) {[代码][代码] [代码][代码]// 转发失败,其中 detail message 为详细失败信息[代码][代码] [代码][代码]api.showToast([代码][代码]"转发失败:"[代码] [代码]+ JSON.stringify(res));[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码] [代码] [代码][代码]}[代码][代码] [代码][代码]},[代码]
2019-07-02 - 小程序page外setData?
- 当前 Bug 的表现(可附上截图) - 预期表现 - 复现路径 - 提供一个最简复现 Demo [图片] ,最近再做echarts,官网的demo所有的initCharts全在page页面外,在page页面外的函数获取数据后,想渲染在页面上,但是不能用that.set.急急急 急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急
2019-06-27