|
|
@@ -6,7 +6,6 @@
|
|
|
</view>
|
|
|
<view class="page">
|
|
|
<view class="list-container" :style="{ paddingTop: statusBarHeight + 60 + 'px' }">
|
|
|
- <view class="tip">点击客户名称展开详细表格</view>
|
|
|
<view v-for="(prd, i) in products" :key="'prd-' + i">
|
|
|
<view class="section-title">感冒灵</view>
|
|
|
<view class="card product-card">
|
|
|
@@ -76,8 +75,9 @@ export default {
|
|
|
} catch (e) { }
|
|
|
},
|
|
|
toggleCustomer(i, j) {
|
|
|
- const cur = this.products[i].customers[j];
|
|
|
- this.$set(this.products[i].customers[j], "expanded", !cur.expanded);
|
|
|
+ const expanded = this.products[i].customers[j].expanded;
|
|
|
+ this.products[i].customers.forEach((c) => (c.expanded = false));
|
|
|
+ this.$set(this.products[i].customers[j], "expanded", !expanded);
|
|
|
},
|
|
|
generateMockProducts(drugName) {
|
|
|
const makeDetails = (n = 3) =>
|
|
|
@@ -167,12 +167,6 @@ export default {
|
|
|
border-radius: 10px;
|
|
|
}
|
|
|
|
|
|
-.tip {
|
|
|
- font-size: 24rpx;
|
|
|
- color: #999;
|
|
|
- padding: 24rpx;
|
|
|
-}
|
|
|
-
|
|
|
.list-container {
|
|
|
padding: 0 24rpx 24rpx;
|
|
|
box-sizing: border-box;
|