fix: 顶栏颜色跟随小程序主题并保留跟随系统
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+4
@@ -1,2 +1,6 @@
|
||||
<import src="../../../base.wxml"/>
|
||||
<wxs module="xs" src="../../../utils.wxs" />
|
||||
<page-meta data-sid="{{pageMeta.sid}}" background-text-style="{{pageMeta.p3}}" background-color="{{pageMeta.p0}}" background-color-top="{{pageMeta.p2}}" background-color-bottom="{{pageMeta.p1}}" root-background-color="{{pageMeta.p6}}" scroll-top="{{xs.b(pageMeta.p9,'')}}" scroll-duration="{{xs.b(pageMeta.p8,300)}}" page-style="{{xs.b(pageMeta.p5,'')}}" root-font-size="{{xs.b(pageMeta.p7,'')}}" page-orientation="{{xs.b(pageMeta.p4,'')}}" bindresize="eh" bindscroll="eh" bindscrolldone="eh" style="{{pageMeta.st}}" class="{{pageMeta.cl}}" bindtap="eh" >
|
||||
<navigation-bar title="{{navigationBar.p5}}" loading="{{xs.b(navigationBar.p4,false)}}" front-color="{{xs.b(navigationBar.p3,'#000000')}}" background-color="{{navigationBar.p0}}" color-animation-duration="{{xs.b(navigationBar.p1,0)}}" color-animation-timing-func="{{xs.b(navigationBar.p2,'linear')}}" style="{{navigationBar.st}}" class="{{navigationBar.cl}}" bindtap="eh" />
|
||||
</page-meta>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[205],{6296:function(s,a,e){var n=e(7842),c=e(118),o=e(758),i=e.n(o),r=e(9703),l=e(9201),d=e(5414),t=e(5234),h=e(4848);function p(){var s=(0,r.wR)(),a=s.resolvedTheme,e=(0,l.c)();(0,d.l)(a);var n=function(s){i().navigateTo({url:"/pages/shop/detail/index?id=".concat(s)})};return(0,h.jsx)(c.Ss,{className:"shop-page theme-".concat(a),children:(0,h.jsxs)(c.Ss,{className:"shop-list",children:[(0,h.jsxs)(c.Ss,{className:"shop-header",style:{paddingTop:"".concat(e.headerPaddingTop,"px")},children:[(0,h.jsx)(c.EY,{className:"shop-header-title",children:"\u667a\u7ed8\u7cbe\u9009"}),(0,h.jsx)(c.EY,{className:"shop-header-sub",children:"\u6fc0\u5149\u5fae\u96d5\u5b9a\u5236\u597d\u7269"})]}),(0,h.jsx)(c.Ss,{className:"shop-grid",children:t.zv.map(function(s){var a,e,o,i;return(0,h.jsxs)(c.Ss,{className:"shop-card",onTap:function(){return n(s.id)},children:[(0,h.jsx)(c.Ss,{className:"shop-card-img-wrap",children:(0,h.jsx)(c._V,{className:"shop-card-img",src:(null===(a=s.images)||void 0===a?void 0:a[0])||s.iconImg||"",mode:"aspectFill",lazyLoad:!0})}),(0,h.jsxs)(c.Ss,{className:"shop-card-info",style:{backgroundColor:"rgba(".concat((null===(e=s.tone)||void 0===e?void 0:e[0])||28,", ").concat((null===(o=s.tone)||void 0===o?void 0:o[1])||22,", ").concat((null===(i=s.tone)||void 0===i?void 0:i[2])||18,", 0.92)")},children:[(0,h.jsx)(c.EY,{className:"shop-card-name",children:s.name}),(0,h.jsxs)(c.EY,{className:"shop-card-price",children:["\xa5",s.price]})]})]},s.id)})}),(0,h.jsx)(c.Ss,{style:{height:"160px"}})]})})}var m={navigationStyle:"custom"};Page((0,n.createPageConfig)(p,"pages/shop/index",{root:{cn:[]}},m||{}))}},function(s){var a=function(a){return s(s.s=a)};s.O(0,[907,96,76],function(){return a(6296)});s.O()}]);
|
||||
"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[205],{6296:function(s,e,a){var n=a(7842),c=a(118),o=a(758),i=a.n(o),r=a(9703),l=a(9201),d=a(5414),t=a(9674),h=a(5234),p=a(4848);function m(){var s=(0,r.wR)(),e=s.resolvedTheme,a=(0,l.c)();(0,d.l)(e);var n=function(s){i().navigateTo({url:"/pages/shop/detail/index?id=".concat(s)})};return(0,p.jsxs)(c.Ss,{className:"shop-page theme-".concat(e),children:[(0,p.jsx)(t.A,{}),(0,p.jsxs)(c.Ss,{className:"shop-list",children:[(0,p.jsxs)(c.Ss,{className:"shop-header",style:{paddingTop:"".concat(a.headerPaddingTop,"px")},children:[(0,p.jsx)(c.EY,{className:"shop-header-title",children:"\u667a\u7ed8\u7cbe\u9009"}),(0,p.jsx)(c.EY,{className:"shop-header-sub",children:"\u6fc0\u5149\u5fae\u96d5\u5b9a\u5236\u597d\u7269"})]}),(0,p.jsx)(c.Ss,{className:"shop-grid",children:h.zv.map(function(s){var e,a,o,i;return(0,p.jsxs)(c.Ss,{className:"shop-card",onTap:function(){return n(s.id)},children:[(0,p.jsx)(c.Ss,{className:"shop-card-img-wrap",children:(0,p.jsx)(c._V,{className:"shop-card-img",src:(null===(e=s.images)||void 0===e?void 0:e[0])||s.iconImg||"",mode:"aspectFill",lazyLoad:!0})}),(0,p.jsxs)(c.Ss,{className:"shop-card-info",style:{backgroundColor:"rgba(".concat((null===(a=s.tone)||void 0===a?void 0:a[0])||28,", ").concat((null===(o=s.tone)||void 0===o?void 0:o[1])||22,", ").concat((null===(i=s.tone)||void 0===i?void 0:i[2])||18,", 0.92)")},children:[(0,p.jsx)(c.EY,{className:"shop-card-name",children:s.name}),(0,p.jsxs)(c.EY,{className:"shop-card-price",children:["\xa5",s.price]})]})]},s.id)})}),(0,p.jsx)(c.Ss,{style:{height:"160px"}})]})]})}var u={navigationStyle:"custom",enablePageMeta:!0};Page((0,n.createPageConfig)(m,"pages/shop/index",{root:{cn:[]}},u||{}))}},function(s){var e=function(e){return s(s.s=e)};s.O(0,[907,96,76],function(){return e(6296)});s.O()}]);
|
||||
Vendored
+4
@@ -1,2 +1,6 @@
|
||||
<import src="../../base.wxml"/>
|
||||
<wxs module="xs" src="../../utils.wxs" />
|
||||
<page-meta data-sid="{{pageMeta.sid}}" background-text-style="{{pageMeta.p3}}" background-color="{{pageMeta.p0}}" background-color-top="{{pageMeta.p2}}" background-color-bottom="{{pageMeta.p1}}" root-background-color="{{pageMeta.p6}}" scroll-top="{{xs.b(pageMeta.p9,'')}}" scroll-duration="{{xs.b(pageMeta.p8,300)}}" page-style="{{xs.b(pageMeta.p5,'')}}" root-font-size="{{xs.b(pageMeta.p7,'')}}" page-orientation="{{xs.b(pageMeta.p4,'')}}" bindresize="eh" bindscroll="eh" bindscrolldone="eh" style="{{pageMeta.st}}" class="{{pageMeta.cl}}" bindtap="eh" >
|
||||
<navigation-bar title="{{navigationBar.p5}}" loading="{{xs.b(navigationBar.p4,false)}}" front-color="{{xs.b(navigationBar.p3,'#000000')}}" background-color="{{navigationBar.p0}}" color-animation-duration="{{xs.b(navigationBar.p1,0)}}" color-animation-timing-func="{{xs.b(navigationBar.p2,'linear')}}" style="{{navigationBar.st}}" class="{{navigationBar.cl}}" bindtap="eh" />
|
||||
</page-meta>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
Reference in New Issue
Block a user