或者用户上传自己的收款码?但感觉这样不安全
小程序内能实现点对点的付款功能吗?如果想实现类似知识付费这样点对点的支付,微信提供的接口能满足吗?微信支付文档里提到似乎只能绑定唯一的商户。 如若无法实现的话谁能提供一下实现思路?给用户设置一个虚拟钱包或许可行?
2018-11-28wxml代码: [代码]<[代码][代码]view[代码] [代码]id[代码][代码]=[代码][代码]'search'[代码] [代码]>[代码][代码] [代码][代码]<[代码][代码]input[代码] [代码]animation[代码][代码]=[代码][代码]"{{animationData}}"[代码] [代码]placeholder[代码][代码]=[代码][代码]"{{content}}"[代码] [代码]bindfocus[代码][代码]=[代码][代码]'input_focus'[代码] [代码]bindblur[代码][代码]=[代码][代码]'input_blur'[代码][代码]/>[代码][代码]</[代码][代码]view[代码][代码]>[代码]js代码: [代码]Page({[代码][代码] [代码][代码]data:{[代码][代码] [代码][代码]animationData:{},[代码][代码] [代码][代码]content: [代码][代码]"시작하자!"[代码][代码],[代码][代码] [代码][代码]},[代码][代码] [代码][代码]input_focus: [代码][代码]function[代码][代码](){[代码][代码] [代码][代码]// clear placeholder[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]content: [代码][代码]""[代码][代码],[代码][代码] [代码][代码]});[代码][代码] [代码][代码]// set animation[代码][代码] [代码][代码]var[代码] [代码]animation = wx.createAnimation({[代码][代码] [代码][代码]duration: 1000,[代码][代码] [代码][代码]timingFunction: [代码][代码]"ease-in-out"[代码][代码],[代码][代码] [代码][代码]});[代码][代码] [代码][代码]this[代码][代码].animation = animation;[代码][代码] [代码][代码]animation.translateY(-170).step();[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]animationData: animation.export()[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]input_blur: [代码][代码]function[代码][代码](){[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]content: [代码][代码]"시작하자!"[代码][代码],[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码] [代码] [代码] [代码]})[代码]
求助,关于在手机上预览小程序动画过渡缺失的问题新手刚接触小程序开发,在做一个输入框聚焦后上移的动画时,开发工具内预览正常,但在手机上预览就出现缺少动画过渡的情况,输入框直接从起点调到了终点,请帮忙解决一下 [代码] var[代码] [代码]animation = wx.createAnimation({[代码][代码] [代码][代码]duration: 1000,[代码][代码] [代码][代码]timingFunction: [代码][代码]"ease-in-out"[代码][代码],[代码][代码] [代码][代码]});[代码][代码] [代码][代码]this[代码][代码].animation = animation;[代码][代码] [代码][代码]animation.translateY(-170).step();[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]animationData: animation.export()[代码][代码] [代码][代码]})[代码]
2018-06-11