;

出于安全考虑,即日起,我们不再帮助用户无感知的申请腾讯云云 API 密钥,受此影响,腾讯云微信小程序解决方案 Wafer2 提供的 sdk.config.json 中的 qcloudSecretId 和 qcloudSecretKey 字段将为空,这会导致登录失败,并返回错误提示:ERR_REQUEST_PARAM 。 你可以通过以下两种方式修复该问题: 1. 关闭腾讯云代理登录,使用微信小程序 AppID 和 AppSecret 登录: 修改 server/config.js 中的 useQcloudLogin 为 false,并填写上 appId 和 appSecret 字段(分别为微信小程序的 AppID 和 AppSecret),重新部署代码即可。 2. 手动填写腾讯云云 API 密钥: 登录腾讯云云 API 密钥控制台申请云 API 密钥,并在 server/config.js 的 CONF 中添加如下三个字段: qcloudAppId: ‘你的腾讯云 AppID’, qcloudSecretId: ‘你的腾讯云 SecretId’, qcloudSecretKey: ‘你的腾讯云 SecretKey’, 重新部署代码即可生效。 由于上传接口也会使用到腾讯云云 API 密钥,如遇到上传接口报错,也请参考如上 2 的方法排查。 来源:…

小程序登录报错‘error : “ERR_REQUEST_PARAM”’ 2019年6月12日
;

1.依照文档进行到如下步骤,却找不到相关按钮 https://console.qcloud.com/lav2/dev 进行到第5步,找不到相关按钮及菜单 2。解决(这个按钮默认被隐藏) 工具 -> 工具栏管理 -> 自定义工具栏 -> 自定义工具管理 参考链接:https://blog.csdn.net/u013176866/article/details/89321281

小程序-开发环境开通-遇到的问题 2019年6月12日
;

一:安装及使用 1.在当前目录下,安装依赖 $ cd mpvue $ npm install 2.安装sass的依赖包 npm install –save-dev sass-loader //sass-loader依赖于node-sass npm install –save-dev node-sass 3.在build文件夹下的webpack.base.conf.js的rules里面添加配置 { test: /\.sass$/, loaders: [‘style’, ‘css’, ‘sass’] } 4.在APP.vue中修改style标签 <style lang="scss"> $background:#ccc; html{background:$background;} </style> 二:引入外部sass img.scss,文件路径’static/img.scss’,内容如下 $bgjpg : ‘http://baidu.com’ $color : red APP.vue中引入 <style lang="scss"> @import "static/img.scss"; html{ background-image: url($bgjp…

mpvue安装sass以及引入外部sass文件 2018年6月12日
;

1.获取用户信息 <button open-type="getUserInfo" @getuserinfo="bindGetUserInfo">进入帐篷,开始占卜</button> methods:{ bindGetUserInfo (e) { var gender = e.mp.detail.userInfo.gender wx.setStorageSync(‘gender’, gender) this.saveUserInfo() wx.navigateTo({url: ‘/pages/item/main’}) } } 2.获取保存图片到相册权限 <button v-if="!isAuthFlag" open-type="openSetting" @opensetting="authSetting">打开授权</button> methods:{ authSetting (e) { if (e.mp.detail.authSetting[‘scope.writePhotosAlbum’]) { this.isAuthFlag = true } } }

mpvue中button组件授权回调 2018年6月5日
;

路径:server/app.js const path = require(‘path’); const serve = require(‘koa-static’); const main = serve(path.join(__dirname)); app.use(main); //读取静态资源 nodejs中安装包 npm i koa-static -s

wafer2静态资源路径访问 2018年5月30日
;

<button open-type="getUserInfo" @getuserinfo="bindGetUserInfo">获取用户信息</button> bindGetUserInfo (e) { console.log(e.mp.detail.userInfo) }

mpvue中getuserinfo 2018年5月28日