Call api interface

How do we usually call the interface? In Vue, we usually call the interface through the library of axios, but when developing in uniapp, we need to borrow the library of uniapp for development. Next, let's explore it together. I uni.request(OBJECT) Function: send network request Description of OBJECT parameters: 1.url Type: String Requi ...

Posted by phpisawesome on Sat, 05 Mar 2022 16:18:27 +0100

Spring Cloud of springcloud+springcloud+vue+uniapp distributed micro service E-commerce mall creates a unified authentication service based on JWT

The authentication service must have user information, otherwise how to authenticate whether it is a legal user? Because it is an internal call authentication, it can be simpler. Database management is one way. User configuration or distributed information can be perfectly integrated. Table structure The case in this tutorial omits the step ...

Posted by vcv on Thu, 03 Mar 2022 21:22:10 +0100

Uni app learning notes

1. vue life cycle vue life cycle diagram <template> <view> <button @click="click">Submit</button> <view> {{text}} </view> </view> </template> <script> export default { data() { return { text: 'hello' } }, methods: { click(){ this.text = 'Hello' } ...

Posted by chuckym7 on Thu, 03 Mar 2022 09:35:20 +0100

uniapp development applet obtains the name of the positioning city according to the longitude and latitude

1. Preface If you have been in contact with wechat applets, you know that operations involving some user sensitive information (such as positioning, accessing personal information, etc.) require user authorization. When we use applets, we may also see the scene that the authorization box pops up before an operation, which requires the user' ...

Posted by wittanthony on Thu, 03 Mar 2022 09:02:13 +0100

Deep action selector solves the problem of invalid checkbox style modified by uni app

The built-in component checkbox is required for the uni app form multi selector. See the link on the official website for details, as follows: Checkbox - uni app official website (dcloud.io) The official default style of h5 terminal is as follows: ​ Now you need to change the style to this: ​ So we began to modify: <checkbox-group @ch ...

Posted by AwptiK on Wed, 16 Feb 2022 01:44:25 +0100

This is all you need to get started with uni app

If you don't know about uniapp, you can read my last blog post and learn about it first This article is enough to understand uni app What is a uni app? DCLOUD uses Vue technology to develop the framework of all front-end applicationsWhat does uni app do? A set of code is released to multiple platforms Advantages of uni app Uni app and Vue re ...

Posted by Plazman65 on Sat, 29 Jan 2022 12:16:15 +0100

Uni app packaged into Android Apk full explanation

This article uses cli mode 1, Android native configuration Official documents 0 install development environment Prerequisite software: Android Studio HBuilderXApplet Android offline sdk , download the version sdk (usually the latest version. The version should be consistent with the HBuilder X version. See the section exporting App resourc ...

Posted by titangf on Sun, 23 Jan 2022 12:59:32 +0100

Brief description of using steps of Tencent cloud instant messaging IM front end

Note: This article mainly demonstrates the steps of accessing IM through the wechat applet developed by uniapp: Preparations: first, it is recommended that you save a copy of your project git to the remote warehouse before trying to access IM (prepare for the worst and recover later); The first step below is to connect IM to the project. If y ...

Posted by mikes127 on Sun, 23 Jan 2022 03:53:48 +0100

Use of uniapp conditional compilation

What is conditional compilation Conditional compilation uses special comments as markers to compile the code in the comments to different platforms according to these special comments during compilation. I. writing method: start with #ifdef or #ifndef plus% PLATFORM% and end with #endif. #ifdef: if defined exists only on a certain platf ...

Posted by loveitandhateit on Thu, 06 Jan 2022 01:40:37 +0100

Introduction to FileReader of JavaScript and examples of how native and uniapp convert files into base64 encoded strings

Use the FileReader object to view the MDN official description for details click here . Introduction to FileReader object Method of FileReader object: methodparameterbrief introductionexplainFileReader.readAsBinaryString(blob)Blob or File object to be readRead file as binary encodingThe specified Blob or File object will be read. When the r ...

Posted by Dargrotek on Wed, 29 Dec 2021 11:41:38 +0100