From 7f4920b35f58cbd6db8c6cdf00c79abe37f3dd51 Mon Sep 17 00:00:00 2001
From: xpz2018 <107107461@qq.com>
Date: Mon, 13 Apr 2020 11:54:23 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E4=BD=93=E6=96=87=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app.js | 6 ++++++
pages/mall/page-list/index.wxml | 4 ++--
pages/mall/page-list/index.wxss | 15 +++++++++++++++
3 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/app.js b/app.js
index 1ff227d..77ce278 100644
--- a/app.js
+++ b/app.js
@@ -16,6 +16,12 @@ App({
} else {
this.httpUrl = 'https://api-test.qniao.cn'
}
+ wx.loadFontFace({
+ family: 'DINAlternate',
+ source: 'url("https://medou.oss-cn-shenzhen.aliyuncs.com/ttf/DIN-BoldAlternate.otf")',
+ success: function (res) {
+ }
+ })
wx.getSystemInfo({
success: e => {
this.globalData.StatusBar = e.statusBarHeight;
diff --git a/pages/mall/page-list/index.wxml b/pages/mall/page-list/index.wxml
index 4c9c61b..6983231 100644
--- a/pages/mall/page-list/index.wxml
+++ b/pages/mall/page-list/index.wxml
@@ -1,5 +1,5 @@
-
+
@@ -12,7 +12,7 @@
{{item.outline}}
- {{item.summary}}
+ {{item.summary}}
¥{{item.price}}
diff --git a/pages/mall/page-list/index.wxss b/pages/mall/page-list/index.wxss
index 7c2d24e..94646bb 100644
--- a/pages/mall/page-list/index.wxss
+++ b/pages/mall/page-list/index.wxss
@@ -31,6 +31,21 @@
}
.page-outline {
+ margin-top: 8rpx;
+ font-size: 10px;
+ font-family: PingFang-SC-Regular, PingFang-SC;
+ font-weight: 400;
+ color: rgba(51, 51, 51, 1);
+ display: -webkit-box;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-wrap: break-word;
+ white-space: normal !important;
+ -webkit-line-clamp: 1;
+ -webkit-box-orient: vertical;
+}
+
+.page-summary {
margin-top: 8rpx;
font-size: 10px;
font-family: PingFang-SC-Regular, PingFang-SC;