|
|
@@ -4,29 +4,210 @@
|
|
|
* @Author: dream
|
|
|
* @Date: 2021-03-25 15:55:43
|
|
|
* @LastEditors: dream
|
|
|
- * @LastEditTime: 2021-03-26 10:25:44
|
|
|
+ * @LastEditTime: 2021-03-30 15:58:55
|
|
|
-->
|
|
|
<template>
|
|
|
- <view>shopcat</view>
|
|
|
+ <view class="shopcat-main" :style="{ paddingBottom: `${pagePaddingBottom}px`}">
|
|
|
+ <view class="shop-header iph-bg-fff u-border-bottom">
|
|
|
+ <u-checkbox class="checkall" v-model="checkedAll" icon-size="28" shape="circle" :label-disabled="false">
|
|
|
+ <view class="u-flex u-m-l-32">
|
|
|
+ <view class="icon iph-icon-shop u-m-r-8"></view>
|
|
|
+ <view class="shop-name u-font-28 u-line-40 u-flex-1 u-line-1">趣包·高新店</view>
|
|
|
+ </view>
|
|
|
+ </u-checkbox>
|
|
|
+ </view>
|
|
|
+ <view class="good-list iph-bg-fff">
|
|
|
+ <u-checkbox-group class="single-list">
|
|
|
+ <u-swipe-action
|
|
|
+ class="single-swipe"
|
|
|
+ v-for="(item, index) in goodlist"
|
|
|
+ :key="index"
|
|
|
+ :index="index"
|
|
|
+ :options="options"
|
|
|
+ btn-width="136"
|
|
|
+ @click="removeGood"
|
|
|
+ >
|
|
|
+ <u-checkbox class="check-single" v-model="item.checked" shape="circle" icon-size="28" :label-disabled="false">
|
|
|
+ <iph-good-card :showType="2" :value="item" />
|
|
|
+ </u-checkbox>
|
|
|
+ </u-swipe-action>
|
|
|
+ </u-checkbox-group>
|
|
|
+ <iph-empty :show="!goodlist.length" :type="2" marginTop="94">
|
|
|
+ <button class="go-order-btn">去订购</button>
|
|
|
+ </iph-empty>
|
|
|
+ </view>
|
|
|
+ <iph-fixed-bottom @getHeight="getFooterHeight">
|
|
|
+ <view class="shopcat-footer u-flex iph-bg-fff">
|
|
|
+ <u-checkbox class="checkall" v-model="checkedAll" icon-size="40" shape="circle" :label-disabled="false">
|
|
|
+ <view class="check-all u-m-l-16">全选</view>
|
|
|
+ </u-checkbox>
|
|
|
+ <view class="total-price u-flex-1 u-flex u-row-right">合计:¥938</view>
|
|
|
+ <button class="pay-btn" disabled>结算(2)</button>
|
|
|
+ </view>
|
|
|
+ </iph-fixed-bottom>
|
|
|
+ </view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import IphGoodCard from '@/components/iphGoodCard.vue'
|
|
|
+import IphFixedBottom from '@/components/iphFixedBottom.vue'
|
|
|
+import IphEmpty from '@/components/iphEmpty.vue'
|
|
|
export default {
|
|
|
+ components: { IphGoodCard, IphFixedBottom, IphEmpty },
|
|
|
name: 'shopcat',
|
|
|
data () {
|
|
|
return {
|
|
|
-
|
|
|
+ pagePaddingBottom: 0,
|
|
|
+ checkedAll: false,
|
|
|
+ options: [{
|
|
|
+ text: '删除',
|
|
|
+ style: {
|
|
|
+ fontSize: '26rpx',
|
|
|
+ lingHeight: '36rpx',
|
|
|
+ backgroundColor: '#FD3220'
|
|
|
+ }
|
|
|
+ }],
|
|
|
+ goodlist: [{
|
|
|
+ img: 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=288400877,2749955263&fm=26&gp=0.jpg',
|
|
|
+ astrict: '1件起订',
|
|
|
+ name: '两行文案两行文案两行文案两行文案两行文案两行文案两行文案两',
|
|
|
+ spce: '一件',
|
|
|
+ warehouse: '云东仓',
|
|
|
+ salesPrice: 468,
|
|
|
+ stock: 0,
|
|
|
+ num: 2,
|
|
|
+ checked: false
|
|
|
+ }, {
|
|
|
+ img: 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=288400877,2749955263&fm=26&gp=0.jpg',
|
|
|
+ astrict: '1件起订',
|
|
|
+ name: '两行文案两行',
|
|
|
+ spce: '一件',
|
|
|
+ warehouse: '云东仓',
|
|
|
+ salesPrice: 468,
|
|
|
+ stock: 0,
|
|
|
+ num: 2,
|
|
|
+ checked: false
|
|
|
+ }]
|
|
|
}
|
|
|
},
|
|
|
- onLoad () {
|
|
|
-
|
|
|
- },
|
|
|
methods: {
|
|
|
-
|
|
|
+ removeGood (key) {
|
|
|
+ this.goodlist.splice(key, 1)
|
|
|
+ },
|
|
|
+ getFooterHeight (val) {
|
|
|
+ this.pagePaddingBottom = val + 8
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-
|
|
|
+.shopcat-main {
|
|
|
+ .shop-header {
|
|
|
+ padding: 24px 32px;
|
|
|
+ .checkall {
|
|
|
+ /deep/ .u-checkbox {
|
|
|
+ width: 100%;
|
|
|
+ .u-checkbox__label {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ .u-checkbox__icon-wrap--circle {
|
|
|
+ width: 28px !important;
|
|
|
+ height: 28px !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .shop-name {
|
|
|
+ color: $iph-base-text;
|
|
|
+ font-weight: 500;
|
|
|
+ }
|
|
|
+ .icon {
|
|
|
+ width: 28px;
|
|
|
+ height: 28px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .good-list {
|
|
|
+ .single-list {
|
|
|
+ width: 100%;
|
|
|
+ /deep/ .single-swipe {
|
|
|
+ width: 100%;
|
|
|
+ .check-single {
|
|
|
+ width: 100% !important;
|
|
|
+ .u-checkbox {
|
|
|
+ padding: 0 32px;
|
|
|
+ width: 100% !important;
|
|
|
+ .u-checkbox__label {
|
|
|
+ margin-left: 32px;
|
|
|
+ margin-right: 0;
|
|
|
+ padding: 40px 0;
|
|
|
+ width: 100%;
|
|
|
+ border-bottom: 2px solid #F2F4F8;
|
|
|
+ }
|
|
|
+ .u-checkbox__icon-wrap--circle {
|
|
|
+ width: 28px !important;
|
|
|
+ height: 28px !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &:last-child {
|
|
|
+ .check-single {
|
|
|
+ .u-checkbox {
|
|
|
+ .u-checkbox__label {
|
|
|
+ border-bottom: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .go-order-btn {
|
|
|
+ margin: 40px 0 96px;
|
|
|
+ padding: 10px 64px;
|
|
|
+ font-size: 28px;
|
|
|
+ line-height: 40px;
|
|
|
+ border-radius: 30px;
|
|
|
+ background-color: $iph-standby-bg;
|
|
|
+ &::after {
|
|
|
+ border-color: $iph-border-standby;
|
|
|
+ border-radius: 60px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .shopcat-footer {
|
|
|
+ padding: 24px 32px;
|
|
|
+ .checkall {
|
|
|
+ /deep/ .u-checkbox {
|
|
|
+ width: 100%;
|
|
|
+ .u-checkbox__label {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ .u-checkbox__icon-wrap--circle {
|
|
|
+ width: 40px !important;
|
|
|
+ height: 40px !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .check-all {
|
|
|
+ font-size: 26px;
|
|
|
+ line-height: 36px;
|
|
|
+ color: $iph-base-text;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .total-price {
|
|
|
+ line-height: 44px;
|
|
|
+ font-size: 32px;
|
|
|
+ font-weight: 500;
|
|
|
+ }
|
|
|
+ .pay-btn {
|
|
|
+ margin-left: 24px;
|
|
|
+ padding: 16px 66px;
|
|
|
+ width: 226px;
|
|
|
+ height: 72px;
|
|
|
+ font-size: 28px;
|
|
|
+ line-height: 40px;
|
|
|
+ color: $iph-standby-text;
|
|
|
+ background-color: $u-type-primary;
|
|
|
+ border-radius: 38px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|