|
|
@@ -54,7 +54,7 @@
|
|
|
|
|
|
<!-- 订单列表 -->
|
|
|
<view class="list-card">
|
|
|
- <OrderList :list="orderList"></OrderList>
|
|
|
+ <OrderList :list="orderList" :jumpType="jumpType"></OrderList>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -71,6 +71,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
bizId: '',
|
|
|
+ jumpType: '',
|
|
|
// 结算信息
|
|
|
settlementInfo: {},
|
|
|
// 订单列表
|
|
|
@@ -80,15 +81,16 @@ export default {
|
|
|
onLoad(options) {
|
|
|
if (options.id) {
|
|
|
this.bizId = options.id;
|
|
|
+ this.jumpType = options.jumpType;
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.getDetails(this.bizId);
|
|
|
+ this.getDetails(this.bizId, this.jumpType);
|
|
|
},
|
|
|
methods: {
|
|
|
- getDetails(id) {
|
|
|
+ getDetails(id, jumpType) {
|
|
|
api
|
|
|
- .settlementDetail({ settlementId: id })
|
|
|
+ .settlementDetail({ settlementId: id, jumpType })
|
|
|
.then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
this.settlementInfo = res.data.result;
|