I want to set a global variable userInfo, in app.wpy and call
in the mine page.
can be printed out, but I don"t know how to call it on other pages. I use the wepy framework, and some of the code is written differently. Ask for advice
.I want to set a global variable userInfo, in app.wpy and call
in the mine page.
can be printed out, but I don"t know how to call it on other pages. I use the wepy framework, and some of the code is written differently. Ask for advice
. page this.$parent.globalData.userInfo
get
document, it is clear that the App object can be obtained through this.$parent in the page instance.
is equivalent to the original app = getApp () to get app
I want to implement Mini Program s pull-up and load , but after using scroll-view, one line becomes one. Whether to set this or need to css, for a great solution ...
Model globalData= { "data ": 1} vue.set in the component of vue (Model.globalData, "data ", 2), all panels will be updated. but the $apply () method provided in wepy has been tried, and it will only be updated in the current component. It is too tr...
can Mini Program s development framework use Didi s cube-cli?? How can I use it? For example, using Rate components, thank you ...
Mini Program, after deleting a certain order data, the background deletes it, but the page is not deleted? I have used this.orderList.splice (_ index, 1) for the original order list data, but the page has not been deleted unless the page is refreshed an...
Mini Program forwarded a page of Mini Program to a friend, and the friend clicked it and kept popping up to indicate that the development board Mini Program has expired. How is it that you have re-scanned the code in the development tool? it has been pac...
wxLogin is a custom click event. Why does the box that prompts you to call the user s permissions not come out? is there a problem with writing the code? but the data can be obtained. What s going on? ask God for advice ....
Business background use wepy to develop Mini Program for the first time, you need to use md5 > encrypt data and then request remote data install js-md5 through npm , but cannot reference this package through require in the project. direct...
live-play always blocks the like button and wants to put the click button in front of live-play, but doesn t understand the use of view-cover? this picture of school supplies on the simulator is on live-play, but it will be overwritten by live-play...
Mini Program s requirement is to make the data of the img passed by the background undistorted, but the design gives the effect of 70 times 70. the size of the img passed in the background may be 100x200,80,120and so on. Is there any solution that can s...
for example: data = { name: } methods = { changeName(){ this.$apply() this.name = } changeName(){ this.setData() this.setData({ name: }) } } ...
Picture description I want to know why the item, can t be passed, that is, the item that the parent component gets in the loop, why can t it be passed to the child component? ...
Mini Program has been reporting this error when loading. What he found on the Internet is the problem of rendering APP s globalData. Let s add boot or load the page. doesn t quite understand what it means. Do you have a boss who has done it? Supp...
for example, at present, I have only tested it on Android 5.5and Android 6.0.The version of Wechat is 6.6.What is the picture of the link now? ...
the company wants to develop Mini Program, but it has only used mpvue, but not wepy,. Now it is very difficult to choose which one to choose. What are their characteristics? ...
I want to use promise-related functions in the project, but if I import this module, I will report an error. According to the error, the global file returns a undefined, although the project is fine as long as the locations related to the introduction...
there is such a demand at present: <view wx:for= {{getUserInfo}} wx:key= index wx:for-index= index > <!-- --> <view>{{item.name}}< view> <!-- --> <view>{{setUserName}}< view> < view&...
< H2 > background < H2 > recently ready to join WeChat Mini Programs, the relevant knowledge is currently limited to understanding . learned about mpvue and wepy , and went to issue to flip through it, and found that there were quite a lot of...
as shown in the figure, my project already has an eslint file, but I still can t find it when I report an error. Why? Mainly because it was all good before ...
wepy, is successfully installed in the linux virtual machine, but its compilation function is a bit rib, so he has to re-build, every time, so he wants to install wepy, on the win host and execute yarn global add wepy-cli , prompt . yarn global v1.5.1 ...
I used the Wechat simultaneous interpretation plug-in in the project. fundebug.0.5.0.min.js overrides wx, App and Page. this error will not occur when I comment out Wechat s simultaneous interpretation. In addition, this would not be a problem ...