diff --git a/pages/news/recycling/confirm1.vue b/pages/news/recycling/confirm1.vue index 8206bdd..0d2720c 100644 --- a/pages/news/recycling/confirm1.vue +++ b/pages/news/recycling/confirm1.vue @@ -183,11 +183,10 @@ storeInfo: {}, region: [], header: { - 'Storeid': uni.getStorageSync('Store').storeInfo.store_id - 'AccessToken': uni.getStorageSync('AccessToken') + 'Storeid': uni.getStorageSync('Store').storeInfo.store_id, + 'AccessToken': uni.getStorageSync('AccessToken'), 'platform': "MP-WEIXIN", }, - url: Config.get('apiUrl')+'user/upload' } }, @@ -202,30 +201,7 @@ success(e) { console.log(e) }, - beforeUpload(e,list){ - console.log(list) - for(i = 0; i { - let end = JSON.parse(upRes.data); - console.log(end) - // that.userInfo.avatar = end.data.path - // that.userInfo.avatar1 = end.data.url - }, - fail: (err) => { - console.log("toUpload err",err) - console.log(err) - } - }); - } - - }, + uploadImage() { const that = this uni.chooseImage({ diff --git a/pages/order/refund/refundDetail.vue b/pages/order/refund/refundDetail.vue index 9c98451..5d31dba 100644 --- a/pages/order/refund/refundDetail.vue +++ b/pages/order/refund/refundDetail.vue @@ -92,13 +92,12 @@ this.getRefundDetails(op.orderRefundId) }, methods: { - let app = this getRefundDetails(orderRefundId) { - refundApi.detail(orderRefundId) - .then(result => { - app.refundDetails = result.data.detail - }) - }, + let app = this + refundApi.detail(orderRefundId).then(result => { + app.refundDetails = result.data.detail + }) + } } } diff --git a/pages/order/refund/refundDetail1.vue b/pages/order/refund/refundDetail1.vue index ab8279e..01772b4 100644 --- a/pages/order/refund/refundDetail1.vue +++ b/pages/order/refund/refundDetail1.vue @@ -63,8 +63,8 @@ this.getRefundDetails(op.orderRefundId) }, methods: { - let app=this getRefundDetails(orderRefundId) { + let app=this refundApi.detail(orderRefundId) .then(result => { app.refundDetails = result.data.detail