优化部分代码冗余

master
lemon橪 2021-08-11 10:28:04 +08:00
parent 1fbb43c848
commit 464379178d
8 changed files with 6 additions and 169 deletions

View File

@ -195,7 +195,7 @@ export default {
<style lang="scss">
@import "uview-ui/index.scss";
@import "./static/font/iconfont/iconfont.css";
// ------- x
// #ifdef MP-WEIXIN

42
package-lock.json generated
View File

@ -1,42 +0,0 @@
{
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"async-validator": {
"version": "1.12.2",
"resolved": "https://registry.npmjs.org/async-validator/-/async-validator-1.12.2.tgz",
"integrity": "sha512-57EETfCPFiB7M4QscvQzWSGNsmtkjjzZv318SK1CBlstk+hycV72ocjriMOOM48HjvmoAoJGpJNjC7Z76RlnZA=="
},
"core-js": {
"version": "2.6.11",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.11.tgz",
"integrity": "sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg=="
},
"deepmerge": {
"version": "1.5.2",
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz",
"integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ=="
},
"popper.js": {
"version": "0.6.4",
"resolved": "https://registry.npmjs.org/popper.js/-/popper.js-0.6.4.tgz",
"integrity": "sha1-GDfEdgr1TSuyC2b5wJuSmT2Exik="
},
"uview": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/uview/-/uview-0.1.0.tgz",
"integrity": "sha1-tASc8q1kE1430huAdCtjeoLl7yo=",
"requires": {
"async-validator": "^1.7.1",
"core-js": "^2.4.1",
"deepmerge": "^1.5.0",
"popper.js": "^0.6.4"
}
},
"xmldom": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.3.0.tgz",
"integrity": "sha512-z9s6k3wxE+aZHgXYxSTpGDo7BYOUfJsIRyoZiX6HTjwpwfS2wpQBQKa2fD+ShLyPkqDYo5ud7KitmLZ2Cd6r0g=="
}
}
}

View File

@ -524,16 +524,8 @@
"style": {
"navigationBarTitleText": "我的优惠券",
"app-plus": {
"bounce": "coupon/none",
"titleNView": {
"padding-right": "12",
"buttons": [{
"fontSrc": "/static/font/iconfont/iconfont.ttf",
"text": "\ue608",
"fontSize": "20",
"color": "#FFFFFF"
}]
}
"bounce": "coupon/none"
}
}
},
@ -554,19 +546,8 @@
"path": "coupon/couponCenter",
"style": {
"navigationBarTitleText": "领券中心",
"enablePullDownRefresh": true,
"app-plus": {
"bounce": "none",
"titleNView": {
"padding-right": "12",
"buttons": [{
"fontSrc": "/static/font/iconfont/iconfont.ttf",
"text": "\ue608",
"fontSize": "20",
"color": "#FFFFFF"
}]
}
}
"enablePullDownRefresh": true
}
},
{

View File

@ -47,7 +47,7 @@
<text class="text-2" v-if="coupon.used_status == 1"></text>
</view>
<image class="no-icon" v-if="navIndex == 1" src="@/static/img/used.png"></image>
<image class="no-icon" v-if="navIndex == 2" src="@/pages/floor/imgs/overdue.png"></image>
<image class="no-icon" v-if="navIndex == 2" src="@/static/img/overdue.png"></image>
<view class="receive" v-if="navIndex == 0" @click="useItNow(coupon)">
<text>立即</text><br />
<text>使用</text>

View File

@ -1,102 +0,0 @@
@font-face {
font-family: 'alifont'; /* project id 1968162 */
src: url('https://at.alicdn.com/t/font_1968162_yzlbnwaczb9.eot');
src: url('https://at.alicdn.com/t/font_1968162_yzlbnwaczb9.eot?#iefix') format('embedded-opentype'),
url('https://at.alicdn.com/t/font_1968162_yzlbnwaczb9.woff2') format('woff2'),
url('https://at.alicdn.com/t/font_1968162_yzlbnwaczb9.woff') format('woff'),
url('https://at.alicdn.com/t/font_1968162_yzlbnwaczb9.ttf') format('truetype'),
url('https://at.alicdn.com/t/font_1968162_yzlbnwaczb9.svg#iconfont') format('svg');
}
.alifont {
font-family: "alifont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-setting:before {
content: "\e710";
}
.icon-gouwuche1:before {
content: "\e60d";
}
.icon-bianji-copy:before {
content: "\e600";
}
.icon-weizhi:before {
content: "\e657";
}
.icon-xuanzhong:before {
content: "\e672";
}
.icon-lajitong:before {
content: "\e615";
}
.icon-zhongping1:before {
content: "\e658";
}
.icon-haoping1:before {
content: "\e60c";
}
.icon-chaping:before {
content: "\e7cb";
}
.icon-zu1056:before {
content: "\e602";
}
.icon-zu1057:before {
content: "\e605";
}
.icon-zu1058:before {
content: "\e606";
}
.icon-zu1059:before {
content: "\e607";
}
.icon-zu1055:before {
content: "\e60b";
}
.icon-zu7121:before {
content: "\e62c";
}
.icon-zu712:before {
content: "\e601";
}
.icon-search:before {
content: "\e604";
}
.icon-lujing94:before {
content: "\e603";
}
.icon-wenhao:before {
content: "\e608";
}
.icon-wenhao-copy:before {
content: "\e609";
}
.icon-wenhao-copy-copy:before {
content: "\e60a";
}

Binary file not shown.

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB