Browse Source

字体文件

master
xpz2018 6 years ago
parent
commit
7f4920b35f
3 changed files with 23 additions and 2 deletions
  1. 6
      app.js
  2. 4
      pages/mall/page-list/index.wxml
  3. 15
      pages/mall/page-list/index.wxss

6
app.js

@ -16,6 +16,12 @@ App({
} else { } else {
this.httpUrl = 'https://api-test.qniao.cn' 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({ wx.getSystemInfo({
success: e => { success: e => {
this.globalData.StatusBar = e.statusBarHeight; this.globalData.StatusBar = e.statusBarHeight;

4
pages/mall/page-list/index.wxml

@ -1,5 +1,5 @@
<view class="flex content" wx:for="{{dataList}}" wx:key="index" data-index="{{index}}" bindtap="lookItem"> <view class="flex content" wx:for="{{dataList}}" wx:key="index" data-index="{{index}}" bindtap="lookItem">
<wux-image width="{{119}}" height="{{119}}" wux-class="page-icon" lazyLoad="true" src="{{item.litimgUrl}}" mode="aspectFill">
<wux-image width="{{120}}" height="{{120}}" wux-class="page-icon" lazyLoad="true" src="{{item.litimgUrl}}" mode="aspectFill">
<view class="image-load" slot="loading"> <view class="image-load" slot="loading">
<text class="icon--refresher"></text> <text class="icon--refresher"></text>
</view> </view>
@ -12,7 +12,7 @@
</view> </view>
<view style="height:50px"> <view style="height:50px">
<view class="page-outline">{{item.outline}}</view> <view class="page-outline">{{item.outline}}</view>
<view class="page-outline" style="margin-top: 8rpx">{{item.summary}}</view>
<view class="page-summary" style="margin-top: 8rpx">{{item.summary}}</view>
</view> </view>
<view class="flex flex-justify" style="align-items:flex-end;height:30px;padding-bottom:3px"> <view class="flex flex-justify" style="align-items:flex-end;height:30px;padding-bottom:3px">
<view class="page-price">¥{{item.price}}</view> <view class="page-price">¥{{item.price}}</view>

15
pages/mall/page-list/index.wxss

@ -31,6 +31,21 @@
} }
.page-outline { .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; margin-top: 8rpx;
font-size: 10px; font-size: 10px;
font-family: PingFang-SC-Regular, PingFang-SC; font-family: PingFang-SC-Regular, PingFang-SC;

Loading…
Cancel
Save