first commit

This commit is contained in:
2026-09-08 20:28:54 +08:00
commit 2ada8d3d5a
37380 changed files with 4886169 additions and 0 deletions
@@ -0,0 +1 @@
(global["webpackChunkfitness_walk_nwnu"]=global["webpackChunkfitness_walk_nwnu"]||[]).push([["uni_modules/zb-dropdown-menu/components/zb-dropdown-item/zb-dropdown-item"],{2232:function(){},7087:function(t,e,n){"use strict";var i;n.r(e),n.d(e,{default:function(){return v}});var r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__get_style([t.parent.style,{zIndex:t.zIndex}]));t._isMounted||(t.e0=function(t){t.stopPropagation(),t.preventDefault()}),t.$mp.data=Object.assign({},{$root:{s0:n}})},o=[],a=n(6259),u=n(2775);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){(0,u["default"])(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var c,h={name:"zb-dropdown-item",options:{virtualHost:!0},props:{value:{type:[String,Number]},modelValue:{type:[String,Number]},name:{type:[String,Number],required:!0},options:{type:Array,default:function(){return[]}}},inject:{parent:{default:null}},data:function(){return{zIndex:null,activeColor:null,mask:!1,showWrap:!1,title:null}},watch:{value:{handler:function(t,e){var n=this,i=this.options.find(function(t){return t.value===n.mValue});this.title=i.text||"",this.$emit("change",l({},i))}},showWrap:{handler:function(t,e){},immediate:!0},options:{handler:function(t,e){var n=this;if(t.length){var i=this.options.filter(function(t){return t.value===n.mValue}),r=i.length?i[0].text:"";this.title=r}},immediate:!0,deep:!0}},computed:{mValue:function(){return null!=this.value?this.value:this.modelValue},displayTitle:{get:function(){var t=this;if(this.title)return this.title;var e=this.options.filter(function(e){return e.value===t.mValue}),n=e.length?e[0].text:"";return this.title=n,n},set:function(t){this.title=t}}},methods:{getDropdown:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"zb-dropdown-menu",e=this.$parent,n=e.$options.name;while(n!==t){if(e=e.$parent,!e)return!1;n=e.$options.name}return e},clickCell:function(t){this.changeStatus(this,"mask","showWrap",!1),t.value!==this.mValue&&(this.title=t.text,this.$emit("update:modelValue",t.value),this.$emit("input",t.value))},changeStatus:function(t,e,n,i){t[e]=i,this.watchTimer&&clearTimeout(this.watchTimer),this.watchTimer=setTimeout(function(){t[n]=i},i?20:200)},close:function(t,e){var n=this,i=this.parent.childrenList.findIndex(function(t){return t.title===n.title});this.parent.closeMask({},i)},moveHandle:function(){return!1},bindRelation:function(){var t=this,e=this.parent.childrenList.find(function(e){var n=e.name===t.name;return n});if(this.parent&&!e){var n=Object.assign(this.$data,this.$props),i=[].concat((0,a["default"])(this.parent.childrenList),[n]);this.parent.childrenList=i}}},created:function(){this.bindRelation();var t=this.getDropdown();this.activeColor=t.activeColor,this.zIndex=t.zIndex},beforeDestroy:function(){var t=this;this.parent&&(this.parent.childrenList=this.parent.childrenList.filter(function(e){return e.title!==t.title}))}},p=h,d=n(2232),f=n.n(d),m=(f(),n(8535)),b=(0,m["default"])(p,r,o,!1,null,"f307e306",null,!1,i,c),v=b.exports}}]),(global["webpackChunkfitness_walk_nwnu"]=global["webpackChunkfitness_walk_nwnu"]||[]).push([["uni_modules/zb-dropdown-menu/components/zb-dropdown-item/zb-dropdown-item-create-component"],{},function(t){t("1687")["createComponent"](t(7087))}]);
@@ -0,0 +1,4 @@
{
"usingComponents": {},
"component": true
}
@@ -0,0 +1 @@
<view hidden="{{!(showWrap)}}" class="zb-dropdown-item zb-dropdown-item--down data-v-f307e306" style="{{$root.s0}}"><view data-event-opts="{{[['touchmove',[['e0',['$event']]]],['tap',[['close',['$event']]]]]}}" class="{{['zb-overlay','data-v-f307e306',[(mask)?'mask__visible':'']]}}" catchtouchmove="__e" catchtap="__e"></view><view class="{{['zb-popup','zb-popup--top','zb-dropdown-item__content','zb-popup-slide-top-leave-active','data-v-f307e306',[(mask)?'content--visible_Y':'']]}}"><view style="min-height:50px;" class="data-v-f307e306"><block wx:for="{{options}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['clickCell',['$0'],[[['options','',index]]]]]]]}}" class="zb-cell zb-cell--clickable zb-dropdown-item__option data-v-f307e306" catchtap="__e"><view class="{{['zb-cell__title','data-v-f307e306',[(mValue===item.value)?'active-cell__title':'']]}}" style="{{'color:'+(mValue===item.value?activeColor:'')+';'}}"><text class="data-v-f307e306">{{item.text}}</text></view><block wx:if="{{mValue===item.value}}"><view class="zb-cell__value data-v-f307e306"><text class="iconfont icon-duihao active-icon data-v-f307e306" style="{{'color:'+(showWrap?activeColor:'')+';'}}"></text></view></block></view></block></view></view></view>
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
(global["webpackChunkfitness_walk_nwnu"]=global["webpackChunkfitness_walk_nwnu"]||[]).push([["uni_modules/zb-dropdown-menu/components/zb-dropdown-menu/zb-dropdown-menu"],{3731:function(){},8889:function(t,e,n){"use strict";var i;n.r(e),n.d(e,{default:function(){return p}});var s,o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__get_style([t.barStyle])),i=t.__map(t.childrenList,function(e,n){var i=t.__get_orig(e),s=t.__get_style([{color:e.showWrap?t.activeColor:""},t.titleColorStyle]);return{$orig:i,s1:s}});t.$mp.data=Object.assign({},{$root:{s0:n,l0:i}})},r=[],a=n(1687)["default"],h={name:"zb-dropdown-menu",options:{virtualHost:!0},props:{zIndex:[Number,String],titleColorStyle:{type:Object,default:function(){}},activeColor:{type:String,default:"#ee0a24"}},provide:function(){return{parent:this}},computed:{opened:function(){return this.childrenList.some(function(t){return t.showWrap})},barStyle:function(){if(this.opened&&this.isDef(this.zIndex))return{zIndex:1+this.zIndex}}},data:function(){return{childrenList:[],direction:"down",offset:0,style:{top:0},showMask:!0,show:!1,mask:!1,mask1:!1,showWrapper:!1,showWrapper1:!1,watchTimer:null,activeIndex:null}},mounted:function(){this.updateOffset()},beforeDestroy:function(){this.watchTimer&&clearTimeout(this.watchTimer)},methods:{isDef:function(t){return void 0!==t&&null!==t},close:function(){if(null!=this.activeIndex&&this.childrenList&&this.childrenList.length){var t=this.childrenList.find(function(t){return t.showWrap});t&&this.changeStatus(t,"mask","showWrap",!1)}},change:function(t,e,n){var i=this;this[t]=n,this.watchTimer&&clearTimeout(this.watchTimer),this.watchTimer=setTimeout(function(){i[e]=n,i.$emit("change",n)},n?5:200)},closeMask:function(t,e){for(var n=0;n<this.childrenList.length;n++){var i=this.childrenList[n];n===e?i.showWrap?this.changeStatus(i,"mask","showWrap",!1):this.changeStatus(i,"showWrap","mask",!0):(this.$set(i,"mask",!1),this.$set(i,"showWrap",!1))}},changeStatus:function(t,e,n,i){var s=this;t[e]=i,this.watchTimer&&clearTimeout(this.watchTimer),this.watchTimer=setTimeout(function(){s.$set(t,n,i)},i?20:200)},toggleItem:function(t){for(var e=0;e<this.childrenList.length;e++){var n=this.childrenList[e];e===t?n.showWrap?this.changeStatus(n,"mask","showWrap",!1):this.changeStatus(n,"showWrap","mask",!0):(n.mask=!1,n.showWrap=!1)}this.activeIndex=t,this.updateOffset(),this.$emit("toggleItem")},updateOffset:function(){var t=this,e=a.createSelectorQuery().in(this);e.select(".zb-dropdown-menu__bar").boundingClientRect(function(e){"down"===t.direction?(t.offset=e.height+a.getSystemInfoSync().windowTop+e.top,t.style.top="".concat(t.offset,"px")):t.offset=a.getSystemInfoSync().screenHeight-e.top}).exec()}}},c=h,u=n(3731),l=n.n(u),d=(l(),n(8535)),f=(0,d["default"])(c,o,r,!1,null,"2c2996d2",null,!1,i,s),p=f.exports}}]),(global["webpackChunkfitness_walk_nwnu"]=global["webpackChunkfitness_walk_nwnu"]||[]).push([["uni_modules/zb-dropdown-menu/components/zb-dropdown-menu/zb-dropdown-menu-create-component"],{},function(t){t("1687")["createComponent"](t(8889))}]);
@@ -0,0 +1,4 @@
{
"usingComponents": {},
"component": true
}
@@ -0,0 +1 @@
<view class="zb-dropdown-menu data-v-2c2996d2"><view data-ref="bar" class="zb-dropdown-menu__bar zb-dropdown-menu__bar--opened data-v-2c2996d2 vue-ref" style="{{$root.s0}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toggleItem',[index,'$0'],[[['childrenList','',index]]]]]]]}}" class="zb-dropdown-menu__item data-v-2c2996d2" catchtap="__e"><view class="{{['zb-dropdown-menu__title','data-v-2c2996d2',[(item.$orig.showWrap)?'zb-dropdown-menu__title--active':'',(item.$orig.showWrap)?'zb-dropdown-menu__title--down':'']]}}" style="{{item.s1}}">{{item.$orig.title}}</view></view></block></view><view class="data-v-2c2996d2"><slot></slot></view></view>
File diff suppressed because one or more lines are too long