Authored by yyq

Merge branch 'develop' of git.yoho.cn:fe/xianyu-ufo-app-web into develop

@@ -115,6 +115,17 @@ export default { @@ -115,6 +115,17 @@ export default {
115 toast.hide(); 115 toast.hide();
116 this.onError(result); 116 this.onError(result);
117 }); 117 });
  118 +
  119 + //数据埋点
  120 + this.$store.dispatch('reportYas', {
  121 + params: {
  122 + appop: 'XY_UFO_SC_PAY',
  123 + param: {
  124 + ORD_NUM: this.orderCode,
  125 + PAY_TYPE: 1
  126 + },
  127 + },
  128 + });
118 }, 129 },
119 onError(result) { 130 onError(result) {
120 this.$emit('payError'); 131 this.$emit('payError');
@@ -123,11 +134,39 @@ export default { @@ -123,11 +134,39 @@ export default {
123 time: 1500, 134 time: 1500,
124 type: 'txt' 135 type: 'txt'
125 }).show(); 136 }).show();
  137 +
  138 + //数据埋点
  139 + this.$store.dispatch('reportYas', {
  140 + params: {
  141 + appop: 'XY_UFO_SC_PAY_RES',
  142 + param: {
  143 + ORD_NUM: this.orderCode,
  144 + PAY_TYPE: 1, //1支付宝支付,2微信支付
  145 + PAY_RES: 0, //0支付失败,1支付成功
  146 + ORDER_AMOUNT: this.price
  147 + },
  148 + },
  149 + });
  150 +
126 }, 151 },
127 onSuccess(result) { 152 onSuccess(result) {
128 this.hide(); 153 this.hide();
129 this.$emit('paySuccess'); 154 this.$emit('paySuccess');
130 155
  156 + //数据埋点
  157 + this.$store.dispatch('reportYas', {
  158 + params: {
  159 + appop: 'XY_UFO_SC_PAY',
  160 + param: {
  161 + ORD_NUM: this.orderCode,
  162 + PAY_TYPE: 1,
  163 + PAY_RES: 1,
  164 + ORDER_AMOUNT: this.price
  165 + },
  166 + },
  167 + });
  168 +
  169 +
131 this.$router.replace({ 170 this.$router.replace({
132 name: 'OrderPay', 171 name: 'OrderPay',
133 query: { 172 query: {
@@ -207,11 +207,12 @@ export default { @@ -207,11 +207,12 @@ export default {
207 .category-left-item-select { 207 .category-left-item-select {
208 font-size: 44px; 208 font-size: 44px;
209 color: #000000; 209 color: #000000;
  210 + font-weight: bold;
210 } 211 }
211 212
212 .category-left-item-select-flag:before { 213 .category-left-item-select-flag:before {
213 content: ""; 214 content: "";
214 - width: 6px; 215 + width: 4px;
215 height: 48px; 216 height: 48px;
216 position: absolute; 217 position: absolute;
217 left: 0; 218 left: 0;
@@ -269,6 +270,7 @@ export default { @@ -269,6 +270,7 @@ export default {
269 270
270 .item-title { 271 .item-title {
271 display: none; 272 display: none;
  273 + font-family: SFProText-Regular;
272 } 274 }
273 275
274 &:after { 276 &:after {
@@ -92,7 +92,6 @@ @@ -92,7 +92,6 @@
92 92
93 import {Input, Button, Scroll} from 'cube-ui'; 93 import {Input, Button, Scroll} from 'cube-ui';
94 import OrderAddress from './components/confirm/address'; 94 import OrderAddress from './components/confirm/address';
95 -import DayChoose from './components/askorder/day-choose';  
96 import OrderAgree from './components/confirm/agree'; 95 import OrderAgree from './components/confirm/agree';
97 import { createNamespacedHelpers } from 'vuex'; 96 import { createNamespacedHelpers } from 'vuex';
98 import {debounce, get} from 'lodash'; 97 import {debounce, get} from 'lodash';
@@ -102,11 +101,11 @@ const {mapState, mapActions, mapMutations, mapGetters} = createNamespacedHelpers @@ -102,11 +101,11 @@ const {mapState, mapActions, mapMutations, mapGetters} = createNamespacedHelpers
102 101
103 export default { 102 export default {
104 name: 'BuyerAskOrder', 103 name: 'BuyerAskOrder',
105 - components: {Button, Input, DayChoose, OrderAddress, OrderAgree},  
106 props: ['lazy', 'storageId'], 104 props: ['lazy', 'storageId'],
107 - component: { 105 + components: {
108 Input, 106 Input,
109 OrderAddress, 107 OrderAddress,
  108 + OrderAgree,
110 Button, 109 Button,
111 'cube-scroll': Scroll, 110 'cube-scroll': Scroll,
112 }, 111 },
@@ -114,7 +113,7 @@ export default { @@ -114,7 +113,7 @@ export default {
114 return { 113 return {
115 inputPrice: '', 114 inputPrice: '',
116 isAgreeTerms: false, 115 isAgreeTerms: false,
117 - url: 'https://activity.yoho.cn/feature/6775.html?share_id=9481&title=%E9%97%B2%E9%B1%BC%E4%B9%B0%E5%AE%B6%E5%8D%8F%E8%AE%AE', 116 + url: 'https://activity.yoho.cn/feature/6775.html?nodownload=1',
118 agreeDesc: '有货买家协议', 117 agreeDesc: '有货买家协议',
119 submitText: '提交', 118 submitText: '提交',
120 options: {pullDownRefresh: false} 119 options: {pullDownRefresh: false}
@@ -312,8 +311,11 @@ export default { @@ -312,8 +311,11 @@ export default {
312 311
313 publishProduct() { 312 publishProduct() {
314 313
315 - this.buyerPublish({price: this.inputPrice, storage_id: this.storageId, address_id: this.addressInfo.address_id, time_limit_id: this.chooseDayId}).then(() => {  
316 - this.payOrder(); 314 + this.buyerPublish({price: this.inputPrice, storage_id: this.storageId, address_id: this.addressInfo.address_id, time_limit_id: this.chooseDayId}).then((res) => {
  315 + if (res && res.code == 200) {
  316 + this.payOrder();
  317 + }
  318 +
317 }); 319 });
318 }, 320 },
319 321
@@ -246,6 +246,21 @@ export default { @@ -246,6 +246,21 @@ export default {
246 vm.onClose(result.data.orderCode); 246 vm.onClose(result.data.orderCode);
247 }, 247 },
248 }).show(); 248 }).show();
  249 +
  250 + //数据埋点
  251 + this.$store.dispatch('reportYas', {
  252 + params: {
  253 + appop: 'XY_UFO_SC_ORD',
  254 + param: {
  255 + ORD_NUM: result.data.orderCode,
  256 + PRD_ID: this.productId,
  257 + PRD_SKU: this.productDetail.skup,
  258 + PRD_SIZE: this.productDetail.sizeName,
  259 + ORD_AMOUNT: this.orderDetail.amount,
  260 + PRD_PRICE: this.productDetail.goodPrice,
  261 + },
  262 + },
  263 + });
249 }, 264 },
250 onClose(orderCode) { 265 onClose(orderCode) {
251 this.$router.replace({ 266 this.$router.replace({
@@ -64,7 +64,7 @@ export default { @@ -64,7 +64,7 @@ export default {
64 isAgreeTerms: false, 64 isAgreeTerms: false,
65 hiddenIcon: true, 65 hiddenIcon: true,
66 agreeDesc: '有货卖家协议', 66 agreeDesc: '有货卖家协议',
67 - url: 'http://m.yohobuy.com/activity/student/detail/renzhen?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"url\":\"https://activity.yoho.cn/feature/3187.html?title=卖家协议\"}}', 67 + url: 'https://activity.yoho.cn/feature/6773.html?nodownload=1',
68 isEntry: false, 68 isEntry: false,
69 submitText: '提交', 69 submitText: '提交',
70 options: {pullDownRefresh: false}, 70 options: {pullDownRefresh: false},
@@ -170,6 +170,7 @@ export default { @@ -170,6 +170,7 @@ export default {
170 return; 170 return;
171 } 171 }
172 this.$emit('select', { 172 this.$emit('select', {
  173 + size_name: this.selectedSize.size_name,
173 productId: this.product.product_id, 174 productId: this.product.product_id,
174 storageId: this.selectedSize.storage_id, 175 storageId: this.selectedSize.storage_id,
175 skup: this.selectedSize.skup, 176 skup: this.selectedSize.skup,
@@ -319,6 +319,18 @@ export default { @@ -319,6 +319,18 @@ export default {
319 }, 319 },
320 async onSelectTradeProduct(tradeProduct) { 320 async onSelectTradeProduct(tradeProduct) {
321 if (this.selectSizeConfig.type === 'buy') { 321 if (this.selectSizeConfig.type === 'buy') {
  322 + //数据埋点
  323 + this.$store.dispatch('reportYas', {
  324 + params: {
  325 + appop: 'XY_UFO_PRD_DT_BUY_SEL_C',
  326 + param: {
  327 + PRD_ID: tradeProduct.productId,
  328 + PRD_SKU: tradeProduct.skup,
  329 + PRD_SIZE: tradeProduct.size_name,
  330 + },
  331 + }
  332 + });
  333 +
322 try { 334 try {
323 const info = await this.payment({ 335 const info = await this.payment({
324 skup: tradeProduct.skup, 336 skup: tradeProduct.skup,
@@ -402,9 +402,11 @@ export default function() { @@ -402,9 +402,11 @@ export default function() {
402 } else { 402 } else {
403 commit(BUYER_ASK_PUBLISH_FAILURE, result.message); 403 commit(BUYER_ASK_PUBLISH_FAILURE, result.message);
404 } 404 }
  405 + return result;
405 }, error => { 406 }, error => {
406 console.log(error); 407 console.log(error);
407 commit(BUYER_ASK_PUBLISH_FAILURE, TIP); 408 commit(BUYER_ASK_PUBLISH_FAILURE, TIP);
  409 + return null;
408 }); 410 });
409 } 411 }
410 } 412 }