天天看點

uni-App 微信小程式釋出

目錄

如果沒有appId ,就去注冊一個微信小程式Id

注冊後,進入微信公衆平台,在開發設定中找到開發者ID

配置伺服器域名

在api.js配置域名

在Hbuilder的微信開發者工具填寫APPID後,微信開發者工具“上傳”按鈕可用

在微信開發者工具點選“上傳”

上傳遇到的問題:

Error:app.json:未找到["pages"][0]對應的pages/index/index.wxml檔案

Error:系統錯誤,錯誤碼:80058,desc of scope.userLocation is empty 

在微信公衆平台檢視上傳

小程式體驗版

調試模式,可以顯示更多内容,但是調用接口的資訊無法顯示

配置微信小程式APPID

uni-App 微信小程式釋出

如果沒有appId ,就去注冊一個微信小程式Id

uni-App 微信小程式釋出

注冊後,進入微信公衆平台,在開發設定中找到開發者ID

uni-App 微信小程式釋出
uni-App 微信小程式釋出

配置伺服器域名

uni-App 微信小程式釋出
uni-App 微信小程式釋出
uni-App 微信小程式釋出
uni-App 微信小程式釋出

在api.js配置域名

uni-App 微信小程式釋出

在Hbuilder的微信開發者工具填寫APPID後,“上傳”按鈕可用

uni-App 微信小程式釋出

在微信開發者工具點選“上傳”

uni-App 微信小程式釋出

上傳遇到的問題:

上傳的提示

uni-App 微信小程式釋出

上傳失敗提示

uni-App 微信小程式釋出

Error:app.json:未找到["pages"][0]對應的pages/index/index.wxml檔案

解決:

把app.json的pages删除(記得備份),然後儲存,關閉編輯器,再打開,把剛複制的路徑重新放進去,發現不報錯了,可以愉快的玩耍了。

uni-App 微信小程式釋出

Error:系統錯誤,錯誤碼:80058,desc of scope.userLocation is empty 

uni-App 微信小程式釋出

解決:

uni-App 微信小程式釋出

上傳成功

uni-App 微信小程式釋出

在微信公衆平台檢視上傳

uni-App 微信小程式釋出
uni-App 微信小程式釋出

小程式體驗版

uni-App 微信小程式釋出
uni-App 微信小程式釋出

在開發者工具中是這樣

uni-App 微信小程式釋出
uni-App 微信小程式釋出

此時的小程式,導航圖示出不來,但是tablebar可點選切換,但是頁面出不來。

調試模式,可以顯示更多内容,但是調用接口的資訊無法顯示

uni-App 微信小程式釋出
uni-App 微信小程式釋出

繼續閱讀