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
a027718597321d24cff6ab038d420a280f58d6bf
1 parent
897cc6cf
fix(商品详情): 修复求购不可用
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
apps/pages/product/components/action-sheet.vue
apps/pages/product/components/buy-sheet.vue
apps/pages/product/product-detail.vue
apps/pages/product/components/action-sheet.vue
View file @
a027718
...
...
@@ -9,7 +9,7 @@
@mask-click="maskClick">
<transition :name="transition" appear>
<div class="cube-action-sheet-panel"
:class="{'with-radius': hasBorderRadius}"
:class="{'with-radius': hasBorderRadius
, [`panel-${position}`]: true
}"
:style="panelStyle"
v-show="isVisible"
ref="panel"
...
...
@@ -119,6 +119,14 @@ export default {
z-index: -1;
background: #fff;
}
&.panel-right:after {
width: 100px;
height: 100%;
left: auto;
bottom: auto;
top: 0;
right: -100px;
}
}
.cube-action-sheet-bottom-enter, .cube-action-sheet-bottom-leave-active {
...
...
apps/pages/product/components/buy-sheet.vue
View file @
a027718
...
...
@@ -35,10 +35,13 @@ import ActionSheet from './action-sheet';
import stateShortCutsMixins from '../mixins';
import SquareImg from './square-img';
const { mapActions: mapProductAction
, mapGetters
} = createNamespacedHelpers('product');
const { mapActions: mapProductAction } = createNamespacedHelpers('product');
export default {
name: 'BuySheet',
props: {
productId: Number,
},
mixins: [stateShortCutsMixins],
components: {
SquareImg,
...
...
@@ -46,7 +49,6 @@ export default {
'cube-scroll': Scroll,
},
computed: {
...mapGetters(['productDetail']),
sizeList() {
return get(this.productDetail, 'goods_list[0].size_list', []);
},
...
...
@@ -85,7 +87,7 @@ export default {
},
methods: {
...mapActions('order/buyerAskOrder', [
'BUYER_ASK_SET_PRODUCTINFO'
'BUYER_ASK_SET_PRODUCTINFO'
]),
...mapProductAction(['updateTradeInfo']),
onHidden() {
...
...
apps/pages/product/product-detail.vue
View file @
a027718
...
...
@@ -88,7 +88,7 @@
@select="onSelectTradeProduct"
@add="onRequestSize"/>
<size-request-sheet v-if="showSizeRequestSheet" @hidden="onSizeRequestHidden"/>
<buy-sheet v-if="showBuySheet" @hidden="onBuyHidden" />
<buy-sheet v-if="showBuySheet" @hidden="onBuyHidden"
:productId="productId"
/>
</div>
</template>
...
...
Please
register
or
login
to post a comment