encountered a problem in development. The requested data looks like this
:
1
2
setData:
let query = new wx.BaaS.Query()
let Product = new wx.BaaS.TableObject(56136)
Product.find().then(res => {
res.data.objects.sort((a, b) => {
return (Math.random() - .5) > 0 ? -1 : 1;
});
this.setData({
bank: res.data.objects
})
this.setData({
show: this.showlistID(0, this.data.bank.length - 1)
})
console.log(this.data.bank)
}, err => {
// err
})
-
How does WeChat Mini Programs keep the status of child pages?
I just got in touch with Mini Program developer and recently encountered this problem when I wrote the demo, of a music player. After I returned to the list page from the playback page (or to the home page), I entered the playback page from the entrance...
Feb.27,2021
-
How does the front end implement the file folder system through interface data?
json
{
code:200,
list:[
{
type:1,
path: www.file.xxxxx ,
name: xx ,
suffix: ,
parentid:123
...
},
{
type:2,
path: www.file.xxxxx ,
name: zzz ,
suffix: ".xlsx",
parentid: null
...
Mar.03,2021
-
WeChat Mini Programs's problem of passing parameters when obtaining background data
everyone, I am a novice, just started Mini Program development, I want to dynamic binding, so that the background can be changed URL to change the page rotation pictures at any time. I encountered a problem when writing. The following is Mini Program s...
Mar.07,2021
-
About WeChat Mini Programs's recording function
there is a recording function in WeChat Mini Programs. Call the api, of WeChat Mini Programs recorderManager to make an animation effect in the above image according to the size of the recorded audio, but the api, about the recorded audio in api can ...
Mar.09,2021
-
About the problem of asynchronous login in WeChat Mini Programs? The problem of File execution order and promise problem
at present, I have written the login operation in app.js. After obtaining Wechat s code, I obtain the authentication access-token from my own server. the code is as follows
app.js
onLaunch: function () {
wx.login({
success: ...
Mar.12,2021
-
WeChat Mini Programs, with regard to absolute positioning and animation movement, I hope someone can give us some advice. thank you.
first of all, the absolute positioning of the small box in wxml binds the values of left and top, both of which are 10, used to initialize the positioning
the page structure is gray with a view relative positioning, wrapped with internal red view, re...
Mar.12,2021
-
There is no picture on WeChat Mini Programs's sharing card when he shares it with others on iOS.
when WeChat Mini Programs shares with others on iOS, there are no pictures on the card , but pictures can be displayed on Android
onShareAppMessage: function (res) {
var that = this;
return {
title: that.data.title,
path: pages detail detail?id...
Mar.13,2021
-
How does WeChat Mini Programs get the index of adjacent elements
when the item function is selected in the check box in WeChat Mini Programs s shopping cart, you need to get the index of the adjacent element and the parent element now the console.log is undefined
how can I get the index of adjacent elements and p...
Mar.15,2021
-
Mini Program, how can I write tabbar without being affected by the drop-down refresh?
because of some requirements, I wrote tabbar by myself. But there is a problem: the drop-down refresh will cause the tabbar to scroll down with the page (there is no such problem on iphone, both development tools and Android) ask for a solution ~ ...
Mar.17,2021
-
WeChat Mini Programs failed to assign a value after obtaining the height of the element.
Why can t you assign a value? I ve tried a lot of ways, but it doesn t work .
...
Mar.20,2021
-
How does WeChat Mini Programs bring up the authorized pop-up window?
1. Is this window provided by Wechat or made by the developers themselves? 2. If it is provided by Wechat, then how is it transferred?
...
Mar.20,2021
-
About Mini Program getting the cell phone number.
The authorization box does not appear when clicked on the real machine of getphonenumber, used by . The print result is as follows
mpvue
---------------------------------------------
is the button used to trigger
...
Mar.21,2021
-
Why can't Mini Program connect to the server at the real machine preview? In development tools.
Why can t Mini Program connect to the server at the real machine preview? In development tools.
...
Mar.21,2021
-
WeChat Mini Programs why there is no data on the phone when previewing. In the development tool simulator
Why is there no data on WeChat Mini Programs s phone when previewing? There is in the development tool simulator.
what s the reason
...
Mar.24,2021
-
WeChat Mini Programs uses the wx.playBackgroundAudio (OBJECT) method to cut the background music after playing.
1 use the wx.playBackgroundAudio (OBJECT) method on the page (switching to background) onhide () to play background music can report an error in the real machine in the development tool? Code both methods are the same onHide: function () {
cons...
Mar.25,2021
-
Tab switch calls the data interface too frequently, how to optimize it so as not to waste the interface?
for example, in the tab switching page like the following, the method I use now is to click the current option to call the API, for example, click all to call, click to withdraw and call once, but this will waste the interface. What I want to do now is ...
Mar.26,2021
-
RSA encryption and decryption in Mini Program because the source code can be obtained by a third party, that is, the key will also be leaked, how to solve this problem.
how to securely implement RSA encryption and decryption in Mini Program?
forget where to see an article, through the simulator and root permissions to get WeChat Mini Programs s source file. If you want to complete the RSA encryption and decryption i...
Mar.28,2021
-
WeChat Mini Programs's pull-up loading problem
The question is how to trigger onreachBottom? My own result is that can only trigger onReachBottom, in the case of a scroll bar, so I can only set the height of this page to 110vh so that I can have a scroll bar. Obviously there is a flaw in this place...
Apr.02,2021
-
WeChat Mini Programs loads more questions
pull-down refresh and pull-up load are more official, because the project interaction is special, using a card design, so the pull-up load more into the left slide load more, but the official does not have ready-made, their own is not ideal, ask the god ...
May.08,2021
-
WeChat Mini Programs's official account article
WeChat Mini Programs has added the ability to open related official account articles. is implemented in web-view, but how should this be implemented
just store the url of the official account article in the database, and then pass the value to web-vi...
May.10,2021
-
False
-
Django, Why does the system automatically generate an empty session? every time the request is made?
-
Use python to convert dict1 to dict2, in the example. I tried for a long time but couldn't find a solution.
-
How to self-start the php-fpm service when building a LNMP environment with docker?
-
Can an array in react state be bound to a dom state using an element in the array?
-
Wechat browser version 6.6.5 cannot prevent the springback of pull-up and drop-down to the top under ios system.
-
In express+hbs, how do you define the routed data as a variable on the page?
-
How to use symbol reference of Iconfont in dva
-
How to elegantly add data to JSON objects?
-
Using node to build video streaming server
-
The proportional width of the echarts graph is inconsistent.
-
React uses axios to call the background data. After success, how to jump to the page based on the returned value?
-
I don't understand what a linux command means. Please explain it.
-
Vue introduces multiple components in vue-router by nesting named views, and does not refresh the same reference in other pages.
-
Running nodejs reports fewer errors ")"
-
Using echarts, in angular6 says that options cannot be bound.
-
Vue dynamically adds and removes subcomponents. The parent component does not correspond to the child component data?
-
Ask for a question about multi-routing layout
-
Mini Program jump to pass parameters, to another page json.pase error?
-
ElementUI paging problem
Menu