Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
TaoHuang
6 years ago
Commit
c4b817ae58bfa47883ab95d4dbf7e6ad93151adf
1 parent
70e9a2b9
add event
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
apps/pages/single/order/ufo/components/modal-price.vue
apps/pages/single/order/ufo/components/product-item.vue
apps/pages/single/order/ufo/order.vue
apps/pages/single/order/ufo/components/modal-price.vue
View file @
c4b817a
...
...
@@ -6,7 +6,9 @@
:loading="postLoading"
class="modal"
:transfer="true"
@on-sure="onSure">
@on-sure="onSure"
@on-cancel="onCancel"
>
<div class="change-price-modal">
<p class="modal-title">{{leastPriceMsg}}</p>
<InputUfo type="number" placeholder="定价需以9结尾 例如1999" :maxlength="8" class="ipt-number" v-model="chgPrice">
...
...
@@ -52,7 +54,7 @@ export default {
};
},
mounted() {
this.inputChange = debounce(this.onChange.bind(this),
2
00);
this.inputChange = debounce(this.onChange.bind(this),
5
00);
},
watch: {
chgPrice(newVal) {
...
...
@@ -165,10 +167,20 @@ export default {
}).show();
} else {
this.$emit('on-change-price', {skc: this.skc, price: this.chgPrice});
this.$root.reportApp('', 'BUSINESS_UFO_SELL_CHANGE', {
locfun: 'click:changePrice:yes',
price: this.chgPrice
});
}
},
onInput(val) {
this.$emit('input', val);
},
onCancel() {
this.$root.reportApp('', 'BUSINESS_UFO_SELL_CHANGE', {
locfun: 'click:changePrice:no'
});
}
},
components: {Modal, InputUfo}
...
...
apps/pages/single/order/ufo/components/product-item.vue
View file @
c4b817a
...
...
@@ -71,11 +71,19 @@ export default {
this.$emit('on-no-sale', Object.assign({
isAdvance: this.value.isAdvance
}, this.value.goodsInfo));
this.$root.reportApp('', 'BUSINESS_UFO_SELL_CHANGE', {
locfun: 'click:nosell'
});
},
onChgPrice() {
this.$emit('on-change-price', Object.assign({
isAdvance: this.value.isAdvance
}, this.value.goodsInfo));
this.$root.reportApp('', 'BUSINESS_UFO_SELL_CHANGE', {
locfun: 'click:changePrice'
});
},
onTouchStart(evt) {
const {clientX, clientY} = evt.touches[0];
...
...
apps/pages/single/order/ufo/order.vue
View file @
c4b817a
...
...
@@ -135,7 +135,16 @@ export default {
},
onCancel: () => {
this.onNoSaleSure({skc, num: 1});
this.$root.reportApp('', 'BUSINESS_UFO_SELL_CHANGE', {
locfun: 'click:nosell:yes'
});
},
onConfirm: () => {
this.$root.reportApp('', 'BUSINESS_UFO_SELL_CHANGE', {
locfun: 'click:nosell:no'
});
}
}).show();
} else {
this.$refs.modalUnstock.show({skc});
...
...
Please
register
or
login
to post a comment