-
Mini Program, custom components slot embedded custom components, the most custom components can not trigger events, how to solve?
desired effect
my implementation
filter-option.js
Component({
methods: {
onTap () {
console.log("i clicked");
this.triggerEvent( tapoption , {}, {
bubbles: true,
composed: true
...
-
To do a riddle interaction Mini Program, he can see the ranking scores of Wechat friends who have played this Mini Program, and there is a cash reward for reaching a certain ranking, that is, how to allow users to withdraw cash?
now there are two problems
1
2
ask all kinds of experts for advice, thank you very much
...
-
Wechat developer tool login failed
when Wechat s developer tool does not log in for a period of time, log in again
figure 1:
:
:
---------------
https: developers.weixin.qq....
...
-
Why does WeChat Mini Programs fill the array of data with setData that length is 0?
the array set in data, setData is populated with list, but the length of the array is still an empty array. What is the principle of this?
...
-
[WeChat Mini Programs] the parameters passed by navigateTo cannot be used to call the backend API.
Page({
apps
onLoad: function (options) {
this.setData({
articleId: options.article_id
})
let contentGroupID = 000000000000000
let MyContentGroup = new wx.BaaS.ContentGroup(contentGroupID)
MyContentGroup.getContent(a...
-
WeChat Mini Programs template binding functions how to write in appjs to achieve general?
tab-template.wxml
<template name="tab-template">
<button bindtap="onshow" wx:if="{{show}}">< button>
<view class= wrapper wx:if="show">
<view class= main >xx< view>
<...
-
WeChat Mini Programs form button is invalid
I have also written several form applications, all of which can be run. I don t know what happened to this form, but it didn t respond when I clicked on the button. There was no error in the console. I really can t see what the problem is. Look forwa...
-
If the mobile phone monitors the input box, enter the @ character?
the usage scenario is mobile phone WeChat Mini Programs. needs to enable the user to enter @ in the text box to jump to the contact s page. My idea is to listen to input events and get the input key code, but look for the key code without @ on the Inte...
-
A basic problem of functional digital quantity!
var obj = {
f1: function() {
var p = new this.f2()
Object.assign(this, p)
console.log(1, this)
},
f2: function() {
console.log(2, this)
this.f3 = function() {
console.log(3, this)
}
...
-
Mini Program, picture preloading problem!
= > pull-down bottoming event on the page = > handle waterfall stream effect function (image preload function callback is required to perform picture output) = > picture preload function
now I don t know how to determine the completion of loading a...
-
WeChat Mini Programs intercepted the first frame of the video as a picture.
in native js, the drawImage method of canvas supports passing video elements.
url:
ask the gods, if you want to intercept the first frame of the video as a picture in WeChat Mini Programs, what can you do?
...
-
How to convert binary streams into pictures in the background by WeChat Mini Programs
I asked for the mini code at the front end, which returned a pile of garbled codes. java has found a way to convert binary streams and pictures to each other on the Internet, but the data obtained from the WeChat Mini Programs code interface cannot get...
-
How to use WeChat Mini Programs to generate the data returned by the QR code interface?
the data returned by the interface of generating QR code with WeChat Mini Programs is like this. How can I display the QR code picture without going through the server?
...
-
What is the good way for WeChat Mini Programs to get multiple picker values directly?
there is a painful need is that the selector data of a form page is obtained from the server data, return several objects, generate several picker, (not necessarily generate several), the user selects the data and clicks the submit button to get the data...
-
What if WeChat Mini Programs loads the first page and bottom navigation as needed?
the first requirement is that when the page is loaded for the first time, it will verify whether it has been stored in the database. If it is saved, it will display indexA. If the database cannot find data, how can indexB, control the display? I can wri...
-
How does WeChat Mini Programs prevent navigateTo from jumping more than 10 floors?
I have a business scenario page An is a first-level page, page B is a detailed page of page A, in which there is a button to add details to enter the C form page, fill out the form and click to successfully enter D. Confirm page D click the button insi...
-
About the encryption of post data transmission?
the user name and password sent through the post method in WeChat Mini Programs (self-built login method) are currently in clear text. Is there any good way to encrypt the data (do not allow plaintext transmission), so as to improve security. ...
-
Did WeChat Mini Programs log in again after quitting and did not enter the login page resulting in the expiration of token?
my Mini Program, after opening it, first go to the-> login page and successfully log in to save the token obtained by the server to globalData (the expiration time of token is 1 hour), then go to the index page, and then exit Mini Program. enter Mini Pr...
-
How can front-end data binding avoid stutters caused by too much data on the page?
use the variable news to save the news data obtained from the interface
:api.xxx.com api news ?pageNumer=1&pageSize=50
js:
this.setData({
news:data.data
})
wxml:
<block wx:for="{{news}}" wx:for-item="new">
<view&g...
-
There is a problem of inaccurate positioning of WeChat Mini Programs map components in Wechat platform development tools.
<map id="map"
longitude="{{longitude}}"
latitude="{{latitude}}"
scale="15"
controls="{{controls}}"
markers="{{markers}}"
circles="{{circles}}&qu...