This commit is contained in:
2025-12-27 09:01:32 +08:00
commit 24647b844e
712 changed files with 2718 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/ns-navbar/ns-navbar"],{"18f4":function(t,n,e){"use strict";e.r(n);var o=e("1caf"),a=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=a.a},"1caf":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 o={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){},mounted:function(){},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()}))},setModuleLocatinoFn: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=o}).call(this,e("df3c")["default"])},"6b0d":function(t,n,e){"use strict";var o=e("6c04"),a=e.n(o);a.a},"6c04":function(t,n,e){},7253:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},a=[]},f5ee:function(t,n,e){"use strict";e.r(n);var o=e("7253"),a=e("18f4");for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);e("6b0d");var r=e("828b"),c=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"5c1adb34",null,!1,o["a"],void 0);n["default"]=c.exports}}]);
;(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__("f5ee"))
})
},
[['components/ns-navbar/ns-navbar-create-component']]
]);

View File

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

View File

@@ -0,0 +1 @@
<view class="_div data-v-5c1adb34"></view>

View File

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