Skip to content

Commit a431353

Browse files
committed
增加购物车新书页面
1 parent 8511ce9 commit a431353

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

src/pages/goodsCart.vue

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div class="core-window ">
1313
<div class="store-product-detail core-clearfix ">
1414
<div class="store-product-detail-image">
15-
<img src="https://dxezhqhj7t42i.cloudfront.net/image/f8efab08-3db4-4707-bf47-efce1f744559 " height="394 " width="300 " alt=" " class="img-border "></img>
15+
<img src="https://dxezhqhj7t42i.cloudfront.net/image/f8efab08-3db4-4707-bf47-efce1f744559" height="394 " width="300 " alt=" " class="img-border "></img>
1616
</div>
1717
<h2 class="store-product-detail-title">Swifter - Swift 必备 tips (第三版)</h2>
1818
<h3 class="store-product-detail-pricing "><span class='store-product-price'><span class='store-value-money store-value-money-single'>&#65509;49.00</span></span></h3>
@@ -30,7 +30,7 @@
3030
<div class="store-product-list store-product-list-offer ">
3131
<div class="store-product-detail store-product-list-offer-item ">
3232
<div class="store-product-detail-image">
33-
<img src="https://dxezhqhj7t42i.cloudfront.net/image/266b3bbf-36e0-4cd2-807e-aeaf7bcf414f " height="400 " width="300 " alt=" " class="img-border list-item-image"></img>
33+
<img src="https://dxezhqhj7t42i.cloudfront.net/image/266b3bbf-36e0-4cd2-807e-aeaf7bcf414f" height="400 " width="300 " alt=" " class="img-border list-item-image"></img>
3434
</div>
3535
<h2 class="store-product-detail-title ">函数式 Swift</h2>
3636
<h3 class="store-product-detail-pricing "><span class='store-product-price'><span class='store-value-money store-value-money-single'>&#65509;69.00</span></span></h3>
@@ -44,11 +44,12 @@
4444
</div>
4545
</div>
4646
<el-input-number v-model="book2" :min=0 style="bottom: 20px; right: 10px; position: absolute;"> </el-input-number>
47-
4847
</div>
48+
49+
4950
<div class="store-product-detail store-product-list-offer-item ">
5051
<div class="store-product-detail-image ">
51-
<img src="https://dxezhqhj7t42i.cloudfront.net/image/a165f416-1d8e-4ff4-a067-f00751aaac22 " height="400 " width="300 " alt=" " class="img-border list-item-image"></img>
52+
<img src="https://dxezhqhj7t42i.cloudfront.net/image/a165f416-1d8e-4ff4-a067-f00751aaac22" height="400 " width="300 " alt=" " class="img-border list-item-image"></img>
5253
</div>
5354
<h2 class="store-product-detail-title ">Swift 进阶</h2>
5455
<h3 class="store-product-detail-pricing "><span class='store-product-price'><span class='store-value-money store-value-money-single'>&#65509;69.00</span></span></h3>
@@ -63,8 +64,8 @@
6364
<el-input-number v-model="book3" :min=0 style="bottom: 20px; right: 10px; position: absolute;"> </el-input-number>
6465
</div>
6566

66-
<div class="store-product-detail store-product-list-offer-item-last ">
67-
<div class="store-product-detail-image ">
67+
<div class="store-product-detail store-product-list-offer-item ">
68+
<div class="store-product-detail-image">
6869
<img src="https://dxezhqhj7t42i.cloudfront.net/image/7a3e21cc-96fd-41ec-b226-bc00be79614d" height="400 " width="300 " alt=" " class="img-border list-item-image"></img>
6970
</div>
7071
<h2 class="store-product-detail-title ">Core Data</h2>
@@ -77,7 +78,24 @@
7778
<p>本书所有的代码都使用 Swift 书写, 我们也展示了如何将 Swift 的语言特性融入到 Core Data 中,并写出优雅和安全的代码。我们希望您在阅读本书的时候有一定的 Swift 和 iOS 开发基础,不过相信不论是新人还是富有经验的开发者,都能从本书中找到实用的信息和设计模式。</p>
7879
</div>
7980
</div>
80-
<el-input-number v-model="book4" :min=0 style="bottom: 0px; right: 10px; position: absolute;"> </el-input-number>
81+
<el-input-number v-model="book4" :min=0 style="bottom: 20px; right: 10px; position: absolute;"> </el-input-number>
82+
</div>
83+
84+
85+
86+
<div class="store-product-detail store-product-list-offer-item-last ">
87+
<div class="store-product-detail-image ">
88+
<img src="http://localhost:8080/static/optimizing-collections-cover.png" height="400 " width="300 " alt=" " class="img-border list-item-image"></img>
89+
</div>
90+
<h2 class="store-product-detail-title ">集合类型优化</h2>
91+
<h3 class="store-product-detail-pricing "><span class='store-product-price'><span class='store-value-money store-value-money-single'>&#65509;59.00</span></span></h3>
92+
<div class="store-product-list-item-description ">
93+
<div class="store-product-list-item-description-short ">
94+
<h3>强烈建议您<b>不要</b>使用 QQ 或 Foxmail 的邮箱,否则可能无法收到我们的登录邮件。</h3>
95+
<p>在本书中,我们会介绍如何编写高性能的 Swift 集合类型代码。通观全书,我们创建了很多性能测试,并得到了一些让人惊喜的结果。我们将会探索如何用实现像是有序数组、二叉树、红黑树和 B 树这样的自定义数据结构,并让它们具有值语义和写时复制等特性。</p><p>即使你从未实现过自定义的集合类型,本书也将会带领您逐渐深入,并一探 Swift 代码性能的特质。</p>
96+
</div>
97+
</div>
98+
<el-input-number v-model="book5" :min=0 style="bottom: 0px; right: 10px; position: absolute;"> </el-input-number>
8199
</div>
82100
</div>
83101
</div>
@@ -100,6 +118,7 @@ export default {
100118
book2: 0,
101119
book3: 0,
102120
book4: 0,
121+
book5: 0,
103122
disable: true
104123
};
105124
},
@@ -124,7 +143,7 @@ export default {
124143
},
125144
computed: {
126145
getTotalPrice() {
127-
return this.book1 * 49 + this.book2 * 69 + this.book3 * 69 + this.book4 * 69;
146+
return this.book1 * 49 + this.book2 * 69 + this.book3 * 69 + this.book4 * 69 + this.book5 * 59;
128147
}
129148
}
130149
};
17.1 KB
Loading

0 commit comments

Comments
 (0)