前端小程序
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/arrow.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 4.5 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/back2.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 1.2 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/beautiful.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 1.6 KiB |
@@ -0,0 +1,363 @@
|
||||
(function(window, document, exportName, undefined) {
|
||||
"use strict";
|
||||
|
||||
var isMultiTouch = false;
|
||||
var multiTouchStartPos;
|
||||
var eventTarget;
|
||||
var touchElements = {};
|
||||
|
||||
// polyfills
|
||||
if(!document.createTouch) {
|
||||
document.createTouch = function(view, target, identifier, pageX, pageY, screenX, screenY, clientX, clientY) {
|
||||
// auto set
|
||||
if(clientX == undefined || clientY == undefined) {
|
||||
clientX = pageX - window.pageXOffset;
|
||||
clientY = pageY - window.pageYOffset;
|
||||
}
|
||||
|
||||
return new Touch(target, identifier, {
|
||||
pageX: pageX,
|
||||
pageY: pageY,
|
||||
screenX: screenX,
|
||||
screenY: screenY,
|
||||
clientX: clientX,
|
||||
clientY: clientY
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
if(!document.createTouchList) {
|
||||
document.createTouchList = function() {
|
||||
var touchList = new TouchList();
|
||||
for (var i = 0; i < arguments.length; i++) {
|
||||
touchList[i] = arguments[i];
|
||||
}
|
||||
touchList.length = arguments.length;
|
||||
return touchList;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* create an touch point
|
||||
* @constructor
|
||||
* @param target
|
||||
* @param identifier
|
||||
* @param pos
|
||||
* @param deltaX
|
||||
* @param deltaY
|
||||
* @returns {Object} touchPoint
|
||||
*/
|
||||
function Touch(target, identifier, pos, deltaX, deltaY) {
|
||||
deltaX = deltaX || 0;
|
||||
deltaY = deltaY || 0;
|
||||
|
||||
this.identifier = identifier;
|
||||
this.target = target;
|
||||
this.clientX = pos.clientX + deltaX;
|
||||
this.clientY = pos.clientY + deltaY;
|
||||
this.screenX = pos.screenX + deltaX;
|
||||
this.screenY = pos.screenY + deltaY;
|
||||
this.pageX = pos.pageX + deltaX;
|
||||
this.pageY = pos.pageY + deltaY;
|
||||
}
|
||||
|
||||
/**
|
||||
* create empty touchlist with the methods
|
||||
* @constructor
|
||||
* @returns touchList
|
||||
*/
|
||||
function TouchList() {
|
||||
var touchList = [];
|
||||
|
||||
touchList.item = function(index) {
|
||||
return this[index] || null;
|
||||
};
|
||||
|
||||
// specified by Mozilla
|
||||
touchList.identifiedTouch = function(id) {
|
||||
return this[id + 1] || null;
|
||||
};
|
||||
|
||||
return touchList;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Simple trick to fake touch event support
|
||||
* this is enough for most libraries like Modernizr and Hammer
|
||||
*/
|
||||
function fakeTouchSupport() {
|
||||
var objs = [window, document.documentElement];
|
||||
var props = ['ontouchstart', 'ontouchmove', 'ontouchcancel', 'ontouchend'];
|
||||
|
||||
for(var o=0; o<objs.length; o++) {
|
||||
for(var p=0; p<props.length; p++) {
|
||||
if(objs[o] && objs[o][props[p]] == undefined) {
|
||||
objs[o][props[p]] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* we don't have to emulate on a touch device
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function hasTouchSupport() {
|
||||
return ("ontouchstart" in window) || // touch events
|
||||
(window.Modernizr && window.Modernizr.touch) || // modernizr
|
||||
(navigator.msMaxTouchPoints || navigator.maxTouchPoints) > 2; // pointer events
|
||||
}
|
||||
|
||||
/**
|
||||
* disable mouseevents on the page
|
||||
* @param ev
|
||||
*/
|
||||
function preventMouseEvents(ev) {
|
||||
// 注释启用默认事件
|
||||
// ev.preventDefault();
|
||||
// ev.stopPropagation();
|
||||
}
|
||||
|
||||
/**
|
||||
* only trigger touches when the left mousebutton has been pressed
|
||||
* @param touchType
|
||||
* @returns {Function}
|
||||
*/
|
||||
function onMouse(touchType) {
|
||||
return function(ev) {
|
||||
// prevent mouse events
|
||||
preventMouseEvents(ev);
|
||||
|
||||
if (ev.which !== 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
// The EventTarget on which the touch point started when it was first placed on the surface,
|
||||
// even if the touch point has since moved outside the interactive area of that element.
|
||||
// also, when the target doesnt exist anymore, we update it
|
||||
if (ev.type == 'mousedown' || !eventTarget || (eventTarget && !eventTarget.dispatchEvent)) {
|
||||
eventTarget = ev.target;
|
||||
}
|
||||
|
||||
// shiftKey has been lost, so trigger a touchend
|
||||
if (isMultiTouch && !ev.shiftKey) {
|
||||
triggerTouch('touchend', ev);
|
||||
isMultiTouch = false;
|
||||
}
|
||||
|
||||
triggerTouch(touchType, ev);
|
||||
|
||||
// we're entering the multi-touch mode!
|
||||
if (!isMultiTouch && ev.shiftKey) {
|
||||
isMultiTouch = true;
|
||||
multiTouchStartPos = {
|
||||
pageX: ev.pageX,
|
||||
pageY: ev.pageY,
|
||||
clientX: ev.clientX,
|
||||
clientY: ev.clientY,
|
||||
screenX: ev.screenX,
|
||||
screenY: ev.screenY
|
||||
};
|
||||
triggerTouch('touchstart', ev);
|
||||
}
|
||||
|
||||
// reset
|
||||
if (ev.type == 'mouseup') {
|
||||
multiTouchStartPos = null;
|
||||
isMultiTouch = false;
|
||||
eventTarget = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* trigger a touch event
|
||||
* @param eventName
|
||||
* @param mouseEv
|
||||
*/
|
||||
function triggerTouch(eventName, mouseEv) {
|
||||
var touchEvent = document.createEvent('Event');
|
||||
touchEvent.initEvent(eventName, true, true);
|
||||
|
||||
touchEvent.altKey = mouseEv.altKey;
|
||||
touchEvent.ctrlKey = mouseEv.ctrlKey;
|
||||
touchEvent.metaKey = mouseEv.metaKey;
|
||||
touchEvent.shiftKey = mouseEv.shiftKey;
|
||||
|
||||
touchEvent.touches = getActiveTouches(mouseEv, eventName);
|
||||
touchEvent.targetTouches = getActiveTouches(mouseEv, eventName);
|
||||
touchEvent.changedTouches = getChangedTouches(mouseEv, eventName);
|
||||
|
||||
eventTarget.dispatchEvent(touchEvent);
|
||||
}
|
||||
|
||||
/**
|
||||
* create a touchList based on the mouse event
|
||||
* @param mouseEv
|
||||
* @returns {TouchList}
|
||||
*/
|
||||
function createTouchList(mouseEv) {
|
||||
var touchList = new TouchList();
|
||||
|
||||
if (isMultiTouch) {
|
||||
var f = TouchEmulator.multiTouchOffset;
|
||||
var deltaX = multiTouchStartPos.pageX - mouseEv.pageX;
|
||||
var deltaY = multiTouchStartPos.pageY - mouseEv.pageY;
|
||||
|
||||
touchList.push(new Touch(eventTarget, 1, multiTouchStartPos, (deltaX*-1) - f, (deltaY*-1) + f));
|
||||
touchList.push(new Touch(eventTarget, 2, multiTouchStartPos, deltaX+f, deltaY-f));
|
||||
} else {
|
||||
touchList.push(new Touch(eventTarget, 1, mouseEv, 0, 0));
|
||||
}
|
||||
|
||||
return touchList;
|
||||
}
|
||||
|
||||
/**
|
||||
* receive all active touches
|
||||
* @param mouseEv
|
||||
* @returns {TouchList}
|
||||
*/
|
||||
function getActiveTouches(mouseEv, eventName) {
|
||||
// empty list
|
||||
if (mouseEv.type == 'mouseup') {
|
||||
return new TouchList();
|
||||
}
|
||||
|
||||
var touchList = createTouchList(mouseEv);
|
||||
if(isMultiTouch && mouseEv.type != 'mouseup' && eventName == 'touchend') {
|
||||
touchList.splice(1, 1);
|
||||
}
|
||||
return touchList;
|
||||
}
|
||||
|
||||
/**
|
||||
* receive a filtered set of touches with only the changed pointers
|
||||
* @param mouseEv
|
||||
* @param eventName
|
||||
* @returns {TouchList}
|
||||
*/
|
||||
function getChangedTouches(mouseEv, eventName) {
|
||||
var touchList = createTouchList(mouseEv);
|
||||
|
||||
// we only want to return the added/removed item on multitouch
|
||||
// which is the second pointer, so remove the first pointer from the touchList
|
||||
//
|
||||
// but when the mouseEv.type is mouseup, we want to send all touches because then
|
||||
// no new input will be possible
|
||||
if(isMultiTouch && mouseEv.type != 'mouseup' &&
|
||||
(eventName == 'touchstart' || eventName == 'touchend')) {
|
||||
touchList.splice(0, 1);
|
||||
}
|
||||
|
||||
return touchList;
|
||||
}
|
||||
|
||||
/**
|
||||
* show the touchpoints on the screen
|
||||
*/
|
||||
function showTouches(ev) {
|
||||
var touch, i, el, styles;
|
||||
|
||||
// first all visible touches
|
||||
for(i = 0; i < ev.touches.length; i++) {
|
||||
touch = ev.touches[i];
|
||||
el = touchElements[touch.identifier];
|
||||
if(!el) {
|
||||
el = touchElements[touch.identifier] = document.createElement("div");
|
||||
document.body.appendChild(el);
|
||||
}
|
||||
|
||||
styles = TouchEmulator.template(touch);
|
||||
for(var prop in styles) {
|
||||
el.style[prop] = styles[prop];
|
||||
}
|
||||
}
|
||||
|
||||
// remove all ended touches
|
||||
if(ev.type == 'touchend' || ev.type == 'touchcancel') {
|
||||
for(i = 0; i < ev.changedTouches.length; i++) {
|
||||
touch = ev.changedTouches[i];
|
||||
el = touchElements[touch.identifier];
|
||||
if(el) {
|
||||
el.parentNode.removeChild(el);
|
||||
delete touchElements[touch.identifier];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TouchEmulator initializer
|
||||
*/
|
||||
function TouchEmulator() {
|
||||
if (hasTouchSupport()) {
|
||||
return;
|
||||
}
|
||||
|
||||
fakeTouchSupport();
|
||||
|
||||
window.addEventListener("mousedown", onMouse('touchstart'), true);
|
||||
window.addEventListener("mousemove", onMouse('touchmove'), true);
|
||||
window.addEventListener("mouseup", onMouse('touchend'), true);
|
||||
|
||||
window.addEventListener("mouseenter", preventMouseEvents, true);
|
||||
window.addEventListener("mouseleave", preventMouseEvents, true);
|
||||
window.addEventListener("mouseout", preventMouseEvents, true);
|
||||
window.addEventListener("mouseover", preventMouseEvents, true);
|
||||
|
||||
// it uses itself!
|
||||
window.addEventListener("touchstart", showTouches, true);
|
||||
window.addEventListener("touchmove", showTouches, true);
|
||||
window.addEventListener("touchend", showTouches, true);
|
||||
window.addEventListener("touchcancel", showTouches, true);
|
||||
}
|
||||
|
||||
// start distance when entering the multitouch mode
|
||||
TouchEmulator.multiTouchOffset = 75;
|
||||
|
||||
/**
|
||||
* css template for the touch rendering
|
||||
* @param touch
|
||||
* @returns object
|
||||
*/
|
||||
TouchEmulator.template = function(touch) {
|
||||
var size = 0;
|
||||
var transform = 'translate('+ (touch.clientX-(size/2)) +'px, '+ (touch.clientY-(size/2)) +'px)';
|
||||
return {
|
||||
position: 'fixed',
|
||||
left: 0,
|
||||
top: 0,
|
||||
background: '#fff',
|
||||
border: 'solid 1px #999',
|
||||
opacity: .6,
|
||||
borderRadius: '100%',
|
||||
height: size + 'px',
|
||||
width: size + 'px',
|
||||
padding: 0,
|
||||
margin: 0,
|
||||
display: 'block',
|
||||
overflow: 'hidden',
|
||||
pointerEvents: 'none',
|
||||
webkitUserSelect: 'none',
|
||||
mozUserSelect: 'none',
|
||||
userSelect: 'none',
|
||||
webkitTransform: transform,
|
||||
mozTransform: transform,
|
||||
transform: transform,
|
||||
zIndex: 100
|
||||
}
|
||||
};
|
||||
|
||||
// export
|
||||
if (typeof define == "function" && define.amd) {
|
||||
define(function() {
|
||||
return TouchEmulator;
|
||||
});
|
||||
} else if (typeof module != "undefined" && module.exports) {
|
||||
module.exports = TouchEmulator;
|
||||
} else {
|
||||
window[exportName] = TouchEmulator;
|
||||
}
|
||||
})(window, document, "TouchEmulator");
|
||||
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/countdown.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 1.2 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/icon-3.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 1.3 KiB |
@@ -0,0 +1,13 @@
|
||||
# 品牌 Logo(CDN 托管)
|
||||
|
||||
小程序**不再打包**大图,首页 Logo 从后端 CDN 加载:
|
||||
|
||||
`https://xgsc.gynhc.com/uploads/demo/xiongge/xiongge-brand-logo.png`
|
||||
|
||||
源文件请放在后端目录,本地压缩:
|
||||
|
||||
```bash
|
||||
python public/uploads/demo/xiongge/prepare_brand_logo.py
|
||||
```
|
||||
|
||||
压缩后约 33KB(192×128),原 1536×1024 约 1.3MB 勿放入小程序包。
|
||||
|
之后 宽度: | 高度: | 大小: 8.5 KiB |
|
之后 宽度: | 高度: | 大小: 80 KiB |
|
之后 宽度: | 高度: | 大小: 56 KiB |
|
之后 宽度: | 高度: | 大小: 46 KiB |
|
之后 宽度: | 高度: | 大小: 205 KiB |
@@ -0,0 +1,112 @@
|
||||
"""Generate tab bar icons for 雄戈小酒 mini-program."""
|
||||
from PIL import Image, ImageDraw
|
||||
|
||||
SIZE = 162 # 2x for retina (display as 81px)
|
||||
CENTER = SIZE // 2
|
||||
INACTIVE = (187, 187, 187, 255) # #BBBBBB
|
||||
ACTIVE = (22, 119, 255, 255) # #1677FF 商务蓝
|
||||
STROKE = 6
|
||||
OUT_DIR = __file__.replace("generate_tabbar_icons.py", "")
|
||||
|
||||
|
||||
def new_canvas():
|
||||
return Image.new("RGBA", (SIZE, SIZE), (0, 0, 0, 0))
|
||||
|
||||
|
||||
def draw_home(draw, color, filled=False):
|
||||
roof = [(CENTER - 38, 62), (CENTER, 34), (CENTER + 38, 62)]
|
||||
if filled:
|
||||
draw.polygon(roof, fill=color)
|
||||
draw.rectangle([CENTER - 30, 62, CENTER + 30, 118], fill=color)
|
||||
else:
|
||||
draw.line([*roof, roof[0]], fill=color, width=STROKE, joint="curve")
|
||||
draw.line(
|
||||
[CENTER - 30, 62, CENTER + 30, 62, CENTER + 30, 118, CENTER - 30, 118, CENTER - 30, 62],
|
||||
fill=color,
|
||||
width=STROKE,
|
||||
joint="curve",
|
||||
)
|
||||
draw.line(
|
||||
[CENTER - 12, 82, CENTER - 12, 118, CENTER + 12, 118, CENTER + 12, 82],
|
||||
fill=color,
|
||||
width=STROKE,
|
||||
joint="curve",
|
||||
)
|
||||
|
||||
|
||||
def draw_category(draw, color, filled=False):
|
||||
gap = 10
|
||||
cell = 34
|
||||
x0 = CENTER - cell - gap // 2
|
||||
y0 = CENTER - cell - gap // 2
|
||||
rects = [
|
||||
(x0, y0, x0 + cell, y0 + cell),
|
||||
(x0 + cell + gap, y0, x0 + cell * 2 + gap, y0 + cell),
|
||||
(x0, y0 + cell + gap, x0 + cell, y0 + cell * 2 + gap),
|
||||
(x0 + cell + gap, y0 + cell + gap, x0 + cell * 2 + gap, y0 + cell * 2 + gap),
|
||||
]
|
||||
r = 8
|
||||
for rect in rects:
|
||||
if filled:
|
||||
draw.rounded_rectangle(rect, radius=r, fill=color)
|
||||
else:
|
||||
draw.rounded_rectangle(rect, radius=r, outline=color, width=STROKE)
|
||||
|
||||
|
||||
def draw_cart(draw, color, filled=False):
|
||||
top_y = 58
|
||||
draw.line([(48, top_y), (54, 46), (108, 46), (114, top_y)], fill=color, width=STROKE, joint="curve")
|
||||
if filled:
|
||||
draw.polygon([(52, top_y), (110, top_y), (102, 108), (60, 108)], fill=color)
|
||||
draw.ellipse([62, 96, 76, 110], fill=(0, 0, 0, 0))
|
||||
draw.ellipse([86, 96, 100, 110], fill=(0, 0, 0, 0))
|
||||
else:
|
||||
draw.line([52, top_y, 110, top_y, 102, 108, 60, 108, 52, top_y], fill=color, width=STROKE, joint="curve")
|
||||
draw.ellipse([62, 96, 76, 110], outline=color, width=STROKE)
|
||||
draw.ellipse([86, 96, 100, 110], outline=color, width=STROKE)
|
||||
|
||||
|
||||
def draw_user(draw, color, filled=False):
|
||||
head = [CENTER - 18, 48, CENTER + 18, 84]
|
||||
if filled:
|
||||
draw.ellipse(head, fill=color)
|
||||
draw.polygon([(CENTER - 34, 92), (CENTER + 34, 92), (CENTER + 42, 118), (CENTER - 42, 118)], fill=color)
|
||||
else:
|
||||
draw.ellipse(head, outline=color, width=STROKE)
|
||||
draw.line(
|
||||
[CENTER - 34, 92, CENTER + 34, 92, CENTER + 42, 118, CENTER - 42, 118, CENTER - 34, 92],
|
||||
fill=color,
|
||||
width=STROKE,
|
||||
joint="curve",
|
||||
)
|
||||
|
||||
|
||||
DRAWERS = {
|
||||
"home": draw_home,
|
||||
"category": draw_category,
|
||||
"cart": draw_cart,
|
||||
"personal": draw_user,
|
||||
}
|
||||
|
||||
NAMES = {
|
||||
"home": ("tabbar_home.png", "tabbar_home1.png"),
|
||||
"category": ("tabbar_category.png", "tabbar_category1.png"),
|
||||
"cart": ("tabbar_cart.png", "tabbar_cart1.png"),
|
||||
"personal": ("tabbar_personal.png", "tabbar_personal1.png"),
|
||||
}
|
||||
|
||||
|
||||
def save_icon(key, color, filled, filename):
|
||||
img = new_canvas()
|
||||
draw = ImageDraw.Draw(img)
|
||||
DRAWERS[key](draw, color, filled=filled)
|
||||
path = OUT_DIR + filename
|
||||
img.save(path, "PNG")
|
||||
print("saved", path)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
for key, (inactive_name, active_name) in NAMES.items():
|
||||
save_icon(key, INACTIVE, False, inactive_name)
|
||||
save_icon(key, ACTIVE, True, active_name)
|
||||
print("Done: 8 tab bar icons generated.")
|
||||
|
之后 宽度: | 高度: | 大小: 567 B |
|
之后 宽度: | 高度: | 大小: 569 B |
|
之后 宽度: | 高度: | 大小: 554 B |
|
之后 宽度: | 高度: | 大小: 523 B |
|
之后 宽度: | 高度: | 大小: 658 B |
|
之后 宽度: | 高度: | 大小: 553 B |
|
之后 宽度: | 高度: | 大小: 650 B |
|
之后 宽度: | 高度: | 大小: 537 B |
|
之后 宽度: | 高度: | 大小: 2.0 KiB |
|
之后 宽度: | 高度: | 大小: 2.0 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/img/fanhui.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 284 B |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/img/fanhui2.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 435 B |
|
之后 宽度: | 高度: | 大小: 892 B |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/img/hd.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 6.0 KiB |
|
之后 宽度: | 高度: | 大小: 1.0 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/img/kaishi.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 20 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/img/meiyan.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 1.2 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/img/paly.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 1.2 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/img/qiehuan.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 1013 B |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/img/stop.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 996 B |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/img/tianjia.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 1.6 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/img/tuichu.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 463 B |
|
之后 宽度: | 高度: | 大小: 459 B |
|
之后 宽度: | 高度: | 大小: 1.0 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/jilu.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 18 KiB |
|
之后 宽度: | 高度: | 大小: 2.3 KiB |
|
之后 宽度: | 高度: | 大小: 1.4 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/live-back.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 1.2 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/live-logo.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 1.9 KiB |
|
之后 宽度: | 高度: | 大小: 2.9 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/live-love.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 2.3 KiB |
|
之后 宽度: | 高度: | 大小: 1.8 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/live-open.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 1.5 KiB |
|
之后 宽度: | 高度: | 大小: 1.5 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/live-video.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 1.2 KiB |
|
之后 宽度: | 高度: | 大小: 2.1 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/live-white.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 1.7 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/meiyan.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 5.6 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/no-shop.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 12 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/qiehuan.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 5.9 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/reversal.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 2.1 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/selecr-my.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 4.8 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/select-chang.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 5.1 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/shanchu.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 5.8 KiB |
3924
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/style/colorui.css
vendored
普通文件
@@ -0,0 +1,95 @@
|
||||
@import 'uview-ui/index.scss';
|
||||
@import 'static/style/colorui.css';
|
||||
@import 'static/font/shopro-icon.css';
|
||||
@import 'uview-ui/iconfont.css';
|
||||
|
||||
/* 字体文件 */
|
||||
@font-face {
|
||||
font-family: OPPOSANS;
|
||||
src: url('~@/static/font/OPPOSANS-M-subfont.ttf');
|
||||
}
|
||||
@font-face {
|
||||
font-family: "wenyue";
|
||||
src: url('https://baiwine.com/assets/fonts/WenYue-XinQingNianTi-NC-W8_1.otf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'neutra';
|
||||
src: url('https://baiwine.com/assets/fonts/NeutraTextDemiAlt.otf');
|
||||
}
|
||||
|
||||
.wenyue-font {
|
||||
font-family: 'wenyue';
|
||||
}
|
||||
|
||||
.neutra-font {
|
||||
font-family: 'neutra';
|
||||
}
|
||||
|
||||
.font-OPPOSANS {
|
||||
font-family: OPPOSANS;
|
||||
}
|
||||
page {
|
||||
-webkit-overflow-scrolling: touch; // ios滑动不流畅
|
||||
height: 100%;
|
||||
background: $brand-page-bg;
|
||||
width: 100%;
|
||||
font-size: 30rpx;
|
||||
font-family: OPPOSANS;
|
||||
word-break: break-all; //英文文本不换行
|
||||
white-space: normal;
|
||||
color: $u-main-color;
|
||||
}
|
||||
::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
color: transparent;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.line-gold {
|
||||
color: $brand-gold !important;
|
||||
border-color: $brand-gold !important;
|
||||
}
|
||||
|
||||
.tag-seal {
|
||||
color: $brand-price !important;
|
||||
border-color: $brand-price !important;
|
||||
}
|
||||
|
||||
/* 全局页面布局 — 统一子页风格 */
|
||||
.page_box {
|
||||
background: $brand-page-bg !important;
|
||||
}
|
||||
|
||||
.head_box {
|
||||
background: $brand-page-bg;
|
||||
}
|
||||
|
||||
.foot_box {
|
||||
background: $brand-card-bg;
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
box-shadow: 0 -2rpx 12rpx rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.brand-subpage-footer {
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
|
||||
.brand-page {
|
||||
min-height: 100%;
|
||||
background: $brand-page-bg;
|
||||
}
|
||||
|
||||
.brand-card {
|
||||
background: $brand-card-bg;
|
||||
border-radius: $brand-card-radius;
|
||||
box-shadow: $brand-shadow;
|
||||
}
|
||||
|
||||
.brand-page-content {
|
||||
padding: 0 $brand-page-gutter;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
107
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/style/theme.scss
vendored
普通文件
@@ -0,0 +1,107 @@
|
||||
// 雄戈小酒 - 商务蓝白主题(深蓝 Logo + 商务蓝交互)
|
||||
$brand-navy: #0A2463;
|
||||
$brand-navy-light: #1E3A8A;
|
||||
$brand-primary: #1677FF;
|
||||
$brand-primary-light: #E6F4FF;
|
||||
$brand-primary-dark: #0958D9;
|
||||
$brand-primary-gradient: linear-gradient(90deg, #1677FF, #4096FF);
|
||||
$brand-gold: #1677FF;
|
||||
$brand-gold-light: #E6F4FF;
|
||||
$brand-gold-gradient: linear-gradient(90deg, #1677FF, #4096FF);
|
||||
$brand-header-gradient: linear-gradient(180deg, #0A2463 0%, #1E3A8A 55%, #F5F7FA 100%);
|
||||
$brand-text-on-primary: #FFFFFF;
|
||||
$brand-price: #FF4D4F;
|
||||
$brand-text: #1F2937;
|
||||
$brand-text-muted: #6B7280;
|
||||
$brand-border: #E5E7EB;
|
||||
$brand-page-bg: #F5F7FA;
|
||||
$brand-card-radius: 12rpx;
|
||||
$brand-shadow: 0 4rpx 24rpx rgba(10, 36, 99, 0.06);
|
||||
$brand-tabbar-bg: #FFFFFF;
|
||||
$brand-tabbar-active: #1677FF;
|
||||
$brand-tabbar-active-accent: #1677FF;
|
||||
$brand-tabbar-inactive: #BBBBBB;
|
||||
$brand-page-gutter: 24rpx;
|
||||
$brand-section-gap: 24rpx;
|
||||
$brand-card-bg: #FFFFFF;
|
||||
|
||||
// E-Final 首页专区配色(ui-ux-pro-max Soft UI + 电商绿)
|
||||
$zone-bg-start: #ECFDF5;
|
||||
$zone-bg-end: #F5F7FA;
|
||||
$zone-bg: linear-gradient(165deg, $zone-bg-start 0%, #F0FDF4 48%, $zone-bg-end 100%);
|
||||
$zone-elevation-sm: 0 4rpx 16rpx rgba(15, 23, 42, 0.06);
|
||||
$zone-elevation-md: 0 10rpx 28rpx rgba(15, 23, 42, 0.1);
|
||||
$zone-green-start: #10B981;
|
||||
$zone-green-end: #047857;
|
||||
$zone-green-grad: linear-gradient(152deg, $zone-green-start 0%, $zone-green-end 100%);
|
||||
$zone-orange-start: #F59E0B;
|
||||
$zone-orange-end: #C2410C;
|
||||
$zone-orange-grad: linear-gradient(152deg, $zone-orange-start 0%, $zone-orange-end 100%);
|
||||
$zone-blue-start: #3B82F6;
|
||||
$zone-blue-end: #1D4ED8;
|
||||
$zone-blue-grad: linear-gradient(152deg, $zone-blue-start 0%, $zone-blue-end 100%);
|
||||
$zone-purple-start: #8B5CF6;
|
||||
$zone-purple-end: #6D28D9;
|
||||
$zone-purple-grad: linear-gradient(152deg, $zone-purple-start 0%, $zone-purple-end 100%);
|
||||
$zone-gold: #D97706;
|
||||
$home-header-bg: #FFFFFF;
|
||||
$home-accent: #059669;
|
||||
$home-accent-light: #D1FAE5;
|
||||
$home-icon-bg-green: #D1FAE5;
|
||||
$home-icon-color-green: #059669;
|
||||
$home-icon-bg-orange: #FFEDD5;
|
||||
$home-icon-color-orange: #EA580C;
|
||||
$home-icon-bg-blue: #DBEAFE;
|
||||
$home-icon-color-blue: #1677FF;
|
||||
$home-icon-bg-purple: #EDE9FE;
|
||||
$home-icon-color-purple: #7C3AED;
|
||||
$home-icon-bg-gold: #FEF3C7;
|
||||
$home-icon-color-gold: #D97706;
|
||||
|
||||
@mixin brand-card {
|
||||
background: $brand-card-bg;
|
||||
border-radius: $brand-card-radius;
|
||||
box-shadow: $brand-shadow;
|
||||
}
|
||||
|
||||
@mixin brand-btn-gold {
|
||||
background: $brand-primary-gradient;
|
||||
color: #FFFFFF;
|
||||
border-radius: $brand-card-radius;
|
||||
}
|
||||
|
||||
@mixin brand-btn-primary {
|
||||
background: $brand-primary;
|
||||
color: #FFFFFF;
|
||||
border-radius: $brand-card-radius;
|
||||
}
|
||||
|
||||
.brand-page {
|
||||
min-height: 100%;
|
||||
background: $brand-page-bg;
|
||||
}
|
||||
|
||||
.brand-card {
|
||||
@include brand-card;
|
||||
}
|
||||
|
||||
.brand-btn-gold {
|
||||
@include brand-btn-gold;
|
||||
}
|
||||
|
||||
.brand-btn-primary {
|
||||
@include brand-btn-primary;
|
||||
}
|
||||
|
||||
.brand-price-text {
|
||||
color: $brand-price;
|
||||
}
|
||||
|
||||
.brand-section-gap {
|
||||
margin-bottom: $brand-section-gap;
|
||||
}
|
||||
|
||||
.brand-page-content {
|
||||
padding: 0 $brand-page-gutter;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
之后 宽度: | 高度: | 大小: 26 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/yes.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 3.1 KiB |
二进制
xgsc.gynhc.com_wx/unpackage/dist/build/mp-weixin/static/zhiboshop.png
vendored
普通文件
|
之后 宽度: | 高度: | 大小: 4.9 KiB |