- 如何日历连续签到和间段重新计算?
代码有点乱 https://developers.weixin.qq.com/s/57QRTSmN7Cqm
2021-06-07 - 间断删除怎么删?
https://developers.weixin.qq.com/s/1rHum5ma7vp9 如何间断删除,如选中1 3 怎么跳过2把 1 3删了??
2021-03-26 - 条形图?
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> </head> <body> <div id="app"> <div class="title-column"> <div class="title">时段</div> <!-- <div class="mark" wx:for="{{end-start+1}}" wx:key="$this"> --> <div class="mark" v-for="(lst,index) in end-start+1"> <div class="mark-start"> <div class="mark-label">{{lst+start}}</div> <div class="mark-line"></div> </div> </div> </div> <div class="value-column" v-for="(obj,index) in list"> <!-- <div class="title">{{obj[0].label}}</div> --> {{obj.label }} <div :class="value {{hasValue(item.values, hour+start)?'has-value':'not-has-value'}}" v-for="(pot,index) in end-start+1" :key="$this"> </div> <!-- <div :class="value {{ }}" v-for="(lst,index) in end-start+1" v-for-lst="hour" :key="$this"> </div> --> </div> </div> <script type="text/javascript"> new Vue({ el: '#app', data: { start: 6, end: 24, test: [1, 2, 3], list: [{ label: "今天", values: [7, 8, 9, 20, 21] }, { label: "昨天", values: [10, 11, 12, 13, 14] }, ] }, // Vue.filter('my-filter', function (value) { // // 返回处理后的值 // }) }); // <wxs module="util"> // function hasValue(values, value) { // return values.indexOf(value) != -1 // } // module.exports.hasValue = hasValue // </wxs> </script> <style> .title-column { display: flex; height: 60rpx; line-height: 60rpx; font-size: 18rpx; border-bottom: 1px solid #333; } .title { width: 100rpx; flex-shrink: 0; text-align: center; } .mark { flex: 1 0 0; position: relative; } .mark-start { position: absolute; left: 0; width: 0; display: flex; flex-direction: column; align-items: center; } .mark-line { width: 1px; height: 4px; background-color: #333; position: absolute; bottom: 0; } .mark:nth-child(2n+1) .mark-label { opacity: 0; } .mark:nth-child(2n+1) .mark-line { height: 2px; } .value-column { display: flex; align-items: center; height: 40rpx; line-height: 40rpx; font-size: 18rpx; } .value { flex: 1 0 0; height: 30rpx; } .has-value { background-color: #aaa; } .not-has-value { background-color: red; } .value:last-child { background-color: transparent; } </style> </body> </html>
2021-03-08 - 条形图时间怎么搞?
[图片] 之前那位好心大佬帮我写出来的能不能再给我一份,之前的不小心被我删了
2021-02-22 - 有没大佬知道轮播图提示点怎么搞?
[图片]
2021-01-05 - 如何使用wx:for循环left逐个移动?
[图片] 给每个值在原来的基础上加上30
2020-12-29 - 怎么使用this.setData修改二维数组里面的某个值?
[图片][图片] 已经获取到了数组里面的值怎么进行修改
2020-09-17