user.vue 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681
  1. <template>
  2. <app-layout>
  3. <view class="admin">
  4. <view class="navigator dir-left-nowrap">
  5. <view class="box-grow-1" @click="setActive(0)">
  6. <view class="dir-top-nowrap cross-center">
  7. <text class="text" :class="{'active-text': active === 0}">全部用户</text>
  8. </view>
  9. </view>
  10. <view class="box-grow-1" @click="setActive(1)">
  11. <view class="dir-top-nowrap cross-center">
  12. <text class="text" :class="{'active-text': active === 1}">分销商</text>
  13. </view>
  14. </view>
  15. <view class="box-grow-1" @click="setActive(2)">
  16. <view class="dir-top-nowrap cross-center">
  17. <text class="text" :class="{'active-text': active === 2}">核销员</text>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="search">
  22. <view class="prompt dir-left-nowrap main-center cross-center" v-if="search" @click="setSearch">
  23. <image src="../../../static/image/icon/icon-search.png"></image>
  24. <text>{{active ==2 ? '请输入昵称/门店搜索': active == 0 ? '请输入昵称或备注名搜索' : '请输入昵称搜索'}}</text>
  25. </view>
  26. <view v-else style="position: relative">
  27. <input :placeholder="active ==2 ? '请输入昵称/门店搜索': active == 0 ? '请输入昵称或备注名搜索' : '请输入昵称搜索'" type="text" v-model="keyword" @focus="getFocus=true" focus @blur="inputBlur" @confirm="keywordSearch"/>
  28. <image v-if="getFocus && keyword.length > 0" @click.stop="clearSearch" class="search-clear" src="../image/clear.png"></image>
  29. </view>
  30. </view>
  31. <view class="sort dir-left-nowrap" v-if="active === 2">
  32. <view class="sort-item box-grow-1">
  33. <view @click="setSort(0)">
  34. <view class="view dir-left-nowrap main-center cross-center">
  35. <view>订单数</view>
  36. <image :src="`${sort === 1 ? '../image/toDown.png' : sort === 2 ? '../image/up.png' : '../image/sort.png'}`"></image>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="sort-item box-grow-1">
  41. <view @click="setSort(1)">
  42. <view class="view dir-left-nowrap main-center cross-center">
  43. <view>金额</view>
  44. <image :src="`${sort === 3 ? '../image/toDown.png' : sort === 4 ? '../image/up.png' : '../image/sort.png'}`"></image>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="sort-item box-grow-1 ">
  49. <view @click="setSort(2)">
  50. <view class="view dir-left-nowrap main-center cross-center">
  51. <view>卡券数</view>
  52. <image :src="`${sort === 5 ? '../image/toDown.png' : sort === 6 ? '../image/up.png' : '../image/sort.png'}`"></image>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="sort-one dir-left-nowrap" v-if="active === 1">
  58. <view class="sort-item">
  59. <view @click="distributorSort(0)">
  60. <view class="view dir-left-nowrap main-center cross-center">
  61. <text>累计金额</text>
  62. <image :src="`${sort === 1 ? '../image/up.png' : sort === 2 ? '../image/toDown.png' : '../image/sort.png'}`"></image>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="sort-item">
  67. <view @click="distributorSort(1)">
  68. <view class="view dir-left-nowrap main-center cross-center">
  69. <text>可提现金额</text>
  70. <image :src="`${sort === 3 ? '../image/up.png' : sort === 4 ? '../image/toDown.png' : '../image/sort.png'}`"></image>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="sort-one dir-left-nowrap" v-if="active === 0">
  76. <view class="sort-item">
  77. <view @click="allSort(0)">
  78. <view class="view dir-left-nowrap main-center cross-center">
  79. <text>交易额</text>
  80. <image :src="`${sort === 1 ? '../image/up.png' : sort === 2 ? '../image/toDown.png' : '../image/sort.png'}`"></image>
  81. </view>
  82. </view>
  83. </view>
  84. <view class="sort-item">
  85. <view @click="allSort(1)">
  86. <view class="view dir-left-nowrap main-center cross-center">
  87. <text>订单数</text>
  88. <image :src="`${sort === 3 ? '../image/up.png' : sort === 4 ? '../image/toDown.png' : '../image/sort.png'}`"></image>
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. <view class="content">
  94. <template v-if="list.length === 0">
  95. <view class="no-people">
  96. <image src="https://v4test.zjhejiang.com/web/statics/img/app/app_admin/no-user.png"></image>
  97. <view>没有任何用户哦</view>
  98. </view>
  99. </template>
  100. <template v-if="active === 0">
  101. <view class="all-item" v-for="(item, index) in list" :key="index">
  102. <view class="avatar-name dir-left-nowrap">
  103. <image class="avatar" :src="item.avatar"></image>
  104. <view class="name">
  105. <view>
  106. <span>{{item.nickname}}</span>
  107. <span class="member t-omit" v-if="item.member_level > 0">{{item.member_name}}</span>
  108. <span class="member t-omit" v-else>普通会员</span>
  109. </view>
  110. <view class="member" v-if="item.remark_name">备注名:{{item.remark_name}}</view>
  111. </view>
  112. </view>
  113. <view class="number dir-left-wrap">
  114. <view class="item margin dir-left-nowrap">
  115. <text class="label">交易额</text>
  116. <text class="amount">¥{{item.order_sum}}</text>
  117. </view>
  118. <view class="item margin dir-left-nowrap">
  119. <text class="label">积分</text>
  120. <text class="amount">{{item.integral}}</text>
  121. </view>
  122. <view class="item dir-left-nowrap">
  123. <text class="label">订单数</text>
  124. <text class="amount">{{item.order_count}}</text>
  125. </view>
  126. <view class="item dir-left-nowrap">
  127. <text class="label">余额</text>
  128. <text class="amount">¥{{item.balance}}</text>
  129. </view>
  130. </view>
  131. <view class="button dir-left-nowrap main-right">
  132. <view class="deduction">
  133. <view @click="toChangeInfo(item)">修改信息</view>
  134. </view>
  135. <view class="deduction">
  136. <view @click="setRechargeDeduction(item, 0)">扣除</view>
  137. </view>
  138. <view class="recharge">
  139. <view @click="setRechargeDeduction(item, 1)">充值</view>
  140. </view>
  141. </view>
  142. </view>
  143. </template>
  144. <template v-else-if="active === 1">
  145. <view class="distributor-item dir-left-nowrap" v-for="(item, index) in list" :key="index">
  146. <image class="avatar" :src="item.avatar"></image>
  147. <view class="content-text dir-top-nowrap">
  148. <view class="name">{{item.nickname}}</view>
  149. <view class="num dir-top-nowrap">
  150. <view class="amount">
  151. <text class="prompt ">累计金额</text>
  152. <text class="price">¥{{item.total_money}}</text>
  153. </view>
  154. <view>
  155. <text class="prompt">可提现金额</text>
  156. <text class="price">¥{{item.money}}</text>
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. </template>
  162. <template v-else-if="active === 2">
  163. <view class="auditor-item" v-for="(item, index) in list" :key="index">
  164. <view class="avatar-name dir-left-nowrap">
  165. <image class="avatar" :src="item.user.userInfo.avatar"></image>
  166. <view class="name-content dir-top-nowrap">
  167. <view class="name">
  168. {{item.user.nickname}}
  169. </view>
  170. <view class="shop dir-left-nowrap cross-center">
  171. <image src="../image/shop.png"></image>
  172. <view>{{item.store[0].name}}</view>
  173. </view>
  174. </view>
  175. </view>
  176. <view class="num-content dir-left-nowrap">
  177. <view class="box-grow-1 dir-top-nowrap">
  178. <view class="prompt cross-top">
  179. <text>订单数</text>
  180. </view>
  181. <view class="num">{{item.order_count}}</view>
  182. </view>
  183. <view class="box-grow-1">
  184. <view class="prompt cross-top">
  185. <text>金额</text>
  186. </view>
  187. <view class="num">¥{{item.total_price}}</view>
  188. </view>
  189. <view class="box-grow-1">
  190. <view class="prompt cross-top">
  191. <text>卡券数</text>
  192. </view>
  193. <view class="num">{{item.card_count}}</view>
  194. </view>
  195. </view>
  196. <view class="button dir-left-nowrap main-right cross-center">
  197. <view class="release">
  198. <view @click="dismissal(item)">
  199. 解除核销员
  200. </view>
  201. </view>
  202. <view class="modify">
  203. <view @click="modifyStore(item)">
  204. 修改门店
  205. </view>
  206. </view>
  207. </view>
  208. </view>
  209. </template>
  210. </view>
  211. <view @touchmove.stop.prevent="" class="recharge-key-face" v-if="rechargeBool">
  212. <view class="key-face-item">
  213. <view class="nav dir-left-nowrap">
  214. <view class="box-grow-1 nav-item" @click="activeRecharge(0)">
  215. <text class="integral" :class="{'recharge-active': rechargeStatus === 0}" >{{rechargeDeduction === 0 ? '扣' : rechargeDeduction === 1 ?'充': ''}}积分</text>
  216. </view>
  217. <view class="box-grow-1 nav-item" @click="activeRecharge(1)">
  218. <text class="balance" :class="{'recharge-active': rechargeStatus === 1}" >{{rechargeDeduction === 0 ? '扣' : rechargeDeduction === 1 ?'充': ''}}余额</text>
  219. </view>
  220. </view>
  221. <view class="input">
  222. <input type="number" v-model="num" :placeholder="`请填写${rechargeDeduction === 0 ? '扣除' : rechargeDeduction === 1 ? '充值': ''}${placeholder}`">
  223. <input class="remark-input" v-model="remark" placeholder="请输入备注信息">
  224. </view>
  225. <view class="button dir-left-nowrap">
  226. <view class="cancel">
  227. <view @click="cancelRecharge">
  228. <text>取消</text>
  229. </view>
  230. </view>
  231. <view class="app-line"></view>
  232. <view class="confirm">
  233. <view @click="confirmRecharge">
  234. <text>确认</text>
  235. </view>
  236. </view>
  237. </view>
  238. </view>
  239. </view>
  240. <view @touchmove.stop.prevent="" class="modify-store" v-if="modifyStoreBool" @click.stop="modifyStoreBool = false">
  241. <view class="modify-store-item">
  242. <view class="picker-header dir-left-nowrap main-between">
  243. <view class="cancel">
  244. <view @click="modifyStoreBool = false">
  245. 取消
  246. </view>
  247. </view>
  248. <view class="determine">
  249. <view @click="determineStore">
  250. 确定
  251. </view>
  252. </view>
  253. </view>
  254. <picker-view class="picker" :value="[storeIndex]" @change="pickerChange" mask-class="picker-item" indicator-class="picker-item">
  255. <picker-view-column >
  256. <view
  257. class="item cross-center main-center"
  258. v-for="(item, index) in storeList"
  259. :key="index"
  260. :class="{
  261. 'sure-color': storeIndex === index,
  262. 'cardinal-color': storeIndex === index + 1 || storeIndex === index - 1,
  263. 'even-color': storeIndex === index + 2 || storeIndex === index - 2,
  264. }"
  265. >{{item.name}}</view>
  266. </picker-view-column>
  267. </picker-view>
  268. </view>
  269. </view>
  270. <view @touchmove.stop.prevent="" class="release-prompt" v-if="releaseBool">
  271. <view class="prompt-item">
  272. <view class="header">
  273. 提示
  274. </view>
  275. <view class="content">
  276. 是否确认解除核销员
  277. </view>
  278. <view class="button dir-left-nowrap cross-center">
  279. <view class="cancel">
  280. <view @click="cancelUndelete">
  281. 取消
  282. </view>
  283. </view>
  284. <view class="line"></view>
  285. <view class="sure">
  286. <view @click="sureDeletion">
  287. 确认
  288. </view>
  289. </view>
  290. </view>
  291. </view>
  292. </view>
  293. </view>
  294. <View v-if="dialog" class="dialog">
  295. <!-- 底部 -->
  296. <view v-if="dialogChoose" class="dialog-choose">
  297. <view @click="toChangeRemark" class="dialog-choose-item">修改备注名</view>
  298. <view @click="toChangeMember" class="dialog-choose-item">修改会员等级</view>
  299. <view @click='toChangeInfo' class="dialog-choose-item dialog-cancel">取消</view>
  300. </view>
  301. <!-- 备注 -->
  302. <view v-if="changeRemark" class="key-face-item">
  303. <view class="nav dir-left-nowrap">
  304. <view class="box-grow-1 nav-item">
  305. <text>修改备注</text>
  306. </view>
  307. </view>
  308. <view class="input">
  309. <input maxlength="8" v-model="remark_name" placeholder="请输入用户备注(限8个字符)">
  310. </view>
  311. <view class="button dir-left-nowrap">
  312. <view class="cancel">
  313. <view @click="toChangeInfo">
  314. <text>取消</text>
  315. </view>
  316. </view>
  317. <view class="app-line"></view>
  318. <view class="confirm">
  319. <view @click="toRemark">
  320. <text>确认</text>
  321. </view>
  322. </view>
  323. </view>
  324. </view>
  325. <view class='dialog-item' v-if="error">
  326. <view class='dialog-title'>提示</view>
  327. <view class="error-info">您暂未设置会员等级</view>
  328. <view class="error-info">请前往商城后台设置</view>
  329. <view class="main-center btn-area">
  330. <view class="submit-btn be-submit" @click='close'>确认</view>
  331. </view>
  332. </view>
  333. <view class="key-face-item" v-if="changeMember">
  334. <view class="nav dir-left-nowrap">
  335. <view class="box-grow-1 nav-item">
  336. <text>修改会员等级</text>
  337. </view>
  338. </view>
  339. <view class="member-list">
  340. <view @click='chooseMember(item.level)' class="member-item cross-center main-between" v-for="item in member" :key="item.id">
  341. <view class="add-info">
  342. <view class="add-name">{{item.name}}</view>
  343. </view>
  344. <view>
  345. <image v-if="item.level == memberLevel" src="./../image/active.png"></image>
  346. <image v-else src="/static/image/icon/form-er.png"></image>
  347. </view>
  348. </view>
  349. </view>
  350. <view class="button dir-left-nowrap">
  351. <view class="cancel">
  352. <view @click="toChangeInfo">
  353. <text>取消</text>
  354. </view>
  355. </view>
  356. <view class="app-line"></view>
  357. <view class="confirm">
  358. <view @click="toLevel">
  359. <text>确认</text>
  360. </view>
  361. </view>
  362. </view>
  363. </view>
  364. </View>
  365. </app-layout>
  366. </template>
  367. <script>
  368. export default {
  369. name: 'user-admin',
  370. data() {
  371. return {
  372. getFocus: false,
  373. active: 0,
  374. search: true,
  375. error: false,
  376. keyword: '',
  377. status: '',
  378. page: 1,
  379. over: false,
  380. list: [],
  381. memberLevel: null,
  382. storeList: [],
  383. rechargeBool: false,
  384. placeholder: '积分',
  385. rechargeStatus: 0,
  386. num: null,
  387. remark_name: null,
  388. remark: null,
  389. rechargeItem: {},
  390. rechargeDeduction: 0, // 0 扣除 1 充值
  391. modifyStoreBool: false,
  392. storeItem: {},
  393. storeIndex: -1,
  394. storeUser: {},
  395. sort: 0,
  396. dialog: false,
  397. dialogChoose: true,
  398. changeRemark: false,
  399. changeMember: false,
  400. releaseBool: false,
  401. member: [],
  402. deleteObject: {},
  403. }
  404. },
  405. onLoad() {
  406. this.$request({
  407. url: this.$api.app_admin.user,
  408. data: {
  409. page: this.page,
  410. status: this.status,
  411. keyword: this.keyword,
  412. }
  413. }).then(response => {
  414. if (response.code === 0) {
  415. this.list = response.data.list;
  416. this.member = response.data.mall_members;
  417. }
  418. });
  419. },
  420. onReachBottom() {
  421. if (!this.over) {
  422. this.page++;
  423. this.threeRequest(this.active);
  424. }
  425. },
  426. methods: {
  427. async request({url, data}) {
  428. const response = await this.$request({
  429. url: url,
  430. data: data
  431. });
  432. if (response.code === 0) {
  433. if (response.data.list.length > 0) {
  434. return response.data;
  435. } else {
  436. this.over = true;
  437. return false;
  438. }
  439. }
  440. },
  441. clearSearch() {
  442. console.log(2)
  443. this.keyword = '';
  444. this.keywordSearch();
  445. },
  446. chooseMember(level) {
  447. this.memberLevel = level;
  448. },
  449. toChangeInfo(data) {
  450. this.dialog = !this.dialog;
  451. this.changeRemark = false;
  452. this.dialogChoose = true;
  453. this.changeMember = false;
  454. this.remark_name = null;
  455. if(data) {
  456. this.rechargeItem = data;
  457. }else {
  458. this.rechargeItem = {};
  459. }
  460. },
  461. toChangeRemark() {
  462. this.dialogChoose = false;
  463. this.changeRemark = true;
  464. this.remark_name = this.rechargeItem.remark_name;
  465. },
  466. toChangeMember() {
  467. this.dialogChoose = false;
  468. if(this.member.length > 0) {
  469. this.changeMember = true;
  470. this.memberLevel = this.rechargeItem.member_level
  471. }else {
  472. this.error = true;
  473. }
  474. },
  475. close() {
  476. this.error = false;
  477. this.dialog = false;
  478. },
  479. toLevel() {
  480. this.$request({
  481. url: this.$api.app_admin.level,
  482. method: 'post',
  483. data: {
  484. id: this.rechargeItem.user_id,
  485. member_level: this.memberLevel,
  486. },
  487. }).then(response => {
  488. if (response.code == 0) {
  489. this.toChangeInfo();
  490. this.setActive(0);
  491. }else {
  492. uni.showToast({
  493. title: response.msg,
  494. icon: 'none',
  495. duration: 1000
  496. });
  497. }
  498. });
  499. },
  500. toRemark() {
  501. this.$request({
  502. url: this.$api.app_admin.remarkName,
  503. method: 'post',
  504. data: {
  505. id: this.rechargeItem.user_id,
  506. remark_name: this.remark_name,
  507. },
  508. }).then(response => {
  509. if (response.code == 0) {
  510. this.rechargeItem.remark_name = this.remark_name;
  511. this.toChangeInfo();
  512. }else {
  513. uni.showToast({
  514. title: response.msg,
  515. icon: 'none',
  516. duration: 1000
  517. });
  518. }
  519. });
  520. },
  521. setSearch() {
  522. this.search = false;
  523. },
  524. setActive(data) {
  525. console.log(data);
  526. this.list = [];
  527. this.page = 1;
  528. this.over = false;
  529. this.keyword = '';
  530. this.sort = 0;
  531. this.threeRequest(data);
  532. this.active = data;
  533. this.search = true;
  534. },
  535. threeRequest(data) {
  536. if (data === 0) {
  537. this.request({
  538. url: this.$api.app_admin.user,
  539. data: {
  540. page: this.page,
  541. status: '',
  542. keyword: this.keyword,
  543. }
  544. }).then(response => {
  545. if (response === false) return;
  546. this.list = [...this.list, ...response.list];
  547. });
  548. } else if (data === 1) {
  549. this.request({
  550. url: this.$api.app_admin.share,
  551. data: {
  552. page: this.page,
  553. status: 1,
  554. keyword: this.keyword,
  555. sort: this.sort,
  556. }
  557. }).then(response => {
  558. if (response === false) return;
  559. this.list = [...this.list, ...response.list];
  560. });
  561. } else if (data === 2) {
  562. this.request({
  563. url: this.$api.app_admin.clerk,
  564. data: {
  565. page: this.page,
  566. status: '',
  567. keyword: this.keyword,
  568. sort: this.sort,
  569. }
  570. }).then(response => {
  571. if (response === false) return;
  572. this.list = [...this.list, ...response.list];
  573. this.storeList = response.store_list;
  574. });
  575. }
  576. },
  577. inputBlur() {
  578. let that = this;
  579. setTimeout(v =>{
  580. that.getFocus = false;
  581. if (that.keyword === '') that.search = true;
  582. },300)
  583. // this.getFocus = false;
  584. // if (this.keyword === '') this.search = true;
  585. },
  586. setRechargeDeduction(data, status) {
  587. this.rechargeItem = data;
  588. this.rechargeBool = true;
  589. this.rechargeDeduction = status;
  590. },
  591. activeRecharge(data) {
  592. this.rechargeStatus = data;
  593. if (data === 0) {
  594. this.placeholder = '积分';
  595. } else {
  596. this.placeholder = '余额';
  597. }
  598. },
  599. clearStatus() {
  600. // 默认积分
  601. this.rechargeStatus = 0;
  602. // 充值对象
  603. this.rechargeItem = {};
  604. // 充值框
  605. this.rechargeBool = false;
  606. // 充值扣除
  607. this.rechargeDeduction = 0;
  608. // 充值量
  609. this.num = null;
  610. this.remark = null;
  611. },
  612. cancelRecharge() {
  613. this.rechargeBool = false;
  614. this.clearStatus();
  615. },
  616. intergral(num, type) {
  617. this.$request({
  618. url: this.$api.app_admin.integral, // 积分
  619. method: 'post',
  620. data: {
  621. user_id: this.rechargeItem.user_id,
  622. num: num,
  623. remark: this.remark,
  624. type: type,
  625. }
  626. }).then(response => {
  627. if (response.code === 0) {
  628. if (this.rechargeDeduction === 1) {
  629. this.setList('integral', num,1);
  630. } else {
  631. this.setList('integral', num, 0);
  632. }
  633. this.clearStatus();
  634. } else if (response.code === 1) {
  635. uni.showToast({
  636. title: response.msg,
  637. image: '../image/mark.png',
  638. });
  639. }
  640. })
  641. },
  642. balance(num, type) {
  643. this.$request({
  644. url: this.$api.app_admin.balance, // 余额
  645. method: 'post',
  646. data: {
  647. user_id: this.rechargeItem.user_id,
  648. price: num,
  649. remark: this.remark,
  650. type: type,
  651. }
  652. }).then(response => {
  653. if (response.code === 0) {
  654. if (this.rechargeDeduction === 1) {
  655. this.setList('balance', num,1);
  656. } else {
  657. this.setList('balance', num, 0);
  658. }
  659. this.clearStatus();
  660. } else if (response.code === 1) {
  661. uni.showToast({
  662. title: response.msg,
  663. image: '../image/mark.png',
  664. });
  665. }
  666. })
  667. },
  668. setList(key, num, algorithm) {
  669. this.list.map(item => {
  670. if (item.user_id === this.rechargeItem.user_id) {
  671. if (algorithm === 0) {
  672. item[key] = Number(item[key]) - num;
  673. } else {
  674. item[key] = Number(item[key]) + num;
  675. }
  676. }
  677. });
  678. },
  679. confirmRecharge() {
  680. if (!isNaN(this.num)) {
  681. if (this.rechargeDeduction === 1 && this.rechargeStatus === 0) {
  682. this.intergral(Number(this.num), 1);
  683. } else if (this.rechargeDeduction === 1 && this.rechargeStatus === 1) {
  684. this.balance(Number(this.num), 1);
  685. } else if (this.rechargeDeduction === 0 && this.rechargeStatus === 0) {
  686. this.intergral(Number(this.num), 0);
  687. } else if (this.rechargeDeduction === 0 && this.rechargeStatus === 1) {
  688. this.balance(Number(this.num), 0);
  689. }
  690. }
  691. },
  692. modifyStore(data) {
  693. this.storeUser = data;
  694. this.storeItem = data.store[0];
  695. for (let i = 0; i < this.storeList.length; i++) {
  696. if (this.storeItem.id === this.storeList[i].id) {
  697. this.storeIndex = i;
  698. }
  699. }
  700. this.modifyStoreBool = true;
  701. },
  702. pickerChange(data) {
  703. this.storeIndex = data.detail.value[0];
  704. console.log(data);
  705. },
  706. dismissal(data) {
  707. this.deleteObject = data;
  708. this.releaseBool = true;
  709. },
  710. determineStore() {
  711. this.$request({
  712. url: this.$api.app_admin.clerk_edit,
  713. method: 'post',
  714. data: {
  715. user_id: this.storeUser.user_id,
  716. store_id: this.storeList[this.storeIndex].id,
  717. id: this.storeUser.id,
  718. }
  719. }).then(response => {
  720. if (response.code === 0) {
  721. this.$nextTick().then(() => {
  722. for (let i = 0; i < this.list.length; i++) {
  723. if (this.list[i].user.id === this.storeUser.user_id) {
  724. this.list[i].store[0] = this.storeList[this.storeIndex];
  725. this.storeIndex = -1;
  726. this.storeUser = {};
  727. this.modifyStoreBool = false;
  728. this.storeItem = {};
  729. }
  730. }
  731. })
  732. }
  733. })
  734. },
  735. allSort(data) {
  736. this.over = false;
  737. this.page = 1;
  738. uni.pageScrollTo({
  739. scrollTop: 0
  740. });
  741. if (data === 0) {
  742. if (this.sort === 1) {
  743. this.sort = 2;
  744. } else {
  745. this.sort = 1;
  746. }
  747. } else if (data === 1) {
  748. if (this.sort === 3) {
  749. this.sort = 4;
  750. } else {
  751. this.sort = 3;
  752. }
  753. }
  754. let sort;
  755. if(this.sort == 2) {
  756. sort = 'price_count_desc'
  757. }else if(this.sort == 1) {
  758. sort = 'price_count_asc'
  759. }else if(this.sort == 4) {
  760. sort = 'order_count_desc'
  761. }else if(this.sort == 3) {
  762. sort = 'order_count_asc'
  763. }
  764. this.$request({
  765. url: this.$api.app_admin.user,
  766. data: {
  767. page: 1,
  768. keyword: this.keyword,
  769. status: '',
  770. sort: sort,
  771. }
  772. }).then(response => {
  773. if (response.code === 0) {
  774. this.list = response.data.list;
  775. }
  776. })
  777. },
  778. setSort(data) {
  779. this.over = false;
  780. this.page = 1;
  781. uni.pageScrollTo({
  782. scrollTop: 0
  783. });
  784. if (data === 0) {
  785. if (this.sort === 1) {
  786. this.sort = 2;
  787. } else {
  788. this.sort = 1;
  789. }
  790. } else if (data === 1) {
  791. if (this.sort === 3) {
  792. this.sort = 4;
  793. } else {
  794. this.sort = 3;
  795. }
  796. } else if (data === 2) {
  797. if (this.sort === 5) {
  798. this.sort = 6;
  799. } else {
  800. this.sort = 5;
  801. }
  802. }
  803. this.$request({
  804. url: this.$api.app_admin.clerk,
  805. data: {
  806. page: 1,
  807. keyword: this.keyword,
  808. status: '',
  809. sort: this.sort,
  810. }
  811. }).then(response => {
  812. if (response.code === 0) {
  813. this.list = response.data.list;
  814. }
  815. })
  816. },
  817. cancelUndelete() {
  818. this.releaseBool = false;
  819. this.deleteObject = {};
  820. },
  821. sureDeletion() {
  822. this.$request({
  823. url: this.$api.app_admin.clerk_destroy,
  824. method: 'post',
  825. data: {
  826. id: this.deleteObject.id,
  827. }
  828. }).then(response => {
  829. if (response.code === 0) {
  830. this.list.map((item, index) => {
  831. if (item.id === this.deleteObject.id) {
  832. this.$delete(this.list, index);
  833. }
  834. });
  835. this.deleteObject = {};
  836. this.releaseBool = false;
  837. }
  838. });
  839. },
  840. keywordSearch() {
  841. this.page = 1;
  842. this.over = false;
  843. if (this.active === 0) {
  844. this.request({
  845. url: this.$api.app_admin.user,
  846. data: {
  847. page: this.page,
  848. status: '',
  849. keyword: this.keyword,
  850. }
  851. }).then(response => {
  852. if (response === false) {
  853. return this.list = [];
  854. }
  855. this.list = response.list;
  856. });
  857. } else if (this.active === 1) {
  858. this.request({
  859. url: this.$api.app_admin.share,
  860. data: {
  861. page: this.page,
  862. status: 1,
  863. keyword: this.keyword,
  864. }
  865. }).then(response => {
  866. if (response === false) {
  867. return this.list = [];
  868. }
  869. this.list = response.list;
  870. });
  871. } else if (this.active === 2) {
  872. this.request({
  873. url: this.$api.app_admin.clerk,
  874. data: {
  875. page: this.page,
  876. status: '',
  877. keyword: this.keyword,
  878. sort: this.sort,
  879. }
  880. }).then(response => {
  881. if (response === false) {
  882. return this.list = [];
  883. }
  884. this.list = response.list;
  885. });
  886. }
  887. },
  888. distributorSort(data) {
  889. this.over = false;
  890. this.page = 1;
  891. uni.pageScrollTo({
  892. scrollTop: 0
  893. });
  894. if (data === 0) {
  895. if (this.sort === 1) {
  896. this.sort = 2;
  897. } else {
  898. this.sort = 1;
  899. }
  900. } else {
  901. if (this.sort === 3) {
  902. this.sort = 4;
  903. } else {
  904. this.sort = 3;
  905. }
  906. }
  907. this.$request({
  908. url: this.$api.app_admin.share,
  909. data: {
  910. page: 1,
  911. keyword: this.keyword,
  912. status: 1,
  913. sort: this.sort,
  914. }
  915. }).then(response => {
  916. if (response.code === 0) {
  917. this.list = response.data.list;
  918. }
  919. })
  920. }
  921. }
  922. }
  923. </script>
  924. <style scoped lang="scss">
  925. .admin {
  926. width: #{750rpx};
  927. background-color: #f7f7f7;
  928. .navigator {
  929. width: #{750rpx};
  930. height: #{100rpx};
  931. border-bottom: #{1rpx} solid #e2e2e2;
  932. position: fixed;
  933. background-color: white;
  934. top: 0;
  935. left: 0;
  936. z-index: 1000;
  937. >view {
  938. text-align: center;
  939. line-height: #{100rpx};
  940. }
  941. .text {
  942. font-size: #{26rpx};
  943. color: #666666;
  944. height: #{98rpx};
  945. display: inline-block;
  946. border-bottom-style: solid;
  947. border-bottom-width: #{2rpx};
  948. border-bottom-color: transparent;
  949. line-height: #{98rpx};
  950. }
  951. .active-text {
  952. color: #446dfd;
  953. border-bottom-color: #446dfd;
  954. }
  955. }
  956. .search {
  957. width: #{750rpx};
  958. height: #{88rpx};
  959. padding: #{16rpx} #{24rpx};
  960. box-sizing: border-box;
  961. background-color: #efeff4;
  962. position: fixed;
  963. top: #{100rpx};
  964. left: 0;
  965. z-index: 1000;
  966. .prompt {
  967. width: #{702rpx};
  968. height: #{56rpx};
  969. position: absolute;
  970. border-radius: #{28rpx};
  971. background-color: #ffffff;
  972. >image {
  973. width: #{26rpx};
  974. height: #{26rpx};
  975. }
  976. >text {
  977. color: #b2b2b2;
  978. font-size: #{26rpx};
  979. margin: #{0 10rpx};
  980. }
  981. }
  982. input {
  983. width: #{702rpx};
  984. height: #{56rpx};
  985. border-radius: #{28rpx};
  986. background-color: #ffffff;
  987. padding: #{0 70rpx 0 30rpx};
  988. box-sizing: border-box;
  989. font-size: #{26rpx};
  990. }
  991. .search-clear {
  992. position: absolute;
  993. right: #{15rpx};
  994. top: #{14rpx};
  995. width: #{30rpx};
  996. height: #{30rpx};
  997. z-index: 300;
  998. }
  999. }
  1000. .sort-one {
  1001. width: #{750rpx};
  1002. height: #{80rpx};
  1003. background-color:white;
  1004. position: fixed;
  1005. top: #{188rpx};
  1006. z-index: 1000;
  1007. .sort-item {
  1008. width: #{375rpx};
  1009. height: #{80rpx};
  1010. .view {
  1011. width: #{375rpx};
  1012. height: #{80rpx};
  1013. >text {
  1014. font-size: #{28rpx};
  1015. color: #666666;
  1016. }
  1017. >image {
  1018. width: #{16rpx};
  1019. height: #{26rpx};
  1020. margin-left: #{16rpx};
  1021. }
  1022. }
  1023. }
  1024. }
  1025. .sort {
  1026. width: #{750rpx};
  1027. height: #{80rpx};
  1028. background-color:white;
  1029. position: fixed;
  1030. top: #{188rpx};
  1031. z-index: 1000;
  1032. .sort-item {
  1033. height: #{80rpx};
  1034. width: #{250rpx};
  1035. .view {
  1036. width: #{250rpx};
  1037. height: #{80rpx};
  1038. view {
  1039. display: inline-block;
  1040. font-size: #{26rpx};
  1041. color: #666666;
  1042. margin-right: #{16rpx};
  1043. }
  1044. image {
  1045. width: #{16rpx};
  1046. height: #{26rpx};
  1047. }
  1048. }
  1049. }
  1050. }
  1051. .content {
  1052. .no-people {
  1053. position: fixed;
  1054. top: #{350rpx};
  1055. left: 0;
  1056. right: 0;
  1057. margin: 0 auto;
  1058. color: #666666;
  1059. font-size: #{24rpx};
  1060. width: #{240rpx};
  1061. text-align: center;
  1062. >image {
  1063. width: #{240rpx};
  1064. height: #{240rpx};
  1065. margin-bottom: #{20rpx};
  1066. }
  1067. }
  1068. background-color: #f7f7f7;
  1069. padding: 0 #{24rpx};
  1070. box-sizing: border-box;
  1071. margin-top: #{292rpx};
  1072. .all-item {
  1073. width: #{702rpx};
  1074. background-color: white;
  1075. border-radius: #{15rpx};
  1076. padding: #{24rpx};
  1077. box-sizing: border-box;
  1078. margin-top: #{24rpx};
  1079. .avatar-name {
  1080. height: #{100rpx};
  1081. margin-bottom: #{16rpx};
  1082. .avatar {
  1083. height: #{100rpx};
  1084. width: #{100rpx};
  1085. border-radius: #{4rpx};
  1086. }
  1087. .name {
  1088. height: #{100rpx};
  1089. margin-left: #{24rpx};
  1090. font-size: #{32rpx};
  1091. color: #353535;
  1092. padding-top: #{10rpx};
  1093. }
  1094. .member {
  1095. color: #999999;
  1096. width: 100%;
  1097. font-size: #{28rpx};
  1098. }
  1099. span.member {
  1100. margin-left: #{12rpx};
  1101. display: inline-block;
  1102. width: #{164rpx};
  1103. vertical-align: bottom;
  1104. }
  1105. }
  1106. .number {
  1107. width: #{702-48rpx};
  1108. height: #{36+36+12rpx};
  1109. .item {
  1110. width: 50%;
  1111. height: #{36rpx};
  1112. .label {
  1113. height: #{36rpx};
  1114. line-height: #{36rpx};
  1115. padding: 0 #{8rpx};
  1116. box-sizing: border-box;
  1117. background-color: #efeff4;
  1118. margin-right: #{16rpx};
  1119. font-size: #{22rpx};
  1120. color: #999999;
  1121. }
  1122. .amount {
  1123. height: #{36rpx};
  1124. line-height: #{36rpx};
  1125. font-size: #{28rpx};
  1126. color: #999999;
  1127. }
  1128. }
  1129. .margin {
  1130. margin-bottom: #{12rpx};
  1131. }
  1132. }
  1133. .button {
  1134. width: #{702-48rpx};
  1135. height: #{60rpx};
  1136. margin-top: #{24rpx};
  1137. >view {
  1138. height: #{60rpx};
  1139. line-height: #{60rpx};
  1140. text-align: center;
  1141. padding: 0 #{32rpx};
  1142. border-style: solid;
  1143. border-color: transparent;
  1144. border-width: #{1rpx};
  1145. border-radius: #{30rpx};
  1146. font-size: #{28rpx};
  1147. }
  1148. .deduction {
  1149. margin-right: #{16rpx};
  1150. border-color: #e2e2e2;
  1151. color:#353535;
  1152. }
  1153. .recharge {
  1154. color: #446dfd;
  1155. border-color: #446dfd;
  1156. }
  1157. }
  1158. }
  1159. .auditor-item {
  1160. width: #{702rpx};
  1161. margin-top: #{24rpx};
  1162. background-color:white;
  1163. border-radius: #{15rpx};
  1164. padding: #{24rpx};
  1165. box-sizing: border-box;
  1166. .avatar-name {
  1167. width: #{654rpx};
  1168. height: #{100rpx};
  1169. }
  1170. .avatar {
  1171. width: #{100rpx};
  1172. height: #{100rpx};
  1173. border-radius: #{4rpx};
  1174. }
  1175. .name-content {
  1176. height: #{100rpx};
  1177. margin-left: #{24rpx};
  1178. width: #{530rpx};
  1179. .name {
  1180. font-size: #{32rpx};
  1181. color: #353535;
  1182. margin-top: #{12rpx};
  1183. }
  1184. .shop {
  1185. margin-top: #{6rpx};
  1186. >image {
  1187. height: #{28rpx};
  1188. width: #{28rpx};
  1189. }
  1190. >view {
  1191. font-size: #{28rpx};
  1192. color: #999999;
  1193. margin-left: #{12rpx};
  1194. }
  1195. }
  1196. }
  1197. .num-content {
  1198. width: #{654rpx};
  1199. margin-top: #{24rpx};
  1200. .prompt {
  1201. height: #{36rpx};
  1202. line-height: #{36rpx};
  1203. >text {
  1204. display: inline-block;
  1205. font-size: #{22rpx};
  1206. color: #999999;
  1207. padding: 0 #{8rpx};
  1208. box-sizing: border-box;
  1209. height: #{36rpx};
  1210. background-color: #efeff4;
  1211. }
  1212. }
  1213. .num {
  1214. margin-top: #{12rpx};
  1215. color: #999999;
  1216. font-size: #{28rpx};
  1217. }
  1218. }
  1219. .button {
  1220. width: #{654rpx};
  1221. height: #{60rpx};
  1222. margin-top: #{32rpx};
  1223. .release,.modify {
  1224. height: #{60rpx};
  1225. line-height: #{60rpx};
  1226. background-color: white;
  1227. font-size: #{28rpx};
  1228. border-radius: #{30rpx};
  1229. text-align: center;
  1230. padding: 0 #{32rpx};
  1231. box-sizing: border-box;
  1232. border-width: #{1rpx};
  1233. border-style: solid;
  1234. }
  1235. .release {
  1236. color: #353535;
  1237. border-color: #bbbbbb;
  1238. }
  1239. .modify {
  1240. margin-left: #{16rpx};
  1241. color: #446dfd;
  1242. border-color: #446dfd;
  1243. }
  1244. }
  1245. }
  1246. .distributor-item {
  1247. width: #{702rpx};
  1248. background-color: white;
  1249. border-radius: #{15rpx};
  1250. padding: #{24rpx};
  1251. box-sizing: border-box;
  1252. margin-top: #{24rpx};
  1253. .avatar {
  1254. width: #{148rpx};
  1255. height: #{148rpx};
  1256. border-radius: #{4rpx};
  1257. margin-right: #{24rpx};
  1258. }
  1259. .content-text {
  1260. width: #{482rpx};
  1261. height: #{148rpx};
  1262. >view {
  1263. width: #{482rpx};
  1264. }
  1265. .name {
  1266. margin: #{12rpx 0 10rpx 0};
  1267. font-size: #{32rpx};
  1268. color: #353535;
  1269. }
  1270. .num {
  1271. height: #{84rpx};
  1272. >view {
  1273. height: #{36rpx};
  1274. line-height: #{36rpx};
  1275. }
  1276. .amount {
  1277. margin-bottom: #{12rpx};
  1278. }
  1279. .prompt {
  1280. display: inline-block;
  1281. height: #{35rpx};
  1282. color: #999999;
  1283. font-size: #{22rpx};
  1284. padding: 0 #{8rpx};
  1285. box-sizing: border-box;
  1286. background-color: #efeff4;
  1287. margin-right: #{16rpx};
  1288. }
  1289. .price {
  1290. font-size: #{28rpx};
  1291. color: #999999;
  1292. }
  1293. }
  1294. }
  1295. }
  1296. }
  1297. .recharge-key-face {
  1298. position: fixed;
  1299. top: 0;
  1300. left: 0;
  1301. width: 100%;
  1302. height: 100%;
  1303. z-index: 1100;
  1304. background-color: rgba(0, 0, 0, 0.5);
  1305. .key-face-item {
  1306. position: absolute;
  1307. top: 50%;
  1308. left: 50%;
  1309. transform: translate(-50%, -50%);
  1310. width: #{620rpx};
  1311. background-color: white;
  1312. border-radius: #{16rpx};
  1313. .nav {
  1314. text-align: center;
  1315. .nav-item {
  1316. height: #{88rpx};
  1317. }
  1318. text {
  1319. display: inline-block;
  1320. font-size: #{32rpx};
  1321. height: #{88rpx};
  1322. line-height: #{88rpx};
  1323. color: #666666;
  1324. border-bottom-width: #{2rpx};
  1325. border-bottom-style: solid;
  1326. border-bottom-color:transparent;
  1327. }
  1328. .recharge-active {
  1329. color: #446dfd;
  1330. border-bottom-color: #446dfd;
  1331. }
  1332. }
  1333. .input {
  1334. padding: #{32rpx};
  1335. box-sizing: border-box;
  1336. >input {
  1337. height: #{80rpx};
  1338. border-radius: #{16rpx};
  1339. background-color: #f7f7f7;
  1340. color: #353535;
  1341. font-size: #{28rpx};
  1342. padding-left: #{24rpx};
  1343. box-sizing: border-box;
  1344. }
  1345. .remark-input {
  1346. margin-top: #{20rpx};
  1347. }
  1348. }
  1349. .button {
  1350. height: #{88rpx};
  1351. border-top: #{1rpx} solid #e2e2e2;
  1352. position: relative;
  1353. .app-line {
  1354. width: #{2rpx};
  1355. height: #{32rpx};
  1356. position: absolute;
  1357. top: #{28rpx};
  1358. background-color: #e2e2e2;
  1359. left: 0;
  1360. right: 0;
  1361. margin: 0 auto;
  1362. }
  1363. >view.cancel {
  1364. height: #{88rpx};
  1365. line-height: #{88rpx};
  1366. text-align: center;
  1367. position: relative;
  1368. width: #{309rpx};
  1369. }
  1370. >view.confirm {
  1371. height: #{88rpx};
  1372. line-height: #{88rpx};
  1373. text-align: center;
  1374. position: relative;
  1375. width: #{309rpx};
  1376. }
  1377. text {
  1378. width: 100%;
  1379. font-size: #{32rpx};
  1380. }
  1381. .confirm text {
  1382. color: #446dfd;
  1383. }
  1384. .cancel text {
  1385. color: #666666;
  1386. }
  1387. }
  1388. }
  1389. }
  1390. .modify-store {
  1391. position: fixed;
  1392. top: 0;
  1393. left: 0;
  1394. width: 100%;
  1395. height: 100%;
  1396. z-index: 1600;
  1397. background-color: rgba(0,0,0,.5);
  1398. .modify-store-item {
  1399. width: #{750rpx};
  1400. background-color: #ffffff;
  1401. padding-top: #{20rpx};
  1402. box-sizing: border-box;
  1403. position: fixed;
  1404. bottom: 0;
  1405. left: 0;
  1406. .picker-header {
  1407. width: #{750rpx};
  1408. padding: 0 #{24rpx};
  1409. box-sizing: border-box;
  1410. color: #446dfd;
  1411. font-size: #{32rpx};
  1412. }
  1413. .picker {
  1414. width: #{750rpx};
  1415. height: #{400rpx};
  1416. margin-top: #{16rpx};
  1417. .item {
  1418. height: #{88rpx};
  1419. line-height: #{88rpx};
  1420. text-align: center;
  1421. font-size: #{32rpx};
  1422. }
  1423. .sure-color {
  1424. color: rgb(68,109,253);
  1425. }
  1426. .cardinal-color {
  1427. color: #999999;
  1428. }
  1429. .even-color {
  1430. color: #cdcdcd;
  1431. }
  1432. }
  1433. }
  1434. .picker-item {
  1435. border-top: #{1rpx} solid #e2e2e2;
  1436. border-bottom: #{1rpx} solid #e2e2e2;
  1437. }
  1438. }
  1439. .release-prompt {
  1440. position: fixed;
  1441. top: 0;
  1442. left: 0;
  1443. width: 100%;
  1444. height: 100%;
  1445. z-index: 1600;
  1446. background-color: rgba(0,0,0,.5);
  1447. .prompt-item {
  1448. position: absolute;
  1449. top: 50%;
  1450. left: 50%;
  1451. transform: translate(-50%, -50%);
  1452. width: #{620rpx};
  1453. background-color: rgb(255,255,255);
  1454. border-radius: #{16rpx};
  1455. padding-top: #{40rpx};
  1456. box-sizing: border-box;
  1457. .header {
  1458. font-size: #{32rpx};
  1459. color: #353535;
  1460. text-align: center;
  1461. }
  1462. .content {
  1463. font-size: #{32rpx};
  1464. color:#353535;
  1465. text-align: center;
  1466. margin: #{64rpx} 0;
  1467. background-color: white;
  1468. }
  1469. .button {
  1470. width: #{620rpx};
  1471. height: #{88rpx};
  1472. border-top: #{1rpx} solid #e2e2e2;
  1473. .cancel,.sure {
  1474. width: #{309rpx};
  1475. font-size: #{32rpx};
  1476. text-align: center;
  1477. }
  1478. .line {
  1479. width: #{2rpx};
  1480. background-color: #e2e2e2;
  1481. height: #{32rpx};
  1482. }
  1483. .cancel {
  1484. color: #666666;
  1485. }
  1486. .sure {
  1487. color: #446dfd;
  1488. }
  1489. }
  1490. }
  1491. }
  1492. }
  1493. .dialog {
  1494. position: fixed;
  1495. bottom: 0;
  1496. left: 0;
  1497. width: 100%;
  1498. height: 100%;
  1499. background-color: rgba(0,0,0,.3);
  1500. z-index: 1000;
  1501. .dialog-item {
  1502. padding-top: #{20rpx};
  1503. position: fixed;
  1504. top: 25%;
  1505. left: 0;
  1506. right: 0;
  1507. z-index: 1001;
  1508. margin: 0 auto;
  1509. width: #{620rpx};
  1510. border-radius: #{16rpx};
  1511. background-color: #fff;
  1512. .error-info {
  1513. text-align: center;
  1514. margin: #{50rpx};
  1515. }
  1516. .btn-area {
  1517. height: #{88rpx};
  1518. position: relative;
  1519. border-top: #{1rpx} solid #e2e2e2;
  1520. }
  1521. .btn-area .line {
  1522. height: #{32rpx};
  1523. width: #{1rpx};
  1524. background-color: #e2e2e2;
  1525. position: absolute;
  1526. top: #{28rpx};
  1527. left: 0;
  1528. right: 0;
  1529. margin: 0 auto;
  1530. }
  1531. .submit-btn {
  1532. height: #{88rpx};
  1533. line-height: #{88rpx};
  1534. font-size: #{32rpx};
  1535. color: #666;
  1536. width: #{310rpx};
  1537. text-align: center;
  1538. }
  1539. .dialog-title {
  1540. text-align: center;
  1541. margin: #{15rpx} 0 #{50rpx};
  1542. }
  1543. .submit-btn.be-submit {
  1544. color: #446dfd;
  1545. }
  1546. }
  1547. .dialog-choose {
  1548. position: fixed;
  1549. bottom: 0;
  1550. left: 0;
  1551. width: 100%;
  1552. height: #{300rpx};
  1553. z-index: 1001;
  1554. border-top-left-radius: #{16rpx};
  1555. border-top-right-radius: #{16rpx};
  1556. background-color: #fff;
  1557. text-align: center;
  1558. font-size: #{32rpx};
  1559. color: #353535;
  1560. .dialog-choose-item {
  1561. height: #{100rpx};
  1562. line-height: #{100rpx};
  1563. border-bottom: #{2rpx} solid #e2e2e2;
  1564. }
  1565. .dialog-cancel {
  1566. border-bottom: 0;
  1567. color: #446dfd;
  1568. }
  1569. }
  1570. .key-face-item {
  1571. position: absolute;
  1572. top: 50%;
  1573. left: 50%;
  1574. transform: translate(-50%, -50%);
  1575. width: #{620rpx};
  1576. background-color: white;
  1577. border-radius: #{16rpx};
  1578. .nav {
  1579. text-align: center;
  1580. .nav-item {
  1581. height: #{88rpx};
  1582. }
  1583. text {
  1584. display: inline-block;
  1585. font-size: #{32rpx};
  1586. height: #{88rpx};
  1587. line-height: #{88rpx};
  1588. color: #666666;
  1589. border-bottom-width: #{2rpx};
  1590. border-bottom-style: solid;
  1591. border-bottom-color:transparent;
  1592. }
  1593. .recharge-active {
  1594. color: #446dfd;
  1595. border-bottom-color: #446dfd;
  1596. }
  1597. }
  1598. .input {
  1599. padding: #{32rpx};
  1600. box-sizing: border-box;
  1601. >input {
  1602. height: #{80rpx};
  1603. border-radius: #{16rpx};
  1604. background-color: #f7f7f7;
  1605. color: #353535;
  1606. font-size: #{28rpx};
  1607. padding-left: #{24rpx};
  1608. box-sizing: border-box;
  1609. }
  1610. .remark-input {
  1611. margin-top: #{20rpx};
  1612. }
  1613. }
  1614. .button {
  1615. height: #{88rpx};
  1616. border-top: #{1rpx} solid #e2e2e2;
  1617. position: relative;
  1618. .app-line {
  1619. width: #{2rpx};
  1620. height: #{32rpx};
  1621. position: absolute;
  1622. top: #{28rpx};
  1623. background-color: #e2e2e2;
  1624. left: 0;
  1625. right: 0;
  1626. margin: 0 auto;
  1627. }
  1628. >view.cancel {
  1629. height: #{88rpx};
  1630. line-height: #{88rpx};
  1631. text-align: center;
  1632. position: relative;
  1633. width: #{309rpx};
  1634. }
  1635. >view.confirm {
  1636. height: #{88rpx};
  1637. line-height: #{88rpx};
  1638. text-align: center;
  1639. position: relative;
  1640. width: #{309rpx};
  1641. }
  1642. text {
  1643. width: 100%;
  1644. font-size: #{32rpx};
  1645. }
  1646. .confirm text {
  1647. color: #446dfd;
  1648. }
  1649. .cancel text {
  1650. color: #666666;
  1651. }
  1652. }
  1653. .member-list {
  1654. font-size: #{32rpx};
  1655. color: #353535;
  1656. padding: 0 #{32rpx};
  1657. max-height: #{388rpx};
  1658. overflow: auto;
  1659. .member-item {
  1660. height: #{88rpx};
  1661. border-top: #{2rpx} solid #e2e2e2;
  1662. width: #{566rpx};
  1663. padding: 0 #{40rpx};
  1664. image {
  1665. width: #{36rpx};
  1666. height: #{36rpx};
  1667. }
  1668. }
  1669. .member-item:first-of-type {
  1670. border-top: 0;
  1671. }
  1672. }
  1673. }
  1674. }
  1675. </style>