cardHolder.vue 44 KB

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