? Setting up and using the uniapp environment (beginning)

? uniapp environment construction There are two tools needed to develop uniapp: 1. Platform and address used: Several platforms and addresses you need to know: (1) WeChat public platform https://mp.weixin.qq.com/ (2) WeChat development documentation https://developers.weixin.qq.com/miniprogram/dev/devtools/devtools.html (3) uniapp development documentation https://uniapp.dcloud.net.cn/ 2. HbuilderX (development tool) The official website address is: https://www.dcloud.io/ download link https://www.dcloud.io/hbuilderx.html Select the […]

uniapp custom navigation bar

Customized navigation bar Modify pages.json Set navigateionStyle to custom in pages.json New systemInfo.js systemInfo.js is used to obtain the model system information of the current device and place it in the common directory. /** * This js file manages model system information about the current device */ const systemInfo = function() {<!– –> /****************** System […]

vue uniapp index list select city component

<view class=”citysIndex” v-if=”update”> <scroll-view :scroll-into-view=”scrollTop” scroll-y=”true” style=”height: 100%;”> <view class=”citysHead”> <view class=”citysTitle”> <label>Location city</label> <label>{<!– –>{cityData.name}}</label> </view> <!– Popular cities –> <view class=”citysHot”> <view class=”citysTitle”> <label>Popular cities</label> </view> <view class=”citysHot-list”> <a v-for=”(v,i) in hotCitys”> <label :class=”[q.checked?’checkedBtn’:”]” v-for=”(q,w) in v” :key=’q.cityId’ @click=”checkCity(q.cityId,q.baiduCityCode,q.city,q.provinceId,q.province)”>{<!– –>{q.city}}</label> </a> </view> </view> </view> <view class=”citysList”> <view class=”citysTitle”> <label>All cities</label> </view> <view class=”citysIndexList”> […]

uniapp uses stomp+websocket to monitor messages in real time for voice broadcasting

Write a custom directory title here stompjs // Generated by CoffeeScript 1.7.1 /* Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0 Copyright (C) 2010-2013 [Jeff Mesnil](http://jmesnil.net/) Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com) */ (function() {<!– –> var Byte, Client, Frame, Stomp, __hasProp = {<!– –>}.hasOwnProperty, __slice = [].slice; Byte = {<!– –> LF: ‘\x0A’, NULL: ‘\x00’ […]

uniappSMS verification code input box

The requirement is that the SMS verification code requires a grid input box, as shown in the picture I found a case online and changed it. Just upload the code. Structure <template> <view class=”verify-code”> <!– Input box –> <input id=”input” :value=”code” class=”input” :focus=”isFocus” :type=”inputType” :maxlength=”itemSize” @input=”onInput” @focus=”inputFocus” @blur=”inputBlur” /> <!– Cursor –> <view id=”cursor” v-if=”cursorVisible […]

uniapp pull-up loading

{ 5 “path”: “pages/domain/manage”, “style”: { “navigationBarTitleText”: “Field Management”, “enablePullDownRefresh”: false } <template> <view> <scroll-view scroll-x class=”bg-white nav” scroll-with-animation :scroll-left=”scrollLeft” > <view class=”cu-item” :class=”index == TabCur ? ‘text-green cur’ : ”” v-for=”(item, index) in tabsList” :key=”index” @tap=”tabSelect” :data-id=”index” > {<!– –>{ item.name }} </view> </scroll-view> <view class=”flex px-4 py-2 bg-white” style=”z-index: 999″> <u-search shape=”round” placeholder=”field […]

uniapp classification scroll-view

Rendering: This is mainly solved using anchor points and through the scroll-into-view attribute. Upper code: html <template> <view class=”box”> <scroll-view class=”scroll” scroll-y> <view v-for=”(item, index) in p_arr” :key=”item” @click=”scroll(index)” :style=”{ ‘background-color’: active == index ? ‘aquamarine’ : ‘pink’ }”> {<!– –>{item.className}} </view> </scroll-view> <scroll-view class=”content” scroll-y :scroll-into-view=”intoindex” scroll-with-animation> <view class=”contentView” v-for=”(item, index) in p_arr” :key=”item” […]