Closed jackylee1 closed 5 years ago
函数写好后,在project.config.json里指定云函数目录,然后直接在微信开发者工具部署上传
你好,请问可以详细一下步骤吗?不是很清楚呢
谢谢
你现在是遇到什么问题?部署不成功还是怎样
部署不成功,我已经安装好了开发环境,然后在client目录下执行taro build --type weapp --watch 打开微信开发者工具,选择目录为编译好的dist目录,appid填我的,但是没法选择云开发模式啊,不知道为什么。还有打开之后,我如何使用doc下的json数据呢?请指教,谢谢
appservice?t=1545800124709:2496 Wed Dec 26 2018 12:55:28 GMT+0800 (CST) 接口调整
VM395:1 获取 wx.getUserInfo 接口后续将不再出现授权弹窗,请注意升级
参考文档: https://developers.weixin.qq.com/blogdetail?action=get_post_info&lang=zh_CN&token=1650183953&docid=0000a26e1aca6012e896a517556c01
console.warn @ VM395:1
operateWXData @ appservice?t=1545800124709:2496
invoke @ appservice?t=1545800124709:2496
invoke @ WAService.js:1
J @ WAService.js:1
ie @ WAService.js:1
getUserInfo @ WAService.js:1
(anonymous) @ WAService.js:1
ky.(anonymous function) @ WAService.js:1
(anonymous) @ WAService.js:1
(anonymous) @ WAService.js:1
(anonymous) @ WAService.js:1
(anonymous) @ WAService.js:1
(anonymous) @ index.js:4036
taro.(anonymous function) @ index.js:4012
_callee$ @ wx.js:28
tryCatch @ runtime.js:62
invoke @ runtime.js:281
prototype.(anonymous function) @ runtime.js:110
step @ wx.js:147
(anonymous) @ wx.js:147
(anonymous) @ wx.js:147
getWxUserData @ wx.js:51
_callee$ @ app.js:101
tryCatch @ runtime.js:62
invoke @ runtime.js:281
prototype.(anonymous function) @ runtime.js:110
step @ app.js:27
(anonymous) @ app.js:27
(anonymous) @ app.js:27
componentWillMount @ app.js:117
onLaunch @ index.js:3848
(anonymous) @ WAService.js:1
e @ WAService.js:1
(anonymous) @ WAService.js:1
(anonymous) @ WAService.js:1
(anonymous) @ app.js:132
require @ WAService.js:1
(anonymous) @ VM522:1
scriptLoaded @ appservice?t=1545800124709:2770
VM395:1 [Taro warn] 请给组件提供一个 defaultProps
以提高初次渲染性能!
console.warn @ VM395:1
createComponent @ index.js:3295
(anonymous) @ edit_box.js:170
require @ WAService.js:1
(anonymous) @ VM522:120
scriptLoaded @ appservice?t=1545800124709:2770
VM395:1 TypeError: Cannot read property 'colorInfo' of undefined
at Connect._createData (edit_box.js:107)
at Object.createComponent (index.js:3293)
at edit_box.js:170
at require (WAService.js:1)
at
"打开微信开发者工具,选择目录为编译好的dist目录"——>将选择目录改为taro-demo。 你的小程序申请了云开发的话,就能在微信开发者工具里看见云开发的按钮。json数据的导入是在云开发工具里导入的
那那些云函数呢?怎么处理?我要建立一个云开发启动模版吗?不然我怎么弄那些云函数
哎,无语,真搞不懂。我如果填了我的appid,等下导入目录后又自动变了个 appid,如果用这个appid就没开通云开发功能
Wed Dec 26 2018 18:15:36 GMT+0800 (CST) 接口调整
VM179:1 [Taro warn] 请给组件提供一个 defaultProps
以提高初次渲染性能!
console.warn @ VM179:1
createComponent @ index.js:3295
(anonymous) @ edit_box.js:170
require @ WAService.js:22
(anonymous) @ VM306:113
scriptLoaded @ appservice?t=1545819334037:2745
script.onload @ appservice?t=1545819334037:2757
VM179:1 TypeError: Cannot read property 'colorInfo' of undefined
at Connect._createData (edit_box.js:107)
at Object.createComponent (index.js:3293)
at edit_box.js:170
at require (WAService.js:22)
at
Wed Dec 26 2018 18:24:43 GMT+0800 (CST) 接口调整
VM447:1 获取 wx.getUserInfo 接口后续将不再出现授权弹窗,请注意升级
参考文档: https://developers.weixin.qq.com/blogdetail?action=get_post_info&lang=zh_CN&token=1650183953&docid=0000a26e1aca6012e896a517556c01
console.warn @ VM447:1
operateWXData @ appservice?t=1545819880333:2496
invoke @ appservice?t=1545819880333:2496
invoke @ WAService.js:4
R @ WAService.js:6
j @ WAService.js:6
ca @ WAService.js:9
Pd @ WAService.js:12
Nb.(anonymous function) @ WAService.js:14
(anonymous) @ WAService.js:7
(anonymous) @ WAService.js:14
(anonymous) @ WAService.js:6
(anonymous) @ index.js:4036
taro.(anonymous function) @ index.js:4012
_callee$ @ wx.js:28
tryCatch @ runtime.js:62
invoke @ runtime.js:281
prototype.(anonymous function) @ runtime.js:110
step @ wx.js:147
(anonymous) @ wx.js:147
(anonymous) @ wx.js:147
getWxUserData @ wx.js:51
_callee$ @ app.js:101
tryCatch @ runtime.js:62
invoke @ runtime.js:281
prototype.(anonymous function) @ runtime.js:110
step @ app.js:27
(anonymous) @ app.js:27
(anonymous) @ app.js:27
componentWillMount @ app.js:117
onLaunch @ index.js:3848
t @ WAService.js:19
t @ WAService.js:19
(anonymous) @ WAService.js:19
(anonymous) @ WAService.js:18
(anonymous) @ app.js:132
require @ WAService.js:22
(anonymous) @ VM574:1
scriptLoaded @ appservice?t=1545819880333:2745
script.onload @ appservice?t=1545819880333:2757
VM447:1 [Taro warn] 请给组件提供一个 defaultProps
以提高初次渲染性能!
console.warn @ VM447:1
createComponent @ index.js:3295
(anonymous) @ edit_box.js:170
require @ WAService.js:22
(anonymous) @ VM574:113
scriptLoaded @ appservice?t=1545819880333:2745
script.onload @ appservice?t=1545819880333:2757
VM447:1 TypeError: Cannot read property 'colorInfo' of undefined
at Connect._createData (edit_box.js:107)
at Object.createComponent (index.js:3293)
at edit_box.js:170
at require (WAService.js:22)
at
还有把云环境名字我也改了还是不行,天啊,难道都没人试过吗
Wed Dec 26 2018 19:36:02 GMT+0800 (CST) 接口调整
VM2140:1 获取 wx.getUserInfo 接口后续将不再出现授权弹窗,请注意升级
参考文档: https://developers.weixin.qq.com/blogdetail?action=get_post_info&lang=zh_CN&token=1650183953&docid=0000a26e1aca6012e896a517556c01
console.warn @ VM2140:1
operateWXData @ appservice?t=1545824158900:2496
invoke @ appservice?t=1545824158900:2496
invoke @ WAService.js:4
R @ WAService.js:6
j @ WAService.js:6
ca @ WAService.js:9
Pd @ WAService.js:12
Nb.(anonymous function) @ WAService.js:14
(anonymous) @ WAService.js:7
(anonymous) @ WAService.js:14
(anonymous) @ WAService.js:6
(anonymous) @ index.js:4036
taro.(anonymous function) @ index.js:4012
_callee$ @ wx.js:28
tryCatch @ runtime.js:62
invoke @ runtime.js:281
prototype.(anonymous function) @ runtime.js:110
step @ wx.js:147
(anonymous) @ wx.js:147
(anonymous) @ wx.js:147
getWxUserData @ wx.js:51
_callee$ @ app.js:103
tryCatch @ runtime.js:62
invoke @ runtime.js:281
prototype.(anonymous function) @ runtime.js:110
step @ app.js:27
(anonymous) @ app.js:27
(anonymous) @ app.js:27
componentWillMount @ app.js:119
onLaunch @ index.js:3848
t @ WAService.js:19
t @ WAService.js:19
(anonymous) @ WAService.js:19
(anonymous) @ WAService.js:18
(anonymous) @ app.js:134
require @ WAService.js:22
(anonymous) @ VM2293:1
scriptLoaded @ appservice?t=1545824158900:2745
script.onload @ appservice?t=1545824158900:2757
VM2140:1 [Taro warn] 请给组件提供一个 defaultProps
以提高初次渲染性能!
console.warn @ VM2140:1
createComponent @ index.js:3295
(anonymous) @ edit_box.js:170
require @ WAService.js:22
(anonymous) @ VM2293:113
scriptLoaded @ appservice?t=1545824158900:2745
script.onload @ appservice?t=1545824158900:2757
VM2140:1 TypeError: Cannot read property 'colorInfo' of undefined
at Connect._createData (edit_box.js:107)
at Object.createComponent (index.js:3293)
at edit_box.js:170
at require (WAService.js:22)
at
还有用户接口故障了
还有用户接口故障了
加下我微信吧,18825131679
你好,请问一下云函数如何部署,直接将cloud目录拷到cloudfunctions下面吗