小程序包大小优化
This commit is contained in:
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 270 KiB |
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 271 KiB |
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 825 KiB |
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 347 KiB |
@@ -11,8 +11,6 @@
|
|||||||
"t-button": "tdesign-miniprogram/button/button",
|
"t-button": "tdesign-miniprogram/button/button",
|
||||||
"t-row": "tdesign-miniprogram/row/row",
|
"t-row": "tdesign-miniprogram/row/row",
|
||||||
"t-col": "tdesign-miniprogram/col/col",
|
"t-col": "tdesign-miniprogram/col/col",
|
||||||
"t-check-tag": "tdesign-miniprogram/check-tag/check-tag",
|
|
||||||
"t-image-viewer": "tdesign-miniprogram/image-viewer/image-viewer",
|
|
||||||
"t-collapse-panel": "tdesign-miniprogram/collapse-panel/collapse-panel"
|
"t-collapse-panel": "tdesign-miniprogram/collapse-panel/collapse-panel"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,6 @@
|
|||||||
"t-col": "tdesign-miniprogram/col/col",
|
"t-col": "tdesign-miniprogram/col/col",
|
||||||
"t-divider": "tdesign-miniprogram/divider/divider",
|
"t-divider": "tdesign-miniprogram/divider/divider",
|
||||||
"t-avatar": "tdesign-miniprogram/avatar/avatar",
|
"t-avatar": "tdesign-miniprogram/avatar/avatar",
|
||||||
"t-empty": "tdesign-miniprogram/empty/empty",
|
"t-empty": "tdesign-miniprogram/empty/empty"
|
||||||
"t-avatar-group": "tdesign-miniprogram/avatar-group/avatar-group"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6,7 +6,6 @@
|
|||||||
"t-upload": "tdesign-miniprogram/upload/upload",
|
"t-upload": "tdesign-miniprogram/upload/upload",
|
||||||
"t-input": "tdesign-miniprogram/input/input",
|
"t-input": "tdesign-miniprogram/input/input",
|
||||||
"t-tag": "tdesign-miniprogram/tag/tag",
|
"t-tag": "tdesign-miniprogram/tag/tag",
|
||||||
"t-check-tag": "tdesign-miniprogram/check-tag/check-tag",
|
|
||||||
"t-radio": "tdesign-miniprogram/radio/radio",
|
"t-radio": "tdesign-miniprogram/radio/radio",
|
||||||
"t-icon": "tdesign-miniprogram/icon/icon",
|
"t-icon": "tdesign-miniprogram/icon/icon",
|
||||||
"t-radio-group": "tdesign-miniprogram/radio-group/radio-group"
|
"t-radio-group": "tdesign-miniprogram/radio-group/radio-group"
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
"t-row": "tdesign-miniprogram/row/row",
|
"t-row": "tdesign-miniprogram/row/row",
|
||||||
"t-col": "tdesign-miniprogram/col/col",
|
"t-col": "tdesign-miniprogram/col/col",
|
||||||
"t-divider": "tdesign-miniprogram/divider/divider",
|
"t-divider": "tdesign-miniprogram/divider/divider",
|
||||||
"t-avatar": "tdesign-miniprogram/avatar/avatar",
|
"t-avatar": "tdesign-miniprogram/avatar/avatar"
|
||||||
"t-avatar-group": "tdesign-miniprogram/avatar-group/avatar-group"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -7,7 +7,6 @@
|
|||||||
"t-row": "tdesign-miniprogram/row/row",
|
"t-row": "tdesign-miniprogram/row/row",
|
||||||
"t-col": "tdesign-miniprogram/col/col",
|
"t-col": "tdesign-miniprogram/col/col",
|
||||||
"t-avatar": "tdesign-miniprogram/avatar/avatar",
|
"t-avatar": "tdesign-miniprogram/avatar/avatar",
|
||||||
"t-avatar-group": "tdesign-miniprogram/avatar-group/avatar-group",
|
|
||||||
"t-badge": "tdesign-miniprogram/badge/badge",
|
"t-badge": "tdesign-miniprogram/badge/badge",
|
||||||
"t-dialog": "tdesign-miniprogram/dialog/dialog",
|
"t-dialog": "tdesign-miniprogram/dialog/dialog",
|
||||||
"t-empty": "tdesign-miniprogram/empty/empty",
|
"t-empty": "tdesign-miniprogram/empty/empty",
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
/*
|
|
||||||
* @Author: rileycai
|
|
||||||
* @Date: 2022-03-05 16:47:16
|
|
||||||
* @LastEditTime: 2022-03-05 16:48:32
|
|
||||||
* @LastEditors: rileycai
|
|
||||||
* @Description:
|
|
||||||
* @FilePath: /tdesign-miniprogram-starter/pages/order/order-confirm/components/address-card/index.js
|
|
||||||
*/
|
|
||||||
Component({
|
|
||||||
externalClasses: ['wr-class'],
|
|
||||||
properties: {
|
|
||||||
addressData: {
|
|
||||||
type: Object,
|
|
||||||
value: {},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
onAddressTap() {
|
|
||||||
this.triggerEvent('addressclick');
|
|
||||||
},
|
|
||||||
onAddTap() {
|
|
||||||
this.triggerEvent('addclick');
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"component": true,
|
|
||||||
"usingComponents": {
|
|
||||||
"t-cell": "tdesign-miniprogram/cell/cell",
|
|
||||||
"t-icon": "tdesign-miniprogram/icon/icon"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
<wxs module="utils">
|
|
||||||
var hidePhoneNum = function(array) {
|
|
||||||
if (!array) return;
|
|
||||||
var mphone = array.substring(0, 3) + '****' + array.substring(7);
|
|
||||||
return mphone;
|
|
||||||
}
|
|
||||||
module.exports = {
|
|
||||||
hidePhoneNum:hidePhoneNum
|
|
||||||
}
|
|
||||||
</wxs>
|
|
||||||
|
|
||||||
<view class="address-card wr-class">
|
|
||||||
<t-cell wx:if="{{addressData && addressData.detailAddress}}" bindtap="onAddressTap" hover>
|
|
||||||
<view class="order-address" slot="title">
|
|
||||||
<t-icon name="location" color="#333333" size="40rpx" />
|
|
||||||
<view class="address-content">
|
|
||||||
<view class="title">
|
|
||||||
<view class="address-tag" wx:if="{{addressData.addressTag}}">
|
|
||||||
{{addressData.addressTag}}
|
|
||||||
</view>
|
|
||||||
{{addressData.provinceName}} {{addressData.cityName}} {{addressData.districtName}}
|
|
||||||
</view>
|
|
||||||
<view class="detail">{{addressData.detailAddress}}</view>
|
|
||||||
<view class="info">
|
|
||||||
{{addressData.name}} {{utils.hidePhoneNum(addressData.phone)}}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<t-icon
|
|
||||||
class="address__right"
|
|
||||||
name="chevron-right"
|
|
||||||
color="#BBBBBB"
|
|
||||||
size="40rpx"
|
|
||||||
/>
|
|
||||||
</view>
|
|
||||||
</t-cell>
|
|
||||||
<t-cell
|
|
||||||
wx:else
|
|
||||||
bindtap="onAddTap"
|
|
||||||
title="添加收货地址"
|
|
||||||
hover
|
|
||||||
>
|
|
||||||
<t-icon name="add-circle" slot="left-icon" size="40rpx" />
|
|
||||||
</t-cell>
|
|
||||||
<view class="top-line" />
|
|
||||||
</view>
|
|
||||||
|
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
.address-card {
|
|
||||||
background: #fff;
|
|
||||||
margin: 0rpx 0rpx 24rpx;
|
|
||||||
}
|
|
||||||
.address-card .wr-cell__title {
|
|
||||||
color: var(--text-tertiary);
|
|
||||||
margin-left: 6rpx;
|
|
||||||
}
|
|
||||||
.address-card .order-address {
|
|
||||||
display: flex;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.address-card .order-address .address-content {
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
.order-address .address__right {
|
|
||||||
align-self: center;
|
|
||||||
}
|
|
||||||
.address-card .order-address .title {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
height: 40rpx;
|
|
||||||
font-size: 28rpx;
|
|
||||||
font-weight: normal;
|
|
||||||
color: var(--text-tertiary);
|
|
||||||
line-height: 40rpx;
|
|
||||||
}
|
|
||||||
.address-card .order-address .title .address-tag {
|
|
||||||
width: 52rpx;
|
|
||||||
height: 29rpx;
|
|
||||||
border: 1rpx solid #0091ff;
|
|
||||||
background-color: rgba(122, 167, 251, 0.1);
|
|
||||||
text-align: center;
|
|
||||||
line-height: 29rpx;
|
|
||||||
border-radius: 8rpx;
|
|
||||||
color: #0091ff;
|
|
||||||
font-size: 20rpx;
|
|
||||||
margin-right: 12rpx;
|
|
||||||
}
|
|
||||||
.address-card .order-address .detail {
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
display: -webkit-box;
|
|
||||||
-webkit-box-orient: vertical;
|
|
||||||
-webkit-line-clamp: 2;
|
|
||||||
font-size: 36rpx;
|
|
||||||
font-weight: bold;
|
|
||||||
color: var(--text-primary);
|
|
||||||
line-height: 48rpx;
|
|
||||||
margin: 8rpx 0;
|
|
||||||
}
|
|
||||||
.address-card .order-address .info {
|
|
||||||
height: 40rpx;
|
|
||||||
font-size: 28rpx;
|
|
||||||
font-weight: normal;
|
|
||||||
color: var(--text-primary);
|
|
||||||
line-height: 40rpx;
|
|
||||||
}
|
|
||||||
.address-card .top-line {
|
|
||||||
width: 100%;
|
|
||||||
height: 6rpx;
|
|
||||||
background-color: #fff;
|
|
||||||
background-image: url(https://cdn-we-retail.ym.tencent.com/miniapp/order/stripe.png);
|
|
||||||
background-repeat: repeat-x;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
@@ -10,7 +10,6 @@
|
|||||||
"price": "/components/price/index",
|
"price": "/components/price/index",
|
||||||
"select-coupons": "../components/selectCoupons/selectCoupons",
|
"select-coupons": "../components/selectCoupons/selectCoupons",
|
||||||
"no-goods": "../components/noGoods/noGoods",
|
"no-goods": "../components/noGoods/noGoods",
|
||||||
"t-image": "/components/webp-image/index",
|
"t-image": "/components/webp-image/index"
|
||||||
"address-card": "./components/address-card/index"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user