Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhangwenxue
5 years ago
Commit
b88e0e8c0b7fe1a9fd7fd0c1b63949ca9e365d99
1 parent
d3f4c516
feat(product_detail): qiugou fix typo
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
apps/pages/product/components/action-sheet.vue
apps/pages/product/components/buy-sheet.vue
apps/pages/product/components/action-sheet.vue
View file @
b88e0e8
...
...
@@ -9,7 +9,7 @@
@mask-click="maskClick">
<transition :name="transition" appear>
<div class="cube-action-sheet-panel"
:class="{
withRadius
: hasBorderRadius}"
:class="{
'with-radius'
: hasBorderRadius}"
:style="panelStyle"
v-show="isVisible"
ref="panel"
...
...
apps/pages/product/components/buy-sheet.vue
View file @
b88e0e8
...
...
@@ -43,14 +43,14 @@ export default {
computed: {
...mapGetters(['productDetail']),
sizeList() {
return get(this.productDetail, 'goods_list
_tabs.goods_list
[0].size_list', []);
return get(this.productDetail, 'goods_list[0].size_list', []);
},
sizeViewList() {
return this.sizeList.map(info => {
let price;
if (info.least_price > 0) {
price = `${info.least_price}`;
if (info.bid_moster_price > 0) {
price = `${info.bid_moster_price}`;
} else {
price = '-';
}
...
...
@@ -86,18 +86,25 @@ export default {
if (!product.available) {
return;
}
this.
onBack
();
this.
hide
();
this.updateTradeInfo({
productId: this.productDetail.product_id,
sizeInfo: product,
}).then((data) => {
/**
* TODO: 跳转到求购确认页面
* data:
* productId: number
* sizeId: number
* storageId: number
*/
this.$router.push({
name: 'OrderBuyConfirm',
query: data,
});
});
},
onBack
() {
hide
() {
this.$refs.popup.hide();
},
},
...
...
@@ -116,6 +123,11 @@ export default {
background: #fff;
}
.size-list {
flex: 1 0 100%;
overflow: hidden;
}
.header {
position: absolute;
top: 0;
...
...
Please
register
or
login
to post a comment