Commit f40df28d by 张立顺

fix: 移除日报标签清空按钮

1 parent 53ce3d2a
......@@ -219,13 +219,6 @@ Component({
)
})
},
onClearEquityCustomerTags() {
this.setData({
equityCustomerTagDraftOptions: (
this.data.equityCustomerTagDraftOptions || []
).map(item => ({ ...item, checked: false }))
})
},
onCancelEquityCustomerTags() {
this.setData({ equityCustomerTagsPopup: false })
},
......
......@@ -184,7 +184,6 @@
font-size: var(--fontSize30);
}
.equity-customer-tags-sheet__clear,
.equity-customer-tags-sheet__cancel,
.equity-customer-tags-sheet__confirm {
height: var(--fontSize80);
......@@ -194,11 +193,6 @@
border-radius: var(--fontSize12);
}
.equity-customer-tags-sheet__clear {
width: 18%;
color: #347BFF;
}
.equity-customer-tags-sheet__cancel,
.equity-customer-tags-sheet__confirm {
flex: 1;
......
......@@ -124,7 +124,6 @@
<text class="equity-customer-tags-sheet__check {{ item.checked ? 'active' : '' }}">{{ item.checked ? '✓' : '' }}</text>
</view>
<view class="equity-customer-tags-sheet__footer">
<view class="equity-customer-tags-sheet__clear" bindtap="onClearEquityCustomerTags">清空</view>
<view class="equity-customer-tags-sheet__cancel" bindtap="onCancelEquityCustomerTags">取消</view>
<view class="equity-customer-tags-sheet__confirm" bindtap="onConfirmEquityCustomerTags">确定</view>
</view>
......
......@@ -81,4 +81,12 @@ describe('quotation customer daily field UI contract', () => {
assert.match(listWxml, /item\.customerDailyDisplay\.showActualDeliveryDate/)
assert.match(listWxml, /item\.customerDailyDisplay\.actualDeliveryDate/)
})
it('IT-EQ-DAILY-UI-008: FirstStep popup has no clear action', () => {
const wxml = read('../pages/carQuotation/components/FirstStep/FirstStep.wxml')
assert.doesNotMatch(wxml, /bindtap="onClearEquityCustomerTags">清空/)
assert.match(wxml, /onCancelEquityCustomerTags/)
assert.match(wxml, /onConfirmEquityCustomerTags/)
})
})
......@@ -3059,13 +3059,6 @@ Page({
)
this.setData({ customerTagDraftOptions })
},
onClearCustomerTags() {
this.setData({
customerTagDraftOptions: (this.data.customerTagDraftOptions || []).map(
item => ({ ...item, checked: false })
)
})
},
onCancelCustomerTags() {
this.setData({ customerTagsPopup: false })
},
......
......@@ -644,7 +644,6 @@ page {
font-size: var(--fontSize30);
}
.customer-tags-sheet__clear,
.customer-tags-sheet__cancel,
.customer-tags-sheet__confirm {
height: var(--fontSize80);
......@@ -654,11 +653,6 @@ page {
border-radius: var(--fontSize12);
}
.customer-tags-sheet__clear {
width: 18%;
color: #347bff;
}
.customer-tags-sheet__cancel,
.customer-tags-sheet__confirm {
flex: 1;
......
......@@ -942,7 +942,6 @@ value="{{ orderObj.remark }}"
<text class="customer-tags-sheet__check {{ item.checked ? 'active' : '' }}">{{ item.checked ? '✓' : '' }}</text>
</view>
<view class="customer-tags-sheet__footer">
<view class="customer-tags-sheet__clear" bindtap="onClearCustomerTags">清空</view>
<view class="customer-tags-sheet__cancel" bindtap="onCancelCustomerTags">取消</view>
<view class="customer-tags-sheet__confirm" bindtap="onConfirmCustomerTags">确定</view>
</view>
......
......@@ -50,4 +50,12 @@ describe('boutique customer daily field UI contract', () => {
assert.match(listWxml, /li\.customerDailyDisplay\.showActualDeliveryDate/)
assert.match(listWxml, /li\.customerDailyDisplay\.actualDeliveryDate/)
})
it('IT-WO-DAILY-UI-006: create popup has no clear action', () => {
const wxml = read('../createOrder.wxml')
assert.doesNotMatch(wxml, /bindtap="onClearCustomerTags">清空/)
assert.match(wxml, /onCancelCustomerTags/)
assert.match(wxml, /onConfirmCustomerTags/)
})
})
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!