diff --git a/src/mockData/benefitList.js b/src/mockData/benefitList.js new file mode 100644 index 0000000000000000000000000000000000000000..cc16f39e8926030c3a157b01830b0e340a716e76 --- /dev/null +++ b/src/mockData/benefitList.js @@ -0,0 +1,66 @@ +export const benefitList = [ + { + "icon": "https://s3-gz01.didistatic.com/freight-web-v3/driver-client-page/driverGuarantee/icon-chong-feng-yi.png", + "label": "限时送", + "title": "头盔", + "uniqueId": "6929_3_612118_6497_21337", + "desc": "头盔兑换券" + }, + { + "icon": "https://s3-gz01.didistatic.com/freight-web-v3/driver-client-page/driverGuarantee/icon-chong-feng-yi.png", + "label": "限时送", + "title": "配送箱", + "uniqueId": "6929_3_612118_6497_21339", + "desc": "配送箱兑换券" + }, + { + "icon": "https://s3-gz01.didistatic.com/freight-web-v3/driver-client-page/driverGuarantee/icon-xian-jin-fan-xian.png", + "title": "100元现金返现", + "uniqueId": "6929_3_612125_6497_-999", + "desc": "专属奖励任务" + }, + { + "icon": "https://s3-gz01.didistatic.com/freight-web-v3/driver-client-page/driverGuarantee/icon-dan-dan-fan-li.png", + "label": "单单享", + "title": "10天单单返利", + "uniqueId": "6929_3_612111_6497_-999", + "desc": "单单多赚50%" + }, + { + "icon": "https://s3-gz01.didistatic.com/freight-web-v3/driver-client-page/driverGuarantee/icon-mian-chou-cheng.png", + "label": "免抽成", + "title": "1张免抽成卡", + "uniqueId": "6929_3_612115_6497_-999", + "desc": "0抽成,赚更多" + }, + { + "icon": "https://s3-gz01.didistatic.com/freight-web-v3/driver-client-page/driverGuarantee/icon-zeng-feng-shou-ka.png", + "title": "赠“1号PLUS”周卡", + "uniqueId": "6929_1_-999_6497_-999", + "desc": "能量值+50" + }, + { + "icon": "https://s3-gz01.didistatic.com/freight-web-v3/driver-client-page/driverGuarantee/icon-you-xian-qiang-dan.png", + "title": "2张优先抢单卡", + "uniqueId": "6929_3_612124_6497_-999", + "desc": "抢单成功率翻倍" + }, + { + "icon": "https://s3-gz01.didistatic.com/freight-web-v3/driver-client-page/driverGuarantee/icon-neng-liang-bao-hu.png", + "title": "2天能量值保护", + "uniqueId": "6929_3_612117_6497_-999", + "desc": "能量值+100,只增不扣" + }, + { + "icon": "https://s3-gz01.didistatic.com/freight-web-v3/driver-client-page/driverGuarantee/icon-wu-xian-zuo-dan.png", + "title": "无限做单", + "uniqueId": "6929_3_612119_6497_-999", + "desc": "做单无限制" + }, + { + "icon": "https://s3-gz01.didistatic.com/freight-web-v3/driver-client-page/driverGuarantee/icon-zi-dong-qiang-dan.png", + "title": "2张自动抢单", + "uniqueId": "6929_3_612128_6497_-999", + "desc": "自动抢单省心省力" + } +] \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 6db9b7982e8e0b88992d974f2fa311ac210096de..11cfccff5b225c3607675508ab8d006b92f38ef7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -3,7 +3,8 @@ import Home from '../views/Home.vue'; import VoucherNormal from '../views/VoucherNormal/index.vue'; import ExportFile from '../views/ExportFile/index.vue'; import Sortable from '../views/Sortable/index.vue'; -import Anchor from '../views/Anchor/index.vue'; +// import Anchor from '../views/Anchor/index.vue'; +import SameHeightPeers from '../views/SameHeightPeers/index.vue'; const routes = [ { @@ -26,10 +27,15 @@ const routes = [ name: 'Sortable', component: Sortable, }, + // { + // path: '/Anchor', + // name: 'Anchor', + // component: Anchor, + // }, { - path: '/Anchor', - name: 'Anchor', - component: Anchor, + path: '/SameHeightPeers', + name: 'SameHeightPeers', + component: SameHeightPeers, }, ]; diff --git a/src/views/Experience/css-scene.md b/src/views/Experience/css-scene.md index 1d68e8ee4bbbf7a5b73aba31408354bedd34c077..d2fa1eb03ccc59eeb30ff1675a55de4c39edd290 100644 --- a/src/views/Experience/css-scene.md +++ b/src/views/Experience/css-scene.md @@ -7,3 +7,5 @@ -- 使用flex-end结合margin-bottom实现 # 权益卡片:有限空间内,主副标题长度不确定且无法限制,如何保证上下边距不变,且内容显示完整 +解决方案:使用flex布局 + 高度由内容撑开方式 +-- flex布局可以使同行的卡片高度保持一致 \ No newline at end of file diff --git a/src/views/Home.vue b/src/views/Home.vue index 90b1d20b118d2eea9fa9672d285787c61043cde3..1edb84f6e80178150b9137eee12b48251b2f0fbe 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -4,7 +4,7 @@ - + + \ No newline at end of file diff --git a/src/views/SameHeightPeers/index.vue b/src/views/SameHeightPeers/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..fb53d6324a11c5f271e85e53642f4697353b0738 --- /dev/null +++ b/src/views/SameHeightPeers/index.vue @@ -0,0 +1,25 @@ + + + \ No newline at end of file