Home  >  Article  >  WeChat Applet  >  Technical explanation of uploading pictures on WeChat

Technical explanation of uploading pictures on WeChat

巴扎黑
巴扎黑Original
2017-06-12 10:28:262800browse

This article mainly introduces the development of WeChat upload image component using require.js+vue+vue-router+vue-resource in detail. It has certain reference value. Interested friends can refer to it because the project is thinkPHP. When building a back-end framework, I have always used multi-page back-end routing. I have no idea how to use the popular webpack (forgive me for being a noob, and I am the only one promoting Vue...). I have no choice but to use Vue. Only improve on the original basis. The huge advantage of using webpack is that you can use a single file like .vue to write vue components. In this way, each component is a .vue file. This component can be imported wherever it is used. It is really fun to maintain. However, the project has always used require.js. If I want to organize vue components in this form and add vue-router and vue-resource, how can I break it? This article takes the development of the WeChat upload image component as an example to summarize require.js+vue+vue-router+vue-res

1. Using require.js+vue to develop WeChat upload images Component method

Technical explanation of uploading pictures on WeChat

Introduction: This article mainly introduces require.js+vue+vue in detail -router+vue-resource develops the WeChat upload image component, which has certain reference value. Interested friends can refer to

2. javascript - After uploading the image on WeChat The picture reply message fails when executing

Introduction: Recently we were studying the WeChat public platform and found a particularly strange problem: whenever we run the WeChat upload picture interface (here I need After obtaining the media_id), it will become invalid after executing the WeChat message reply interface (sending pictures with media_id). In addition, media must be used to reply to Mao WeChat picture messages...

3. javascript - WeChat development picture upload problem

Introduction: Recently I was working on a microsite on the WeChat public platform, and I encountered a difficulty, that is, uploading pictures. There seems to be a problem with input file on Android phones. Some mobile phones cannot select pictures in WeChat. It is even more strange to upload pictures on WeChat. Without entering the server, you can use the mobile browser. I have tried webuploading pictures before...

4. Upload pictures on WeChat, couldn't open file

Introduction: When uploading media pictures, couldn't open file {code...}

[Related Q&A recommendations]:

javascript - Please help me with how to use the API of WeChat upload image function!

javascript - WeChat upload image development

javascript - After WeChat uploads the image, the image reply message fails after executing it

javascript - WeChat development image upload problem

javascript - About the problem of track-by="$index" in vue

The above is the detailed content of Technical explanation of uploading pictures on WeChat. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn