随笔分类 -  vant

摘要:vant: mounted(){ //手机后退键 let self = this; if (window.history && window.history.pushState) { $(window).on('popstate', function () { self.goback(); }); 阅读全文
posted @ 2021-10-20 14:49 石头记1 阅读(1063) 评论(0) 推荐(0) 编辑
摘要:<div :style="{height: contentHeight}"> <van-list v-model="listloading" :finished="listfinished" finished-text="亲,我是有底线的" v-on:load="onLoad" :immediate 阅读全文
posted @ 2020-07-10 10:49 石头记1 阅读(4134) 评论(0) 推荐(0) 编辑
摘要:<van-col span="12"> <van-field label="载重量:" placeholder="保留2位小数" name="dweight" :value="dweight" v-on:touchend.native.stop="weightkeyPos"></van-field> 阅读全文
posted @ 2020-07-08 15:20 石头记1 阅读(3395) 评论(0) 推荐(0) 编辑
摘要:货物类型,两级分类,每列都要有不限选项,数据里没有不限选项,需要做数据变异,而且选择器是通过索引取值的,比较麻烦的地方就是,修改时获取的是类别id,需要在变异的数据中找到对应项并记录其索引 <van-cell-group> <van-field readonly clickable name="go 阅读全文
posted @ 2020-06-11 17:45 石头记1 阅读(8667) 评论(0) 推荐(0) 编辑
摘要:在_layout.cshtml中引入 <script src="/Scripts/axios.min.js"></script> 在公共main.js中加入 axios.defaults.baseURL = "http://...";//基础路径axios.interceptors.response 阅读全文
posted @ 2020-06-08 10:08 石头记1 阅读(763) 评论(0) 推荐(0) 编辑
摘要:let mapProvince = ''; let mapDistrict = ''; let mapCity = ''; let mapStreet = ''; var box = document.getElementById("container"); var center, map, mar 阅读全文
posted @ 2020-06-08 09:58 石头记1 阅读(233) 评论(0) 推荐(0) 编辑
摘要:重点是把从接口得到的数据变异成vant组件规定的格式!! { province_list: { 110000: '北京市', 120000: '天津市' }, city_list: { 110100: '北京市', 110200: '县', 120100: '天津市', 120200: '县' }, 阅读全文
posted @ 2020-06-08 09:54 石头记1 阅读(6131) 评论(0) 推荐(0) 编辑
摘要:项目没有考虑前后端分离,也未使用vue-cli脚手架,单纯引入vue.js,vant也是单纯引入css和js,可能无法使用vue-router,因为是移动端项目所以暂时引入了jquery-3.3.1.min.js(当vue无法实现的时候用吧) 目前引入的工具: <link href="/Conten 阅读全文
posted @ 2020-04-09 14:22 石头记1 阅读(734) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示