Authored by 邱骏

调价支付

@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 <div class="pro-info"> 11 <div class="pro-info">
12 <p class="pro-name">{{productInfo.productName}}</p> 12 <p class="pro-name">{{productInfo.productName}}</p>
13 <p class="stock-info"> 13 <p class="stock-info">
14 - <Logo :text="`有货UFO`" class="logo-wrapper"></Logo> 14 +<!-- <Logo :text="`有货UFO`" class="logo-wrapper"></Logo>-->
15 <p class="stock-text">{{productInfo.colorName}}, {{productInfo.sizeNum}}个尺码, {{productInfo.storageNum}}个商品库存<p> 15 <p class="stock-text">{{productInfo.colorName}}, {{productInfo.sizeNum}}个尺码, {{productInfo.storageNum}}个商品库存<p>
16 </p> 16 </p>
17 </div> 17 </div>
@@ -255,7 +255,7 @@ export default { @@ -255,7 +255,7 @@ export default {
255 } 255 }
256 256
257 .stock-text { 257 .stock-text {
258 - text-indent: 128px; 258 + /*text-indent: 128px;*/
259 font-size: 28px; 259 font-size: 28px;
260 font-weight: 600; 260 font-weight: 600;
261 line-height: 44px; 261 line-height: 44px;
@@ -2,10 +2,10 @@ @@ -2,10 +2,10 @@
2 <LayoutApp :title="title"> 2 <LayoutApp :title="title">
3 <div class="order-page"> 3 <div class="order-page">
4 <div class="product"> 4 <div class="product">
5 - <ImgSize class="pro-img" :src="noEntryOrderInfo.goodsInfo.goodImg || ''" :width="200" :height="200"></ImgSize> 5 + <ImgSize class="pro-img" :src="goodsInfo.goodImg || ''" :width="200" :height="200"></ImgSize>
6 <div class="pro-info"> 6 <div class="pro-info">
7 - <p class="pro-name">{{noEntryOrderInfo.goodsInfo.colorName}}, {{noEntryOrderInfo.goodsInfo.sizeName}}码</p>  
8 - <p class="stock-info ufo-font">最低售价: ¥{{noEntryOrderInfo.goodsInfo.leastPrice || noEntryOrderInfo.goodsInfo.price}}</p> 7 + <p class="pro-name">{{goodsInfo.colorName}}, {{goodsInfo.sizeName}}码</p>
  8 + <p class="stock-info ufo-font">最低售价: ¥{{goodsInfo.leastPrice || '-'}}</p>
9 </div> 9 </div>
10 </div> 10 </div>
11 <div class="input-container"> 11 <div class="input-container">
@@ -37,12 +37,12 @@ @@ -37,12 +37,12 @@
37 <i class="iconfont iconaddress"></i> 37 <i class="iconfont iconaddress"></i>
38 </div> 38 </div>
39 <div class="address-info"> 39 <div class="address-info">
40 - <p class="user-name">{{noEntryOrderInfo.userAddress.consignee}}</p> 40 + <p class="user-name">{{userAddress.consignee}}</p>
41 <p class="user-address"> 41 <p class="user-address">
42 - {{noEntryOrderInfo.userAddress.area}} {{noEntryOrderInfo.userAddress.address}} 42 + {{userAddress.area}} {{userAddress.address}}
43 </p> 43 </p>
44 <p class="user-phone"> 44 <p class="user-phone">
45 - {{noEntryOrderInfo.userAddress.mobile}} 45 + {{userAddress.mobile}}
46 </p> 46 </p>
47 </div> 47 </div>
48 </div> 48 </div>
@@ -95,7 +95,7 @@ import Modal from './components/modal'; @@ -95,7 +95,7 @@ import Modal from './components/modal';
95 import OrderCheck from '../components/confirm/agree'; 95 import OrderCheck from '../components/confirm/agree';
96 96
97 const {mapState, mapActions} = createNamespacedHelpers('order/priceChange'); 97 const {mapState, mapActions} = createNamespacedHelpers('order/priceChange');
98 - 98 +// orderCode = 1233499619151
99 export default { 99 export default {
100 name: 'noEntryDetail', 100 name: 'noEntryDetail',
101 components: {OrderCheck, Modal, InputUfo, ScrollView, LayoutApp, ImgSize, Checkbox}, 101 components: {OrderCheck, Modal, InputUfo, ScrollView, LayoutApp, ImgSize, Checkbox},
@@ -132,7 +132,13 @@ export default { @@ -132,7 +132,13 @@ export default {
132 // this.inputChange = debounce(this.onChange.bind(this), 500); 132 // this.inputChange = debounce(this.onChange.bind(this), 500);
133 }, 133 },
134 computed: { 134 computed: {
135 - ...mapState(['noEntryOrderInfo']) 135 + ...mapState(['noEntryOrderInfo']),
  136 + goodsInfo() {
  137 + return this.noEntryOrderInfo.goodsInfo || {};
  138 + },
  139 + userAddress() {
  140 + return this.noEntryOrderInfo.userAddress || {};
  141 + }
136 }, 142 },
137 watch: { 143 watch: {
138 chgPrice() { 144 chgPrice() {
@@ -188,7 +194,7 @@ export default { @@ -188,7 +194,7 @@ export default {
188 onCancel: () => { 194 onCancel: () => {
189 this.onPriceChangeConfirm({ 195 this.onPriceChangeConfirm({
190 price: this.chgPrice, 196 price: this.chgPrice,
191 - skup: this.noEntryOrderInfo.goodsInfo.skup 197 + skup: this.goodsInfo.skup
192 }); 198 });
193 } 199 }
194 200
@@ -198,7 +204,7 @@ export default { @@ -198,7 +204,7 @@ export default {
198 async calcPrice(price) { 204 async calcPrice(price) {
199 const result = await this.postNoEntryCalcPrice({ 205 const result = await this.postNoEntryCalcPrice({
200 price: price, 206 price: price,
201 - skup: this.noEntryOrderInfo.goodsInfo.skup 207 + skup: this.goodsInfo.skup
202 }); 208 });
203 209
204 console.log(result); 210 console.log(result);
@@ -259,6 +265,18 @@ export default { @@ -259,6 +265,18 @@ export default {
259 orderCode: result.data.orderCode, 265 orderCode: result.data.orderCode,
260 price: price, 266 price: price,
261 desc: '保证金', 267 desc: '保证金',
  268 + extra: JSON.stringify({
  269 + type: 'sell',
  270 + back: {
  271 + name: 'InSaleOrderList'
  272 + },
  273 + forward: {
  274 + name: 'SellPayOk',
  275 + query: {
  276 + orderCode: result.data.orderCode
  277 + }
  278 + }
  279 + }),
262 onCloseAction() { 280 onCloseAction() {
263 that.clearData(); 281 that.clearData();
264 that.$router.replace({ 282 that.$router.replace({
@@ -279,6 +297,7 @@ export default { @@ -279,6 +297,7 @@ export default {
279 // console.log(result); 297 // console.log(result);
280 }, 298 },
281 clearData() { // 清空数据状态 299 clearData() { // 清空数据状态
  300 + console.log(this.$router);
282 this.platformFeeModalVisible = false; 301 this.platformFeeModalVisible = false;
283 this.platformFee = { 302 this.platformFee = {
284 amount: '-¥0', 303 amount: '-¥0',
@@ -71,88 +71,11 @@ export default { @@ -71,88 +71,11 @@ export default {
71 order: result 71 order: result
72 }); 72 });
73 } else { 73 } else {
74 - result = {  
75 - "alg": "SALT_MD5",  
76 - "code": 200,  
77 - "data": {  
78 - "attributes": 1,  
79 - "bankTransferFee": "-¥0.19",  
80 - "bidType": 0,  
81 - "buttons": [{  
82 - "code": "not_sold",  
83 - "confirmTips": "您确定不卖此商品么?取消后保证金将原路退还至您的账户",  
84 - "name": "NOT_SOLD",  
85 - "text": "不卖了"  
86 - }, {  
87 - "code": "not_entry_change_price",  
88 - "name": "NOT_ENTRY_CHANGE_PRICE",  
89 - "text": "调价"  
90 - }],  
91 - "createTime": "2019-10-09 18:01:23",  
92 - "earnestMoney": 0.76,  
93 - "earnestMoneyStr": "¥0.76",  
94 - "goodsInfo": {  
95 - "batchNo": 1233499619151,  
96 - "bidType": 0,  
97 - "colorName": "黑色",  
98 - "entryFlag": false,  
99 - "goodImg": "http://img11.static.yhbimg.com/goodsimg/2019/02/25/10/018b0d26a7e4bc0b39a93c329dd8c13d8e.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80",  
100 - "goodPrice": "19.00",  
101 - "leastPrice": 19.00,  
102 - "leastPriceOfSkuTips": "最低现货价¥19",  
103 - "price": 19.00,  
104 - "productId": 10001266,  
105 - "productName": "Air Jordan 1 复刻黑绿脚趾 范闲",  
106 - "sizeName": "37",  
107 - "skup": 19466,  
108 - "storageId": 10090816  
109 - },  
110 - "income": "¥18.79",  
111 - "isAdvance": "N",  
112 - "isPaid": 1,  
113 - "orderCode": 1233499619151,  
114 - "payStartTime": 1570615283,  
115 - "payment": 9,  
116 - "paymentStr": "手机网站支付宝",  
117 - "platformFee": {  
118 - "amount": "-¥0.02",  
119 - "appraiseFee": "¥0.01",  
120 - "goodsPaymentRatePercent": "0.00%",  
121 - "packageFee": "¥0.01",  
122 - "payChannelPercentage": "1.00%",  
123 - "serviceFee": "¥0.00"  
124 - },  
125 - "secendLevelCreateTime": 1570615283,  
126 - "statusDetail": {  
127 - "detailDesc": "商品出售中,待买家购买",  
128 - "expressShow": false,  
129 - "paymentTips": "交易成功后自动退还",  
130 - "statuStr": "出售中",  
131 - "status": 1  
132 - },  
133 - "submitOrderTimeStr": "2019-10-09 18:01:23",  
134 - "uid": 349709,  
135 - "userAddress": {  
136 - "address": "嘉陵江东街18号南京国家广告产****17楼",  
137 - "address_id": 2396242,  
138 - "area": "江苏省 南京市 建邺区 建邺区新城科技园",  
139 - "areaCode": "320105400",  
140 - "consignee": "*骏",  
141 - "isUpdate": "N",  
142 - "mobile": "138****0257",  
143 - "phone": "",  
144 - "zipCode": ""  
145 - }  
146 - },  
147 - "md5": "ab14db14196b6213d05d288179ecf9e2",  
148 - "message": "订单详情"  
149 - };  
150 -  
151 - commit(Types.FETCH_NOENTRY_ORDER_PRODUCT_SUCCESS, { 74 + /*commit(Types.FETCH_NOENTRY_ORDER_PRODUCT_SUCCESS, {
152 order: result 75 order: result
153 - }); 76 + });*/
154 77
155 - // commit(Types.FETCH_NOENTRY_ORDER_PRODUCT_FAILED); 78 + commit(Types.FETCH_NOENTRY_ORDER_PRODUCT_FAILED);
156 } 79 }
157 }, 80 },
158 81
@@ -13,7 +13,9 @@ export default function() { @@ -13,7 +13,9 @@ export default function() {
13 productInfo: {}, // 商品详情 13 productInfo: {}, // 商品详情
14 skcs: [], // 商品下包含的出售尺码相关信息 14 skcs: [], // 商品下包含的出售尺码相关信息
15 noEntryOrderInfo: { 15 noEntryOrderInfo: {
16 - goodsInfo: {} 16 + goodsInfo: {
  17 + goodImg: ''
  18 + }
17 }, 19 },
18 }, 20 },
19 actions, 21 actions,