接口对接
This commit is contained in:
parent
23cc668c03
commit
9d319e4ef3
|
|
@ -9,8 +9,8 @@ export default {
|
||||||
invoke(args) {
|
invoke(args) {
|
||||||
let userInfo = _this.getCurUserInfo();
|
let userInfo = _this.getCurUserInfo();
|
||||||
// request 触发前拼接 url
|
// request 触发前拼接 url
|
||||||
args.url = 'https://www.opsoul.com' + args.url;
|
// args.url = 'https://www.opsoul.com' + args.url;
|
||||||
// args.url = 'http://127.0.0.1:80' + args.url;
|
args.url = 'http://127.0.0.1:80' + args.url;
|
||||||
// args.url = 'http://10.45.110.174:80' + args.url;
|
// args.url = 'http://10.45.110.174:80' + args.url;
|
||||||
if (!args.data) {
|
if (!args.data) {
|
||||||
args.data = {}
|
args.data = {}
|
||||||
|
|
|
||||||
|
|
@ -96,9 +96,9 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-bar bg-white">
|
<view class="cu-bar bg-white">
|
||||||
<view class="action margin-0 flex-sub text-black" @tap="hideModal"
|
<view class="action margin-0 flex-sub text-black" @tap="hideModal"
|
||||||
@click="chooseEntryType('goods')">配件商</view>
|
@click="chooseEntryType(1)">配件商</view>
|
||||||
<view class="action margin-0 flex-sub text-main-color solid-left" @tap="hideModal"
|
<view class="action margin-0 flex-sub text-main-color solid-left" @tap="hideModal"
|
||||||
@click="chooseEntryType('serv')">服务商</view>
|
@click="chooseEntryType(0)">服务商</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -198,8 +198,11 @@
|
||||||
}
|
}
|
||||||
this.curUserInfo = curUserInfo;
|
this.curUserInfo = curUserInfo;
|
||||||
|
|
||||||
|
// 是否展示选择入驻类型的模态框
|
||||||
|
this.isShowSteer = this.curUserInfo.type != null && this.curUserInfo.type != undefined ? false : true;
|
||||||
|
|
||||||
this.myInfo = await this.$api.data('myInfo');
|
this.myInfo = await this.$api.data('myInfo');
|
||||||
this.isShowSteer = !this.myInfo.entryType;
|
// this.isShowSteer = !this.myInfo.entryType;
|
||||||
let newServModules = this.servModules.concat();
|
let newServModules = this.servModules.concat();
|
||||||
if (this.myInfo.hasCheckedRule) {
|
if (this.myInfo.hasCheckedRule) {
|
||||||
newServModules[0].pageUrl = '/pages/demand-center/accept-demand-center';
|
newServModules[0].pageUrl = '/pages/demand-center/accept-demand-center';
|
||||||
|
|
@ -213,8 +216,10 @@
|
||||||
}
|
}
|
||||||
this.servModules = newServModules;
|
this.servModules = newServModules;
|
||||||
},
|
},
|
||||||
chooseEntryType(typeCode) {
|
async chooseEntryType(typeCode) {
|
||||||
|
await this.$request.updateWorker({
|
||||||
|
type: typeCode
|
||||||
|
});
|
||||||
},
|
},
|
||||||
hideModal(e) {
|
hideModal(e) {
|
||||||
this.isShowSteer = false
|
this.isShowSteer = false
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
</template>
|
</template>
|
||||||
<view>
|
<view>
|
||||||
<view v-for="(item, index1) in billItem.statement"
|
<view v-for="(item, index1) in billItem.statement"
|
||||||
class="bg-white padding flex justify-between align-center" @click="showDetail">
|
class="bg-white padding flex justify-between align-center" @click="showDetail(bill[index].statement[index1])">
|
||||||
<view>
|
<view>
|
||||||
<view class="margin-bottom-xs" v-if="item.financialDetailType == 1">师傅转派</view>
|
<view class="margin-bottom-xs" v-if="item.financialDetailType == 1">师傅转派</view>
|
||||||
<view class="margin-bottom-xs" v-else-if="item.financialDetailType == 2">多级分销</view>
|
<view class="margin-bottom-xs" v-else-if="item.financialDetailType == 2">多级分销</view>
|
||||||
|
|
@ -111,11 +111,11 @@
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showDetail() {
|
showDetail(item) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/my/statement-desc'
|
url: '/pages/my/statement-desc?statementDesc=' + encodeURIComponent(JSON.stringify(item))
|
||||||
})
|
})
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -7,37 +7,42 @@
|
||||||
</cu-custom>
|
</cu-custom>
|
||||||
<view class="padding margin-top-sm bg-white">
|
<view class="padding margin-top-sm bg-white">
|
||||||
<view class="padding-tb-lg text-center solid-bottom">
|
<view class="padding-tb-lg text-center solid-bottom">
|
||||||
<view class="text-black text-sl">{{statementDesc.inOutMoney}}</view>
|
<view class="text-black text-sl">{{statementDesc.payMoney}}</view>
|
||||||
<view class="text-gray">{{statementDesc.name}}</view>
|
<view class="text-gray" v-if="statementDesc.remark">{{statementDesc.remark}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="padding-tb-lg">
|
<view class="padding-tb-lg">
|
||||||
<view class="margin-bottom-sm">
|
<view class="margin-bottom-sm">
|
||||||
<text class="text-gray">当前状态:</text>
|
<text class="text-gray">当前状态:</text>
|
||||||
<text>{{statementDesc.status === '0' ? '交易成功' : '交易失败'}}</text>
|
<text>{{statementDesc.payStatus == 0 ? '未付款' : '已付款'}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="margin-bottom-sm">
|
<view class="margin-bottom-sm">
|
||||||
<text class="text-gray">详情说明:</text>
|
<text class="text-gray">详情说明:</text>
|
||||||
<text>{{statementDesc.desc}}</text>
|
<text v-if="statementDesc.remark">{{statementDesc.remark}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="margin-bottom-sm">
|
<view class="margin-bottom-sm">
|
||||||
<text class="text-gray">到帐备注:</text>
|
<text class="text-gray">到帐备注:</text>
|
||||||
<text>{{statementDesc.payRemark}}</text>
|
<text v-if="statementDesc.payType != null && statementDesc.payType != undefined">
|
||||||
|
<text v-if="statementDesc.payType == 0">微信</text>
|
||||||
|
<text v-else-if="statementDesc.payType == 1">支付宝</text>
|
||||||
|
<text v-else-if="statementDesc.payType == 2">线下</text>
|
||||||
|
<text>支付到帐</text>
|
||||||
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="margin-bottom-sm">
|
<view class="margin-bottom-sm">
|
||||||
<text class="text-gray">提现单号:</text>
|
<text class="text-gray">提现单号:</text>
|
||||||
<text>{{statementDesc.extractCode}}</text>
|
<text v-if="statementDesc.extractCode">{{statementDesc.extractCode}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="margin-bottom-sm">
|
<view class="margin-bottom-sm">
|
||||||
<text class="text-gray">发起时间:</text>
|
<text class="text-gray">发起时间:</text>
|
||||||
<text>{{statementDesc.createTime}}</text>
|
<text v-if="statementDesc.payTime">{{statementDesc.payTime}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="margin-bottom-sm">
|
<view class="margin-bottom-sm">
|
||||||
<text class="text-gray">订单编号:</text>
|
<text class="text-gray">订单编号:</text>
|
||||||
<text>{{statementDesc.orderCode}}</text>
|
<text v-if="statementDesc.orderDetailCode">{{statementDesc.orderDetailCode}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="margin-bottom-sm">
|
<view class="margin-bottom-sm">
|
||||||
<text class="text-gray">订单时间:</text>
|
<text class="text-gray">订单时间:</text>
|
||||||
<text>{{statementDesc.orderCreateTime}}</text>
|
<text v-if="statementDesc.orderCreateTime">{{statementDesc.orderCreateTime}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -51,13 +56,14 @@
|
||||||
statementDesc: {}
|
statementDesc: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
this.loadData();
|
this.statementDesc = JSON.parse(decodeURIComponent(options.statementDesc));
|
||||||
|
// this.loadData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async loadData() {
|
// async loadData() {
|
||||||
this.statementDesc = await this.$api.data('statementDesc');
|
// this.statementDesc = await this.$api.data('statementDesc');
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue