|
@@ -2,47 +2,50 @@
|
|
|
<view class="content">
|
|
|
<scroll-view scroll-y>
|
|
|
<van-collapse :value="activeNames" @change="onChange">
|
|
|
- <van-collapse-item style="margin-bottom: 10px;" v-for="(item,index) in dataList" :key="index" :title="item.bundleName" :name="index">
|
|
|
- <template v-if="item.customerBundleItemList">
|
|
|
- <view class="item-title">
|
|
|
- <view class="list-item-left ">
|
|
|
- <text style="font-size: 30rpx;">服务</text>
|
|
|
- </view>
|
|
|
+ <view class="vant-item" v-for="(item,index) in dataList">
|
|
|
+ <van-collapse-item style="margin-bottom: 10px;" :key="index" :title="item.bundleName" :name="index">
|
|
|
+ <template v-if="item.customerBundleItemList">
|
|
|
+ <view class="item-title">
|
|
|
+ <view class="list-item-left ">
|
|
|
+ <text style="font-size: 30rpx;">服务</text>
|
|
|
+ </view>
|
|
|
|
|
|
- </view>
|
|
|
- <view v-for="(items,indexx) in item.customerBundleItemList" :key="indexx" class="list-item border-bottom-dashed">
|
|
|
- <view class="list-item-left">
|
|
|
- <text>{{items.itemName}}</text>
|
|
|
- </view>
|
|
|
- <view class="list-item-right">
|
|
|
- <text>余{{items.itemTimes}}次</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template v-if="item.customerBundlePartList">
|
|
|
- <view class="item-title ">
|
|
|
- <view class="list-item-left">
|
|
|
- <text style="font-size: 30rpx;">配件</text>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
+ <view v-for="(items,indexx) in item.customerBundleItemList" :key="indexx" class="list-item border-bottom-dashed">
|
|
|
+ <view class="list-item-left">
|
|
|
+ <text>{{items.itemName}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="list-item-right">
|
|
|
+ <text>余{{items.itemTimes}}次</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ <template v-if="item.customerBundlePartList">
|
|
|
+ <view class="item-title ">
|
|
|
+ <view class="list-item-left">
|
|
|
+ <text style="font-size: 30rpx;">配件</text>
|
|
|
+ </view>
|
|
|
|
|
|
- </view>
|
|
|
- <view v-for="(items,indexxx) in item.customerBundlePartList" :key="indexxx" class="list-item border-bottom-dashed">
|
|
|
- <view class="list-item-left">
|
|
|
- <text>{{items.partName}}</text>
|
|
|
- </view>
|
|
|
- <view class="list-item-right">
|
|
|
- <text>余{{items.quantity}} {{items.unit?items.unit:''}}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <view @click="intoDetail(item)" class="show-detail-box">
|
|
|
- <view class="show-detail">
|
|
|
- <text>查看使用明细</text>
|
|
|
- <img src="/static/img/show.png" >
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
+ <view v-for="(items,indexxx) in item.customerBundlePartList" :key="indexxx" class="list-item border-bottom-dashed">
|
|
|
+ <view class="list-item-left">
|
|
|
+ <text>{{items.partName}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="list-item-right">
|
|
|
+ <text>余{{items.quantity}} {{items.unit?items.unit:''}}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ <view @click="intoDetail(item)" class="show-detail-box">
|
|
|
+ <view class="show-detail">
|
|
|
+ <text>查看使用明细</text>
|
|
|
+ <img src="/static/img/show.png" >
|
|
|
+ </view>
|
|
|
|
|
|
- </view>
|
|
|
- </van-collapse-item>
|
|
|
+ </view>
|
|
|
+ </van-collapse-item>
|
|
|
+ <view class="item-bottom"></view>
|
|
|
+ </view>
|
|
|
</van-collapse>
|
|
|
<no-data :options="dataList" name="暂无套餐"/>
|
|
|
</scroll-view>
|
|
@@ -83,7 +86,7 @@
|
|
|
getQbcgjLogin({mobile:mobile,randCode:randCode}).then(res=>{
|
|
|
console.log(res,'rrrrrrr')
|
|
|
if (res.status === '200') {
|
|
|
- mpvue.setStorage('token_cgj',res.data.token)
|
|
|
+ mpvue.setStorageSync('token_cgj',res.data.token)
|
|
|
this.getPackageData()
|
|
|
} else {
|
|
|
wx.showToast({
|
|
@@ -175,9 +178,11 @@
|
|
|
-webkit-transform: scaleY(0.5);
|
|
|
transform: scaleY(0.5);
|
|
|
}
|
|
|
- van-collapse-item{
|
|
|
- margin-bottom: 10px !important;
|
|
|
- }
|
|
|
+ .item-bottom{
|
|
|
+ width: 100%;
|
|
|
+ height: 10px;
|
|
|
+ background-color: rgb(245,245,245);
|
|
|
+ }
|
|
|
.van-collapse-cell--open{
|
|
|
background: #FFFFFF;
|
|
|
}
|