摘要: <script> export default { data() { return { //搜索关键字 adressKeywords:'', coordinatesValue: { longitude: '', //经度 latitude: '', //纬度 } }; }, methods: { g 阅读全文
posted @ 2022-01-06 15:36 麦田与星空 阅读(2999) 评论(0) 推荐(0) 编辑
摘要: DateDifference (startDate,endDate) { var startDateStamp =new Date(startDate).getTime(); var endDateStamp = new Date(endDate).getTime(); var usedTime = 阅读全文
posted @ 2021-12-30 17:32 麦田与星空 阅读(880) 评论(0) 推荐(0) 编辑
摘要: 解决方案:使用兼容性更好的语法,将options属性改为right-options & left-options <uni-swipe-action> <block v-for="(goods, i) in cart" :key="i"> <uni-swipe-action-item :right- 阅读全文
posted @ 2021-10-19 21:30 麦田与星空 阅读(1473) 评论(0) 推荐(1) 编辑
摘要: 1. 在HBuilder X 编辑器中找到对应的第三方组件的 .vue 文件 HBuilder X (3.2.9) 中uni-number-box组件存放在如下路径中: uni_modules/uni-number-box/components/uni-number-box/uni-number-b 阅读全文
posted @ 2021-10-19 15:13 麦田与星空 阅读(1243) 评论(0) 推荐(0) 编辑
摘要: 由于目前使用的HBuilderX的版本(3.2.9)会在pages.json进行相关配置时自动生成两条页面配置样式:{ "navigationBarTitleText": "","enablePullDownRefresh": false}, 其中navigationBarTitleText默认为空 阅读全文
posted @ 2021-10-19 11:26 麦田与星空 阅读(1666) 评论(0) 推荐(1) 编辑
摘要: 在Vue 3项目中使用 Vant UI中vant-popup 弹出层功能时,需要将 v-model="show" 更改为 v-model:show= "show"(Vue 3 语法) : <van-popup v-model:show="show" closeable close-icon="clo 阅读全文
posted @ 2021-09-09 12:25 麦田与星空 阅读(5490) 评论(0) 推荐(0) 编辑
摘要: module.exports = { plugins: { // 'autoprefixer': { // browsers: ['Android >= 4.0', 'iOS >= 8'] // }, 'postcss-pxtorem': { rootValue({file}) { // 判断是否为 阅读全文
posted @ 2021-09-06 20:45 麦田与星空 阅读(689) 评论(0) 推荐(0) 编辑