Merge branch 'huipay-h5' into huipay-app-dev

# Conflicts:
#	pages/index/collectNotes/collectNotes.vue
#	pages/index/merchant-details/merchant-details.vue
#	pages/welcome/welcome.vue
1.解决冲突
huipay-app-dev
杨杰 1 year ago
commit e188920664
  1. 19
      Utils/Api.js
  2. 2
      components/downloadUp.vue
  3. 15
      pages.json
  4. 167
      pages/index/collectNotes/collectNotes.vue
  5. 49
      pages/index/merchant-details/merchant-details.vue
  6. 160
      pages/index/normal-Merchant/normal-Merchant.vue
  7. 2
      pages/index/open-Divide_accounts/open-Divide_accounts.vue
  8. 98
      pages/index/order-list-details/order-list-details.vue
  9. 13
      pages/index/salesOrderList/salesOrderList.vue
  10. 15
      pages/tabBar/home/home.vue

@ -283,3 +283,22 @@ export const voiceSucceed = params => {
export const queryVersion = params => { export const queryVersion = params => {
return POST('GET', `${base}/sysVersion/queryVersion`, params).then(res => res.data); return POST('GET', `${base}/sysVersion/queryVersion`, params).then(res => res.data);
} }
// 查询商户渠道平台列表
export const getMerPlatformList = params => {
return POST('GET', `${base}/merPlatform/getMerPlatformList`, params).then(res => res.data);
}
// 查询商户
export const getMerList = params => {
return POST('GET', `${base}/mer/getMerList`, params).then(res => res.data);
}
// 查询业务员
export const querySalesmanList = params => {
return POST('GET', `${base}/salesman/querySalesmanList`, params).then(res => res.data);
}
//查询订单详情
export const getOrderByOutTradeOrder = params => {
return POST('GET', `${base}/tradeOrder/getOrderByOutTradeOrder`, params).then(res => res.data);
}

@ -2,7 +2,7 @@
<view class="content" v-if="bannerShow"> <view class="content" v-if="bannerShow">
<!-- 弹出层 --> <!-- 弹出层 -->
<view class="uni-banner"> <view class="uni-banner">
<image src="../static/logo.png" class="startUpHeaderLogo" /> <!-- <image src="../static/logo.png" class="startUpHeaderLogo" /> -->
<view class="banner_box"> <view class="banner_box">
<view class="startUpHeaderBox h6">发现新版本</view> <view class="startUpHeaderBox h6">发现新版本</view>
<view class="conter">{{ msg }}</view> <view class="conter">{{ msg }}</view>

@ -431,6 +431,21 @@
} }
} }
,{
"path" : "pages/index/normal-Merchant/normal-Merchant",
"style" :
{
"navigationBarTitleText": "商户",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false,
"onReachBottomDistance": 50,
"app-plus": {
"titleNView": false, //
"softinputNavBar": "none"
}
}
}
], ],
"subpackages": [{ "subpackages": [{
"root": "subPages", "root": "subPages",

@ -15,6 +15,35 @@
<view class="datetim fcorfff">{{enddate}}<i class="down"></i></view> <view class="datetim fcorfff">{{enddate}}<i class="down"></i></view>
</picker> </picker>
</view> </view>
<view class="mart15 width90 alijusstart" v-if="userInfo.secUser.objectType == 2">
<view class="fcorfff font14 margleri10 width25 fotlt">业务员 :</view>
<picker mode="selector" class="width75" :range="salesmanList" range-key="name"
@change="bindDateChange4">
<view class="fcorfff fotrt font14" v-if="salesmanname">{{salesmanname}}<i class="down"></i></view>
<view class="fcorfff fotrt font14" v-else>请选择<i class="down"></i></view>
</picker>
</view>
<view class="mart15 width90 alijusstart"
v-if="userInfo.secUser.objectType == 2 || userInfo.secUser.objectType == 3">
<view class="fcorfff font14 margleri10 width25 fotlt">商户 :</view>
<picker mode="selector" class="width75" :range="merList" range-key="merName" @change="bindDateChange2">
<view class="fcorfff fotrt font14" v-if="merName">{{merName}}<i class="down"></i></view>
<view class="fcorfff fotrt font14" v-else>请选择<i class="down"></i></view>
</picker>
</view>
<view class="mart15 width90 alijusstart"
v-if="userInfo.secUser.objectType == 2 || userInfo.secUser.objectType == 3 || userInfo.secUser.objectType == 4">
<view class="fcorfff font14 margleri10 width25 fotlt">门店 :</view>
<picker mode="selector" class="width75" :range="storeListByMer" range-key="name"
@change="bindDateChange3">
<view class="fcorfff fotrt font14" v-if="storename">{{storename}}<i class="down"></i></view>
<view class="fcorfff fotrt font14" v-else>请选择<i class="down"></i></view>
</picker>
</view>
<view class="input-box"> <view class="input-box">
<view class="icon search"></view> <view class="icon search"></view>
<input placeholder="请输入订单编号" v-model="orderNo" placeholder-style="color:#c0c0c0;" @input="toSearch()" /> <input placeholder="请输入订单编号" v-model="orderNo" placeholder-style="color:#c0c0c0;" @input="toSearch()" />
@ -44,24 +73,32 @@
<view v-if="notesList == ''" class="mart60 fotct font14 fcor666"> <view v-if="notesList == ''" class="mart60 fotct font14 fcor666">
<image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image> <image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image>
</view> </view>
<view class="width100 backcorfff" v-for="(item,index) in notesList" :key="index" @click="jumpOderlist()"> <view class="width100 backcorfff" v-for="(item,index) in notesList" :key="index"
<view class="width94 height70 alijusstart bor-botm1"> @click="jumpOderdetails(item.outTradeNo)">
<view class="width94 paddtop10 paddbotm10 alijusstart bor-botm1">
<view class="width15"> <view class="width15">
<image src="../../../static/img/wechat.png" mode="widthFix" class="iconw40" <image src="../../../static/img/wechat.png" mode="widthFix" class="iconw40"
v-if="item.payMode == 'WECHAT'"></image> v-if="item.payMode == 'WECHAT'"></image>
<image src="../../../static/img/alipay.png" mode="widthFix" class="iconw40" <image src="../../../static/img/alipay.png" mode="widthFix" class="iconw40"
v-if="item.payMode == 'ALIPAY'"></image> v-if="item.payMode == 'ALIPAY'"></image>
</view> </view>
<view class="width85"> <view class="width85">
<view class="alijusstart font15 fcor333"> <view class="font15 fcor666 width100">{{item.outTradeNo}}</view>
<view class="width50 font15 fcor333">扫一扫</view> <view class="alijusstart font14 fcor999">
<view class="width50 fotrt">¥ {{item.tradeAmount}}</view> <view class="width50 text1">扫一扫</view>
<view class="width50 fotrt">{{statusList[item.status]}}</view>
</view>
<view class="alijusstart font14 paddtop5 fcor999">
<view class="width15 text1">{{item.salesmanName}}</view>
<view class="width85 fotrt">{{item.storeName}}</view>
</view> </view>
<view class="alijusstart font15 paddtop5 fcor999"> <view class="alijusstart font14 paddtop5 fcor999">
<view class="width70">{{item.createTime | timeFormat('yyyy-mm-dd hh:mm:ss')}} <view class="width70">{{item.createTime | timeFormat('yyyy-mm-dd hh:mm:ss')}}
</view> </view>
<view class="width30 fotrt">{{statusList[item.status]}}</view> <view class="width30 fotrt">¥ {{item.tradeAmount}}</view>
</view> </view>
</view> </view>
</view> </view>
@ -71,8 +108,12 @@
<script> <script>
import { import {
getTradeOrderList getTradeOrderList,
getMerList,
getStoreListByMer,
querySalesmanList
} from '../../../Utils/Api.js'; } from '../../../Utils/Api.js';
let app = getApp();
export default { export default {
data() { data() {
const currentDate = this.getDate({ const currentDate = this.getDate({
@ -96,6 +137,16 @@
orderNo: '', // orderNo: '', //
totalPrice: 0, // totalPrice: 0, //
totalNum: 0, // totalNum: 0, //
userInfo: app.globalData.userInfo, //
merList: [], //
merno: '', //
merName: '', //
storeListByMer: [], //
storeno: '', //
storename: '', //,
salesmanList: [], //
salesmanid: '', //id
salesmanname: '', //
} }
}, },
computed: { computed: {
@ -107,6 +158,18 @@
} }
}, },
onLoad() { onLoad() {
//
if (this.userInfo.secUser.objectType == 2) {
this.querySalesmanList();
}
//
if (this.userInfo.secUser.objectType == 3) {
this.getMerList(this.userInfo.secRole.id);
}
//
if (this.userInfo.secUser.objectType == 4) {
this.getStoreListByMer(this.userInfo.secUser.id);
}
this.getTradeOrderList(); this.getTradeOrderList();
}, },
onReachBottom() { onReachBottom() {
@ -114,6 +177,53 @@
}, },
methods: { methods: {
//
querySalesmanList() {
let datas = {
pageNum: 1,
pageSize: 9999,
agentId: this.userInfo.agent.id
}
querySalesmanList(datas).then(res => {
if (res.return_code == '000000' && res.return_data.list != '') {
this.salesmanList = res.return_data.list;
// this.salesmanid = res.return_data.list[0].id;
// this.getStoreListByMer(res.return_data.list[0].id);
// this.salesmanname = res.return_data.list[0].name;
}
})
},
//
getMerList(item) {
let datas = {
pageNum: 1,
pageSize: 9999,
salesmanId: item
}
getMerList(datas).then(res => {
if (res.return_code == '000000' && res.return_data.list != '') {
this.merList = res.return_data.list;
// this.merno = res.return_data.list[0].id;
// this.getStoreListByMer(res.return_data.list[0].id);
// this.merName = res.return_data.list[0].merName;
}
})
},
//
getStoreListByMer(item) {
let datas = {
pageNum: 1,
pageSize: 9999,
merId: item
}
getStoreListByMer(datas).then(res => {
if (res.return_code == '000000' && res.return_data.list != '') {
this.storeListByMer = res.return_data.list;
// this.storeno = res.return_data.list[0].id;
// this.storename = res.return_data.list[0].name;
}
})
},
// //
getDate(type) { getDate(type) {
const date = new Date(); const date = new Date();
@ -145,6 +255,36 @@
this.isNoMoreData = false; this.isNoMoreData = false;
this.getTradeOrderList(); this.getTradeOrderList();
}, },
//
bindDateChange4(e) {
this.salesmanid = this.salesmanList[e.target.value].id;
this.salesmanname = this.salesmanList[e.target.value].name;
this.getMerList(this.salesmanList[e.target.value].id);
this.pageNum = 1;
this.notesList = [];
this.isNoMoreData = false;
this.getTradeOrderList();
},
//
bindDateChange2(e) {
this.merno = this.merList[e.target.value].id;
this.merName = this.merList[e.target.value].merName;
this.getStoreListByMer(this.merList[e.target.value].id);
this.pageNum = 1;
this.notesList = [];
this.isNoMoreData = false;
this.getTradeOrderList();
},
//
bindDateChange3(e) {
this.storeno = this.storeListByMer[e.target.value].id;
this.storename = this.storeListByMer[e.target.value].name;
this.pageNum = 1;
this.notesList = [];
this.isNoMoreData = false;
this.getTradeOrderList();
},
toSearch() { toSearch() {
this.pageNum = 1; this.pageNum = 1;
this.notesList = []; this.notesList = [];
@ -171,6 +311,9 @@
payTimeE: endTime, payTimeE: endTime,
outTradeNo: this.orderNo, outTradeNo: this.orderNo,
pageNum: pagenum, pageNum: pagenum,
// salesmanId:this.salesmanid,
// merId: this.merno,
// storeId: this.storeno,
pageSize: this.pageSize pageSize: this.pageSize
} }
getTradeOrderList(datas).then(res => { getTradeOrderList(datas).then(res => {
@ -195,10 +338,10 @@
}) })
}, },
// //
jumpOderlist() { jumpOderdetails(item) {
// uni.navigateTo({ uni.navigateTo({
// url: '/pages/index/order-list-details/order-list-details' url: '/pages/index/order-list-details/order-list-details?orderid=' + item
// }) })
} }
} }
} }

@ -3,7 +3,7 @@
<!-- tabs栏 --> <!-- tabs栏 -->
<view class="backcorfff width100"> <view class="backcorfff width100">
<QSTabs ref="tabs" :tabs="tabs" animationMode="line2" :current="current" @change="change" <QSTabs ref="tabs" :tabs="tabs" animationMode="line2" :current="current" @change="change"
activeColor="#089bf5" lineColor="#089bf5" minWidth="374"> activeColor="#089bf5" lineColor="#089bf5" minWidth="220">
</QSTabs> </QSTabs>
</view> </view>
@ -50,7 +50,7 @@
</view> </view>
<!-- 门店信息 --> <!-- 门店信息 -->
<view class="mart15 width100" v-else> <view class="mart15 width100" v-if="current == 1">
<view class="width94 backcorfff border-r mart15" v-for="(item,index) in storeList" :key="index" <view class="width94 backcorfff border-r mart15" v-for="(item,index) in storeList" :key="index"
@click="jumpstoredes(item.id)"> @click="jumpstoredes(item.id)">
<view class="notes" style="border-bottom: 0px;"> <view class="notes" style="border-bottom: 0px;">
@ -98,6 +98,19 @@
<view class="lin10"></view> <view class="lin10"></view>
</view> </view>
</view> </view>
<!-- 渠道列表 -->
<view class="mart15 width100" v-if="current == 2">
<!-- v-for="(item,indexplt) in merPlatformList" :key="indexplt" -->
<view class="width94 backcorfff border-r mart15" v-for="(item,indexplt) in merPlatformList" :key="indexplt">
<view class="notes" style="border-bottom: 0px;">
<view class="width100 margle">
<view class="font16 fcor333" v-if="item.platformType == 1">渠道名称: 拉克拉</view>
<view class="font14 fcor999 mart5">商户号: {{item.cupNo}}</view>
<view class="font14 fcor999 mart5">终端号: {{item.merPlatformTerm.termNo}}</view>
</view>
</view>
</view>
</view>
<view class="subbtn" @tap="updateFigMerBasis()" v-if="current == 0">修改结算</view> <view class="subbtn" @tap="updateFigMerBasis()" v-if="current == 0">修改结算</view>
</view> </view>
</template> </template>
@ -106,7 +119,8 @@
import QSTabs from '../../../components/QS-tabs/QS-tabs.vue'; import QSTabs from '../../../components/QS-tabs/QS-tabs.vue';
import { import {
getMerDetail, getMerDetail,
getStoreListByMer getStoreListByMer,
getMerPlatformList
} from '../../../Utils/Api.js'; } from '../../../Utils/Api.js';
export default { export default {
components: { components: {
@ -114,11 +128,12 @@
}, },
data() { data() {
return { return {
tabs: ["商户信息", "门店信息"], tabs: ["商户信息", "门店信息", "渠道列表"],
current: 0, // tabs current: 0, // tabs
storeList: [], // storeList: [], //
merid: '', // id merid: '', // id
merDesInfo: '' // merDesInfo: '', //
merPlatformList: '' //
} }
}, },
@ -134,6 +149,9 @@
if (index == 1) { if (index == 1) {
this.getStoreListByMer(); this.getStoreListByMer();
} }
if (index == 2) {
this.getMerPlatformList();
}
}, },
// //
getMerDetail(item) { getMerDetail(item) {
@ -179,6 +197,27 @@
} }
}) })
}, },
//
getMerPlatformList() {
uni.showLoading({
title: '加载中...'
})
let datas = {
merId: this.merid
}
getMerPlatformList(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000' && res.return_data) {
this.merPlatformList = res.return_data;
} else {
uni.showToast({
title: res.return_msg,
duration: 2000,
icon: 'none'
})
}
})
},
// //
jumpstoredes(item) { jumpstoredes(item) {
uni.navigateTo({ uni.navigateTo({

@ -0,0 +1,160 @@
<template>
<view>
<view class="mart20 width100">
<view v-if="merchantlist == '' " class="mart60 fotct font14 fcor666">
<image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image>
</view>
<view class="width94 backcorfff border-r mart15" v-for="(item,index) in merchantlist" :key="index"
@click="jumpmerdes(item.id)">
<view class="notes">
<image src="../../../static/img/merchantstu.png" mode="widthFix" class="iconw40"></image>
<view class="width60 margle">
<view class="font14 fcor333">{{item.merName}}</view>
<view class="font12 fcor999">
{{item.createTime | timeFormat('yyyy-mm-dd')}}
{{item.createTime | timeFormat('hh:mm')}}
</view>
</view>
<!-- <view class="statucs font14">正常</view> -->
</view>
<view class="notes">
<view class="width30 fcor333 font15">联系人</view>
<view class="width30 fcor999 font15" v-if="item.regName">{{item.regName}}</view>
<view class="width30 fcor999 font15" v-else>-</view>
</view>
<view class="height45 width100 paddbotm10">
<button class="btns mart10 margle10" @click.stop="openAccounts(item.id)">开通分账</button>
<button class="btns mart10 margle10" @click.stop="bindMerchants(item.id)">分账接收方</button>
<button class="btns mart10 margle10" @click.stop="jumpEquityActivity(item.id)">权益活动</button>
</view>
</view>
</view>
</view>
</template>
<script>
import {
getMerListBySalesman,
getMerLedgerApply
} from '../../../Utils/Api.js';
export default {
data() {
return {
merchantlist: [],
pageNum: 1,
pagesize: 10,
isLoadMore: false, //
}
},
onShow() {
this.merchantlist = [];
this.pageNum = 1;
this.getMerListBySalesman();
},
onReachBottom() { //
if (!this.isLoadMore) { //
this.isLoadMore = true
this.pageNum += 1
this.getMerListBySalesman()
}
},
methods: {
//
getMerListBySalesman() {
uni.showLoading({
title: '加载中'
})
let datas = {
merStatus: 1,
pageNum: this.pageNum,
pageSize: this.pagesize,
}
getMerListBySalesman(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000' && res.return_data.list) {
this.merchantlist = this.merchantlist.concat(res.return_data.list);
if (res.return_data.pages == this.pageNum) {
this.isLoadMore = true;
} else {
this.isLoadMore = false
}
} else {
this.isLoadMore = true
}
});
},
//
jumpmerdes(ids) {
uni.navigateTo({
url: '/pages/index/merchant-details/merchant-details?id=' + ids
})
}, //
openAccounts(item) {
uni.navigateTo({
url: '/pages/index/open-Divide_accounts/open-Divide_accounts?id=' + item
})
},
//
bindMerchants(item) {
//
let datas = {
merId: item,
platformType: 1
}
getMerLedgerApply(datas).then(res => {
if (res.return_code == '000000') {
uni.navigateTo({
url: '/pages/index/bindMerchants/bindMerchants?id=' + res.return_data.id +
'&merId=' + item
})
} else {
uni.showToast({
title: res.return_msg,
duration: 2000,
icon: 'none'
})
}
})
},
//
jumpEquityActivity(item) {
uni.navigateTo({
url: '/pages/index/equity-activities/equity-activities?id=' + item
})
}
}
}
</script>
<style lang="scss">
page {
background-color: #f6f6f6;
}
.notes {
width: calc(100% - 40upx);
display: flex;
align-items: center;
padding: 20upx 0 20upx 20upx;
}
//
.statucs {
background-color: #e9f9e5;
color: #84b878;
text-align: center;
padding: 2px 5px;
}
.btns {
width: 21%;
float: left;
height: 35px;
line-height: 35px;
background-color: #0083f5;
color: #FFFFFF;
font-weight: bold;
font-size: 12px;
padding: 0px;
}
</style>

@ -188,7 +188,7 @@
"merId": this.merId, "merId": this.merId,
"platformType": 1, "platformType": 1,
"splitLowestRatio": this.splitLowestRatio, "splitLowestRatio": this.splitLowestRatio,
"splitEntrustFilePath": this.powerofattorney[0] "splitEntrustFilePath": this.powerofattorney
} }
merLedgerApply(datas).then(res => { merLedgerApply(datas).then(res => {
uni.hideLoading(); uni.hideLoading();

@ -1,41 +1,67 @@
<template> <template>
<view> <view>
<view class="mart15 width100 backcorfff"> <view class="mart5 width100 backcorfff">
<view class="notes"> <view class="notes">
<view class="fcor666 width25">账号</view> <view class="fcor666 width25">商户名称</view>
<view class="font14 fcor333 text2 width75 fotrt">账号名称</view> <view class="font14 fcor333 text2 width75 fotrt">{{orderByOutTradeOrder.merName}}</view>
</view> </view>
<view class="notes"> <view class="notes">
<view class="fcor666 width25">账号</view> <view class="fcor666 width25">门店名称</view>
<view class="font14 fcor333 text2 width75 fotrt">账号名称</view> <view class="font14 fcor333 text2 width75 fotrt">{{orderByOutTradeOrder.storeName}}</view>
</view> </view>
<view class="notes"> <view class="notes">
<view class="fcor666 width25">账号</view> <view class="fcor666 width25">交易模式</view>
<view class="font14 fcor333 text2 width75 fotrt">账号名称</view> <view class="font14 fcor333 text2 width75 fotrt" v-if="orderByOutTradeOrder.payMode == 'ALIPAY' ">支付宝</view>
<view class="font14 fcor333 text2 width75 fotrt" v-if="orderByOutTradeOrder.payMode == 'WECHAT' ">微信</view>
</view> </view>
<view class="notes"> <view class="notes">
<view class="fcor666 width25">账号</view> <view class="fcor666 width25">支付时间</view>
<view class="font14 fcor333 text2 width75 fotrt">账号名称</view> <view class="font14 fcor333 text2 width75 fotrt">{{orderByOutTradeOrder.payTime | timeFormat('yyyy-mm-dd hh:mm:ss')}}</view>
</view> </view>
<view class="notes"> <view class="notes">
<view class="fcor666 width25"></view> <view class="fcor666 width25">商户交易单</view>
<view class="font14 fcor333 text2 width75 fotrt">账号名称</view> <view class="font14 fcor333 text2 width75 fotrt">{{orderByOutTradeOrder.outTradeNo}}</view>
</view> </view>
<view class="notes"> <view class="notes">
<view class="fcor666 width25">账号</view> <view class="fcor666 width25">户端交易单</view>
<view class="font14 fcor333 text2 width75 fotrt">账号名称</view> <view class="font14 fcor333 text2 width75 fotrt">{{orderByOutTradeOrder.accTradeNo}}</view>
</view> </view>
<view class="notes"> <view class="notes">
<view class="fcor666 width25">账号</view> <view class="fcor666 width25">交易状态</view>
<view class="font14 fcor333 text2 width75 fotrt">账号名称</view> <view class="font14 fcor333 text2 width75 fotrt">{{statusList[orderByOutTradeOrder.status]}}</view>
</view> </view>
<view class="notes"> <view class="notes">
<view class="fcor666 width25">账号</view> <view class="fcor666 width25">交易金额</view>
<view class="font14 fcor333 text2 width75 fotrt">账号名称</view> <view class="font14 fcor333 text2 width75 fotrt">¥ {{orderByOutTradeOrder.tradeAmount}}</view>
</view>
<view class="notes" v-if="orderByOutTradeOrder.storeDiscountPrice">
<view class="fcor666 width25">门店优惠</view>
<view class="font14 fcor333 text2 width75 fotrt">{{orderByOutTradeOrder.storeDiscountPrice}}</view>
</view>
<view class="notes" v-if="orderByOutTradeOrder.userPhone">
<view class="fcor666 width25">客户手机号</view>
<view class="font14 fcor333 text2 width75 fotrt">{{orderByOutTradeOrder.userPhone}}</view>
</view>
<view class="notes" v-if="orderByOutTradeOrder.userDiscountPrice">
<view class="fcor666 width25">客户优惠券优惠</view>
<view class="font14 fcor333 text2 width75 fotrt">{{orderByOutTradeOrder.userDiscountPrice}}</view>
</view> </view>
<view class="notes"> <view class="notes">
<view class="fcor666 width25">账号</view> <view class="fcor666 width25">交易实际金额</view>
<view class="font14 fcor333 text2 width75 fotrt">账号名称</view> <view class="font14 fcor333 text2 width75 fotrt">{{orderByOutTradeOrder.tradeActualAmount}}</view>
</view>
<view class="notes" v-if="orderByOutTradeOrder.feeRate">
<view class="fcor666 width25">交易费率</view>
<view class="font14 fcor333 text2 width75 fotrt">{{orderByOutTradeOrder.feeRate}}</view>
</view>
<view class="notes">
<view class="fcor666 width25">交易创建方式</view>
<view class="font14 fcor333 text2 width75 fotrt">扫一扫</view>
</view>
<view class="notes" v-if="orderByOutTradeOrder.platformMerNo">
<view class="fcor666 width25">平台商户号</view>
<view class="font14 fcor333 text2 width75 fotrt">{{orderByOutTradeOrder.platformMerNo}}</view>
</view> </view>
</view> </view>
@ -43,14 +69,44 @@
</template> </template>
<script> <script>
import {
getOrderByOutTradeOrder
} from '../../../Utils/Api.js';
export default { export default {
data() { data() {
return { return {
statusList: {
1: "待支付",
2: "支付中",
3: "支付成功",
4: "支付失败",
5: "已取消",
6: "已退款"
},
orderid: '', //
orderByOutTradeOrder: '' //
} }
}, },
onLoad(options) {
this.orderid = options.orderid;
this.getOrderByOutTradeOrder();
},
methods: { methods: {
//
getOrderByOutTradeOrder() {
uni.showLoading({
title: '加载中...'
})
let datas = {
outTradeOrder: this.orderid
}
getOrderByOutTradeOrder(datas).then(res => {
if (res.return_code == '000000') {
this.orderByOutTradeOrder = res.return_data.order;
}
uni.hideLoading();
})
}
} }
} }
</script> </script>

@ -117,16 +117,23 @@
} }
getOrderList(datas).then(res => { getOrderList(datas).then(res => {
uni.hideLoading(); uni.hideLoading();
console.log('======='+JSON.stringify(res))
if (res.return_code == '000000' && res.return_data.list !='') { if (res.return_code == '000000' && res.return_data.list !='') {
this.isLoadMore = res.return_data.list.length == this.pageSize ? false : true;
this.serviceList = this.serviceList.concat(res.return_data.list); this.serviceList = this.serviceList.concat(res.return_data.list);
if (res.return_data.pages == this.pageNum) { if (res.return_data.total == (this.pageNum * this.pageSize)) {
this.isLoadMore = true; this.isLoadMore = true;
} else {
this.isLoadMore = false
} }
this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum;
} else { } else {
this.serviceList = []; this.serviceList = [];
uni.showToast({
title: res.return_msg,
duration: 2000,
icon: 'none'
})
} }
}) })
}, },
// //

@ -18,15 +18,14 @@
<image mode="widthFix" class="margle iconw" src="../../../static/img/jt.png"></image> <image mode="widthFix" class="margle iconw" src="../../../static/img/jt.png"></image>
</view> </view>
<!-- 业务员 --> <!-- 业务员 -->
<view class="font28 fcorfff mart20 width94" v-if="userInfo.secUser.objectType == 3">总收益</view> <view class="font28 fcorfff mart20 width94" v-if="userInfo.secUser.objectType == 3"></view>
<view class="font28 fcorfff mart15 width94" v-if="userInfo.secUser.objectType == 3">¥<text <view class="font28 fcorfff mart15 width94" v-if="userInfo.secUser.objectType == 3"></view>
class="margle font40">0.00</text></view>
<!-- 非业务员 --> <!-- 非业务员 -->
<view class="font15 height40 fcorfff mart20 width94" v-if="userInfo.secUser.objectType != 3">今日总收入</view> <view class="font15 height40 fcorfff mart20 width94" v-if="userInfo.secUser.objectType != 3">今日总收入</view>
<view class="font28 fcorfff mart15 width94" v-if="userInfo.secUser.objectType != 3">¥<text <view class="font28 fcorfff mart15 width94" v-if="userInfo.secUser.objectType != 3">¥<text
class="margle font40">{{auditnum.tradePrice}}</text></view> class="margle font40">{{auditnum.tradePrice}}</text></view>
<!-- 业务员 --> <!-- 业务员 -->
<view class="width94 mart15" v-if="userInfo.secUser.objectType == 3"> <view class="width94 mart80" v-if="userInfo.secUser.objectType == 3" @click.stop="jumpaudt">
<view class="width50 fcorfff font14 flleft"> <view class="width50 fcorfff font14 flleft">
<view class="width100">进件成功数量</view> <view class="width100">进件成功数量</view>
<view class="width100 mart15 font22">{{auditnum.contractSuccess}}</view> <view class="width100 mart15 font22">{{auditnum.contractSuccess}}</view>
@ -65,7 +64,7 @@
</view> </view>
<view class="width100 height40p"></view> <view class="width100 height40p"></view>
<downloadup></downloadup> <!-- <downloadup></downloadup> -->
</view> </view>
</template> </template>
@ -186,9 +185,13 @@
img: '../../../static/img/home3.png' img: '../../../static/img/home3.png'
}, },
{ {
title: '商户管理', title: '进件管理',
url: '../../index/merchant-management/merchant-management', url: '../../index/merchant-management/merchant-management',
img: '../../../static/img/home4.png' img: '../../../static/img/home4.png'
}, {
title: '商户管理',
url: '../../index/normal-Merchant/normal-Merchant',
img: '../../../static/img/home4.png'
}, { }, {
title: '我的设备', title: '我的设备',
url: '../../index/mineService/mineService?id=3', url: '../../index/mineService/mineService?id=3',

Loading…
Cancel
Save