测试环境链接替换,部分问题修复,增加批量退菜功能
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
|
||||
</view>
|
||||
<!-- 用户列表 -->
|
||||
<template>
|
||||
<template v-if="true">
|
||||
<view class="input-wrapper u-p-l-30 u-p-r-30 u-p-b-30 bg-fff">
|
||||
<view class="input-main">
|
||||
<view class="input-main ">
|
||||
<uni-easyinput class='jeepay-search' :inputBorder="false" :placeholder="pageData.search.placeholder"
|
||||
v-model="pageData.query.key" @confirm="searchFunc">
|
||||
<template #prefixIcon>
|
||||
@@ -50,6 +50,7 @@
|
||||
</template>
|
||||
|
||||
<my-action-sheet @itemClick="actionSheetClick" ref="moreOperate" :list="moreOperateList"></my-action-sheet>
|
||||
|
||||
</view>
|
||||
<!-- 增减余额 -->
|
||||
<up-popup :show="datas.show" :round="18" mode="center" @close="close">
|
||||
@@ -139,12 +140,21 @@
|
||||
shape="circle"></up-button>
|
||||
</view>
|
||||
</up-popup>
|
||||
<!-- 引入弹窗 -->
|
||||
<GiveCouponPopup ref="giveCouponPopup" @success="refresh" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref } from 'vue';
|
||||
import go from '@/commons/utils/go.js';
|
||||
import myUser from './components/user.vue'
|
||||
import GiveCouponPopup from './components/give-coupon.vue'
|
||||
const giveCouponPopup = ref(null)
|
||||
// 打开赠送弹窗
|
||||
function openGive(e) {
|
||||
// 传入用户信息(和你 Web 端 open(data) 一样)
|
||||
giveCouponPopup.value.open(e)
|
||||
}
|
||||
|
||||
import { shopUserSummary, shopUserList,shopUserMoney } from '@/http/api/shopUser.js'
|
||||
|
||||
@@ -153,7 +163,7 @@
|
||||
import { onReachBottom } from '@dcloudio/uni-app';
|
||||
import { hasPermission } from '@/commons/utils/hasPermission.js';
|
||||
const moreOperate = ref(null)
|
||||
const moreOperateList = ['增减余额', '修改信息', ]
|
||||
const moreOperateList = ['增减余额', '修改信息','赠送券' ]
|
||||
|
||||
let datas = reactive({
|
||||
|
||||
@@ -199,6 +209,11 @@
|
||||
getUser()
|
||||
});
|
||||
|
||||
function refresh(){
|
||||
pageData.query.page=1
|
||||
getUser()
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户数据统计
|
||||
*/
|
||||
@@ -293,6 +308,9 @@
|
||||
}
|
||||
})
|
||||
}
|
||||
else if (i == 2) {
|
||||
openGive(datas.activeUser)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user