企微助手 ,仓库名 短剧

memberManage.vue 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. <template>
  2. <div>
  3. <div class="flex-align-center" style="background: #fff;padding: 0 16px;margin-bottom: 10px;">
  4. <!-- S 激活状态 -->
  5. <div class="flex" style="margin-right: 20px;">
  6. <span style="font-size: 14px; color: #666; margin-right: 8px;">激活状态</span>
  7. <el-select class="select-cls" v-model="is_active" size="small" placeholder="请选择激活状态" clearable filterable :style="{width: '210px'}" @change="onChangeActiveStatus">
  8. <el-option v-for="item in activeStatusOptions" :key="item.value" :label="item.label" :value="item.value" />
  9. </el-select>
  10. </div>
  11. <!-- E 激活状态 -->
  12. <selfCustomerservice labelWidth="auto" style="margin-right: 20px;" title="成员" @customerDefine="onChangeUserIds" />
  13. <selfinput :hasLabel="false" @inputChange="inputChange"></selfinput>
  14. </div>
  15. <div class="tableInfo">
  16. <div class="flex">
  17. <!-- 客户数据统计 -->
  18. <div v-if="isShowCustomerData" class="totalCustom">
  19. 共<span>{{ customerData.customer_count }}</span>个客户;
  20. 昨日新增<span>{{ customerData.user_add_yesterday }}</span>;
  21. 昨日流失<span>{{ customerData.user_loss_yesterday }}</span>;
  22. </div>
  23. <!-- 客服成员数 -->
  24. <template v-else>
  25. <div class="totalCustom">
  26. <i class="el-icon-user-solid" /> 共<span>{{total}}</span>个成员
  27. </div>
  28. <div class="totalCustom ml-20">
  29. 待分配许可<span>{{ waitForAssignNum }}</span>
  30. <el-tooltip class="disinblock" popper-class="member-tooltip">
  31. <div slot="content">
  32. <p>购买许可—需要联系开发人员进行许可购买</p>
  33. <p>分配许可—只能将许可分配给未激活的成员,激活时间为分配时间,过期时间为1年。</p>
  34. <p>转移许可—转移许可为离职成员或不在服务商应用可见范围内的成员时,不显转移时间间隔,转移许可的成员为在职成员在服务商应用可见范围内时,转移后30天才可进行下一次转移;转移许可接收成员不能与转移成员的许可重叠</p>
  35. </div>
  36. <i class="el-icon-question c-999" />
  37. </el-tooltip>
  38. </div>
  39. </template>
  40. </div>
  41. <batchAssign ref="batchAssign" :waitForAssignNum="waitForAssignNum" @change="onChangeBatchAssign" />
  42. </div>
  43. <div style="display: flex;">
  44. <div style="width: 300px;flex-shrink: 0;margin-right: 10px;background-color: #fff;padding: 15px">
  45. <div class="fWeight600">
  46. 部门信息
  47. </div>
  48. <div>
  49. <div v-for="c in depart_List" :key="c.department_id" class="tMar20 flex-align-center pointer f15" @click="checkDepartId(c.department_id)">
  50. <i class="el-icon-success c-00B38A f16 rMar7" v-if="checkVals.indexOf(c.department_id)>-1"></i>
  51. <i class="el-icon-circle rMar7" v-else></i>
  52. {{c.department_name}}
  53. </div>
  54. </div>
  55. </div>
  56. <div style="flex: 1; overflow: hidden;" v-loading="loading">
  57. <el-table ref="multipleTable" :height='height' :data="tableData" tooltip-effect="dark">
  58. <el-table-column min-width="180" label="成员列表" show-overflow-tooltip fixed="left">
  59. <template slot-scope="scope">
  60. <div class="flex-align-center">
  61. <div>
  62. <img :src="scope.row.avatar" alt="" style="width: 40px;margin-right: 10px;border-radius:3px">
  63. </div>
  64. <div>
  65. <div>{{scope.row.name}}</div>
  66. <div>共有{{scope.row.customer_number}}个客户</div>
  67. </div>
  68. </div>
  69. </template>
  70. </el-table-column>
  71. <el-table-column min-width="200" label="所属部门" align="center">
  72. <template slot-scope="scope">
  73. <div>
  74. <span class="rMar7">{{scope.row.department_list&&scope.row.department_list.join(',')}}</span>
  75. </div>
  76. </template>
  77. </el-table-column>
  78. <el-table-column label="授权状态" align="center" min-width="100">
  79. <template slot-scope="scope">
  80. <div class="flex-align-jus-center">
  81. <i class="el-icon-circle-check f16 c-00B38A rMar7" v-if="scope.row.status == 1"></i>
  82. <i class="el-icon-warning-outline f16 c-FF604D rMar7" v-if="scope.row.status == 4"></i>
  83. {{scope.row.status == 1 ? '已授权' : '未授权'}}
  84. </div>
  85. </template>
  86. </el-table-column>
  87. <el-table-column label="所属类型" align="center" min-width="80">
  88. <template slot-scope="{row}">
  89. <span>{{ getOrderTypeDesc(row.order_type) }}</span>
  90. </template>
  91. </el-table-column>
  92. <el-table-column label="ADQ投放账号ID" align="center" min-width="130">
  93. <template slot-scope="{row}">
  94. <span>{{ row.account_id || '-' }}</span>
  95. </template>
  96. </el-table-column>
  97. <el-table-column label="昨日流失客户数" prop="loss_contact_cnt" min-width="120" align="center" />
  98. <el-table-column label="昨日新增客户数" prop="new_contact_cnt" min-width="120" align="center" />
  99. <el-table-column label="激活时间" min-width="170" align="center">
  100. <template slot-scope="{ row }">
  101. <span>{{ row.active_time || '-' }}</span>
  102. </template>
  103. </el-table-column>
  104. <el-table-column label="过期时间" min-width="170" align="center">
  105. <!-- <template slot="header">
  106. <span>过期时间</span>
  107. <el-tooltip class="disinblock" placement="top">
  108. <div slot="content">系统根据过期时间判断许可到期时间,到期前14天通知续费</div>
  109. <i class="el-icon-question"></i>
  110. </el-tooltip>
  111. </template> -->
  112. <template slot-scope="{ row }">
  113. <div v-if="row.expire_time">
  114. <div>{{ row.expire_time }}</div>
  115. <!-- 无可用状态码 目前通过后端返回的文案判断 -->
  116. <div v-if="row.active_desc === '已到期'" class="expired-tips">已到期</div>
  117. <div v-if="row.active_desc === '即将到期'" class="expired-tips danger">即将到期</div>
  118. </div>
  119. <span v-else> - </span>
  120. </template>
  121. </el-table-column>
  122. <el-table-column label="操作" align="center" min-width="170" fixed="right">
  123. <template slot-scope="scope">
  124. <span class="c-00B38A pointer" @click="detailEvent(scope.row)">详情</span>
  125. <span class="c-00B38A pointer ml-3" @click="onClickInfoBind(scope.row)">信息绑定</span>
  126. <template>
  127. <span v-if="scope.row.is_active == 1" class="c-00B38A pointer ml-3" @click="onClickTransfer(scope.row)">转移许可</span>
  128. <span v-else class="c-00B38A pointer ml-3" @click="onClickAssign(scope.row)">分配许可</span>
  129. </template>
  130. </template>
  131. </el-table-column>
  132. <!--
  133. <el-table-column label="备用客服">
  134. <template slot-scope="scope">
  135. <div class="flex-align-center">
  136. <div>
  137. <img :src="scope.row.avatar" alt="" style="width: 40px;margin-right: 10px;border-radius:3px">
  138. </div>
  139. <div>
  140. <div>{{scope.row.name}}</div>
  141. <div>共有{{scope.row.customer_number}}个客户</div>
  142. </div>
  143. </div>
  144. </template>
  145. </el-table-column>
  146. <el-table-column label="操作" align="center">
  147. <template slot-scope="scope">
  148. <el-popover
  149. :ref="scope.row.user_id"
  150. width="260" v-model="scope.row.visible">
  151. <div class="box">
  152. <div class="txt">备用客服</div>
  153. <div class="lMar20">
  154. <el-select size="mini" v-model="standbyVal" placeholder="请选择备用客服">
  155. <el-option
  156. v-for="item in standbyList"
  157. :key="item.value"
  158. :label="item.label"
  159. :value="item.value">
  160. </el-option>
  161. </el-select>
  162. </div>
  163. </div>
  164. <div style="text-align: right; margin: 10px 0 0">
  165. <el-button size="mini" type="text" @click="$refs[scope.row.user_id].doClose()">取消</el-button>
  166. <el-button size="mini" type="text" @click="$refs[scope.row.user_id].doClose()">确定</el-button>
  167. </div>
  168. <div class="c-00B38A pointer" slot="reference"> 编辑 </div>
  169. </el-popover>
  170. </template>
  171. </el-table-column>
  172. -->
  173. </el-table>
  174. <div class="pagination" v-show="total>0">
  175. <el-pagination background :current-page="page" @current-change="handleCurrentChange" layout="prev, pager, next" :page-count='Number(pages)'>
  176. </el-pagination>
  177. </div>
  178. </div>
  179. </div>
  180. <!--详情-->
  181. <el-drawer :size="drawerSize" :visible.sync="userDetailFlag" :with-header="false">
  182. <user-detail v-if="userDetailFlag" @changeDrawerSize="changeDrawerSize" @closeDrawer="closeDrawer" :user_id="user_detail_id"></user-detail>
  183. </el-drawer>
  184. <!-- S 信息绑定 - 弹框 -->
  185. <memberInfoBind
  186. :dialogVisible="infoBindDialogVisible"
  187. :userInfo="currentBindInfo"
  188. @cancel="handleInfoBindCancel"
  189. @confirm="handleInfoBindConfirm"
  190. />
  191. <!-- E 信息绑定 - 弹框 -->
  192. <!-- S 分配许可 - 弹框 -->
  193. <assignDialog
  194. :dialogVisible="assignDialogVisible"
  195. :userInfo="currentAssignInfo"
  196. :waitForAssignNum="waitForAssignNum"
  197. @cancel="handleAssignCancel"
  198. @confirm="handleAssignConfirm"
  199. />
  200. <!-- E 分配许可 - 弹框 -->
  201. <!-- S 转移许可 - 弹框 -->
  202. <transferDialog
  203. :dialogVisible="transferDialogVisible"
  204. :userInfo="currentTransferInfo"
  205. @cancel="handleTransferCancel"
  206. @confirm="handleTransferConfirm"
  207. />
  208. <!-- E 转移许可 - 弹框 -->
  209. <!-- S 批量分配许可结果 - 弹框 -->
  210. <assignResult
  211. :dialogVisible="assignResultVisible"
  212. :resInfo="currentAssignResult"
  213. @cancel="handleAssignResultCancel"
  214. @confirm="handleAssignResultConfirm"
  215. />
  216. <!-- E 批量分配许可结果 - 弹框 -->
  217. </div>
  218. </template>
  219. <script>
  220. import selfinput from '../assembly/screen/input.vue'
  221. import userDetail from './userDetail/index.vue'
  222. import memberInfoBind from './memberComp/memberInfoBind.vue'
  223. import selfCustomerservice from '@/components/assembly/screen/customerService.vue'
  224. import batchAssign from './memberComp/batchAssign.vue'
  225. import assignDialog from './memberComp/assignDialog.vue'
  226. import transferDialog from './memberComp/transferDialog.vue'
  227. import assignResult from './memberComp/assignResult.vue'
  228. import { orderTypeOptions } from '@/assets/js/staticTypes'
  229. const orderTypeDesc = new Map([
  230. [String(orderTypeOptions.MP), 'MP'],
  231. [String(orderTypeOptions.ADQ), 'ADQ'],
  232. ])
  233. // 激活状态选项
  234. const activeStatusOptions = [
  235. { label: '未激活', value: 0 },
  236. { label: '已激活', value: 1 },
  237. ]
  238. export default {
  239. name: 'memberManage',
  240. components: {
  241. selfinput,
  242. userDetail,
  243. memberInfoBind,
  244. selfCustomerservice,
  245. batchAssign,
  246. assignDialog,
  247. transferDialog,
  248. assignResult,
  249. },
  250. data () {
  251. return {
  252. userDetailFlag: false,
  253. drawerSize: '60%',
  254. loading: false,
  255. page: 1,
  256. pages: 0,
  257. total: 0,
  258. page_size: 20,
  259. tableData: [],
  260. checkVals: [],
  261. depart_List: [],
  262. keyword: '',
  263. height: '',
  264. user_detail_id: '',
  265. // standbyList:[],
  266. // standbyVal:'',
  267. // visible:false,
  268. infoBindDialogVisible: false, // 控制“信息绑定”弹框显示
  269. currentBindInfo: {}, // 当前需要绑定的成员信息
  270. user_ids: [],//客服user_id列表
  271. customerData: { // 客户信息
  272. customer_count: 0,
  273. user_add_yesterday: 0,
  274. user_loss_yesterday: 0,
  275. },
  276. is_active: '', // 激活状态
  277. activeStatusOptions: Object.freeze(activeStatusOptions), // 激活状态选项
  278. waitForAssignNum: 0, // 待分配许可数
  279. assignDialogVisible: false, // 控制“分配许可”弹框显示
  280. currentAssignInfo: {}, // 当前需要分配许可的成员信息
  281. transferDialogVisible: false, // 控制“转移许可”弹框显示
  282. currentTransferInfo: {}, // 当前需要转移许可的成员信息
  283. assignResultVisible: false, // 控制“批量分配许可结果”弹框显示
  284. currentAssignResult: {}, // 当前分配结果信息
  285. }
  286. },
  287. computed: {
  288. // 是否显示“客户数据统计”(当选择“客服”筛选时显示)
  289. isShowCustomerData() {
  290. return this.user_ids && this.user_ids.length
  291. },
  292. },
  293. created () {
  294. this.height = document.documentElement.clientHeight - 200 > 400 ? document.documentElement.clientHeight - 200 : 400
  295. this.init_depart()
  296. this.init(1)
  297. this.handleGetWaitForAssignNum()
  298. },
  299. methods: {
  300. detailEvent (data) {
  301. this.userDetailFlag = true
  302. this.user_detail_id = data.user_id;
  303. },
  304. closeDrawer () {
  305. this.userDetailFlag = false
  306. },
  307. changeDrawerSize () {
  308. this.drawerSize = this.drawerSize == '80%' ? '60%' : '80%'
  309. },
  310. inputChange (keyword) {
  311. this.keyword = keyword
  312. this.init(1, keyword)
  313. this.handleGetWaitForAssignNum()
  314. },
  315. init_depart () {
  316. this.$axios.get(this.URL.BASEURL + this.URL.departmentList, {}).then((res) => {
  317. var res = res.data
  318. if (res && res.errno == 0) {
  319. this.depart_List = res.rst
  320. this.checkVals = res.rst.map((v) => {
  321. return v.department_id
  322. })
  323. } else if (res.errno != 4002) {
  324. this.$message({
  325. message: res.err,
  326. type: "warning"
  327. })
  328. }
  329. })
  330. },
  331. init (page, keyword) {
  332. this.handleInitCustomerData()
  333. this.page = page ? page : this.page;
  334. this.loading = true
  335. this.$axios.get(this.URL.BASEURL + this.URL.memberList, {
  336. params: {
  337. user_name: keyword,
  338. department_list: this.checkVals,
  339. user_ids: this.user_ids ? this.user_ids.join(',') : '',
  340. is_active: this.is_active,
  341. page: this.page,
  342. page_size: this.page_size
  343. }
  344. }).then((res) => {
  345. var res = res.data
  346. this.loading = false
  347. if (res && res.errno == 0) {
  348. if (res.rst.data[0]) { // mock
  349. res.rst.data[0].is_active = 1
  350. }
  351. this.tableData = res.rst.data;
  352. // this.tableData.forEach(item=>{
  353. // item.visible = false
  354. // })
  355. this.total = res.rst.pageInfo.total;
  356. this.pages = res.rst.pageInfo.pages;
  357. // 客户数据回显
  358. this.customerData.customer_count = res.rst.extra.customer_count
  359. this.customerData.user_add_yesterday = res.rst.extra.user_add_yesterday
  360. this.customerData.user_loss_yesterday = res.rst.extra.user_loss_yesterday
  361. } else if (res.errno != 4002) {
  362. this.$message({
  363. message: res.err,
  364. type: "warning"
  365. })
  366. this.tableData = []
  367. this.pages = 0
  368. this.handleInitCustomerData()
  369. }
  370. }).catch((err) => {
  371. this.loading = false
  372. });
  373. },
  374. // 重置客户统计数据
  375. handleInitCustomerData() {
  376. this.total = 0
  377. this.customerData.customer_count = 0
  378. this.customerData.user_add_yesterday = 0
  379. this.customerData.user_loss_yesterday = 0
  380. },
  381. handleCurrentChange (val) {
  382. this.init(val, this.keyword)
  383. this.handleGetWaitForAssignNum()
  384. },
  385. checkDepartId (id) {
  386. if (this.checkVals.indexOf(id) == -1) {
  387. this.checkVals.push(id)
  388. } else {
  389. this.checkVals.splice(this.checkVals.indexOf(id), 1)
  390. }
  391. this.init(1, this.keyword)
  392. this.handleGetWaitForAssignNum()
  393. },
  394. async onClickInfoBind({ name = '', user_id = '', account_id = '' }) {
  395. try {
  396. if (account_id) {
  397. const h = this.$createElement
  398. await this.$confirm('', {
  399. message:h('div',null, [
  400. h('span', { style:'color: #32B38A;' }, `${name}`),
  401. h('span', null, '已经关联投放账号,是否确认修改?')
  402. ]),
  403. confirmButtonText: '确定',
  404. cancelButtonText: '取消',
  405. type: 'warning',
  406. })
  407. }
  408. this.currentBindInfo = { user_id, account_id }
  409. this.infoBindDialogVisible = true
  410. } catch (error) {
  411. console.log(error)
  412. }
  413. },
  414. // 执行信息绑定 => 取消
  415. handleInfoBindCancel() {
  416. this.currentBindInfo = {}
  417. this.infoBindDialogVisible = false
  418. },
  419. // 执行信息绑定 => 发送
  420. handleInfoBindConfirm() {
  421. this.infoBindDialogVisible = false
  422. this.init(undefined, this.keyword)
  423. this.handleGetWaitForAssignNum()
  424. },
  425. getOrderTypeDesc(type) {
  426. return orderTypeDesc.get(String(type)) || '-'
  427. },
  428. // 监听多选客服变化
  429. onChangeUserIds(val) {
  430. this.user_ids = val ? val : []
  431. this.init(1, this.keyword)
  432. this.handleGetWaitForAssignNum()
  433. },
  434. // 监听激活状态变化
  435. onChangeActiveStatus(val) {
  436. this.is_active = val
  437. this.init(1, this.keyword)
  438. this.handleGetWaitForAssignNum()
  439. },
  440. // 获取“待分配许可数”
  441. handleGetWaitForAssignNum() {
  442. return new Promise(async (resolve, reject) => {
  443. try {
  444. this.loading = true
  445. const url = `${this.URL.BASEURL}${this.URL.member_licenseCount}`
  446. const params = {
  447. corpid: this.$localSelfStore.getLocal('defaultCorp') && this.$localSelfStore.getLocal('defaultCorp') != 'undefined' ? JSON.parse(this.$localSelfStore.getLocal('defaultCorp')).corpid : '',
  448. }
  449. const { data: res = {} } = await this.$axios.get(url, { params })
  450. if (res && res.errno == 0) {
  451. this.waitForAssignNum = res.rst.count
  452. this.waitForAssignNum = parseInt(Math.random() * 20) // mock
  453. resolve(this.waitForAssignNum)
  454. } else if (res.errno != 4002) {
  455. this.$message.warning(res.err)
  456. this.waitForAssignNum = 0
  457. reject(this.waitForAssignNum)
  458. }
  459. } catch (error) {
  460. console.log('error => ', error)
  461. this.waitForAssignNum = 0
  462. reject(this.waitForAssignNum)
  463. } finally {
  464. this.loading = false
  465. }
  466. })
  467. },
  468. // 监听点击“分配许可”
  469. async onClickAssign(current) {
  470. console.log('onClickAssign => ', JSON.parse(JSON.stringify(current)))
  471. this.currentAssignInfo = {...current}
  472. const num = await this.handleGetWaitForAssignNum()
  473. if (!num) return this.$message.warning('暂无待分配许可')
  474. this.assignDialogVisible = true
  475. },
  476. // 执行分配许可 => 取消
  477. handleAssignCancel() {
  478. this.currentAssignInfo = {}
  479. this.assignDialogVisible = false
  480. },
  481. // 执行分配许可 => 确定
  482. handleAssignConfirm() {
  483. this.assignDialogVisible = false
  484. this.init(undefined, this.keyword)
  485. this.handleGetWaitForAssignNum()
  486. },
  487. // 监听点击“转移许可”
  488. onClickTransfer(current) {
  489. console.log('onClickTransfer => ', JSON.parse(JSON.stringify(current)))
  490. this.currentTransferInfo = {...current}
  491. this.transferDialogVisible = true
  492. },
  493. // 执行转移许可 => 取消
  494. handleTransferCancel() {
  495. this.currentTransferInfo = {}
  496. this.transferDialogVisible = false
  497. },
  498. // 执行转移许可 => 确定
  499. handleTransferConfirm() {
  500. this.transferDialogVisible = false
  501. this.init(undefined, this.keyword)
  502. },
  503. // 批量分配许可结果 - 显示
  504. handleShowAssignResult(res) {
  505. this.currentAssignResult = {...res}
  506. this.assignResultVisible = true
  507. },
  508. // 批量分配许可结果 - 取消
  509. handleAssignResultCancel() {
  510. this.currentAssignResult = {}
  511. this.assignResultVisible = false
  512. },
  513. // 批量分配许可结果 - 确定
  514. handleAssignResultConfirm() {
  515. this.assignResultVisible = false
  516. this.init(undefined, this.keyword)
  517. this.handleGetWaitForAssignNum()
  518. },
  519. // 监听“批量分配许可”变化
  520. onChangeBatchAssign(val) {
  521. console.log('onChangeBatchAssign => ', val)
  522. this.init(undefined, this.keyword)
  523. this.handleGetWaitForAssignNum()
  524. // this.handleShowAssignResult({}) // 显示分配结果
  525. },
  526. }
  527. }
  528. </script>
  529. <style lang="scss">
  530. .member-tooltip {
  531. max-width: 300px;
  532. p {
  533. margin-bottom: 10px;
  534. &:last-child {
  535. margin-bottom: 0;
  536. }
  537. }
  538. }
  539. </style>
  540. <style lang="scss" scoped>
  541. @import "@/style/list.scss";
  542. .select-cls {
  543. /deep/ .el-input__inner {
  544. height: 30px;
  545. line-height: 30px;
  546. }
  547. /deep/ .el-input__suffix {
  548. border-top-right-radius: 4px;
  549. border-bottom-right-radius: 4px;
  550. border: 1px solid #DCDFE6;
  551. right: 0;
  552. width: 30px;
  553. background-color: #F1F1F1;
  554. .el-input__icon {
  555. line-height: 26px;
  556. color: #909399;
  557. }
  558. }
  559. }
  560. .ml-3 {
  561. margin-left: 3px;
  562. }
  563. .ml-20 {
  564. margin-left: 20px;
  565. }
  566. .tableInfo {
  567. height: 50px;
  568. }
  569. .el-icon-circle {
  570. width: 14px;
  571. height: 14px;
  572. margin: 0 1px;
  573. border-radius: 50%;
  574. border: 1px solid #999;
  575. margin-right: 8px;
  576. }
  577. .box {
  578. display: flex;
  579. align-items: center;
  580. justify-content: center;
  581. .txt {
  582. font-size: 14px;
  583. flex-shrink: 0;
  584. }
  585. }
  586. .expired-tips {
  587. display: inline-block;
  588. padding: 0 4px;
  589. border-radius: 2px;
  590. background-color: #F2F2F2;
  591. color: #AAAAAA;
  592. &.danger {
  593. background-color: #FDE3E3;
  594. color: #EC808D;
  595. }
  596. }
  597. </style>