...
|
...
|
@@ -10,7 +10,7 @@ |
|
|
</span>
|
|
|
<span class="wordText">{{price}}</span>
|
|
|
</div>
|
|
|
<OrderMargin class="order-item order-margin" :data="computeTip" :hiddenIcon="hiddenIcon"></OrderMargin>
|
|
|
<OrderMargin class="order-item order-margin" :data="computeTip" :url="url" :superSell="isEntry" ></OrderMargin>
|
|
|
<OrderFee class="order-item" :data="computeTip"></OrderFee>
|
|
|
<AddressInfo :data="addressInfo" class="order-item"></AddressInfo>
|
|
|
</div>
|
...
|
...
|
@@ -32,7 +32,7 @@ import TitleComp from './components/confirm/title'; |
|
|
import OrderMargin from './components/confirm/order-margin';
|
|
|
import OrderFee from './components/confirm/order-fee';
|
|
|
import OrderAgree from './components/confirm/agree';
|
|
|
import {get} from 'lodash'
|
|
|
import {get} from 'lodash';
|
|
|
|
|
|
import { createNamespacedHelpers} from 'vuex';
|
|
|
const { mapState, mapActions, mapMutations, mapGetters} = createNamespacedHelpers(
|
...
|
...
|
@@ -61,7 +61,7 @@ export default { |
|
|
isAgreeTerms: false,
|
|
|
hiddenIcon: true,
|
|
|
agreeDesc: '有货卖家协议',
|
|
|
url: `http://m.yohobuy.com/activity/student/detail/renzhen?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"url\":\"https://activity.yoho.cn/feature/3187.html?title=卖家协议\"}}`,
|
|
|
url: 'http://m.yohobuy.com/activity/student/detail/renzhen?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"url\":\"https://activity.yoho.cn/feature/3187.html?title=卖家协议\"}}',
|
|
|
isEntry: false,
|
|
|
};
|
|
|
},
|
...
|
...
|
@@ -84,14 +84,14 @@ export default { |
|
|
},
|
|
|
|
|
|
mounted() {
|
|
|
this.isEntry = false
|
|
|
this.isEntry = false;
|
|
|
this.fetchSellerEntryStatus({})
|
|
|
.then((res)=> {
|
|
|
console.log(res)
|
|
|
console.log(res);
|
|
|
if (res) {
|
|
|
this.isEntry = get(res, 'entrySellerType', 0) !== 0
|
|
|
this.isEntry = get(res, 'entrySellerType', 0) !== 0;
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
this.fetchSellerOrderCount({tabType: 'sell'});// 19268
|
|
|
this.sellerCompute({price: this.price, skup: this.skup});
|
|
|
|
...
|
...
|
@@ -101,7 +101,7 @@ export default { |
|
|
isShowTip(val) {
|
|
|
|
|
|
if (val) {
|
|
|
this.showToast()
|
|
|
this.showToast();
|
|
|
}
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -123,7 +123,7 @@ export default { |
|
|
this.$createDialog({
|
|
|
type: 'confirm',
|
|
|
title: '',
|
|
|
content: `确定以${this.price}出售此商品`,
|
|
|
content: `确定以¥${this.price}立即出售此商品`,
|
|
|
confirmBtn: {
|
|
|
text: '确定出售',
|
|
|
active: true,
|
...
|
...
|
@@ -138,7 +138,9 @@ export default { |
|
|
},
|
|
|
onConfirm: () => {
|
|
|
this.sellerPublish({price: this.price, skup: this.skup, address_id: this.addressInfo.address_id})
|
|
|
.then(() => {
|
|
|
.then((res) => {
|
|
|
|
|
|
if (res && res.code && res.code == 200) {
|
|
|
this.$createToast({
|
|
|
time: 1000,
|
|
|
type: 'txt',
|
...
|
...
|
@@ -146,6 +148,15 @@ export default { |
|
|
}).show();
|
|
|
|
|
|
this.$router.go(-1);
|
|
|
} else {
|
|
|
this.$createToast({
|
|
|
time: 1000,
|
|
|
type: 'txt',
|
|
|
txt: res.message
|
|
|
}).show();
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
},
|
|
|
onCancel: () => {
|
...
|
...
|
@@ -188,7 +199,7 @@ export default { |
|
|
},
|
|
|
|
|
|
showToast() {
|
|
|
this.SELLER_ASK_SET_IS_SHOWTOAST(false)
|
|
|
this.SELLER_ASK_SET_IS_SHOWTOAST(false);
|
|
|
this.$createToast({
|
|
|
time: 1000,
|
|
|
type: 'txt',
|
...
|
...
|
|