服务器提交

This commit is contained in:
2026-04-05 10:48:38 +08:00
parent 3eff15071e
commit 6423d681af
8000 changed files with 5341 additions and 899005 deletions

View File

@@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/ns-navbar/ns-navbar"],{"27c0":function(t,n,e){"use strict";e.r(n);var a=e("bc90"),o=e.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);n["default"]=o.a},"3a93":function(t,n,e){},"4bc6":function(t,n,e){"use strict";var a=e("3a93"),o=e.n(a);o.a},9941:function(t,n,e){"use strict";e.r(n);var a=e("bf61"),o=e("27c0");for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e("4bc6");var r=e("828b"),c=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"a14780c4",null,!1,a["a"],void 0);n["default"]=c.exports},bc90:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e;t.getSystemInfoSync();e=t.getMenuButtonBoundingClientRect();var a={name:"ns-navbar",props:{data:{type:Object,default:function(){return{}}},titleColor:{type:String,default:"#606266"},customBack:{type:Function,default:null},scrollTop:{type:[String,Number],default:"0"},isBack:{type:Boolean,default:!0}},data:function(){return{menuButtonInfo:e,isBackShow:!1,placeholderHeight:0}},computed:{navbarInnerStyle:function(){var t="";return t+="height:"+2*e.height+"rpx;",t},navbarHeight:function(){var t=e.top;return t},bgColor:function(){var t="";if(this.data.topNavBg){t="transparent";var n=0;4==this.data.navStyle&&(n=this.navbarHeight-25),t=this.scrollTop>n?this.data.topNavColor:"transparent"}else t=this.data.topNavColor;return t},capsuleWidth:function(){var t="calc(100vw - ".concat(this.menuButtonInfo.right,"px + ").concat(this.menuButtonInfo.width,"px + 10px)");return t}},created:function(t){var n=getCurrentPages();n.length>1&&(this.isBackShow=!0),this.navbarPlaceholderHeight()},mounted:function(){this.setModuleLocationFn()},methods:{toLink:function(t){t&&this.$util.redirectTo(t)},goBack:function(){"function"===typeof this.customBack?this.customBack():t.navigateBack()},chooseOtherStore:function(){this.globalStoreConfig&&1==this.globalStoreConfig.is_allow_change?this.$util.redirectTo("/pages_tool/store/list"):this.globalStoreInfo&&this.$util.redirectTo("/pages_tool/store/detail",{store_id:this.globalStoreInfo.store_id})},navbarPlaceholderHeight:function(){var n=this;setTimeout((function(){var e=t.createSelectorQuery().in(n);e.select(".ns-navbar-wrap .u-navbar").boundingClientRect((function(t){n.placeholderHeight=t.height})).exec()}))},setModuleLocationFn:function(){var n=this,e=t.createSelectorQuery().in(this);e.select(".ns-navbar-wrap .u-navbar").boundingClientRect((function(t){var e={originalVal:t.height||0,currVal:0};n.$store.commit("setDiyGroupPositionObj",{nsNavbar:e})})).exec()}}};n.default=a}).call(this,e("df3c")["default"])},bf61:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var a=function(){var t=this,n=t.$createElement,e=(t._self._c,2==t.data.navStyle?t.$util.img(t.data.topNavImg):null),a=3==t.data.navStyle?t.$util.img(t.data.topNavImg):null;t._isMounted||(t.e0=function(n){return t.$util.redirectTo("/pages_tool/goods/search")}),t.$mp.data=Object.assign({},{$root:{g0:e,g1:a}})},o=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/ns-navbar/ns-navbar-create-component',
{
'components/ns-navbar/ns-navbar-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("9941"))
})
},
[['components/ns-navbar/ns-navbar-create-component']]
]);

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="{{['ns-navbar-wrap','data-v-a14780c4','style-'+data.navStyle]}}"><view class="u-navbar data-v-a14780c4" style="{{'background-color:'+(bgColor)+';'+('padding-top:'+(navbarHeight+'px')+';')}}"><view class="navbar-inner data-v-a14780c4" style="{{(navbarInnerStyle)}}"><block wx:if="{{isBack&&isBackShow}}"><view data-event-opts="{{[['tap',[['goBack',['$event']]]]]}}" class="back-wrap data-v-a14780c4" bindtap="__e"><text class="iconfont icon-back_light data-v-a14780c4" style="{{'color:'+(titleColor)+';'}}"></text></view></block><block wx:if="{{data.navStyle==1}}"><view data-event-opts="{{[['tap',[['toLink',['$0'],['data.moreLink.wap_url']]]]]}}" class="{{['content-wrap','data-v-a14780c4',data.textImgPosLink,isBack&&isBackShow?'have-back':'']}}" bindtap="__e"><view class="title-wrap data-v-a14780c4" style="{{'font-size:'+('16px')+';'+('color:'+(data.textNavColor)+';')+('text-align:'+(data.textImgPosLink)+';')}}">{{''+data.title+''}}</view></view></block><block wx:if="{{data.navStyle==2}}"><view data-event-opts="{{[['tap',[['toLink',['$0'],['data.moreLink.wap_url']]]]]}}" class="content-wrap data-v-a14780c4" bindtap="__e"><view class="title-wrap data-v-a14780c4" style="{{'color:'+(data.textNavColor)+';'}}"><view class="data-v-a14780c4"><image src="{{$root.g0}}" mode="heightFix" class="data-v-a14780c4"></image></view><view style="{{'color:'+(data.textNavColor)+';'}}" class="data-v-a14780c4">{{data.title}}</view></view></view></block><block wx:if="{{data.navStyle==3}}"><view class="content-wrap data-v-a14780c4"><view data-event-opts="{{[['tap',[['toLink',['$0'],['data.moreLink.wap_url']]]]]}}" class="title-wrap data-v-a14780c4" bindtap="__e"><image src="{{$root.g1}}" mode="aspectFit" class="data-v-a14780c4"></image></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="search data-v-a14780c4" style="{{'height:'+(menuButtonInfo.height-2+'px')+';'+('line-height:'+(menuButtonInfo.height-2+'px')+';')}}" bindtap="__e"><text class="iconfont icon-sousuo3 data-v-a14780c4"></text><text class="data-v-a14780c4">请输入商品名称</text></view><view style="{{'width:'+(capsuleWidth)+';'}}" class="data-v-a14780c4"></view></view></block><block wx:if="{{data.navStyle==4}}"><view data-event-opts="{{[['tap',[['chooseOtherStore']]]]}}" class="{{['content-wrap','data-v-a14780c4',(isBack&&isBackShow)?'have-back':'']}}" bindtap="__e"><text class="iconfont icon-dizhi data-v-a14780c4" style="{{'color:'+(data.textNavColor)+';'}}"></text><block wx:if="{{globalStoreInfo&&globalStoreInfo.store_id}}"><view class="title-wrap data-v-a14780c4" style="{{'color:'+(data.textNavColor)+';'}}">{{globalStoreInfo.store_name}}</view></block><block wx:else><view class="title-wrap data-v-a14780c4" style="{{'color:'+(data.textNavColor)+';'}}">定位中...</view></block><text class="iconfont icon-right data-v-a14780c4" style="{{'color:'+(data.textNavColor)+';'}}"></text><view class="nearby-store-name data-v-a14780c4" style="{{'color:'+(data.textNavColor)+';'}}">附近门店</view></view></block></view></view><view class="u-navbar-placeholder data-v-a14780c4" style="{{'width:'+('100%')+';'+('padding-top:'+(placeholderHeight+'px')+';')}}"></view></view>

View File

@@ -0,0 +1 @@
.u-navbar.data-v-a14780c4{width:100%;transition:background .3s;position:fixed;left:0;right:0;top:0;z-index:991}.navbar-inner.data-v-a14780c4{display:flex;justify-content:space-between;position:relative;align-items:center;padding-bottom:20rpx}.back-wrap.data-v-a14780c4{padding:0 14rpx 0 24rpx}.back-wrap .iconfont.data-v-a14780c4{font-size:44rpx}.content-wrap.data-v-a14780c4{display:flex;align-items:center;justify-content:flex-start;flex:1;position:absolute;left:0;right:0;top:0;height:60rpx;text-align:center;flex-shrink:0}.title-wrap.data-v-a14780c4{line-height:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:32rpx;color:#000}.ns-navbar-wrap.style-1 .content-wrap .title-wrap.data-v-a14780c4{font-size:27rpx}.ns-navbar-wrap.style-1 .content-wrap.left.data-v-a14780c4{left:30rpx}.ns-navbar-wrap.style-1 .content-wrap.center.data-v-a14780c4{left:0;padding-right:0}.ns-navbar-wrap.style-1 .content-wrap.have-back.data-v-a14780c4{left:90rpx;padding-right:200rpx}.ns-navbar-wrap.style-2 .content-wrap .title-wrap.data-v-a14780c4{display:flex;align-items:center;text-align:left}.ns-navbar-wrap.style-2 .content-wrap .title-wrap > view.data-v-a14780c4{height:56rpx;line-height:56rpx;max-width:300rpx;margin-left:30rpx;font-size:27rpx}.ns-navbar-wrap.style-2 .content-wrap .title-wrap > view image.data-v-a14780c4{width:100%;height:100%}.ns-navbar-wrap.style-2 .content-wrap .title-wrap > view.data-v-a14780c4:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.ns-navbar-wrap.style-3 .content-wrap .title-wrap.data-v-a14780c4{height:60rpx;width:170rpx;max-width:170rpx;margin-left:30rpx;flex:initial;text-align:center;margin-right:10rpx}.ns-navbar-wrap.style-3 .content-wrap .title-wrap image.data-v-a14780c4{height:100%;width:100%}.ns-navbar-wrap.style-3 .content-wrap .search.data-v-a14780c4{flex:1;padding:0 20rpx;background-color:#fff;text-align:left;border-radius:60rpx;height:60rpx;line-height:60rpx;border:1px solid #eee;color:#666;display:flex;align-items:center;margin-right:10rpx}.ns-navbar-wrap.style-3 .content-wrap .search .iconfont.data-v-a14780c4{color:#909399;font-size:32rpx;margin-right:10rpx}.ns-navbar-wrap.style-4 .icon-dizhi.data-v-a14780c4{font-size:28rpx}.ns-navbar-wrap.style-4 .content-wrap.data-v-a14780c4{top:auto;text-align:left;padding-left:30rpx}.ns-navbar-wrap.style-4 .content-wrap.have-back.data-v-a14780c4{left:60rpx;right:190rpx}.ns-navbar-wrap.style-4 .content-wrap .title-wrap.data-v-a14780c4{flex:none;margin:0 10rpx;max-width:360rpx;font-size:27rpx}.ns-navbar-wrap.style-4 .content-wrap .icon-right.data-v-a14780c4{font-size:24rpx}.ns-navbar-wrap.style-4 .content-wrap .nearby-store-name.data-v-a14780c4{margin:0 10rpx;background:rgba(0,0,0,.2);font-size:22rpx;border-radius:40rpx;padding:10rpx 20rpx;line-height:1}