问题修复,增加点单智能推荐页面
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<view class="u-font-28 u-flex-1 u-p-r-4">
|
||||
<view class="color-333 font-bold">分销</view>
|
||||
<view class="color-666 u-m-t-4 u-font-24"
|
||||
>允许客户充值并使用余额支付
|
||||
>用户成为业务员,可促进消费
|
||||
</view>
|
||||
</view>
|
||||
<up-switch
|
||||
@@ -38,6 +38,7 @@
|
||||
v-model="keyWord"
|
||||
@blur="keyWordBlur"
|
||||
/>
|
||||
<up-icon v-if="keyWord" name="close" size="14" @click="clearKeyWord"></up-icon>
|
||||
</view>
|
||||
<view
|
||||
class="u-flex-1 u-font-28 filter-box u-flex u-row-between"
|
||||
@@ -50,6 +51,9 @@
|
||||
{{ userComponentQuery.startTime }} -
|
||||
{{ userComponentQuery.endTime }}
|
||||
</text>
|
||||
<view @click.stop="clearTime">
|
||||
<up-icon name="close" size="14"></up-icon>
|
||||
</view>
|
||||
</template>
|
||||
<template v-else>
|
||||
<text class="color-999">请选择日期范围</text>
|
||||
@@ -66,14 +70,13 @@
|
||||
class="u-font-28 filter-box u-flex u-row-between"
|
||||
@click="showActions = true"
|
||||
>
|
||||
<template v-if="selActions&&selActions.value">
|
||||
<template v-if="selActions && selActions.value">
|
||||
<text class="u-font-28 u-m-r-10">{{ selActions.name }} </text>
|
||||
</template>
|
||||
<template v-else>
|
||||
<text class="color-999 u-m-r-10">全部</text>
|
||||
</template>
|
||||
<up-icon name="arrow-down" size="12"></up-icon>
|
||||
|
||||
</view>
|
||||
<view class="u-flex-1 filter-box" style="border-radius: 100rpx">
|
||||
<up-icon name="search" size="18"></up-icon>
|
||||
@@ -97,6 +100,9 @@
|
||||
{{ userComponentQuery.startTime }} -
|
||||
{{ userComponentQuery.endTime }}
|
||||
</text>
|
||||
<view @click.stop="clearTime">
|
||||
<up-icon name="close" size="14"></up-icon>
|
||||
</view>
|
||||
</template>
|
||||
<template v-else>
|
||||
<text class="color-999">请选择日期</text>
|
||||
@@ -115,7 +121,7 @@
|
||||
<view class="u-font-32 color-main font-bold">{{
|
||||
listRes.totalAmount
|
||||
}}</view>
|
||||
<view class="u-font-24 color-666 u-m-t-16">支付开通人数</view>
|
||||
<view class="u-font-24 color-666 u-m-t-16">已支付金额(元)</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="active == 3" class="u-flex u-m-t-32">
|
||||
@@ -137,7 +143,9 @@
|
||||
}}</view>
|
||||
<view class="u-font-24 color-666 u-m-t-16">
|
||||
<text>运营余额(元)</text>
|
||||
<text class="color-main" @click="go.to('PAGES_PAY')">充值{{'>'}}</text>
|
||||
<text class="color-main" @click="go.to('PAGES_PAY')"
|
||||
>充值{{ ">" }}</text
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -229,10 +237,18 @@ const actions = [
|
||||
value: "refund",
|
||||
},
|
||||
];
|
||||
const selActions=ref('')
|
||||
function clearKeyWord() {
|
||||
keyWord.value = "";
|
||||
userComponentQuery.user = "";
|
||||
}
|
||||
function clearTime() {
|
||||
userComponentQuery.startTime = "";
|
||||
userComponentQuery.endTime = "";
|
||||
}
|
||||
const selActions = ref("");
|
||||
const showActions = ref(false);
|
||||
function handleSelect(e) {
|
||||
selActions.value = e;
|
||||
selActions.value = e;
|
||||
}
|
||||
|
||||
const distributionStore = useDistributionStore();
|
||||
@@ -360,7 +376,7 @@ async function getList() {
|
||||
page: pageNum.value,
|
||||
size: 10,
|
||||
key: userComponentQuery.user,
|
||||
status: selActions.value.value,
|
||||
status: selActions.value?.value || "",
|
||||
startTime: userComponentQuery.startTime
|
||||
? userComponentQuery.startTime + " 00:00:00"
|
||||
: "",
|
||||
@@ -391,6 +407,9 @@ const active = ref(0);
|
||||
watch(
|
||||
() => active.value,
|
||||
(newval) => {
|
||||
userComponentQuery.startTime = "";
|
||||
userComponentQuery.endTime = "";
|
||||
keyWord.value = "";
|
||||
console.log(newval);
|
||||
pageNum.value = 1;
|
||||
getList();
|
||||
@@ -399,21 +418,28 @@ watch(
|
||||
watch(
|
||||
() => active.value,
|
||||
(newval) => {
|
||||
|
||||
refresh();
|
||||
}
|
||||
);
|
||||
watch(
|
||||
() => selActions.value,
|
||||
() => {
|
||||
refresh();
|
||||
}
|
||||
);
|
||||
watch(()=>selActions.value,()=>{
|
||||
refresh()
|
||||
})
|
||||
onReachBottom(() => {
|
||||
if (!isEnd.value) {
|
||||
pageNum.value++;
|
||||
getList();
|
||||
}
|
||||
});
|
||||
watch(()=>distributionStore.config.isEnable,()=>{
|
||||
distributionStore.editConfig()
|
||||
})
|
||||
watch(
|
||||
() => distributionStore.config.isEnable,
|
||||
() => {
|
||||
distributionStore.editConfig();
|
||||
}
|
||||
);
|
||||
onShow(() => {
|
||||
pageNum.value = 1;
|
||||
getList();
|
||||
|
||||
Reference in New Issue
Block a user