Commit 06025626 by tang

feat: 软件下载【100%】

parent 78e6c793
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<div class="title">{{ item.name }}</div> <div class="title">{{ item.name }}</div>
<div class="price">¥{{ item.price }}</div> <div class="price">¥{{ item.price }}</div>
<div class="desc"> <div class="desc">
<span>{{ item.auth }}</span><span>{{ item.date }}</span><span>{{ item.press }}</span> <span>{{ item.author }}</span><span>{{ item.date }}</span><span>{{ item.press }}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -30,7 +30,19 @@ ...@@ -30,7 +30,19 @@
<p class="desc"> <p class="desc">
{{ item.desc }} {{ item.desc }}
</p> </p>
<div class="download-wrapper"></div> <div class="download-wrapper">
<div v-if="item.android">
<img src="./img/android.png" alt="">
<a target="_blank" :href="item.android">Android</a>
</div>
<div v-if="item.ios">
<img src="./img/ios.png" alt="">
<a target="_blank" :href="item.ios">iphone</a>
</div>
</div>
</div>
<div v-if="item.qrcode" class="qr-code">
<img :src="item.qrcode" alt="">
</div> </div>
</div> </div>
</el-tab-pane> </el-tab-pane>
...@@ -47,38 +59,40 @@ export default { ...@@ -47,38 +59,40 @@ export default {
appList: [ appList: [
{ {
name: '条码追溯', name: '条码追溯',
icon: '', icon: require('./img/barcode-icon.png'),
desc: '', desc: '手机客户端下载',
android: '', android: 'http://www.chinatrace.org/clientDownload.html',
ios: '', ios: 'http://www.chinatrace.org/clientDownload.html',
}, },
{ {
name: '中国物品编码中心', name: '中国物品编码中心',
icon: '', icon: require('./img/bmcode-icon.png'),
desc: '', desc: '手机客户端下载',
android: '', android: '',
ios: '', ios: '',
qrcode: require('./img/bmdownload.jpg'),
}, },
{ {
name: '汉信码生成工具V2.1', name: '汉信码生成工具V2.1',
icon: '', icon: require('./img/hxcode-icon.png'),
desc: '', desc: '生成识读功能',
android: '', // android: 'http://www.gs1cn.org/Manage/down/%E6%B1%89%E4%BF%A1%E7%A0%81%E7%94%9F%E6%88%90%E5%B7%A5%E5%85%B7V2.1.rar',
ios: '', // ios: 'http://www.gs1cn.org/Manage/down/%E6%B1%89%E4%BF%A1%E7%A0%81%E7%94%9F%E6%88%90%E5%B7%A5%E5%85%B7V2.1.rar',
}, },
{ {
name: '条码追溯', name: '条码追溯',
icon: '', icon: require('./img/barcode-icon.png'),
desc: '', desc: '微信小程序',
android: '', android: '',
ios: '', ios: '',
qrcode: require('./img/scan_WXcode.jpg'),
}, },
{ {
name: '一扫通', name: '一扫通',
icon: '', icon: require('./img/sao-icon.png'),
desc: '', desc: '手机客户端下载',
android: '', android: 'http://apk.hiapk.com/appinfo/com.ancc.yst',
ios: '', ios: 'https://itunes.apple.com/cn/app/yi-sao-tong-zui-quan-tiao/id1024471413?mt=8',
}, },
], ],
bookList: [], bookList: [],
...@@ -89,6 +103,20 @@ export default { ...@@ -89,6 +103,20 @@ export default {
}, },
methods: { methods: {
getBooks() { getBooks() {
for (let i = 0; i < 10; ++i) {
this.bookList.push(
{
id: i,
name: '条码小达人',
img:require('./img/5d1d4969-956a-4a85-9631-e45605b0c221.jpg'),
price: 30.00,
author: '张海成 张铎',
date: '2010.1',
press: '武汉大学出版社'
},
)
}
console.log(this.bookList)
} }
} }
}; };
...@@ -103,6 +131,7 @@ export default { ...@@ -103,6 +131,7 @@ export default {
box-shadow: 0 4px 15px 2px rgba(4, 64, 141, 0.08); box-shadow: 0 4px 15px 2px rgba(4, 64, 141, 0.08);
border-radius: 2px; border-radius: 2px;
border: 1px solid rgba(197, 216, 238, 0.5); border: 1px solid rgba(197, 216, 238, 0.5);
margin-bottom: 30px;
.book-img { .book-img {
display: flex; display: flex;
...@@ -153,8 +182,15 @@ export default { ...@@ -153,8 +182,15 @@ export default {
margin-bottom: 30px; margin-bottom: 30px;
.app-img { .app-img {
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 190px; flex: 0 0 190px;
background: rgba(197, 216, 238, 0.2); background: rgba(197, 216, 238, 0.2);
img {
width: 90px;
}
} }
.app-content { .app-content {
...@@ -177,11 +213,43 @@ export default { ...@@ -177,11 +213,43 @@ export default {
} }
.download-wrapper { .download-wrapper {
display: flex;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: #666666; color: #666666;
> div {
display: flex;
align-items: center;
margin-right: 60px;
img {
max-width: 14px;
margin-right: 10px;
}
a {
text-decoration: none;
color: #666666;
}
}
} }
} }
.qr-code {
flex: 0 0 190px;
display: flex;
align-items: center;
justify-content: center;
img {
max-width: 80%;
}
}
}
.el-tabs__content{
padding-top: 14px;
} }
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment