cardHolder.vue 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664
  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. <u-input v-model="userInfo.nickname" class="weui-input" @blur="userNameInput" placeholder="请输入昵称" border="false"/>
  329. <!-- <input type="nickname" :value="userInfo.nickname" class="weui-input" @blur="userNameInput" placeholder="请输入昵称"/> -->
  330. </u-form-item>
  331. </u-form>
  332. </div>
  333. </div>
  334. <div class="auth-btncard">
  335. <div class="btn-unok"><u-button :customStyle="customStyleUnOk" @click="showAuthorizeUser=false"> 拒绝</u-button></div>
  336. <div class="btn-ok"><u-button :customStyle="customStyleOk" @click="authUser"> 允许</u-button></div>
  337. </div>
  338. </view>
  339. </u-modal>
  340. <!-- #endif -->
  341. <u-toast ref="uToast"></u-toast>
  342. </view>
  343. </template>
  344. <script>
  345. var that;
  346. import Poster from '../../components/zhangyuhao-poster/Poster.vue'
  347. import { pathToBase64, base64ToPath } from 'image-tools'
  348. import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
  349. export default {
  350. mixins: [MescrollMixin],
  351. components: {
  352. Poster
  353. },
  354. data() {
  355. return {
  356. userInfo: {head:'',nickname:''},
  357. downOption: {
  358. auto: false,
  359. },
  360. upOption: {
  361. page: {
  362. size: 10 // 每页数据的数量,默认10
  363. },
  364. auto: false,
  365. noMoreSize: 1,
  366. empty: {
  367. tip: '暂无相关数据'
  368. }
  369. },
  370. params: {
  371. encryptedData: '',
  372. session_key: '',
  373. iv: '',
  374. },
  375. key: '',
  376. isPhone: false,
  377. canReset: false,
  378. poster: '',
  379. canvasData: {},
  380. searchVal: '',
  381. isShowType: false,
  382. loading: true,
  383. typeName: '',
  384. typeColumns: [],
  385. cardHolderList: [],
  386. currectData: [],
  387. type: 1,
  388. popupshow: false,
  389. modalShow: false,
  390. remark: '',
  391. islongPress: false,
  392. checked: false,
  393. checkedList: [],
  394. delShow: false,
  395. qrcodeShow: false,
  396. unread: 0,
  397. clicknum: 0,
  398. noticeList: [],
  399. status: 0,
  400. // 是否弹出登录注册授权弹窗
  401. showAuthorizeUser: false,
  402. showAuthorizePhone: false,
  403. customStyleUnOk: {
  404. marginTop: '20rpx', // 注意驼峰命名,并且值必须用引号包括,因为这是对象
  405. border:'none',
  406. color:'gray'
  407. },
  408. customStyleOk: {
  409. marginTop: '20rpx', // 注意驼峰命名,并且值必须用引号包括,因为这是对象
  410. border:'none',
  411. color:'#157DFB'
  412. },
  413. };
  414. },
  415. mounted() {
  416. },
  417. onLoad: function(options) {
  418. that = this
  419. console.log(uni.getLaunchOptionsSync().scene, 1011)
  420. if (uni.getStorageSync("userInfo").phone) {
  421. this.userInfo = uni.getStorageSync("userInfo")
  422. this.$nextTick(function() {
  423. this.mescroll.resetUpScroll()
  424. wx.showShareMenu({
  425. withShareTicket: true,
  426. menus: ["shareAppMessage", "shareTimeline"]
  427. })
  428. });
  429. this.searchVal = uni.getStorageSync("search_val") ? uni.getStorageSync("search_val") : ''
  430. } else {
  431. if (uni.getLaunchOptionsSync().scene != 1154) {
  432. this.login()
  433. }
  434. }
  435. this.status = uni.getLaunchOptionsSync().scene
  436. if (uni.getLaunchOptionsSync().scene == 1154) {
  437. uni.showToast({
  438. title: '请前往小程序查看名片',
  439. icon: 'none',
  440. duration: 10000
  441. });
  442. }
  443. },
  444. onShareAppMessage(res) {
  445. console.log(res, this.popupshow)
  446. let that = this;
  447. //生成名片图片
  448. let imageUrl = this.poster
  449. console.log("imageUrl", imageUrl)
  450. if (res.from === 'button') {
  451. let path = `/pages/cardHolder/scanCodeAddCard?id=${that.currectData.id}`
  452. return {
  453. title: this.popupshow ? `${that.currectData.name}分享的名片~` : '电子名片',
  454. path: path,
  455. imageUrl: this.popupshow ? imageUrl : '',
  456. };
  457. }
  458. if (res.from === 'menu') {
  459. return {
  460. title: '名片夹',
  461. path: '/pages/tabBarPro/index/index',
  462. imageUrl: this.popupshow ? imageUrl : ''
  463. };
  464. }
  465. },
  466. methods: {
  467. //获取昵称输入内容
  468. userNameInput(e){
  469. this.userInfo.nickname = e.detail.value
  470. },
  471. async onChooseAvatar(e) {
  472. this.$set(this.userInfo,"head",await this.toBase64(e.detail.avatarUrl))
  473. },
  474. toBase64(url){
  475. return new Promise(resolve => {
  476. pathToBase64(url).then(path => {
  477. resolve(path);
  478. }).catch(error => {
  479. console.log(error)
  480. })
  481. })
  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. x: 30,
  617. y: 30,
  618. width: 100,
  619. height: 100
  620. },
  621. {
  622. type: 'text',
  623. text: this.currectData.name,
  624. use: 'name',
  625. x: 150,
  626. y: 50,
  627. size: 24,
  628. color: '#000'
  629. },
  630. {
  631. type: 'text',
  632. text: this.currectData.post,
  633. use: 'post',
  634. x: 240,
  635. y: 55,
  636. size: 18,
  637. color: '#666666'
  638. },
  639. {
  640. type: 'text',
  641. text: this.currectData.companyName,
  642. use: 'companyName',
  643. x: 150,
  644. y: 95,
  645. size: 18,
  646. color: '#000'
  647. },
  648. {
  649. type: 'image',
  650. path: '../../static/imgs/card/address1.png',
  651. use: 'address-icon',
  652. x: 145,
  653. y: 130,
  654. width: 15,
  655. height: 20
  656. },
  657. {
  658. type: 'textarea',
  659. text: this.currectData.province + this.currectData.city + this.currectData.area + this
  660. .currectData.detailedAddress,
  661. lineSpace: 1,
  662. width: 320,
  663. use: 'address',
  664. x: 175,
  665. y: 135,
  666. size: 14,
  667. color: '#000'
  668. },
  669. {
  670. type: 'image',
  671. path: '../../static/imgs/card/phone1.png',
  672. use: 'phone-icon',
  673. x: 145,
  674. y: 163,
  675. width: 16,
  676. height: 16
  677. },
  678. {
  679. type: 'text',
  680. text: this.currectData.phone,
  681. use: 'phone',
  682. x: 175,
  683. y: 167,
  684. size: 14,
  685. color: '#000'
  686. },
  687. {
  688. type: 'image',
  689. path: '../../static/imgs/card/remark1.png',
  690. use: 'remark-icon',
  691. x: 145,
  692. y: 197,
  693. width: 13,
  694. height: 16
  695. },
  696. {
  697. type: 'textarea',
  698. text: this.currectData.remark ? this.currectData.remark : '单击添加备注',
  699. use: 'remark',
  700. lineSpace: 2,
  701. width: 200,
  702. x: 175,
  703. y: 200,
  704. size: 13,
  705. color: '#000'
  706. },
  707. {
  708. type: 'image',
  709. path: '../../static/imgs/card/bg3.png',
  710. use: 'bg1',
  711. x: 0,
  712. y: 243,
  713. width: 370,
  714. height: 67
  715. },
  716. {
  717. type: 'image',
  718. path: '../../static/imgs/card/bg4.png',
  719. use: 'bg2',
  720. x: 355,
  721. y: 243,
  722. width: 150,
  723. height: 67
  724. },
  725. {
  726. type: 'image',
  727. path: '../../static/imgs/card/home.png',
  728. use: 'home',
  729. x: 65,
  730. y: 260,
  731. width: 33,
  732. height: 33
  733. },
  734. {
  735. type: 'text',
  736. text: this.currectData.classifyName ? this.currectData.classifyName : '默',
  737. use: 'classify',
  738. x: 145,
  739. y: 263,
  740. size: 34,
  741. color: '#fff'
  742. },
  743. {
  744. type: 'image',
  745. path: '../../static/imgs/card/share.png',
  746. use: 'share',
  747. x: 235,
  748. y: 263,
  749. width: 33,
  750. height: 28
  751. },
  752. ]
  753. console.log(this.currectData.cuttentTemplate, 111111)
  754. for (var i = 0; i < data.length; i++) {
  755. switch (this.currectData.cuttentTemplate) {
  756. case '2':
  757. if (data[i].use === 'name' ||
  758. data[i].use === 'companyName' ||
  759. data[i].use === 'address-icon' ||
  760. data[i].use === 'phone-icon' ||
  761. data[i].use === 'remark-icon') {
  762. data[i].x = 30
  763. }
  764. if (data[i].use === 'address-icon') {
  765. data[i].path = '../../static/imgs/card/address3.png'
  766. }
  767. if (data[i].use === 'phone-icon') {
  768. data[i].path = '../../static/imgs/card/phone3.png'
  769. }
  770. if (data[i].use === 'remark-icon') {
  771. data[i].path = '../../static/imgs/card/remark3.png'
  772. }
  773. if (data[i].use === 'post') {
  774. data[i].x = 100
  775. }
  776. if (data[i].use === 'address' ||
  777. data[i].use === 'phone' ||
  778. data[i].use === 'remark') {
  779. data[i].x = 60
  780. }
  781. if (data[i].use == 'head') {
  782. data[i].x = 370
  783. }
  784. break;
  785. case '3':
  786. if (data[i].use === 'name') {
  787. data[i].x = 30
  788. data[i].y = 150
  789. }
  790. if (data[i].use === 'companyName') {
  791. data[i].x = 30
  792. data[i].y = 180
  793. }
  794. if (data[i].use === 'post') {
  795. data[i].x = 100
  796. data[i].y = 153
  797. }
  798. if (data[i].use === 'address-icon' ||
  799. data[i].use === 'phone-icon' ||
  800. data[i].use === 'remark-icon') {
  801. data[i].x = 170
  802. }
  803. if (data[i].use === 'address-icon') {
  804. data[i].y = 150
  805. }
  806. if (data[i].use === 'address') {
  807. data[i].y = 155;
  808. data[i].width = 300
  809. }
  810. if (data[i].use === 'phone-icon') {
  811. data[i].y = 180
  812. }
  813. if (data[i].use === 'phone') {
  814. data[i].y = 183
  815. }
  816. if (data[i].use === 'remark-icon') {
  817. data[i].y = 210
  818. }
  819. if (data[i].use === 'remark') {
  820. data[i].y = 212
  821. }
  822. if (data[i].use === 'address' ||
  823. data[i].use === 'phone' ||
  824. data[i].use === 'remark') {
  825. data[i].x = 190
  826. }
  827. break;
  828. case '4':
  829. if (data[i].use === 'name' ||
  830. data[i].use === 'companyName') {
  831. data[i].x = 30
  832. }
  833. if (data[i].use === 'companyName') {
  834. data[i].y = 90
  835. }
  836. if (data[i].use === 'post') {
  837. data[i].x = 100
  838. }
  839. if (data[i].use == 'head') {
  840. data[i].x = 25
  841. data[i].y = 120
  842. }
  843. if (data[i].use === 'address-icon') {
  844. data[i].path = '../../static/imgs/card/address2.png'
  845. }
  846. if (data[i].use === 'phone-icon') {
  847. data[i].path = '../../static/imgs/card/phone2.png'
  848. }
  849. if (data[i].use === 'remark-icon') {
  850. data[i].path = '../../static/imgs/card/remark2.png'
  851. }
  852. if (data[i].use === 'address-icon' ||
  853. data[i].use === 'phone-icon' ||
  854. data[i].use === 'remark-icon') {
  855. data[i].x = 170
  856. }
  857. if (data[i].use === 'address') {
  858. data[i].width = 300
  859. }
  860. if (data[i].use === 'address' ||
  861. data[i].use === 'phone' ||
  862. data[i].use === 'remark') {
  863. data[i].x = 190
  864. }
  865. break;
  866. default:
  867. }
  868. }
  869. this.canvasData = {
  870. clicknum: this.clicknum++,
  871. list: data,
  872. page: 'cardHolder'
  873. }
  874. },
  875. async delConfirm() {
  876. uni.showLoading({
  877. title: '数据加载中',
  878. mask: true
  879. })
  880. for (var i = 0; i < this.checkedList.length; i++) {
  881. await this.$request.baseRequest('admin.unimall.cardHolderInfo', 'delete', {
  882. id: this.checkedList[i].data.id,
  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. console.log(i, this.checkedList.length - 1)
  891. if (i == this.checkedList.length - 1) {
  892. uni.hideLoading()
  893. this.$refs.uToast.show({
  894. type: 'success',
  895. message: '删除成功',
  896. })
  897. this.delShow = false
  898. this.islongPress = false
  899. this.mescroll.resetUpScroll()
  900. }
  901. })
  902. }
  903. },
  904. del() {
  905. if (this.checkedList.length > 0) {
  906. this.delShow = true
  907. } else {
  908. this.$refs.uToast.show({
  909. type: 'error',
  910. message: '请勾选后再进行删除!',
  911. })
  912. }
  913. },
  914. longpress() {
  915. console.log("长按事件", 1111111111);
  916. this.islongPress = true;
  917. },
  918. checkboxChange(e, i) {
  919. console.log(e, i, 111111111)
  920. if (i === '') {
  921. console.log(this.checked)
  922. this.checked = !this.checked;
  923. this.cardHolderList.map(item => item.checked = this.checked);
  924. this.$forceUpdate()
  925. var checkList = this.cardHolderList.filter((item) => {
  926. return item.checked == true
  927. })
  928. var data = checkList.map((item, index) => {
  929. return {
  930. index: index,
  931. data: item
  932. }
  933. })
  934. this.checkedList = JSON.parse(JSON.stringify(data))
  935. } else {
  936. if (e[0]) {
  937. this.checkedList.push({
  938. index: i,
  939. data: this.cardHolderList[i]
  940. })
  941. } else {
  942. var index = this.checkedList.findIndex((item) => {
  943. return item.index == i
  944. })
  945. this.checkedList.splice(index, 1)
  946. }
  947. if (this.checkedList.length != this.cardHolderList.length) {
  948. this.checked = false
  949. }
  950. }
  951. // for(var i=0;i<this.cardList.length;i++){
  952. // console.log(this.cardList[i].checked)
  953. // // if(this.cardList[i].checkedList.length>0){
  954. // // this.checkedList.push(i)
  955. // // }
  956. // }
  957. console.log(this.checkedList)
  958. },
  959. remarkConfirm() {
  960. if (this.remark) {
  961. this.currectData.remark = this.remark
  962. this.$request.baseRequest('admin.unimall.cardHolderInfo', 'update', {
  963. cardHolderInfo: JSON.stringify(this.currectData),
  964. }, failres => {
  965. console.log('res+++++', failres.errmsg)
  966. this.$refs.uToast.show({
  967. type: 'error',
  968. message: failres.errmsg,
  969. })
  970. }).then(res => {
  971. this.$refs.uToast.show({
  972. type: 'success',
  973. message: '修改备注成功',
  974. })
  975. this.remark=''
  976. this.modalShow = false
  977. this.mescroll.resetUpScroll()
  978. })
  979. }
  980. },
  981. remarkEdit(item) {
  982. this.currectData = item
  983. this.remark = this.currectData.remark
  984. this.modalShow = true
  985. },
  986. switchType(item) {
  987. this.type = 2
  988. this.typeColumns[0].shift()
  989. this.currectData = item
  990. this.isShowType = true
  991. },
  992. typeConfirm(e) {
  993. if (this.type == 2) {
  994. console.log(e.value[0].circleName,"123312132")
  995. this.$set(this.currectData,'classify',e.value[0].circleName)
  996. this.$request.baseRequest('admin.unimall.cardHolderInfo', 'update', {
  997. cardHolderInfo: JSON.stringify(this.currectData),
  998. }, failres => {
  999. console.log('res+++++', failres.errmsg)
  1000. this.$refs.uToast.show({
  1001. type: 'error',
  1002. message: failres.errmsg,
  1003. })
  1004. }).then(res => {
  1005. this.$refs.uToast.show({
  1006. type: 'success',
  1007. message: '修改分类成功',
  1008. })
  1009. this.mescroll.resetUpScroll()
  1010. })
  1011. } else {
  1012. this.typeName = e.value[0].circleName
  1013. if(this.typeName =="全部分类") this.typeName = ''
  1014. this.mescroll.resetUpScroll()
  1015. }
  1016. this.isShowType = false
  1017. },
  1018. async upCallback(page) {
  1019. if (uni.getLaunchOptionsSync().scene == 1154) {
  1020. uni.showToast({
  1021. title: '请前往小程序查看名片',
  1022. icon: 'none',
  1023. duration: 10000
  1024. });
  1025. } else {
  1026. var that = this
  1027. if(uni.getStorageSync("userInfo").id){
  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. },
  1100. login() {
  1101. let that = this
  1102. uni.login({
  1103. "provider": "weixin",
  1104. success: function(wxres) {
  1105. that.$request.baseRequest('commonUserApp', 'commonUserLogin', {
  1106. loginType: 1,
  1107. raw: JSON.stringify(wxres)
  1108. }, failres => {
  1109. that.$refs.uToast.show({
  1110. type: 'error',
  1111. message: failres.errmsg,
  1112. })
  1113. uni.hideLoading()
  1114. }).then(res => {
  1115. console.log(res.data)
  1116. that.isPhone = true
  1117. that.showAuthorizePhone = true
  1118. that.userInfo = res.data
  1119. })
  1120. },
  1121. fail: function(err) {
  1122. that.$refs.uToast.show({
  1123. type: 'error',
  1124. message: err.code,
  1125. })
  1126. // 登录授权失败
  1127. // err.code是错误码
  1128. }
  1129. })
  1130. },
  1131. toNotice() {
  1132. uni.navigateTo({
  1133. url: "/pages/cardHolder/notice"
  1134. })
  1135. },
  1136. micOpen: function() {
  1137. uni.navigateTo({
  1138. url: "/pages/cardHolder/search?mic=1"
  1139. })
  1140. },
  1141. uploadFile: function(tempFilePath) {
  1142. return new Promise((resolve, reject) => {
  1143. //调用你的接口把音频文件转为文字
  1144. this.$minApi.upload('txasr/SentenceRecognition', null, tempFilePath)
  1145. .then(res => {
  1146. if (res.code == 1) {
  1147. resolve(res.data.Result);
  1148. } else {
  1149. reject(e);
  1150. }
  1151. })
  1152. .catch(e => {
  1153. reject(e);
  1154. });
  1155. });
  1156. },
  1157. search() {
  1158. uni.navigateTo({
  1159. url: "/pages/cardHolder/search"
  1160. })
  1161. },
  1162. input(res) {
  1163. console.log('----input:', res)
  1164. },
  1165. clear(res) {
  1166. uni.showToast({
  1167. title: 'clear事件,清除值为:' + res.value,
  1168. icon: 'none'
  1169. })
  1170. },
  1171. blur(res) {
  1172. uni.showToast({
  1173. title: 'blur事件,输入值为:' + res.value,
  1174. icon: 'none'
  1175. })
  1176. },
  1177. focus(e) {
  1178. uni.showToast({
  1179. title: 'focus事件,输出值为:' + e.value,
  1180. icon: 'none'
  1181. })
  1182. },
  1183. cancel(res) {
  1184. uni.showToast({
  1185. title: '点击取消,输入值为:' + res.value,
  1186. icon: 'none'
  1187. })
  1188. },
  1189. selectType() {
  1190. this.isShowType = true
  1191. this.type = 1
  1192. },
  1193. scan() {
  1194. // console.log(1)
  1195. // uni.navigateTo({
  1196. // url: "/pages/cardHolder/scancode"
  1197. // })
  1198. uni.scanCode({
  1199. success: function(res) {
  1200. console.log('条码类型:' + res.scanType);
  1201. console.log('条码内容:' + res.result);
  1202. uni.navigateTo({
  1203. url: "/pages/cardHolder/scanCodeAddCard?id=" + res.result.split("=")[1]
  1204. })
  1205. }
  1206. });
  1207. },
  1208. toMap(item) {
  1209. uni.navigateTo({
  1210. url: "/pages/cardHolder/map?val=" + JSON.stringify(item)
  1211. })
  1212. },
  1213. }
  1214. }
  1215. </script>
  1216. <style lang="scss" scoped>
  1217. .content {
  1218. // padding: 0 20rpx;
  1219. }
  1220. .u-nav-slot {
  1221. /deep/.u-badge {
  1222. position: absolute;
  1223. top: 0;
  1224. right: 6rpx;
  1225. }
  1226. }
  1227. .content1 {
  1228. padding: 20rpx;
  1229. background-color: #112253;
  1230. .search {
  1231. color: #9199af;
  1232. background: #22325f;
  1233. border-radius: 50rpx;
  1234. width: 100%;
  1235. padding: 10rpx 30rpx;
  1236. box-sizing: border-box;
  1237. margin-right: 20rpx;
  1238. }
  1239. }
  1240. .content2 {
  1241. background: #112253;
  1242. color: #fff;
  1243. padding: 20rpx 20rpx 200rpx 20rpx;
  1244. border-radius: 0px 0px 20px 20px;
  1245. }
  1246. .content3 {
  1247. // padding:0 20rpx;
  1248. // position: relative;
  1249. // top: 376rpx;
  1250. margin: 0 20rpx;
  1251. background: #f5f5f5;
  1252. // height: 1000px;
  1253. border-radius: 30rpx;
  1254. .style1 {
  1255. display: flex;
  1256. padding: 20rpx 30rpx;
  1257. width: 85%;
  1258. margin-bottom: 90rpx;
  1259. .left {
  1260. width: 132rpx;
  1261. height: 132rpx;
  1262. border-radius: 50%;
  1263. }
  1264. .right {
  1265. margin-left: 40rpx;
  1266. .row1 {
  1267. .name {
  1268. font-size: 38rpx;
  1269. font-weight: bold;
  1270. color: #040000;
  1271. margin-right: 20rpx;
  1272. }
  1273. .post {
  1274. font-size: 26rpx;
  1275. font-weight: 500;
  1276. color: #666666;
  1277. }
  1278. }
  1279. .row2 {
  1280. font-size: 24rpx;
  1281. font-weight: bold;
  1282. color: #323333;
  1283. }
  1284. .row3 {
  1285. margin-top: 30rpx;
  1286. font-size: 24rpx;
  1287. font-weight: 500;
  1288. color: #323333;
  1289. }
  1290. .row2,
  1291. .row4 {
  1292. margin-top: 10rpx;
  1293. }
  1294. }
  1295. }
  1296. .style2 {
  1297. padding: 15rpx;
  1298. margin-bottom: 80rpx;
  1299. .top {
  1300. .row1 {
  1301. .name {
  1302. font-size: 38rpx;
  1303. font-weight: bold;
  1304. color: #040000;
  1305. margin-right: 20rpx;
  1306. }
  1307. .post {
  1308. font-size: 26rpx;
  1309. font-weight: 500;
  1310. color: #666666;
  1311. }
  1312. }
  1313. .row2 {
  1314. margin-top: 10rpx;
  1315. font-size: 24rpx;
  1316. font-weight: bold;
  1317. color: #323333;
  1318. }
  1319. }
  1320. .bottom {
  1321. margin-top: 20rpx;
  1322. .left {
  1323. margin-right: 40rpx;
  1324. .row1 {
  1325. .name {
  1326. font-size: 38rpx;
  1327. font-weight: bold;
  1328. color: #040000;
  1329. margin-right: 20rpx;
  1330. }
  1331. .post {
  1332. font-size: 26rpx;
  1333. font-weight: 500;
  1334. color: #666666;
  1335. }
  1336. }
  1337. .row2 {
  1338. margin-top: 10rpx;
  1339. font-size: 26rpx;
  1340. font-weight: bold;
  1341. color: #323333;
  1342. }
  1343. }
  1344. .right {
  1345. .row1,
  1346. .row2 {
  1347. font-size: 24rpx;
  1348. font-weight: 500;
  1349. color: #323333;
  1350. }
  1351. .row2,
  1352. .row4 {
  1353. margin-top: 10rpx;
  1354. }
  1355. }
  1356. }
  1357. }
  1358. .card-list-item {
  1359. width: calc(100%);
  1360. // left:-20rpx;
  1361. position: relative;
  1362. border-radius: 30rpx;
  1363. padding: 40rpx;
  1364. box-sizing: border-box;
  1365. .car-bottom {
  1366. position: absolute;
  1367. bottom: 63rpx;
  1368. left: 20rpx;
  1369. bottom: 24rpx;
  1370. width: 94.9%;
  1371. background: url("../../static/imgs/card/bg5.png") no-repeat center;
  1372. background-size: 100% 100%;
  1373. height: 80rpx;
  1374. // width: calc(100% - 40rpx);
  1375. .left {
  1376. // top: -40rpx;
  1377. position: absolute;
  1378. padding: 20rpx 0;
  1379. width: 70vw;
  1380. height: 80rpx;
  1381. box-sizing: border-box;
  1382. display: flex;
  1383. align-items: center;
  1384. justify-content: space-evenly;
  1385. left: 0px;
  1386. // background-size: 100% 100%;
  1387. overflow-y: hidden;
  1388. }
  1389. }
  1390. .left {
  1391. width: 30%;
  1392. .top {
  1393. margin-bottom: 20rpx;
  1394. }
  1395. .img {
  1396. width: 80%;
  1397. }
  1398. .bottom {}
  1399. }
  1400. .right {
  1401. .row1 {
  1402. .line {
  1403. width: 1px;
  1404. height: 20px;
  1405. margin: 0 20rpx;
  1406. background: black;
  1407. }
  1408. }
  1409. }
  1410. }
  1411. }
  1412. .slot-content {
  1413. width: 100%;
  1414. }
  1415. .shade {
  1416. background: rgba(0, 0, 0, 0.2);
  1417. width: 100%;
  1418. height: 100vh;
  1419. position: fixed;
  1420. top: 0;
  1421. left: 0;
  1422. }
  1423. .qrCode {
  1424. position: absolute;
  1425. top: 50%;
  1426. left: 0;
  1427. right: 0;
  1428. transform: translateY(-50%);
  1429. text-align: center;
  1430. }
  1431. /deep/.u-checkbox-group {
  1432. position: absolute;
  1433. right: 20px;
  1434. z-index: 99;
  1435. top: 30px;
  1436. }
  1437. .del-style {
  1438. background: #fff;
  1439. padding: 20rpx;
  1440. width: calc(100vw - 40rpx);
  1441. position: fixed;
  1442. display: flex;
  1443. z-index: 100;
  1444. justify-content: space-between;
  1445. bottom: 0;
  1446. font-size: 28rpx;
  1447. .right {
  1448. color: #344577;
  1449. }
  1450. }
  1451. .del,
  1452. .qx {
  1453. padding: 10rpx;
  1454. }
  1455. .del {
  1456. color: #FF4040;
  1457. }
  1458. .qx {
  1459. color: #666;
  1460. bottom: 0
  1461. }
  1462. .share-content {
  1463. display: flex;
  1464. padding: 20rpx;
  1465. justify-content: center;
  1466. font-size: 24rpx;
  1467. button {
  1468. background: transparent;
  1469. line-height: 1;
  1470. }
  1471. button:after {
  1472. border: none;
  1473. }
  1474. }
  1475. .sq-view {
  1476. padding: 60rpx 80rpx 80rpx 80rpx;
  1477. .text {
  1478. display: flex;
  1479. justify-content: center;
  1480. font-size: 32rpx;
  1481. font-weight: bold;
  1482. color: #1A1A1A;
  1483. margin-bottom: 60rpx;
  1484. }
  1485. .confirm {
  1486. display: flex;
  1487. justify-content: center;
  1488. color: white;
  1489. // margin: 40rpx auto;
  1490. background: #18254C;
  1491. border-radius: 20rpx;
  1492. }
  1493. }
  1494. .icon-text {
  1495. margin-left: 10px;
  1496. font-size: 26rpx;
  1497. font-weight: 500;
  1498. color: #323333;
  1499. }
  1500. /deep/.u-checkbox__icon-wrap.u-checkbox__icon-wrap--square {
  1501. border-color: #D7DEEB !important;
  1502. }
  1503. .wrap {
  1504. position: fixed;
  1505. top: 0;
  1506. width: 100%;
  1507. }
  1508. /deep/.mescroll-body {
  1509. min-height: 558px !important;
  1510. height: 558px !important;
  1511. background-color: green;
  1512. overflow: scroll !important;
  1513. }
  1514. .auth-btncard{
  1515. .btn-unok{
  1516. width: 50%;
  1517. float: left;
  1518. }
  1519. .btn-ok{
  1520. width: 50%;
  1521. float: left;
  1522. margin: 0;
  1523. padding: 0;
  1524. border: 0px solid transparent; //自定义边框
  1525. outline: none; //消除默认点击蓝色边框效果
  1526. u-button{
  1527. margin: 0;
  1528. padding: 0;
  1529. border: 0px solid transparent; //自定义边框
  1530. outline: none; //消除默认点击蓝色边框效果
  1531. }
  1532. }
  1533. }
  1534. .auth-card{
  1535. text-align: center;
  1536. .avatar-img{
  1537. width: 150rpx;
  1538. height: 150rpx;
  1539. overflow: hidden;
  1540. border-radius: 100%;
  1541. margin-top: 30rpx;
  1542. }
  1543. .title{
  1544. font-size: 20rpx;
  1545. }
  1546. .content{
  1547. margin-top: 10rpx;
  1548. margin-bottom: 30rpx;
  1549. }
  1550. }
  1551. .avatar-wrapper{
  1552. width: 150rpx;
  1553. height: 100rpx;
  1554. color: #333 !important;
  1555. text-align: center !important;
  1556. border: none !important;
  1557. border-radius:0 !important;
  1558. background-color:transparent !important;
  1559. }
  1560. .avatar-wrapper::after {
  1561. border: none !important;
  1562. }
  1563. .avatar{
  1564. width: 100rpx;
  1565. height: 100rpx;
  1566. overflow: hidden;
  1567. border-radius: 100%;
  1568. }
  1569. </style>