1
0

user.vue 53 KB

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