Commit 94738682 authored by 罗超's avatar 罗超

1

parent 0320d97c
<template> <template>
<view class="comManage" :style="{height: contentHeight,}"> <view class="comManage" :style="{ height: contentHeight }">
<view style="padding: 10px 0; background: #fff;"> <view style="padding: 10px 0; background: #fff">
<u-tabs :list="list" :is-scroll="false" :current="current" name="Name" @change="change" <u-tabs
:active-color="mainColor" bg-color="#FFF" height="80" bar-width="100"></u-tabs> :list="list"
</view> :is-scroll="false"
:current="current"
name="Name"
@change="change"
:active-color="mainColor"
bg-color="#FFF"
height="80"
bar-width="100"
></u-tabs>
</view>
<view style="height: calc(100vh - 80px); background: #fff;" v-if="dataList.length == 0"> <view
<u-empty text="暂无相关数据" mode="order"></u-empty> style="height: calc(100vh - 80px); background: #fff"
</view> v-if="dataList.length == 0"
<view v-if="dataList.length>0" >
style="height: calc(100vh - 80px);width: calc(100vw);overflow: hidden;padding: 25rpx;background-color: #F7F7F7;"> <u-empty text="暂无相关数据" mode="order"></u-empty>
<scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" @scrolltolower="lowerTwo" </view>
:style="{ height: '100%' }"> <view
<view class="commentList" v-for="(item,index) in dataList" :key="index"> v-if="dataList.length > 0"
<view class="commentTop"> style="
<view class="comment_Left"> height: calc(100vh - 80px);
<img style="width:100%;height:100%;" :src="item.CoverImage" alt="" /> width: calc(100vw);
</view> overflow: hidden;
<view class="comment_Right"> padding: 25rpx;
<view class="comment_Nei">{{item.Content}}</view> background-color: #f7f7f7;
<view class="comment_Replay"> "
来自用户 {{item.UserName}} >
</view> <scroll-view
</view> :scroll-y="true"
</view> :enable-back-to-top="true"
<view class="commentTop" style="margin-top:20rpx;justify-content: space-between;"> :enable-flex="true"
<view style="display:flex;align-items: center;font-size:22rpx;"> @scrolltolower="lowerTwo"
<img style="width:48rpx;height:48rpx;margin-right:10rpx;" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/good.png" /> :style="{ height: '100%' }"
{{item.CommentGradeName}} >
</view> <view
<view> class="commentList"
<u-button size="mini" v-if="item.Is_Top==1" @click="commonSet(item,5)" class="ComStyle" shape="circle">取消置顶</u-button> v-for="(item, index) in dataList"
<u-button size="mini" v-if="item.Is_Top==2" @click="commonSet(item,4)" class="ComStyle" shape="circle">置顶</u-button> :key="index"
<u-button size="mini" v-if="item.Is_Show==1" class="ComStyle" @click="commonSet(item,2)" shape="circle">隐藏评论</u-button> >
<u-button size="mini" v-if="item.Is_Show==2" class="ComStyle" @click="commonSet(item,3)" shape="circle">显示评论</u-button> <view class="commentTop">
<u-button size="mini" @click="getReplay(item)" class="ComStyle" shape="circle">回复</u-button> <view class="comment_Left">
</view> <img
</view> style="width: 100%; height: 100%"
</view> :src="item.CoverImage"
<u-loadmore :status="status" :load-text="loadText" :font-size="24" :margin-top="20" :margin-bottom="20" alt=""
bg-color="#f3f4f6" /> />
</scroll-view> </view>
</view> <view class="comment_Right">
<u-modal v-model="showReplayBox" :show-cancel-button="true" title="回复" contentSlot @confirm="SaveReply"> <view class="comment_Nei">{{ item.Content }}</view>
<textarea style="height: 120px;" class="replayRemark" v-model="hfMsg.Content" /> <view class="comment_Replay"> 来自用户 {{ item.UserName }} </view>
</u-modal> </view>
</view> </view>
<view
class="commentTop"
style="margin-top: 20rpx; justify-content: space-between"
>
<view style="display: flex; align-items: center; font-size: 22rpx">
<img
style="width: 48rpx; height: 48rpx; margin-right: 10rpx"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/good.png"
/>
{{ item.CommentGradeName }}
</view>
<view>
<u-button
size="mini"
v-if="item.Is_Top == 1"
@click="commonSet(item, 5)"
class="ComStyle"
shape="circle"
>取消置顶</u-button
>
<u-button
size="mini"
v-if="item.Is_Top == 2"
@click="commonSet(item, 4)"
class="ComStyle"
shape="circle"
>置顶</u-button
>
<u-button
size="mini"
v-if="item.Is_Show == 1"
class="ComStyle"
@click="commonSet(item, 2)"
shape="circle"
>隐藏评论</u-button
>
<u-button
size="mini"
v-if="item.Is_Show == 2"
class="ComStyle"
@click="commonSet(item, 3)"
shape="circle"
>显示评论</u-button
>
<u-button
size="mini"
@click="getReplay(item)"
class="ComStyle"
shape="circle"
>回复</u-button
>
</view>
</view>
</view>
<u-loadmore
:status="status"
:load-text="loadText"
:font-size="24"
:margin-top="20"
:margin-bottom="20"
bg-color="#f3f4f6"
/>
</scroll-view>
</view>
<u-modal
v-model="showReplayBox"
:show-cancel-button="true"
title="回复"
contentSlot
@confirm="SaveReply"
>
<textarea
style="height: 240rpx"
class="replayRemark"
v-model="hfMsg.Content"
/>
</u-modal>
</view>
</template> </template>
<script> <script>
export default { export default {
components: { components: {},
data() {
}, return {
data() { pageTitle: "评论管理",
return { current: 0,
pageTitle: "评论管理", contentHeight: 0,
current: 0, mainColor: "",
contentHeight: 0, page_count: 1,
mainColor: "", dataList: [],
page_count: 1, msg: {
dataList: [], pageIndex: 1,
msg: { pageSize: 15,
pageIndex: 1, CommentGrade: 1,
pageSize: 15, PlatformSource: 0,
CommentGrade: 1, UserName: "",
PlatformSource: 0, GoodsName: "",
UserName: '', Content: "",
GoodsName: '', }, //分销商msg
Content: '', list: [
}, //分销商msg {
list: [{ name: "好评",
name: '好评' },
}, { {
name: '中评' name: "中评",
}, { },
name: '差评' {
}], name: "差评",
status: "loadmore", },
loadText: { ],
loadmore: "轻轻上拉,加载更多", status: "loadmore",
loading: "努力加载中", loadText: {
nomore: "没有更多了", loadmore: "轻轻上拉,加载更多",
}, loading: "努力加载中",
currentScore: 0, nomore: "没有更多了",
showReplayBox:false, },
hfMsg: { currentScore: 0,
OrderDetailIds: '', showReplayBox: false,
Type: 1, hfMsg: {
Content: '', OrderDetailIds: "",
}, Type: 1,
}; Content: "",
}, },
created() { };
this.contentHeight = this.$utils.calcContentHeight(-40) + "px"; },
this.mainColor = this.$uiConfig.mainColor; created() {
}, this.contentHeight = this.$utils.calcContentHeight(-40) + "px";
mounted() { this.mainColor = this.$uiConfig.mainColor;
uni.setNavigationBarTitle({ },
title: this.pageTitle, mounted() {
}); uni.setNavigationBarTitle({
}, title: this.pageTitle,
onLoad: function(option) { });
//this.current = option.status || -1; },
this.getList(); onLoad: function (option) {
}, //this.current = option.status || -1;
methods: { this.getList();
change(index) { },
this.current=index; methods: {
if(index==0){ change(index) {
this.msg.CommentGrade=1; this.current = index;
} if (index == 0) {
if(index==1){ this.msg.CommentGrade = 1;
this.msg.CommentGrade=2; }
} if (index == 1) {
if(index==2){ this.msg.CommentGrade = 2;
this.msg.CommentGrade=3; }
} if (index == 2) {
this.dataList = []; this.msg.CommentGrade = 3;
this.msg.pageIndex = 1; }
this.getList(); this.dataList = [];
}, this.msg.pageIndex = 1;
getList() { this.getList();
uni.showLoading({ },
title: '加载中' getList() {
}); uni.showLoading({
this.requestAdmin("/api/order/GetGoodsCommentPageList", this.msg, res => { title: "加载中",
uni.hideLoading(); });
if (res.resultCode == 1) { this.requestAdmin(
this.dataList = res.data.pageData; "/api/order/GetGoodsCommentPageList",
this.page_count = res.data.pageCount; this.msg,
} (res) => {
}) uni.hideLoading();
}, if (res.resultCode == 1) {
lower(e) { this.dataList = res.data.pageData;
if (this.msg.pageIndex < this.page_count) { this.page_count = res.data.pageCount;
this.msg.pageIndex++; }
this.status = "loading"; }
this.getList(); );
} else { },
this.status = "nomore"; lower(e) {
} if (this.msg.pageIndex < this.page_count) {
}, this.msg.pageIndex++;
//显示 隐藏评论 this.status = "loading";
commonSet(obj,type) { this.getList();
let msg={ } else {
OrderDetailIds:obj.OrderDetailId, this.status = "nomore";
Type:type }
} },
this.requestAdmin("/api/order/SetCommentBatchByOrderDetailId", msg, res => { //显示 隐藏评论
if (res.resultCode == 1) { commonSet(obj, type) {
uni.showToast({ let msg = {
title: res.message OrderDetailIds: obj.OrderDetailId,
}); Type: type,
this.getList(); };
} else { this.requestAdmin(
uni.showToast({ "/api/order/SetCommentBatchByOrderDetailId",
title: res.message msg,
}); (res) => {
} if (res.resultCode == 1) {
}) uni.showToast({
}, title: res.message,
//点击回复 });
getReplay(item){ this.getList();
this.hfMsg.OrderDetailIds = item.OrderDetailId } else {
this.showReplayBox =true; uni.showToast({
}, title: res.message,
//保存回复 });
SaveReply(){ }
this.requestAdmin("/api/order/SetCommentBatchByOrderDetailId", this.hfMsg, res => { }
if (res.resultCode == 1) { );
uni.showToast({ },
title: res.message //点击回复
}); getReplay(item) {
this.getList(); this.hfMsg.OrderDetailIds = item.OrderDetailId;
this.showReplayBox = false; this.showReplayBox = true;
} else { },
uni.showToast({ //保存回复
title: res.message SaveReply() {
}); this.requestAdmin(
} "/api/order/SetCommentBatchByOrderDetailId",
}) this.hfMsg,
} (res) => {
} if (res.resultCode == 1) {
}; uni.showToast({
title: res.message,
});
this.getList();
this.showReplayBox = false;
} else {
uni.showToast({
title: res.message,
});
}
}
);
},
},
};
</script> </script>
<style> <style>
.comManage { .comManage {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.commentList { .commentList {
width: 100%; width: 100%;
background-color: #E5E5E5; background-color: #e5e5e5;
padding: 20rpx; padding: 20rpx;
margin-bottom: 25rpx; margin-bottom: 25rpx;
border-radius: 20rpx; border-radius: 20rpx;
} }
.commentTop { .commentTop {
display: flex; display: flex;
} }
.replayRemark { .replayRemark {
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
margin: 40rpx 0 40rpx 28rpx; margin: 40rpx 0 40rpx 28rpx;
padding:20rpx; padding: 20rpx;
width:500rpx; width: 500rpx;
} border-radius: 10rpx;
.comment_Left { font-size: 28rpx;
width: 150rpx; }
height: 150rpx; .comment_Left {
flex-shrink: 0; width: 150rpx;
} height: 150rpx;
flex-shrink: 0;
}
.comment_Right { .comment_Right {
width: 560rpx; width: 560rpx;
height: 160rpx; height: 160rpx;
background-color: #DEDEDE; background-color: #dedede;
border-radius: 10rpx; border-radius: 10rpx;
padding: 10rpx 10rpx 10rpx 20rpx; padding: 10rpx 10rpx 10rpx 20rpx;
position: relative; position: relative;
} }
.comment_Nei { .comment_Nei {
font-size: 24rpx; font-size: 24rpx;
color: #000000; color: #000000;
text-overflow: -o-ellipsis-lastline; text-overflow: -o-ellipsis-lastline;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 3; -webkit-line-clamp: 3;
line-clamp: 3; line-clamp: 3;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
.comment_Replay { .comment_Replay {
color: #999999; color: #999999;
font-size: 24rpx; font-size: 24rpx;
position: absolute; position: absolute;
bottom: 15rpx; bottom: 15rpx;
} }
.ComStyle { .ComStyle {
margin-right: 20rpx; margin-right: 20rpx;
} }
.ComStyle:last-child{ .ComStyle:last-child {
margin-right:0; margin-right: 0;
} }
.u-model {
border-radius: 20rpx;
}
</style> </style>
...@@ -164,14 +164,16 @@ export default { ...@@ -164,14 +164,16 @@ export default {
color:"#CCCED5", color:"#CCCED5",
active_color:"#446dfc", active_color:"#446dfc",
text:"订单", text:"订单",
},{ },
url:"/pages/MallMange/goods", // {
icon:"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/goods2.png", // url:"/pages/MallMange/goods",
active_icon:"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/goods.png", // icon:"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/goods2.png",
color:"#CCCED5", // active_icon:"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/goods.png",
active_color:"#446dfc", // color:"#CCCED5",
text:"商品", // active_color:"#446dfc",
},{ // text:"商品",
// },
{
url:"/pages/MallMange/set", url:"/pages/MallMange/set",
icon:"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/setup-fill2.png", icon:"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/setup-fill2.png",
active_icon:"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/setup-fill.png", active_icon:"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/setup-fill.png",
...@@ -182,11 +184,9 @@ export default { ...@@ -182,11 +184,9 @@ export default {
}; };
}, },
mounted() { mounted() {
console.log("B join...");
this.flagTypeInfo = this.$uiConfig.is_bang; this.flagTypeInfo = this.$uiConfig.is_bang;
let tempSystem = uni.getSystemInfoSync(); let tempSystem = uni.getSystemInfoSync();
this.platforms = tempSystem.platform; this.platforms = tempSystem.platform;
this.$nextTick(() => { this.$nextTick(() => {
// #ifdef APP-NVUE || APP-PLUS || APP-PLUS-NVUE ||APP-VUE // #ifdef APP-NVUE || APP-PLUS || APP-PLUS-NVUE ||APP-VUE
if (this.platforms == "android") { if (this.platforms == "android") {
...@@ -197,17 +197,6 @@ export default { ...@@ -197,17 +197,6 @@ export default {
}); });
this.activeHandler(); this.activeHandler();
}, },
// activated(){
// if(uni.getStorageSync("navs")){
// this.navs = uni.getStorageSync("navs")??[];
// }else{
// setTimeout(()=>{
// this.navs = uni.getStorageSync("navs")??[];
// this.activeHandler();
// },3000)
// }
// this.activeHandler();
// },
methods: { methods: {
activeHandler() { activeHandler() {
let t = getCurrentPages(); let t = getCurrentPages();
...@@ -220,7 +209,6 @@ export default { ...@@ -220,7 +209,6 @@ export default {
queryString = "?" + queryString.substring(1, queryString.length); queryString = "?" + queryString.substring(1, queryString.length);
} }
this.crtPath = "/" + t[t.length - 1].route + queryString; this.crtPath = "/" + t[t.length - 1].route + queryString;
console.log(23,this.crtPath);
this.navs.forEach((x, i) => { this.navs.forEach((x, i) => {
if (x.url == this.crtPath) { if (x.url == this.crtPath) {
this.active = i; this.active = i;
......
...@@ -19,12 +19,12 @@ ...@@ -19,12 +19,12 @@
width: 100rpx; width: 100rpx;
" "
> >
<image <!-- <image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/qr_code.png" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/qr_code.png"
class="ewmimg" class="ewmimg"
mode="aspectFill" mode="aspectFill"
/> />
<view class="name2">收款码</view> <view class="name2">收款码</view> -->
</view> </view>
</view> </view>
<view class="msgBox flex-center"> <view class="msgBox flex-center">
...@@ -419,7 +419,8 @@ export default { ...@@ -419,7 +419,8 @@ export default {
(_self.payType == "支付金额" ? "元" : "") (_self.payType == "支付金额" ? "元" : "")
); );
} else { } else {
return category + " " + item.name + ":" + item.data + "元"; return category + " " + item.name + ":" + item.data +
(_self.payType == "支付金额" ? "元" : "");
} }
}, },
}); });
...@@ -534,7 +535,6 @@ export default { ...@@ -534,7 +535,6 @@ export default {
}; };
this.requestAdmin("/api/user/GetDistributorRemitPageList", msg, (res) => { this.requestAdmin("/api/user/GetDistributorRemitPageList", msg, (res) => {
this.txNumber=res.data.count this.txNumber=res.data.count
console.log(533,this.txNumber)
}); });
}, },
}, },
......
...@@ -324,11 +324,11 @@ export default { ...@@ -324,11 +324,11 @@ export default {
}; };
}, },
methods: { methods: {
goOrderSearch(){ goOrderSearch() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/MallMange/orderSearch?type='+this.orderType url: "/pages/MallMange/orderSearch?type=" + this.orderType,
}); });
}, },
//筛选时间 //筛选时间
confirm() { confirm() {
if (this.orderType === 1) { if (this.orderType === 1) {
...@@ -566,13 +566,16 @@ export default { ...@@ -566,13 +566,16 @@ export default {
}); });
this.getOrderStatus(); this.getOrderStatus();
this.getAfterSalesOrderstatus(); this.getAfterSalesOrderstatus();
if (options?.orderType) { if (options.orderType) {
this.orderType = parseInt(options.orderType); this.orderType = parseInt(options.orderType);
} }
if (options?.tab) {
this.currentTab = parseInt(options.tab);
}
if (this.orderType === 1) { if (this.orderType === 1) {
if (options.tab) {
this.currentTab = parseInt(options.tab);
this.msg.OrderStatus = parseInt(options.tab)
}
this.getList(); this.getList();
} else if (this.orderType === 2) { } else if (this.orderType === 2) {
this.getList2(); this.getList2();
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
:show-action="false" v-model="msg2.ReOrderNo"></u-search> :show-action="false" v-model="msg2.ReOrderNo"></u-search>
</view> </view>
<view class="flex-center" v-if="orderType==1" @click="getList1"> <view class="flex-center" v-if="orderType==1" @click="getList1">
搜索1 搜索
</view> </view>
<view class="flex-center" v-if="orderType==2" @click="getList2"> <view class="flex-center" v-if="orderType==2" @click="getList2">
搜索2 搜索
</view> </view>
</view> </view>
<view v-if="orderList.length > 0" <view v-if="orderList.length > 0"
......
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
<view class="topBox"> <view class="topBox">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/bg.png" mode="widthFix" <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/bg.png" mode="widthFix"
class="bg" /> class="bg" />
<view class="headImgBox"></view> <view class="headImgBox">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/home2.png" style="width:100%;height:100%" mode="aspectFit" />
</view>
<view class="nameBox">{{ msg.MallName }} <view class="nameBox">{{ msg.MallName }}
<u-icon name="edit" style="margin-left: 10rpx" @click="showBox1 = true"></u-icon> <u-icon name="edit" style="margin-left: 10rpx" @click="showBox1 = true"></u-icon>
</view> </view>
...@@ -314,7 +316,7 @@ ...@@ -314,7 +316,7 @@
</view> </view>
<view class="rightBox"> <view class="rightBox">
<view class="name">余额功能</view> <view class="name">余额功能</view>
<u-switch v-model="msg.BalanceFun" :active-value="1" :inactive-value="0" @change="BalanceFun"> <u-switch v-model="msg.BalanceFun" @change="BalanceFun">
</u-switch> </u-switch>
</view> </view>
</view> </view>
...@@ -325,7 +327,7 @@ ...@@ -325,7 +327,7 @@
</view> </view>
<view class="rightBox" style="border: none"> <view class="rightBox" style="border: none">
<view class="name">储值卡功能</view> <view class="name">储值卡功能</view>
<u-switch v-model="msg.DepositFun" :active-value="1" :inactive-value="0" @change="DepositFun"> <u-switch v-model="msg.DepositFun" @change="DepositFun">
</u-switch> </u-switch>
</view> </view>
</view> </view>
...@@ -384,7 +386,7 @@ ...@@ -384,7 +386,7 @@
</view> </view>
<view class="rightBox" style="border: none"> <view class="rightBox" style="border: none">
<view class="name">开关</view> <view class="name">开关</view>
<u-switch v-model="msg.MinSwitch" :active-value="1" :inactive-value="0"></u-switch> <u-switch v-model="msg.MinSwitch" @change="MinSwitch"></u-switch>
</view> </view>
</view> </view>
<template v-if="msg.MinSwitch"> <template v-if="msg.MinSwitch">
...@@ -457,7 +459,7 @@ ...@@ -457,7 +459,7 @@
</view> </view>
<view class="rightBox" style="border: none"> <view class="rightBox" style="border: none">
<view class="name">开关</view> <view class="name">开关</view>
<u-switch v-model="msg.BuySwitch" :active-value="1" :inactive-value="0"></u-switch> <u-switch v-model="msg.BuySwitch" @change="BuySwitch"></u-switch>
</view> </view>
</view> </view>
<view class="boxItem"> <view class="boxItem">
...@@ -838,7 +840,9 @@ ...@@ -838,7 +840,9 @@
}, },
//获取设置数据 //获取设置数据
getSetup() { getSetup() {
this.loading=true
this.requestAdmin("/api/MallBase/GetMallBaseInfo", {}, (res) => { this.requestAdmin("/api/MallBase/GetMallBaseInfo", {}, (res) => {
this.loading=false
this.msg = res.data; this.msg = res.data;
//支付方式 //支付方式
this.payTypeArr.forEach((e) => { this.payTypeArr.forEach((e) => {
...@@ -893,6 +897,12 @@ ...@@ -893,6 +897,12 @@
DepositFun(e) { DepositFun(e) {
this.msg.DepositFun = Number(e) this.msg.DepositFun = Number(e)
}, },
MinSwitch(e) {
this.msg.MinSwitch = Number(e)
},
BuySwitch(e) {
this.msg.BuySwitch = Number(e)
},
}, },
onLoad() { onLoad() {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
...@@ -942,7 +952,7 @@ ...@@ -942,7 +952,7 @@
border-radius: 50%; border-radius: 50%;
border: 4rpx solid #fff; border: 4rpx solid #fff;
overflow: hidden; overflow: hidden;
background-color: #f00; background-color: #5FAAFE;
} }
.nameBox { .nameBox {
......
<template> <template>
<view class="userManage" :style="{height: contentHeight,}"> <view class="userManage" :style="{ height: contentHeight }">
<view style="padding: 10px 0; background: #fff;"> <view style="padding: 10px 0; background: #fff">
<u-tabs :list="AuditStatusList" :is-scroll="false" :current="current" name="Name" @change="change" <u-tabs
:active-color="mainColor" bg-color="#FFF" height="80" bar-width="100"></u-tabs> :list="AuditStatusList"
</view> :is-scroll="false"
<view style="height: calc(100vh - 50px); background: #fff;" v-if="dataList.length == 0"> :current="current"
<u-empty text="暂无相关数据" mode="order"></u-empty> name="Name"
</view> @change="change"
<view v-if="dataList.length>0" :active-color="mainColor"
style="height: calc(100vh - 50px);width: calc(100vw);overflow: hidden;padding: 25rpx;background-color: #F7F7F7;"> bg-color="#FFF"
<scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" @scrolltolower="lowerTwo" height="80"
:style="{ height: '100%' }"> bar-width="100"
<view class="userList" v-for="(item,index) in dataList"> ></u-tabs>
<view class="user_Top"> </view>
<view class="user_Header"> <view
<img style="width:100%;height:100%;" :src="item.Photo" alt=""> style="height: calc(100vh - 50px); background: #fff"
</view> v-if="dataList.length == 0"
<view> >
<view class="userName">{{item.UserName}}</view> <u-empty text="暂无相关数据" mode="order"></u-empty>
<view class="tixianLevel">提现金额:{{item.AppliedMoney}}</view> </view>
<view class="tixianLevel">手续费:{{item.Fee}}</view> <view
<view class="tixianLevel">打款金额:{{item.RemitMoney}}</view> v-if="dataList.length > 0"
</view> style="
</view> height: calc(100vh - 50px);
<view style="display: flex;justify-content:flex-end;margin-top: 20rpx;"> width: calc(100vw);
<u-button size="mini" class="ucustomStyle" shape="circle" @click="getTixianWay(item)">提现详情 overflow: hidden;
</u-button> padding: 25rpx;
<u-button size="mini" v-if="item.AuditStatus==1 || item.AuditStatus==2" class="ucustomStyle" shape="circle" @click="openReason(item,3)">拒绝 background-color: #f7f7f7;
</u-button> "
<u-button size="mini" v-if="item.AuditStatus==1" shape="circle" @click="openReason(item,1)">通过</u-button> >
<u-button size="mini" v-if="item.AuditStatus==2" shape="circle" @click="openReason(item,2)">打款</u-button> <scroll-view
</view> :scroll-y="true"
</view> :enable-back-to-top="true"
<u-loadmore :status="status" :load-text="loadText" :font-size="24" :margin-top="20" :enable-flex="true"
:margin-bottom="20" bg-color="#f3f4f6" /> @scrolltolower="lowerTwo"
</scroll-view> :style="{ height: '100%' }"
</view> >
<u-modal v-model="isShowTixianWay" :show-cancel-button="false" title="提现方式" contentSlot @confirm="SaveTixian"> <view class="userList" v-for="(item, index) in dataList">
<view style="margin:40rpx;font-size:28rpx;">提现方式:{{tixianWay}}</view> <view class="user_Top">
</u-modal> <view class="user_Header">
<u-modal v-model="isShowAgree" :show-cancel-button="true" :title="commonTitle" contentSlot @confirm="SaveAgree"> <img style="width: 100%; height: 100%" :src="item.Photo" alt="" />
<textarea style="height: 120px;" class="replayRemark" v-model="addMsg.Remark" /> </view>
</u-modal> <view>
</view> <view class="userName">{{ item.UserName }}</view>
<view class="tixianLevel">提现金额:{{ item.AppliedMoney }}</view>
<view class="tixianLevel">手续费:{{ item.Fee }}</view>
<view class="tixianLevel">打款金额:{{ item.RemitMoney }}</view>
</view>
</view>
<view
style="display: flex; justify-content: flex-end; margin-top: 20rpx"
>
<u-button
size="mini"
class="ucustomStyle"
shape="circle"
@click="getTixianWay(item)"
>提现详情
</u-button>
<u-button
size="mini"
v-if="item.AuditStatus == 1 || item.AuditStatus == 2"
class="ucustomStyle"
shape="circle"
@click="openReason(item, 3)"
>拒绝
</u-button>
<u-button
size="mini"
v-if="item.AuditStatus == 1"
shape="circle"
@click="openReason(item, 1)"
>通过</u-button
>
<u-button
size="mini"
v-if="item.AuditStatus == 2"
shape="circle"
@click="openReason(item, 2)"
>打款</u-button
>
</view>
</view>
<u-loadmore
:status="status"
:load-text="loadText"
:font-size="24"
:margin-top="20"
:margin-bottom="20"
bg-color="#f3f4f6"
/>
</scroll-view>
</view>
<u-modal
v-model="isShowTixianWay"
:show-cancel-button="false"
title="提现方式"
contentSlot
@confirm="SaveTixian"
>
<view style="margin: 40rpx; font-size: 28rpx"
>提现方式:{{ tixianWay }}</view
>
</u-modal>
<u-modal
v-model="isShowAgree"
:show-cancel-button="true"
:title="commonTitle"
contentSlot
@confirm="SaveAgree"
>
<textarea
style="height: 120px"
class="replayRemark"
v-model="addMsg.Remark"
/>
</u-modal>
</view>
</template> </template>
<script> <script>
export default { export default {
components: { components: {},
data() {
return {
pageTitle: "提现申请",
current: 0,
contentHeight: 0,
mainColor: "",
page_count: 1,
dataList: [],
u: {},
msg: {
pageIndex: 1,
pageSize: 15,
AuditStatus: 0,
UserId: 0,
},
}, status: "loadmore",
data() { loadText: {
return { loadmore: "轻轻上拉,加载更多",
pageTitle: "提现申请", loading: "努力加载中",
current: 0, nomore: "没有更多了",
contentHeight: 0, },
mainColor: "", AuditStatusList: [], //流程list
page_count: 1, isShowTixianWay: false,
dataList: [], tixianWay: "",
u: {}, addMsg: {
msg:{ RemitId: 0,
pageIndex:1, Type: 1,
pageSize:15, Remark: "",
AuditStatus:0, ErpEmpId: 0,
UserId:0, },
}, isShowAgree: false,
commonTitle: "", //申请标题
status: "loadmore", };
loadText: { },
loadmore: "轻轻上拉,加载更多", created() {
loading: "努力加载中", this.contentHeight = this.$utils.calcContentHeight(-40) + "px";
nomore: "没有更多了", this.mainColor = this.$uiConfig.mainColor;
}, },
AuditStatusList:[], //流程list mounted() {
isShowTixianWay:false, uni.setNavigationBarTitle({
tixianWay:'', title: this.pageTitle,
addMsg:{ });
RemitId:0, },
Type:1, onLoad: function (option) {
Remark:'', this.GetAuditStatus();
ErpEmpId:0 this.getList();
}, },
isShowAgree:false, methods: {
commonTitle:'', //申请标题 change(index) {
}; this.current = index;
}, this.dataList = [];
created() { this.msg.AuditStatus = index;
this.contentHeight = this.$utils.calcContentHeight(-40) + "px"; this.msg.pageIndex = 1;
this.mainColor = this.$uiConfig.mainColor; this.getList();
}, },
mounted() { getList(type) {
uni.setNavigationBarTitle({ this.dataList = [];
title: this.pageTitle, uni.showLoading({
}); title: "加载中",
}, });
onLoad: function(option) { this.requestAdmin(
this.GetAuditStatus(); "/api/user/GetDistributorRemitPageList",
this.getList(); this.msg,
}, (res) => {
methods: { uni.hideLoading();
change(index) { if (res.resultCode == 1) {
this.current = index; this.dataList = this.dataList.concat(res.data.pageData);
this.dataList = []; this.page_count = res.data.pageCount;
this.msg.AuditStatus = index; }
this.msg.pageIndex = 1; }
this.getList(); );
}, },
getList(type) { lower(e) {
this.dataList = []; if (this.msg.pageIndex < this.page_count) {
uni.showLoading({ this.msg.pageIndex++;
title: '加载中' this.status = "loading";
}); this.getList();
this.requestAdmin( } else {
"/api/user/GetDistributorRemitPageList", this.status = "nomore";
this.msg, }
(res) => { },
uni.hideLoading(); //获取顶部条件
if (res.resultCode == 1) { GetAuditStatus() {
this.dataList = this.dataList.concat(res.data.pageData); this.requestAdmin(
this.page_count = res.data.pageCount; "/api/user/GetDistributorRemitAuditStatusEnumList",
} {},
} (res) => {
); if (res.resultCode == 1) {
}, this.AuditStatusList = res.data;
lower(e) { let obj = {
if (this.msg.pageIndex < this.page_count) { Name: "全部",
this.msg.pageIndex++; Id: 0,
this.status = "loading"; };
this.getList(); this.AuditStatusList.unshift(obj);
} else { }
this.status = "nomore"; }
} );
}, },
//获取顶部条件 //弹出提现详情
GetAuditStatus(){ getTixianWay(item) {
this.requestAdmin("/api/user/GetDistributorRemitAuditStatusEnumList",{}, res => { this.isShowTixianWay = true;
if(res.resultCode==1){ this.tixianWay = item.WithdrawalWayName;
this.AuditStatusList=res.data; },
let obj={ SaveTixian() {
Name:'全部', this.isShowTixianWay = false;
Id:0 },
} openReason(item, type) {
this.AuditStatusList.unshift(obj); this.isShowAgree = true;
} this.addMsg.Remark = "";
}) this.addMsg.Type = type;
}, this.addMsg.RemitId = item.Id;
//弹出提现详情 if (type == 1) {
getTixianWay(item){ this.commonTitle = "通过申请";
this.isShowTixianWay=true; } else if (type == 3) {
this.tixianWay = item.WithdrawalWayName; this.commonTitle = "拒绝申请";
}, } else {
SaveTixian(){ this.commonTitle = "打款申请";
this.isShowTixianWay=false; }
}, },
openReason(item,type){ //保存同意拒绝
this.isShowAgree=true; SaveAgree() {
this.addMsg.Remark=''; this.requestAdmin(
this.addMsg.Type=type; "/api/user/SetDistributorRemitAudit",
this.addMsg.RemitId=item.Id; this.addMsg,
if(type==1){ (res) => {
this.commonTitle='通过申请' if (res.resultCode == 1) {
}else if(type==3){ uni.showToast({
this.commonTitle='拒绝申请' title: "操作成功",
}else{ icon: "none",
this.commonTitle='打款申请' });
} this.getList();
}, this.isShowAgree = false;
//保存同意拒绝 } else {
SaveAgree(){ uni.showToast({
this.requestAdmin("/api/user/SetDistributorRemitAudit",this.addMsg, res => { title: res.message,
if(res.resultCode==1){ icon: "none",
uni.showToast({ });
title: '操作成功', }
icon: 'none', }
}) );
this.getList(); },
this.isShowAgree=false; },
}else{ };
uni.showToast({
title: res.message,
icon: 'none',
})
}
})
}
}
};
</script> </script>
<style> <style>
.userManage { .userManage {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: #f3f4f6; background: #f3f4f6;
} }
.userManage .userList { .userManage .userList {
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;
padding: 20rpx; padding: 20rpx;
margin-bottom: 25rpx; margin-bottom: 25rpx;
} }
.user_Top { .user_Top {
display: flex; display: flex;
} }
.userName { .userName {
font-size: 30rpx; font-size: 30rpx;
color: #000; color: #000;
} }
.tixianLevel { .tixianLevel {
font-size: 26rpx; font-size: 26rpx;
color: #999999; color: #999999;
margin-top:10rpx; margin-top: 10rpx;
} }
.user_Header { .user_Header {
width: 100rpx; width: 100rpx;
height: 100rpx; height: 100rpx;
border-radius: 10rpx; border-radius: 10rpx;
overflow: hidden; overflow: hidden;
margin-right: 20rpx; margin-right: 20rpx;
} }
.user_Header img { .user_Header img {
border-radius: 10rpx; border-radius: 10rpx;
} }
.ucustomStyle { .ucustomStyle {
margin-right: 20rpx; margin-right: 20rpx;
} }
.replayRemark { .replayRemark {
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
margin: 40rpx 0 40rpx 28rpx; margin: 40rpx 0 40rpx 28rpx;
padding:20rpx; padding: 20rpx;
width:500rpx; width: 500rpx;
} border-radius: 10rpx;
font-size: 28rpx
}
.u-model {
border-radius: 20rpx;
}
</style> </style>
...@@ -745,6 +745,8 @@ export default { ...@@ -745,6 +745,8 @@ export default {
margin: 40rpx 0 40rpx 28rpx; margin: 40rpx 0 40rpx 28rpx;
padding: 20rpx; padding: 20rpx;
width: 500rpx; width: 500rpx;
border-radius: 10rpx;
font-size: 30rpx;
} }
.userManInput { .userManInput {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment