|
@@ -1,16 +1,17 @@
|
|
<template>
|
|
<template>
|
|
<app-layout>
|
|
<app-layout>
|
|
<app-bd-info v-if="list.length>0" @receive="receive" :info="list[0]" :coupons="goods_coupon_center" :total="total"></app-bd-info>
|
|
<app-bd-info v-if="list.length>0" @receive="receive" :info="list[0]" :coupons="goods_coupon_center" :total="total"></app-bd-info>
|
|
|
|
+ <view style="width: 678rpx;height: 1rpx;background-color: #EEEEEE;margin: 0 auto;"></view>
|
|
<!--商品优惠券-->
|
|
<!--商品优惠券-->
|
|
<bd-coupon @change="setCoupon" @on-show-change="val => {isCouponShow = val}" :isCustomEntry="true"
|
|
<bd-coupon @change="setCoupon" @on-show-change="val => {isCouponShow = val}" :isCustomEntry="true"
|
|
:myShow="isCouponShow" :theme="getTheme" :coupons="goods_coupon_center"></bd-coupon>
|
|
:myShow="isCouponShow" :theme="getTheme" :coupons="goods_coupon_center"></bd-coupon>
|
|
- <view v-show="list.length>0"
|
|
|
|
- style="font-size: 34rpx;font-weight: bold;color: #222222;line-height: 46rpx;padding:30rpx 0 0 35rpx;background-color: #fff;">
|
|
|
|
- 套餐内商品</view>
|
|
|
|
|
|
+ <view v-if="list.length>0"
|
|
|
|
+ style="font-size: 34rpx;font-weight: bold;color: #222222;line-height: 46rpx;padding:51rpx 0 0 35rpx;background-color: #fff;">
|
|
|
|
+ 套装内商品</view>
|
|
<app-list v-if="loading" :hidden="false" :top="0" :theme="getTheme" :list="list" v-on:update="update"
|
|
<app-list v-if="loading" :hidden="false" :top="0" :theme="getTheme" :list="list" v-on:update="update"
|
|
v-on:change="getTotal" v-on:updateList="updateList"></app-list>
|
|
v-on:change="getTotal" v-on:updateList="updateList"></app-list>
|
|
<view class="list" v-if="other.length > 0">
|
|
<view class="list" v-if="other.length > 0">
|
|
- <view class="title">其他套餐</view>
|
|
|
|
|
|
+ <view class="title">其他套装</view>
|
|
<view v-for="(item, index) in other" :key="index" class="item dir-left-nowrap">
|
|
<view v-for="(item, index) in other" :key="index" class="item dir-left-nowrap">
|
|
<app-composition :theme="getTheme" @click="choose(item)" @look="choose(item)" :item="item">
|
|
<app-composition :theme="getTheme" @click="choose(item)" @look="choose(item)" :item="item">
|
|
</app-composition>
|
|
</app-composition>
|
|
@@ -43,9 +44,9 @@
|
|
</view>
|
|
</view>
|
|
<view class='no-tip' v-if="list.length == 0 && loading">
|
|
<view class='no-tip' v-if="list.length == 0 && loading">
|
|
<image src="../image/pull-off.png"></image>
|
|
<image src="../image/pull-off.png"></image>
|
|
- <view>您选购的套餐已下架</view>
|
|
|
|
|
|
+ <view>您选购的套装已下架</view>
|
|
<view @click="toComposition" class="to-composition" :style="{'background-color': getTheme.background}">
|
|
<view @click="toComposition" class="to-composition" :style="{'background-color': getTheme.background}">
|
|
- 逛逛套餐专区</view>
|
|
|
|
|
|
+ 逛逛套装专区</view>
|
|
</view>
|
|
</view>
|
|
</app-layout>
|
|
</app-layout>
|
|
</template>
|
|
</template>
|
|
@@ -213,7 +214,7 @@
|
|
}
|
|
}
|
|
// if (list[0].composition_list.length == 0) {
|
|
// if (list[0].composition_list.length == 0) {
|
|
// uni.showToast({
|
|
// uni.showToast({
|
|
- // title: '请选择套餐',
|
|
|
|
|
|
+ // title: '请选择套装',
|
|
// icon: 'none',
|
|
// icon: 'none',
|
|
// duration: 1000
|
|
// duration: 1000
|
|
// });
|
|
// });
|