cardHolder.vue 42 KB

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