cardHolder.vue 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458
  1. <template>
  2. <view class="content">
  3. <u-navbar title="电子名片" placeholder bgColor="#112253" titleStyle="color:#fff">
  4. <view class="u-nav-slot relative" slot="left">
  5. <u-icon name="bell" size="26" @click="toNotice" color="#fff"></u-icon>
  6. <u-badge :isDot="unread>0?true:false" type="error" class="point"></u-badge>
  7. </view>
  8. </u-navbar>
  9. <view class="content1 flex-row-center">
  10. <view class="search flex flex-between" @click="search">
  11. <view class="left flex">
  12. <uni-icons type="search" size="24" color="#9199af"></uni-icons>
  13. <text class="search-val"> {{searchVal?searchVal:'搜索名片'}}</text>
  14. <uni-icons type="closeempty" size="24" @click.native.stop="delSearchVal" v-if="searchVal">
  15. </uni-icons>
  16. </view>
  17. <view class="right">
  18. <image style='width:32rpx;height:32rpx;' v-if="searchVal" @click.native.stop="delSearchVal"
  19. src="../../static/imgs/card/searchdel.png" mode="widthFix"></image>
  20. <uni-icons type="mic" size="24" @click.native.stop="micOpen" color="#9199af"></uni-icons>
  21. </view>
  22. </view>
  23. <view class="col flex">
  24. <uni-icons type="scan" size="30" @click="scan" color="#fff"></uni-icons>
  25. </view>
  26. </view>
  27. <view class="content2">
  28. <view class="all-type flex" @click="selectType">
  29. <text>{{typeName?typeName:'全部分类'}}</text>
  30. <uni-icons type="bottom" size="18" color="#fff"></uni-icons>
  31. </view>
  32. </view>
  33. <view class="content3">
  34. <mescroll-body v-if='cardHolderList' :up="upOption" :down="downOption" ref="mescrollRef"
  35. @init="mescrollInit" @up="upCallback" @down="downCallback">
  36. <view v-for='(item,index) in cardHolderList' @longpress="longpress" class="item flex">
  37. <!-- <view class="card-list-item" style="background:red"> -->
  38. <view class="card-list-item"
  39. :style="'background:url('+item.currentBackground+');background-size:100% 100%'">
  40. <view class="card-content style1" v-if="item.cuttentTemplate==1">
  41. <view class="left">
  42. <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px"
  43. shape="circle"></u--image>
  44. </view>
  45. <view class="right">
  46. <view class="row1">
  47. <text class="name">{{item.name}}</text>
  48. <text class="post">{{item.post}}</text>
  49. </view>
  50. <view class="row2">
  51. {{item.companyName}}
  52. </view>
  53. <view class="row3 flex" @click="">
  54. <u--image :showLoading="true" src="/static/imgs/card/address1.png" width="13px"
  55. height="16px"></u--image>
  56. <view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
  57. </view>
  58. <view class="row4 flex">
  59. <u--image :showLoading="true" src="/static/imgs/card/phone1.png" width="12px"
  60. height="13px"></u--image>
  61. <view class='icon-text'>{{ item.phone }}</view>
  62. </view>
  63. <view @click='remarkEdit(item)' class="row2 flex" style="color: #808080">
  64. <u--image :showLoading="true" src="/static/imgs/card/remark1.png" width="10px"
  65. height="12px"></u--image>
  66. <view class='icon-text'>{{item.remark?item.remark:'单击添加备注'}}</view>
  67. </view>
  68. </view>
  69. <u-checkbox-group v-if='islongPress' placement="column"
  70. @change="checkboxChange($event,index)">
  71. <u-checkbox iconColor='#4977FC' activeColor="#fff" :name='index+1'
  72. :checked='item.checked' :customStyle="{marginBottom: '8px'}">
  73. </u-checkbox>
  74. </u-checkbox-group>
  75. </view>
  76. <view class="card-content style1 flex-between" v-if="item.cuttentTemplate==2">
  77. <view class="right">
  78. <view class="row1">
  79. <text class="name">{{item.name}}</text>
  80. <text class="post">{{item.post}}</text>
  81. </view>
  82. <view class="row2">
  83. {{item.companyName}}
  84. </view>
  85. <view class="row3 flex">
  86. <u--image :showLoading="true" src="/static/imgs/card/address3.png" width="13px"
  87. height="16px"></u--image>
  88. <view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
  89. </view>
  90. <view class="row4 flex">
  91. <u--image :showLoading="true" src="/static/imgs/card/phone3.png" width="12px"
  92. height="13px"></u--image>
  93. <view class='icon-text'>{{ item.phone }}</view>
  94. </view>
  95. <view @click='remarkEdit(item)' class="row2 flex" style="color: #808080">
  96. <u--image :showLoading="true" src="/static/imgs/card/remark3.png" width="10px"
  97. height="12px"></u--image>
  98. <view class='icon-text'>{{item.remark?item.remark:'单击添加备注'}}</view>
  99. </view>
  100. </view>
  101. <view class="left">
  102. <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px"
  103. shape="circle" v-if="item.headSculpture"></u--image>
  104. <u--image :showLoading="true" src="/./../static/imgs/card/defaulthead.png" width="66px"
  105. height="66px" shape="circle" v-else></u--image>
  106. </view>
  107. <u-checkbox-group v-if='islongPress' placement="column"
  108. @change="checkboxChange($event,index)">
  109. <u-checkbox iconColor='#4977FC' activeColor="#fff" :name='index+1'
  110. :checked='item.checked' :customStyle="{marginBottom: '8px'}">
  111. </u-checkbox>
  112. </u-checkbox-group>
  113. </view>
  114. <view class="card-content style2" v-if="item.cuttentTemplate==3">
  115. <view class="top">
  116. <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px"
  117. shape="circle" v-if="item.headSculpture"></u--image>
  118. <u--image :showLoading="true" src="/./../static/imgs/card/defaulthead.png" width="66px"
  119. height="66px" shape="circle" v-else></u--image>
  120. </view>
  121. <view class="bottom flex">
  122. <view class="left">
  123. <view class="row1">
  124. <text class="name">{{item.name}}</text>
  125. <text class="post">{{item.post}}</text>
  126. </view>
  127. <view class="row2">
  128. {{item.companyName}}
  129. </view>
  130. </view>
  131. <view class="right">
  132. <view class="row1 flex">
  133. <u--image :showLoading="true" src="/static/imgs/card/address1.png" width="13px"
  134. height="16px"></u--image>
  135. <view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
  136. </view>
  137. <view class="row2 flex">
  138. <u--image :showLoading="true" src="/static/imgs/card/phone1.png" width="12px"
  139. height="13px"></u--image>
  140. <view class='icon-text'>{{ item.phone }}</view>
  141. </view>
  142. <view @click='remarkEdit(item)' class="row2 flex" style="color: #808080">
  143. <u--image :showLoading="true" src="/static/imgs/card/remark1.png" width="10px"
  144. height="12px"></u--image>
  145. <view class='icon-text'>{{item.remark?item.remark:'单击添加备注'}}</view>
  146. </view>
  147. </view>
  148. </view>
  149. <u-checkbox-group v-if='islongPress' placement="column"
  150. @change="checkboxChange($event,index)">
  151. <u-checkbox iconColor='#4977FC' activeColor="#fff" :name='index+1'
  152. :checked='item.checked' :customStyle="{marginBottom: '8px'}">
  153. </u-checkbox>
  154. </u-checkbox-group>
  155. </view>
  156. <view class="card-content style2" v-if="item.cuttentTemplate==4">
  157. <view class="top">
  158. <view class="row1">
  159. <text class="name">{{item.name}}</text>
  160. <text class="post">{{item.post}}</text>
  161. </view>
  162. <view class="row2">
  163. {{item.companyName}}
  164. </view>
  165. </view>
  166. <view class="bottom flex">
  167. <view class="left">
  168. <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px"
  169. shape="circle" v-if="item.headSculpture"></u--image>
  170. <u--image :showLoading="true" src="/./../static/imgs/card/defaulthead.png"
  171. width="66px" height="66px" shape="circle" v-else></u--image>
  172. </view>
  173. <view class="right">
  174. <view class="row1 flex">
  175. <u--image :showLoading="true" src="/static/imgs/card/address2.png" width="13px"
  176. height="16px"></u--image>
  177. <view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
  178. </view>
  179. <view class="row2 flex">
  180. <u--image :showLoading="true" src="/static/imgs/card/phone2.png" width="12px"
  181. height="13px"></u--image>
  182. <view class='icon-text'>{{ item.phone }}</view>
  183. </view>
  184. <view @click='remarkEdit(item)' class="row2 flex" style="color: #808080">
  185. <u--image :showLoading="true" src="/static/imgs/card/remark2.png" width="10px"
  186. height="12px"></u--image>
  187. <view :style='item.remark?"color:#000;":"color:#808080;"' class='icon-text'>
  188. {{item.remark?item.remark:'单击添加备注'}}
  189. </view>
  190. </view>
  191. </view>
  192. </view>
  193. <u-checkbox-group v-if='islongPress' placement="column"
  194. @change="checkboxChange($event,index)">
  195. <u-checkbox iconColor='#4977FC' activeColor="#fff" :name='index+1'
  196. :checked='item.checked' :customStyle="{marginBottom: '8px'}">
  197. </u-checkbox>
  198. </u-checkbox-group>
  199. </view>
  200. <view class="car-bottom flex">
  201. <view class="left">
  202. <image src="../../static/imgs/card/home.png" mode="widthFix" style="width: 32rpx;"
  203. @click="toHome(item)"></image>
  204. <text @click='switchType(item)'
  205. style="color: #fff;">{{item.classify?item.classifyName:'默'}}</text>
  206. <image src="../../static/imgs/card/share.png" mode="widthFix" style="width: 35rpx;"
  207. @click="share(item)"></image>
  208. </view>
  209. <view class="right">
  210. </view>
  211. </view>
  212. </view>
  213. </view>
  214. </mescroll-body>
  215. </view>
  216. <view class="del-style" v-if="islongPress">
  217. <view class="left">
  218. <text class="qx" @click="islongPress=false">取消</text>
  219. <text class="del" @click="del">删除</text>
  220. </view>
  221. <view style='width:128rpx;' class="right flex">
  222. <view>全选</view>
  223. <u-checkbox-group class='' placement="column" @change="checkboxChange($event,'')">
  224. <u-checkbox iconColor='#4977FC' activeColor="#fff" name='全选' :checked='checked'
  225. :customStyle="{marginBottom: '8px',position: 'relative',top: '-19px',right:'-8px'}">
  226. </u-checkbox>
  227. </u-checkbox-group>
  228. </view>
  229. </view>
  230. <u-picker :show="isShowType" :columns="typeColumns" keyName="circleName" :title="type == 2?'修改分类':'选择分类'"
  231. @close="isShowType=false" @cancel="isShowType=false" closeOnClickOverlay @confirm="typeConfirm"></u-picker>
  232. <u-toast ref="uToast"></u-toast>
  233. <u-modal :show="delShow" title="提示" confirmText='确定' showCancelButton='true' @cancel="delShow=false"
  234. @confirm="delConfirm" :content='"已选中"+this.checkedList.length+"张名片,确定删除?"'></u-modal>
  235. <u-modal :show="modalShow" @confirm='remarkConfirm' :confirmColor="remark?'#2979ff':'#ccc'"
  236. showCancelButton='true' title="备注">
  237. <view class="slot-content">
  238. <u--textarea v-model="remark" placeholder="输入备注,不超过150个字"></u--textarea>
  239. </view>
  240. </u-modal>
  241. <u-popup :show="qrcodeShow" @close="qrcodeShow=false" mode="center" :round='10'>
  242. <image style='margin:10px;' :src="currectData.qrCode" mode="widthFix"></image>
  243. </u-popup>
  244. <u-popup :show="popupshow" :closeOnClickOverlay='true' :overlayOpacity='0.4' @close='handleHiddenShare'
  245. :round="10" mode="bottom">
  246. <view>
  247. <!-- <view class="share-to">
  248. <text>分享到</text>
  249. </view> -->
  250. <view class="share-content">
  251. <view class="block" @click="toUrl()">
  252. <button class="moment">
  253. <image style='width:108rpx;height:108rpx;' src="@/static/imgs/scancode.png"
  254. mode="aspectFill"></image>
  255. <view>扫码分享</view>
  256. </button>
  257. </view>
  258. <view class="block">
  259. <button class="shareBtn" type="default" data-name="shareBtn" open-type="share">
  260. <image style='width:108rpx;height:108rpx;' src="@/static/imgs/shade.png" mode="aspectFill">
  261. </image>
  262. <view>分享微信好友</view>
  263. </button>
  264. </view>
  265. </view>
  266. </view>
  267. </u-popup>
  268. <!-- <image :src="poster" style="width: 750rpx;height: 1334rpx;"></image> -->
  269. <!-- 生成图片 -->
  270. <poster :data="canvasData" background-color="#FFF" :width='750' :height='420' @on-success="posterSuccess"
  271. ref="poster" @on-error="posterError"></poster>
  272. <!-- #ifdef MP-WEIXIN -->
  273. <u-popup :show="isPhone" mode="center" :round="10">
  274. <view class='sq-view'>
  275. <view class="text">
  276. 手机登录后才能查看名片哦~
  277. </view>
  278. <button class="confirm" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">授权手机号</button>
  279. </view>
  280. </u-popup>
  281. <!-- #endif -->
  282. <u-toast ref="uToast"></u-toast>
  283. </view>
  284. </template>
  285. <script>
  286. import Poster from '../../components/zhangyuhao-poster/Poster.vue'
  287. import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
  288. export default {
  289. mixins: [MescrollMixin],
  290. components: {
  291. Poster
  292. },
  293. data() {
  294. return {
  295. userInfo: {},
  296. downOption: {
  297. auto: false,
  298. },
  299. upOption: {
  300. auto: false,
  301. },
  302. params: {
  303. encryptedData: '',
  304. session_key: '',
  305. iv: '',
  306. },
  307. key: '',
  308. isPhone: false,
  309. canReset: false,
  310. poster: '',
  311. canvasData: {},
  312. searchVal: '',
  313. isShowType: false,
  314. loading: true,
  315. typeName: '',
  316. typeColumns: [],
  317. cardHolderList: [],
  318. currectData: [],
  319. type: 1,
  320. popupshow: false,
  321. modalShow: false,
  322. remark: '',
  323. islongPress: false,
  324. checked: false,
  325. checkedList: [],
  326. delShow: false,
  327. qrcodeShow: false,
  328. unread: 0,
  329. clicknum: 0,
  330. noticeList: [],
  331. };
  332. },
  333. onShow() {
  334. if (uni.getStorageSync("userInfo").phone) {
  335. this.userInfo = uni.getStorageSync("userInfo")
  336. this.$nextTick(function() {
  337. this.mescroll.resetUpScroll()
  338. // this.canReset && this.mescroll.resetUpScroll() // 重置列表数据为第一页
  339. // this.canReset && this.mescroll.scrollTo(0, 0) // 重置列表数据为第一页时,建议把滚动条也重置到顶部,避免无法再次翻页的问题
  340. // this.canReset = true // 过滤第一次的onShow事件,避免初始化界面时重复触发upCallback, 无需配置auto:false
  341. });
  342. this.searchVal = uni.getStorageSync("search_val") ? uni.getStorageSync("search_val") : ''
  343. } else {
  344. this.login()
  345. }
  346. },
  347. mounted() {
  348. },
  349. onLoad: function() {
  350. wx.showShareMenu({
  351. withShareTicket: true,
  352. menus: ["shareAppMessage", "shareTimeline"]
  353. })
  354. },
  355. onShareAppMessage(res) {
  356. console.log(res, this.popupshow)
  357. let that = this;
  358. //生成名片图片
  359. let imageUrl = this.poster
  360. console.log("imageUrl", imageUrl)
  361. if (res.from === 'button') {
  362. let path = `/pages/cardHolder/scanCodeAddCard?id=${that.currectData.id}`
  363. return {
  364. title: this.popupshow ? `${that.currectData.name}分享的名片~` : '电子名片',
  365. path: path,
  366. imageUrl: this.popupshow ? imageUrl : '',
  367. };
  368. }
  369. if (res.from === 'menu') {
  370. return {
  371. title: '名片夹',
  372. path: '/pages/tabBarPro/index/index',
  373. imageUrl: this.popupshow ? imageUrl : ''
  374. };
  375. }
  376. },
  377. methods: {
  378. getPhoneNumber(e) {
  379. console.log(e)
  380. if (e.mp.detail.errMsg === "getPhoneNumber:ok") {
  381. this.isPhone = false
  382. this.params.iv = e.mp.detail.iv
  383. this.params.encryptedData = e.mp.detail.encryptedData
  384. this.params.session_key = this.accessToken
  385. console.log(this.params)
  386. let appId = 'wx5d8906c2208c899f'
  387. let sessionKey = this.userInfo.sessionKey
  388. let encryptedData = this.params.encryptedData
  389. let iv = this.params.iv
  390. let pc = this.$WXBizDataCrypt(appId, sessionKey)
  391. let data = this.$WXBizDataCrypt.prototype.decryptData(encryptedData, iv, appId, sessionKey)
  392. console.log('解密后 data: ', data)
  393. this.getTokenAsync(data)
  394. }
  395. },
  396. async getTokenAsync(val) {
  397. let that = this
  398. uni.getUserInfo({
  399. provider: 'weixin',
  400. success: function(info) {
  401. console.log("info", info)
  402. that.userInfo.nickname = info.userInfo.nickName
  403. that.userInfo.head = info.userInfo.avatarUrl
  404. that.userInfo.phone = val.phoneNumber
  405. that.$request.baseRequest('commonUserApp', 'edit', {
  406. commonUserInfo: JSON.stringify(that.userInfo)
  407. }, failres => {
  408. that.$refs.uToast.show({
  409. type: 'error',
  410. message: failres.errmsg,
  411. })
  412. uni.hideLoading()
  413. }).then(res1 => {
  414. that.userInfo = res1.data
  415. uni.setStorageSync("userInfo", that.userInfo)
  416. that.mescroll.resetUpScroll()
  417. })
  418. }
  419. })
  420. // that.userInfo.phone = val.phoneNumber
  421. // that.userInfo.userId = that.userInfo.id
  422. // console.log(that.userInfo)
  423. // that.$request.baseRequest('user', 'syncUserInfo', that.userInfo).then(syncRes => {
  424. // this.$request.baseRequest('sunMemberInfoApp', 'add', {
  425. // sunMemberInfo: JSON.stringify({
  426. // name: that.userInfo.nickname,
  427. // phone: val.phoneNumber,
  428. // sex: '1'
  429. // })
  430. // }, failres => {
  431. // console.log('res+++++', failres.errmsg)
  432. // this.$refs.uToast.show({
  433. // type: 'error',
  434. // message: failres.errmsg,
  435. // })
  436. // uni.hideLoading()
  437. // }).then(res => {
  438. // if (res.errno == 200) {
  439. // uni.setStorageSync('userInfo', that.userInfo)
  440. // that.$store.commit('login', that.userInfo)
  441. // // that.$api.setUserInfo(that.userInfo)
  442. // uni.hideLoading()
  443. // // that.liangxinLogin()
  444. // that.init()
  445. // this.isShowAlert = false
  446. // }
  447. // })
  448. // })
  449. },
  450. delVal() {
  451. this.searchVal = ""
  452. this.mescroll.resetUpScroll()
  453. },
  454. handleHiddenShare() {
  455. console.log(11111)
  456. this.popupshow = false
  457. },
  458. posterError(err) {
  459. console.log(err)
  460. uni.hideLoading()
  461. },
  462. posterSuccess(url) {
  463. console.log("hahahah", url)
  464. // 生成成功,会把临时路径在这里返回
  465. this.poster = url;
  466. this.popupshow = true
  467. console.log(url)
  468. uni.hideLoading()
  469. },
  470. toHome(item) {
  471. uni.navigateTo({
  472. url: "/pages/mySet/myHome?id=" + item.personalHomeId
  473. })
  474. },
  475. delSearchVal() {
  476. this.searchVal = ""
  477. uni.removeStorageSync('search_val')
  478. this.mescroll.resetUpScroll()
  479. },
  480. toUrl() {
  481. console.log(this.currectData)
  482. this.popupshow = false
  483. this.qrcodeShow = true
  484. },
  485. share(item) {
  486. uni.showLoading({
  487. title: '加载中',
  488. mask: true
  489. })
  490. this.currectData = item
  491. var data = [{
  492. type: 'image',
  493. path: this.currectData.currentBackground,
  494. use: 'bg',
  495. x: -10,
  496. y: 0,
  497. width: 530,
  498. height: 325
  499. },
  500. {
  501. type: 'image',
  502. path: this.currectData.headSculpture,
  503. shape: 'circle',
  504. use: 'head',
  505. x: 30,
  506. y: 30,
  507. width: 100,
  508. height: 100
  509. },
  510. {
  511. type: 'text',
  512. text: this.currectData.name,
  513. use: 'name',
  514. x: 150,
  515. y: 50,
  516. size: 24,
  517. color: '#000'
  518. },
  519. {
  520. type: 'text',
  521. text: this.currectData.post,
  522. use: 'post',
  523. x: 240,
  524. y: 55,
  525. size: 18,
  526. color: '#666666'
  527. },
  528. {
  529. type: 'text',
  530. text: this.currectData.companyName,
  531. use: 'companyName',
  532. x: 150,
  533. y: 95,
  534. size: 18,
  535. color: '#000'
  536. },
  537. {
  538. type: 'image',
  539. path: '../../static/imgs/card/address1.png',
  540. use: 'address-icon',
  541. x: 145,
  542. y: 130,
  543. width: 15,
  544. height: 20
  545. },
  546. {
  547. type: 'textarea',
  548. text: this.currectData.province + this.currectData.city + this.currectData.area + this
  549. .currectData.detailedAddress,
  550. lineSpace: 1,
  551. width: 320,
  552. use: 'address',
  553. x: 175,
  554. y: 135,
  555. size: 14,
  556. color: '#000'
  557. },
  558. {
  559. type: 'image',
  560. path: '../../static/imgs/card/phone1.png',
  561. use: 'phone-icon',
  562. x: 145,
  563. y: 163,
  564. width: 16,
  565. height: 16
  566. },
  567. {
  568. type: 'text',
  569. text: this.currectData.phone,
  570. use: 'phone',
  571. x: 175,
  572. y: 167,
  573. size: 14,
  574. color: '#000'
  575. },
  576. {
  577. type: 'image',
  578. path: '../../static/imgs/card/remark1.png',
  579. use: 'remark-icon',
  580. x: 145,
  581. y: 197,
  582. width: 13,
  583. height: 16
  584. },
  585. {
  586. type: 'textarea',
  587. text: this.currectData.remark ? this.currectData.remark : '单击添加备注',
  588. use: 'remark',
  589. lineSpace: 2,
  590. width: 200,
  591. x: 175,
  592. y: 200,
  593. size: 13,
  594. color: '#000'
  595. },
  596. {
  597. type: 'image',
  598. path: '../../static/imgs/card/bg3.png',
  599. use: 'bg1',
  600. x: 0,
  601. y: 243,
  602. width: 370,
  603. height: 67
  604. },
  605. {
  606. type: 'image',
  607. path: '../../static/imgs/card/bg4.png',
  608. use: 'bg2',
  609. x: 355,
  610. y: 243,
  611. width: 150,
  612. height: 67
  613. },
  614. {
  615. type: 'image',
  616. path: '../../static/imgs/card/home.png',
  617. use: 'home',
  618. x: 65,
  619. y: 260,
  620. width: 33,
  621. height: 33
  622. },
  623. {
  624. type: 'text',
  625. text: this.currectData.classifyName ? this.currectData.classifyName : '默',
  626. use: 'classify',
  627. x: 145,
  628. y: 263,
  629. size: 34,
  630. color: '#fff'
  631. },
  632. {
  633. type: 'image',
  634. path: '../../static/imgs/card/share.png',
  635. use: 'share',
  636. x: 235,
  637. y: 263,
  638. width: 33,
  639. height: 28
  640. },
  641. ]
  642. console.log(this.currectData.cuttentTemplate, 111111)
  643. for (var i = 0; i < data.length; i++) {
  644. switch (this.currectData.cuttentTemplate) {
  645. case '2':
  646. if (data[i].use === 'name' ||
  647. data[i].use === 'companyName' ||
  648. data[i].use === 'address-icon' ||
  649. data[i].use === 'phone-icon' ||
  650. data[i].use === 'remark-icon') {
  651. data[i].x = 30
  652. }
  653. if (data[i].use === 'address-icon') {
  654. data[i].path = '../../static/imgs/card/address3.png'
  655. }
  656. if (data[i].use === 'phone-icon') {
  657. data[i].path = '../../static/imgs/card/phone3.png'
  658. }
  659. if (data[i].use === 'remark-icon') {
  660. data[i].path = '../../static/imgs/card/remark3.png'
  661. }
  662. if (data[i].use === 'post') {
  663. data[i].x = 100
  664. }
  665. if (data[i].use === 'address' ||
  666. data[i].use === 'phone' ||
  667. data[i].use === 'remark') {
  668. data[i].x = 60
  669. }
  670. if (data[i].use == 'head') {
  671. data[i].x = 370
  672. }
  673. break;
  674. case '3':
  675. if (data[i].use === 'name') {
  676. data[i].x = 30
  677. data[i].y = 150
  678. }
  679. if (data[i].use === 'companyName') {
  680. data[i].x = 30
  681. data[i].y = 180
  682. }
  683. if (data[i].use === 'post') {
  684. data[i].x = 100
  685. data[i].y = 153
  686. }
  687. if (data[i].use === 'address-icon' ||
  688. data[i].use === 'phone-icon' ||
  689. data[i].use === 'remark-icon') {
  690. data[i].x = 170
  691. }
  692. if (data[i].use === 'address-icon') {
  693. data[i].y = 150
  694. }
  695. if (data[i].use === 'address') {
  696. data[i].y = 155;
  697. data[i].width = 300
  698. }
  699. if (data[i].use === 'phone-icon') {
  700. data[i].y = 180
  701. }
  702. if (data[i].use === 'phone') {
  703. data[i].y = 183
  704. }
  705. if (data[i].use === 'remark-icon') {
  706. data[i].y = 210
  707. }
  708. if (data[i].use === 'remark') {
  709. data[i].y = 212
  710. }
  711. if (data[i].use === 'address' ||
  712. data[i].use === 'phone' ||
  713. data[i].use === 'remark') {
  714. data[i].x = 190
  715. }
  716. break;
  717. case '4':
  718. if (data[i].use === 'name' ||
  719. data[i].use === 'companyName') {
  720. data[i].x = 30
  721. }
  722. if (data[i].use === 'companyName') {
  723. data[i].y = 90
  724. }
  725. if (data[i].use === 'post') {
  726. data[i].x = 100
  727. }
  728. if (data[i].use == 'head') {
  729. data[i].x = 25
  730. data[i].y = 120
  731. }
  732. if (data[i].use === 'address-icon') {
  733. data[i].path = '../../static/imgs/card/address2.png'
  734. }
  735. if (data[i].use === 'phone-icon') {
  736. data[i].path = '../../static/imgs/card/phone2.png'
  737. }
  738. if (data[i].use === 'remark-icon') {
  739. data[i].path = '../../static/imgs/card/remark2.png'
  740. }
  741. if (data[i].use === 'address-icon' ||
  742. data[i].use === 'phone-icon' ||
  743. data[i].use === 'remark-icon') {
  744. data[i].x = 170
  745. }
  746. if (data[i].use === 'address') {
  747. data[i].width = 300
  748. }
  749. if (data[i].use === 'address' ||
  750. data[i].use === 'phone' ||
  751. data[i].use === 'remark') {
  752. data[i].x = 190
  753. }
  754. break;
  755. default:
  756. }
  757. }
  758. this.canvasData = {
  759. clicknum: this.clicknum++,
  760. list: data,
  761. page:'cardHolder'
  762. }
  763. },
  764. async delConfirm() {
  765. uni.showLoading({
  766. title: '数据加载中',
  767. mask: true
  768. })
  769. for (var i = 0; i < this.checkedList.length; i++) {
  770. await this.$request.baseRequest('admin.unimall.cardHolderInfo', 'delete', {
  771. id: this.checkedList[i].data.id,
  772. }, failres => {
  773. console.log('res+++++', failres.errmsg)
  774. this.$refs.uToast.show({
  775. type: 'error',
  776. message: failres.errmsg,
  777. })
  778. }).then(res => {
  779. console.log(i, this.checkedList.length - 1)
  780. if (i == this.checkedList.length - 1) {
  781. uni.hideLoading()
  782. this.$refs.uToast.show({
  783. type: 'success',
  784. message: '删除成功',
  785. })
  786. this.delShow = false
  787. this.islongPress = false
  788. this.mescroll.resetUpScroll()
  789. }
  790. })
  791. }
  792. },
  793. del() {
  794. if (this.checkedList.length > 0) {
  795. this.delShow = true
  796. } else {
  797. this.$refs.uToast.show({
  798. type: 'error',
  799. message: '请勾选后再进行删除!',
  800. })
  801. }
  802. },
  803. longpress() {
  804. console.log("长按事件", 1111111111);
  805. this.islongPress = true;
  806. },
  807. checkboxChange(e, i) {
  808. console.log(e, i, 111111111)
  809. if (i === '') {
  810. console.log(this.checked)
  811. this.checked = !this.checked;
  812. this.cardHolderList.map(item => item.checked = this.checked);
  813. this.$forceUpdate()
  814. var checkList = this.cardHolderList.filter((item) => {
  815. return item.checked == true
  816. })
  817. var data = checkList.map((item, index) => {
  818. return {
  819. index: index,
  820. data: item
  821. }
  822. })
  823. this.checkedList = JSON.parse(JSON.stringify(data))
  824. } else {
  825. if (e[0]) {
  826. this.checkedList.push({
  827. index: i,
  828. data: this.cardHolderList[i]
  829. })
  830. } else {
  831. var index = this.checkedList.findIndex((item) => {
  832. return item.index == i
  833. })
  834. this.checkedList.splice(index, 1)
  835. }
  836. if (this.checkedList.length != this.cardHolderList.length) {
  837. this.checked = false
  838. }
  839. }
  840. // for(var i=0;i<this.cardList.length;i++){
  841. // console.log(this.cardList[i].checked)
  842. // // if(this.cardList[i].checkedList.length>0){
  843. // // this.checkedList.push(i)
  844. // // }
  845. // }
  846. console.log(this.checkedList)
  847. },
  848. remarkConfirm() {
  849. if (this.remark) {
  850. this.currectData.remark = this.remark
  851. this.$request.baseRequest('admin.unimall.cardHolderInfo', 'update', {
  852. cardHolderInfo: JSON.stringify(this.currectData),
  853. }, failres => {
  854. console.log('res+++++', failres.errmsg)
  855. this.$refs.uToast.show({
  856. type: 'error',
  857. message: failres.errmsg,
  858. })
  859. }).then(res => {
  860. this.$refs.uToast.show({
  861. type: 'success',
  862. message: '修改备注成功',
  863. })
  864. this.modalShow = false
  865. this.mescroll.resetUpScroll()
  866. })
  867. }
  868. },
  869. remarkEdit(item) {
  870. this.currectData = item
  871. this.modalShow = true
  872. },
  873. switchType(item) {
  874. this.type = 2
  875. this.currectData = item
  876. this.isShowType = true
  877. },
  878. typeConfirm(e) {
  879. if (this.type == 2) {
  880. this.currectData.classify = e.value[0].circleName
  881. this.$request.baseRequest('admin.unimall.cardHolderInfo', 'update', {
  882. cardHolderInfo: JSON.stringify(this.currectData),
  883. }, failres => {
  884. console.log('res+++++', failres.errmsg)
  885. this.$refs.uToast.show({
  886. type: 'error',
  887. message: failres.errmsg,
  888. })
  889. }).then(res => {
  890. this.$refs.uToast.show({
  891. type: 'success',
  892. message: '修改分类成功',
  893. })
  894. this.mescroll.resetUpScroll()
  895. })
  896. } else {
  897. this.typeName = e.value[0].circleName
  898. }
  899. this.isShowType = false
  900. },
  901. async upCallback(page) {
  902. var that = this
  903. uni.showLoading({
  904. title: '数据加载中'
  905. })
  906. await this.$request.baseRequest('admin.unimall.cardHolderInfo', 'list', {
  907. page: page.num,
  908. limit: page.size,
  909. commonId: uni.getStorageSync("userInfo").id,
  910. searchContent: this.searchVal
  911. }, failres => {
  912. console.log('res+++++', failres.errmsg)
  913. this.$refs.uToast.show({
  914. type: 'error',
  915. message: failres.errmsg,
  916. })
  917. uni.hideLoading()
  918. }).then(res => {
  919. console.log(res)
  920. if (page.num == 1) this.cardHolderList = [];
  921. let curPageLen = res.data.items.length;
  922. let totalPage = res.data.total;
  923. for (var i = 0; i < res.data.items.length; i++) {
  924. res.data.items[i].checked = false
  925. if (res.data.items[i].classify) {
  926. res.data.items[i].classifyName = res.data.items[i].classify[0]
  927. }
  928. }
  929. this.cardHolderList = res.data.items
  930. this.loading = false
  931. this.$nextTick(() => {
  932. that.mescroll.endBySize(curPageLen, totalPage)
  933. });
  934. uni.hideLoading()
  935. })
  936. await this.$request.baseRequest('admin.unimall.cardClassifyInfo', 'list', {
  937. page: 1,
  938. limit: 9999,
  939. commonId: uni.getStorageSync("userInfo").id
  940. }, failres => {
  941. console.log('res+++++', failres.errmsg)
  942. this.$refs.uToast.show({
  943. type: 'error',
  944. message: failres.errmsg,
  945. })
  946. }).then(res => {
  947. this.typeColumns = [res.data.items]
  948. console.log(this.typeColumns)
  949. })
  950. await this.$request.baseRequest('admin.unimall.cardNewsInfo', 'list', {
  951. receiveId: uni.getStorageSync("userInfo").id,
  952. }, failres => {
  953. console.log('res+++++', failres.errmsg)
  954. this.$refs.uToast.show({
  955. type: 'error',
  956. message: failres.errmsg,
  957. })
  958. }).then(res => {
  959. this.noticeList = res.data.items
  960. if (this.noticeList.length > 0) {
  961. var data = this.noticeList.filter((item) => {
  962. return item.newsFlag == 0
  963. })
  964. this.unread = data ? data.length : 0
  965. }
  966. console.log(this.unread)
  967. })
  968. },
  969. login() {
  970. debugger
  971. let that = this
  972. uni.login({
  973. "provider": "weixin",
  974. success: function(wxres) {
  975. that.$request.baseRequest('commonUserApp', 'commonUserLogin', {
  976. loginType: 1,
  977. raw: JSON.stringify(wxres)
  978. }, failres => {
  979. that.$refs.uToast.show({
  980. type: 'error',
  981. message: failres.errmsg,
  982. })
  983. uni.hideLoading()
  984. }).then(res => {
  985. console.log(res.data)
  986. that.isPhone = true
  987. that.userInfo = res.data
  988. })
  989. },
  990. fail: function(err) {
  991. that.$refs.uToast.show({
  992. type: 'error',
  993. message: err.code,
  994. })
  995. // 登录授权失败
  996. // err.code是错误码
  997. }
  998. })
  999. },
  1000. toNotice() {
  1001. uni.navigateTo({
  1002. url: "/pages/cardHolder/notice"
  1003. })
  1004. },
  1005. micOpen: function() {
  1006. uni.navigateTo({
  1007. url: "/pages/cardHolder/search?mic=1"
  1008. })
  1009. },
  1010. uploadFile: function(tempFilePath) {
  1011. return new Promise((resolve, reject) => {
  1012. //调用你的接口把音频文件转为文字
  1013. this.$minApi.upload('txasr/SentenceRecognition', null, tempFilePath)
  1014. .then(res => {
  1015. if (res.code == 1) {
  1016. resolve(res.data.Result);
  1017. } else {
  1018. reject(e);
  1019. }
  1020. })
  1021. .catch(e => {
  1022. reject(e);
  1023. });
  1024. });
  1025. },
  1026. search() {
  1027. uni.navigateTo({
  1028. url: "/pages/cardHolder/search"
  1029. })
  1030. },
  1031. input(res) {
  1032. console.log('----input:', res)
  1033. },
  1034. clear(res) {
  1035. uni.showToast({
  1036. title: 'clear事件,清除值为:' + res.value,
  1037. icon: 'none'
  1038. })
  1039. },
  1040. blur(res) {
  1041. uni.showToast({
  1042. title: 'blur事件,输入值为:' + res.value,
  1043. icon: 'none'
  1044. })
  1045. },
  1046. focus(e) {
  1047. uni.showToast({
  1048. title: 'focus事件,输出值为:' + e.value,
  1049. icon: 'none'
  1050. })
  1051. },
  1052. cancel(res) {
  1053. uni.showToast({
  1054. title: '点击取消,输入值为:' + res.value,
  1055. icon: 'none'
  1056. })
  1057. },
  1058. selectType() {
  1059. this.isShowType = true
  1060. this.type = 1
  1061. },
  1062. scan() {
  1063. // console.log(1)
  1064. // uni.navigateTo({
  1065. // url: "/pages/cardHolder/scancode"
  1066. // })
  1067. uni.scanCode({
  1068. success: function(res) {
  1069. console.log('条码类型:' + res.scanType);
  1070. console.log('条码内容:' + res.result);
  1071. uni.navigateTo({
  1072. url: "/pages/cardHolder/scanCodeAddCard?id=" + res.result
  1073. })
  1074. }
  1075. });
  1076. },
  1077. toMap(item) {
  1078. uni.navigateTo({
  1079. url: "/pages/cardHolder/map?location=" + item.location
  1080. })
  1081. },
  1082. }
  1083. }
  1084. </script>
  1085. <style lang="scss" scoped>
  1086. .content {
  1087. // padding: 0 20rpx;
  1088. }
  1089. .u-nav-slot {
  1090. /deep/.u-badge {
  1091. position: absolute;
  1092. top: 0;
  1093. right: 6rpx;
  1094. }
  1095. }
  1096. .content1 {
  1097. padding: 20rpx;
  1098. background-color: #112253;
  1099. .search {
  1100. color: #9199af;
  1101. background: #22325f;
  1102. border-radius: 50rpx;
  1103. width: 100%;
  1104. padding: 10rpx 30rpx;
  1105. box-sizing: border-box;
  1106. margin-right: 20rpx;
  1107. }
  1108. }
  1109. .content2 {
  1110. background: #112253;
  1111. color: #fff;
  1112. padding: 20rpx 20rpx 200rpx 20rpx;
  1113. border-radius: 0px 0px 20px 20px;
  1114. }
  1115. .content3 {
  1116. // padding:0 20rpx;
  1117. position: relative;
  1118. top: -170rpx;
  1119. .style1 {
  1120. display: flex;
  1121. padding: 20rpx 30rpx;
  1122. width: 85%;
  1123. margin-bottom: 90rpx;
  1124. .left {
  1125. width: 132rpx;
  1126. height: 132rpx;
  1127. border-radius: 50%;
  1128. }
  1129. .right {
  1130. margin-left: 40rpx;
  1131. .row1 {
  1132. .name {
  1133. font-size: 38rpx;
  1134. font-weight: bold;
  1135. color: #040000;
  1136. margin-right: 20rpx;
  1137. }
  1138. .post {
  1139. font-size: 26rpx;
  1140. font-weight: 500;
  1141. color: #666666;
  1142. }
  1143. }
  1144. .row2 {
  1145. font-size: 24rpx;
  1146. font-weight: bold;
  1147. color: #323333;
  1148. }
  1149. .row3 {
  1150. margin-top: 30rpx;
  1151. font-size: 24rpx;
  1152. font-weight: 500;
  1153. color: #323333;
  1154. }
  1155. .row2,
  1156. .row4 {
  1157. margin-top: 10rpx;
  1158. }
  1159. }
  1160. }
  1161. .style2 {
  1162. padding: 30rpx;
  1163. margin-bottom: 100rpx;
  1164. .top {
  1165. .row1 {
  1166. .name {
  1167. font-size: 38rpx;
  1168. font-weight: bold;
  1169. color: #040000;
  1170. margin-right: 20rpx;
  1171. }
  1172. .post {
  1173. font-size: 26rpx;
  1174. font-weight: 500;
  1175. color: #666666;
  1176. }
  1177. }
  1178. .row2 {
  1179. margin-top: 10rpx;
  1180. font-size: 24rpx;
  1181. font-weight: bold;
  1182. color: #323333;
  1183. }
  1184. }
  1185. .bottom {
  1186. margin-top: 48rpx;
  1187. .left {
  1188. margin-right: 40rpx;
  1189. .row1 {
  1190. .name {
  1191. font-size: 38rpx;
  1192. font-weight: bold;
  1193. color: #040000;
  1194. margin-right: 20rpx;
  1195. }
  1196. .post {
  1197. font-size: 26rpx;
  1198. font-weight: 500;
  1199. color: #666666;
  1200. }
  1201. }
  1202. .row2 {
  1203. margin-top: 10rpx;
  1204. font-size: 24rpx;
  1205. font-weight: bold;
  1206. color: #323333;
  1207. }
  1208. }
  1209. .right {
  1210. .row1,
  1211. .row2 {
  1212. font-size: 24rpx;
  1213. font-weight: 500;
  1214. color: #323333;
  1215. }
  1216. .row2,
  1217. .row4 {
  1218. margin-top: 10rpx;
  1219. }
  1220. }
  1221. }
  1222. }
  1223. .card-list-item {
  1224. width: calc(100%);
  1225. // left:-20rpx;
  1226. position: relative;
  1227. border-radius: 30rpx;
  1228. padding: 40rpx;
  1229. box-sizing: border-box;
  1230. .car-bottom {
  1231. position: absolute;
  1232. bottom: 63rpx;
  1233. left: 20rpx;
  1234. bottom: 24rpx;
  1235. width: 94.9%;
  1236. background: url("../../static/imgs/card/bg5.png") no-repeat center;
  1237. background-size: 100% 100%;
  1238. height: 80rpx;
  1239. // width: calc(100% - 40rpx);
  1240. .left {
  1241. // top: -40rpx;
  1242. position: absolute;
  1243. padding: 20rpx 0;
  1244. width: 70vw;
  1245. height: 80rpx;
  1246. box-sizing: border-box;
  1247. display: flex;
  1248. align-items: center;
  1249. justify-content: space-evenly;
  1250. left: 0px;
  1251. // background-size: 100% 100%;
  1252. overflow-y: hidden;
  1253. }
  1254. }
  1255. .left {
  1256. width: 30%;
  1257. .top {
  1258. margin-bottom: 20rpx;
  1259. }
  1260. .img {
  1261. width: 80%;
  1262. }
  1263. .bottom {}
  1264. }
  1265. .right {
  1266. .row1 {
  1267. .line {
  1268. width: 1px;
  1269. height: 20px;
  1270. margin: 0 20rpx;
  1271. background: black;
  1272. }
  1273. }
  1274. }
  1275. }
  1276. }
  1277. .slot-content {
  1278. width: 100%;
  1279. }
  1280. .shade {
  1281. background: rgba(0, 0, 0, 0.2);
  1282. width: 100%;
  1283. height: 100vh;
  1284. position: fixed;
  1285. top: 0;
  1286. left: 0;
  1287. }
  1288. .qrCode {
  1289. position: absolute;
  1290. top: 50%;
  1291. left: 0;
  1292. right: 0;
  1293. transform: translateY(-50%);
  1294. text-align: center;
  1295. }
  1296. /deep/.u-checkbox-group {
  1297. position: absolute;
  1298. right: 20px;
  1299. z-index: 99;
  1300. top: 30px;
  1301. }
  1302. .del-style {
  1303. background: #fff;
  1304. padding: 20rpx;
  1305. width: calc(100vw - 40rpx);
  1306. position: fixed;
  1307. display: flex;
  1308. z-index: 100;
  1309. justify-content: space-between;
  1310. bottom: 0;
  1311. font-size: 28rpx;
  1312. .right {
  1313. color: #344577;
  1314. }
  1315. }
  1316. .del,
  1317. .qx {
  1318. padding: 10rpx;
  1319. }
  1320. .del {
  1321. color: #FF4040;
  1322. }
  1323. .qx {
  1324. color: #666;
  1325. bottom: 0
  1326. }
  1327. .share-content {
  1328. display: flex;
  1329. padding: 20rpx;
  1330. justify-content: center;
  1331. font-size: 24rpx;
  1332. button {
  1333. background: transparent;
  1334. line-height: 1;
  1335. }
  1336. button:after {
  1337. border: none;
  1338. }
  1339. }
  1340. .sq-view {
  1341. padding: 60rpx 80rpx 80rpx 80rpx;
  1342. .text {
  1343. display: flex;
  1344. justify-content: center;
  1345. font-size: 32rpx;
  1346. font-weight: bold;
  1347. color: #1A1A1A;
  1348. margin-bottom: 60rpx;
  1349. }
  1350. .confirm {
  1351. display: flex;
  1352. justify-content: center;
  1353. color: white;
  1354. // margin: 40rpx auto;
  1355. background: #18254C;
  1356. border-radius: 20rpx;
  1357. }
  1358. }
  1359. .icon-text {
  1360. margin-left: 10px;
  1361. font-size: 24rpx;
  1362. font-weight: 500;
  1363. color: #323333;
  1364. }
  1365. /deep/.u-checkbox__icon-wrap.u-checkbox__icon-wrap--square {
  1366. border-color: #D7DEEB !important;
  1367. }
  1368. </style>