Authored by TaoHuang

fix by huangtao

@@ -96,6 +96,13 @@ export default { @@ -96,6 +96,13 @@ export default {
96 } 96 }
97 }, 97 },
98 deep: true 98 deep: true
  99 + },
  100 + watch: {
  101 + 'yoho.context.isLogin': function(newVal) {
  102 + if (newVal) {
  103 + this.init();
  104 + }
  105 + },
99 } 106 }
100 }, 107 },
101 methods: { 108 methods: {
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <div class="input-comp"> 2 <div class="input-comp">
3 <div class="input-wrapper"> 3 <div class="input-wrapper">
4 <div class="price-symbol">¥</div> 4 <div class="price-symbol">¥</div>
5 - <input ref="input" :value="value" class="cube-input-field" type="text" placeholder="定价需以9结尾,例如¥1299" @blur="onBlur" 5 + <input ref="input" :value="value" class="tip" type="text" placeholder="定价需以9结尾,例如¥1299" @blur="onBlur"
6 @change="onChange"></input> 6 @change="onChange"></input>
7 </div> 7 </div>
8 <div class="num-wrapper" v-if="superSell"> 8 <div class="num-wrapper" v-if="superSell">
@@ -91,7 +91,7 @@ export default { @@ -91,7 +91,7 @@ export default {
91 flex: 1; 91 flex: 1;
92 font-size: 56px; 92 font-size: 56px;
93 font-weight: 500; 93 font-weight: 500;
94 - line-height: 120px; 94 + line-height: 80px;
95 background: #f5f5f5; 95 background: #f5f5f5;
96 } 96 }
97 97
@@ -119,7 +119,6 @@ export default { @@ -119,7 +119,6 @@ export default {
119 .count { 119 .count {
120 color: black; 120 color: black;
121 } 121 }
122 -  
123 } 122 }
124 123
125 </style> 124 </style>
@@ -28,16 +28,16 @@ export default { @@ -28,16 +28,16 @@ export default {
28 28
29 <style lang="scss" scoped> 29 <style lang="scss" scoped>
30 .product-wrapper { 30 .product-wrapper {
  31 + display: flex;
31 height: 240px; 32 height: 240px;
32 overflow: hidden; 33 overflow: hidden;
33 } 34 }
34 35
35 .product-price { 36 .product-price {
36 - display: inline-block;  
37 - vertical-align: top; 37 + display: flex;
38 height: 100%; 38 height: 100%;
39 margin-left: 20px; 39 margin-left: 20px;
40 - padding-top: 3%; 40 + align-items: center;
41 } 41 }
42 42
43 .price { 43 .price {
@@ -88,7 +88,6 @@ export default { @@ -88,7 +88,6 @@ export default {
88 this.isEntry = false; 88 this.isEntry = false;
89 this.fetchSellerEntryStatus({}) 89 this.fetchSellerEntryStatus({})
90 .then((res)=> { 90 .then((res)=> {
91 - console.log(res);  
92 if (res) { 91 if (res) {
93 this.isEntry = get(res, 'entrySellerType', 0) !== 0; 92 this.isEntry = get(res, 'entrySellerType', 0) !== 0;
94 } 93 }
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <LayoutApp :show-back="true" title="出售" :back-action="backAction"> 2 <LayoutApp :show-back="true" title="出售" :back-action="backAction">
3 <div class="body"> 3 <div class="body">
4 <ProductInfo :data="productDetail" class="product-info"></ProductInfo> 4 <ProductInfo :data="productDetail" class="product-info"></ProductInfo>
5 - <InputPrice @input="changePrice" class="input-price" 5 + <InputPrice @input="changePrice"
6 :num="num" :value="price" 6 :num="num" :value="price"
7 @on-blur="compute" :super-sell="superSell" 7 @on-blur="compute" :super-sell="superSell"
8 @on-num-change="onNumChange" 8 @on-num-change="onNumChange"
@@ -110,9 +110,11 @@ export default { @@ -110,9 +110,11 @@ export default {
110 return { 110 return {
111 goodImg: get(state.product.selectedProductInfo, 'product.goods_list[0].image_list[0].image_url', ''), 111 goodImg: get(state.product.selectedProductInfo, 'product.goods_list[0].image_list[0].image_url', ''),
112 productName: get(state.product.selectedProductInfo, 'product.product_name', ''), 112 productName: get(state.product.selectedProductInfo, 'product.product_name', ''),
  113 + productId: get(state.product.selectedProductInfo, 'product.product_id', ''),
113 colorName: get(state.product.selectedProductInfo, 'product.goods_list[0].color_name', ''), 114 colorName: get(state.product.selectedProductInfo, 'product.goods_list[0].color_name', ''),
114 sizeName: get(state.product.selectedProductInfo, 'size.size_name', ''), 115 sizeName: get(state.product.selectedProductInfo, 'size.size_name', ''),
115 skup: get(state.product.selectedProductInfo, 'size.skup', ''), 116 skup: get(state.product.selectedProductInfo, 'size.skup', ''),
  117 + bidSkup: get(state.product.selectedProductInfo, 'size.bid_skup', ''),
116 goodPrice, 118 goodPrice,
117 priceType, 119 priceType,
118 goodBidPrice, 120 goodBidPrice,
@@ -149,11 +151,21 @@ export default { @@ -149,11 +151,21 @@ export default {
149 disabled: false 151 disabled: false
150 }, 152 },
151 onCancel: () => { 153 onCancel: () => {
152 - this.$router.replace({ 154 + this.$store.commit('order/sellerAskOrder/SELLER_ASK_SET_PRODUCTINFO', {
  155 + goodImg: this.productDetail.goodImg,
  156 + colorName: this.productDetail.colorName,
  157 + sizeName: this.productDetail.sizeName,
  158 + goodPrice: this.productDetail.bidPrice,
  159 + productId: this.productDetail.productId,
  160 + bid_moster_price: this.productDetail.bidPrice,
  161 + });
  162 +
  163 + // 跳转变现
  164 + this.$router.push({
153 name: 'sellAskOrder', 165 name: 'sellAskOrder',
154 query: { 166 query: {
155 - skup: this.productDetail.skup,  
156 - price: this.productDetail.bidPrice 167 + skup: this.productDetail.bidSkup,
  168 + price: this.productDetail.bidPrice,
157 } 169 }
158 }); 170 });
159 } 171 }
@@ -375,6 +387,11 @@ export default { @@ -375,6 +387,11 @@ export default {
375 padding: 0 50px; 387 padding: 0 50px;
376 } 388 }
377 389
  390 +.product-info {
  391 + height: 240px;
  392 + margin-bottom: 20px;
  393 +}
  394 +
378 .submit-btn { 395 .submit-btn {
379 height: 80px; 396 height: 80px;
380 line-height: 80px; 397 line-height: 80px;