cardHolder.vue 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661
  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 = `/pages/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. this.$nextTick(function() {
  548. that.userInfo.phone = that.$request.getPhone(e, that.userInfo)
  549. that.showAuthorizePhone = false
  550. that.showAuthorizeUser = true
  551. });
  552. },
  553. delVal() {
  554. this.searchVal = ""
  555. this.mescroll.resetUpScroll()
  556. },
  557. handleHiddenShare() {
  558. console.log(11111)
  559. this.popupshow = false
  560. },
  561. posterError(err) {
  562. console.log(err)
  563. uni.hideLoading()
  564. },
  565. posterSuccess(url) {
  566. console.log("hahahah", url)
  567. // 生成成功,会把临时路径在这里返回
  568. this.poster = url;
  569. this.popupshow = true
  570. console.log(url)
  571. uni.hideLoading()
  572. },
  573. toHome(item) {
  574. uni.navigateTo({
  575. url: "/pages/circle/lookHome?id=" + item.personalHomeId
  576. })
  577. },
  578. delSearchVal() {
  579. this.searchVal = ""
  580. uni.removeStorageSync('search_val')
  581. this.mescroll.resetUpScroll()
  582. },
  583. toUrl() {
  584. console.log(this.currectData)
  585. this.popupshow = false
  586. this.qrcodeShow = true
  587. },
  588. share(item) {
  589. uni.showLoading({
  590. title: '加载中',
  591. mask: true
  592. })
  593. this.currectData = item
  594. var data = [{
  595. type: 'image',
  596. path: this.currectData.currentBackground,
  597. use: 'bg',
  598. x: -10,
  599. y: 0,
  600. width: 530,
  601. height: 325
  602. },
  603. {
  604. type: 'image',
  605. path: this.currectData.headSculpture ? this.currectData.headSculpture :
  606. '../../static/imgs/card/defaulthead.png',
  607. shape: 'circle',
  608. use: 'head',
  609. imageType: this.currectData.headSculpture ? 'wl' : 'bd',
  610. x: 30,
  611. y: 30,
  612. width: 100,
  613. height: 100
  614. },
  615. {
  616. type: 'text',
  617. text: this.currectData.name,
  618. use: 'name',
  619. x: 150,
  620. y: 50,
  621. size: 24,
  622. color: '#000'
  623. },
  624. {
  625. type: 'text',
  626. text: this.currectData.post,
  627. use: 'post',
  628. x: 240,
  629. y: 55,
  630. size: 18,
  631. color: '#666666'
  632. },
  633. {
  634. type: 'text',
  635. text: this.currectData.companyName,
  636. use: 'companyName',
  637. x: 150,
  638. y: 95,
  639. size: 18,
  640. color: '#000'
  641. },
  642. {
  643. type: 'image',
  644. path: '../../static/imgs/card/address1.png',
  645. use: 'address-icon',
  646. x: 145,
  647. y: 130,
  648. width: 15,
  649. height: 20
  650. },
  651. {
  652. type: 'textarea',
  653. text: this.currectData.province + this.currectData.city + this.currectData.area + this
  654. .currectData.detailedAddress,
  655. lineSpace: 1,
  656. width: 320,
  657. use: 'address',
  658. x: 175,
  659. y: 135,
  660. size: 14,
  661. color: '#000'
  662. },
  663. {
  664. type: 'image',
  665. path: '../../static/imgs/card/phone1.png',
  666. use: 'phone-icon',
  667. x: 145,
  668. y: 163,
  669. width: 16,
  670. height: 16
  671. },
  672. {
  673. type: 'text',
  674. text: this.currectData.phone,
  675. use: 'phone',
  676. x: 175,
  677. y: 167,
  678. size: 14,
  679. color: '#000'
  680. },
  681. {
  682. type: 'image',
  683. path: '../../static/imgs/card/remark1.png',
  684. use: 'remark-icon',
  685. x: 145,
  686. y: 197,
  687. width: 13,
  688. height: 16
  689. },
  690. {
  691. type: 'textarea',
  692. text: this.currectData.remark ? this.currectData.remark : '单击添加备注',
  693. use: 'remark',
  694. lineSpace: 2,
  695. width: 200,
  696. x: 175,
  697. y: 200,
  698. size: 13,
  699. color: '#000'
  700. },
  701. {
  702. type: 'image',
  703. path: '../../static/imgs/card/bg3.png',
  704. use: 'bg1',
  705. x: 0,
  706. y: 243,
  707. width: 370,
  708. height: 67
  709. },
  710. {
  711. type: 'image',
  712. path: '../../static/imgs/card/bg4.png',
  713. use: 'bg2',
  714. x: 355,
  715. y: 243,
  716. width: 150,
  717. height: 67
  718. },
  719. {
  720. type: 'image',
  721. path: '../../static/imgs/card/home.png',
  722. use: 'home',
  723. x: 65,
  724. y: 260,
  725. width: 33,
  726. height: 33
  727. },
  728. {
  729. type: 'text',
  730. text: this.currectData.classifyName ? this.currectData.classifyName : '默',
  731. use: 'classify',
  732. x: 145,
  733. y: 263,
  734. size: 34,
  735. color: '#fff'
  736. },
  737. {
  738. type: 'image',
  739. path: '../../static/imgs/card/share.png',
  740. use: 'share',
  741. x: 235,
  742. y: 263,
  743. width: 33,
  744. height: 28
  745. },
  746. ]
  747. console.log(this.currectData.cuttentTemplate, 111111)
  748. for (var i = 0; i < data.length; i++) {
  749. switch (this.currectData.cuttentTemplate) {
  750. case '2':
  751. if (data[i].use === 'name' ||
  752. data[i].use === 'companyName' ||
  753. data[i].use === 'address-icon' ||
  754. data[i].use === 'phone-icon' ||
  755. data[i].use === 'remark-icon') {
  756. data[i].x = 30
  757. }
  758. if (data[i].use === 'address-icon') {
  759. data[i].path = '../../static/imgs/card/address3.png'
  760. }
  761. if (data[i].use === 'phone-icon') {
  762. data[i].path = '../../static/imgs/card/phone3.png'
  763. }
  764. if (data[i].use === 'remark-icon') {
  765. data[i].path = '../../static/imgs/card/remark3.png'
  766. }
  767. if (data[i].use === 'post') {
  768. data[i].x = 100
  769. }
  770. if (data[i].use === 'address' ||
  771. data[i].use === 'phone' ||
  772. data[i].use === 'remark') {
  773. data[i].x = 60
  774. }
  775. if (data[i].use == 'head') {
  776. data[i].x = 370
  777. }
  778. break;
  779. case '3':
  780. if (data[i].use === 'name') {
  781. data[i].x = 30
  782. data[i].y = 150
  783. }
  784. if (data[i].use === 'companyName') {
  785. data[i].x = 30
  786. data[i].y = 180
  787. }
  788. if (data[i].use === 'post') {
  789. data[i].x = 100
  790. data[i].y = 153
  791. }
  792. if (data[i].use === 'address-icon' ||
  793. data[i].use === 'phone-icon' ||
  794. data[i].use === 'remark-icon') {
  795. data[i].x = 170
  796. }
  797. if (data[i].use === 'address-icon') {
  798. data[i].y = 150
  799. }
  800. if (data[i].use === 'address') {
  801. data[i].y = 155;
  802. data[i].width = 300
  803. }
  804. if (data[i].use === 'phone-icon') {
  805. data[i].y = 180
  806. }
  807. if (data[i].use === 'phone') {
  808. data[i].y = 183
  809. }
  810. if (data[i].use === 'remark-icon') {
  811. data[i].y = 210
  812. }
  813. if (data[i].use === 'remark') {
  814. data[i].y = 212
  815. }
  816. if (data[i].use === 'address' ||
  817. data[i].use === 'phone' ||
  818. data[i].use === 'remark') {
  819. data[i].x = 190
  820. }
  821. break;
  822. case '4':
  823. if (data[i].use === 'name' ||
  824. data[i].use === 'companyName') {
  825. data[i].x = 30
  826. }
  827. if (data[i].use === 'companyName') {
  828. data[i].y = 90
  829. }
  830. if (data[i].use === 'post') {
  831. data[i].x = 100
  832. }
  833. if (data[i].use == 'head') {
  834. data[i].x = 25
  835. data[i].y = 120
  836. }
  837. if (data[i].use === 'address-icon') {
  838. data[i].path = '../../static/imgs/card/address2.png'
  839. }
  840. if (data[i].use === 'phone-icon') {
  841. data[i].path = '../../static/imgs/card/phone2.png'
  842. }
  843. if (data[i].use === 'remark-icon') {
  844. data[i].path = '../../static/imgs/card/remark2.png'
  845. }
  846. if (data[i].use === 'address-icon' ||
  847. data[i].use === 'phone-icon' ||
  848. data[i].use === 'remark-icon') {
  849. data[i].x = 170
  850. }
  851. if (data[i].use === 'address') {
  852. data[i].width = 300
  853. }
  854. if (data[i].use === 'address' ||
  855. data[i].use === 'phone' ||
  856. data[i].use === 'remark') {
  857. data[i].x = 190
  858. }
  859. break;
  860. default:
  861. }
  862. }
  863. this.canvasData = {
  864. clicknum: this.clicknum++,
  865. list: data,
  866. page: 'cardHolder'
  867. }
  868. },
  869. async delConfirm() {
  870. uni.showLoading({
  871. title: '数据加载中',
  872. mask: true
  873. })
  874. for (var i = 0; i < this.checkedList.length; i++) {
  875. await this.$request.baseRequest('admin.unimall.cardHolderInfo', 'delete', {
  876. id: this.checkedList[i].data.id,
  877. }, failres => {
  878. console.log('res+++++', failres.errmsg)
  879. uni.showToast({
  880. icon: "none",
  881. title: failres.errmsg,
  882. duration: 3000
  883. });
  884. }).then(res => {
  885. console.log(i, this.checkedList.length - 1)
  886. if (i == this.checkedList.length - 1) {
  887. uni.hideLoading()
  888. uni.showToast({
  889. icon: "success",
  890. title: '删除成功!',
  891. duration: 2000
  892. });
  893. this.delShow = false
  894. this.islongPress = false
  895. this.mescroll.resetUpScroll()
  896. }
  897. })
  898. }
  899. },
  900. del() {
  901. if (this.checkedList.length > 0) {
  902. this.delShow = true
  903. } else {
  904. uni.showToast({
  905. icon: "none",
  906. title: '请勾选后再进行删除',
  907. duration: 2000
  908. });
  909. }
  910. },
  911. longpress() {
  912. console.log("长按事件", 1111111111);
  913. this.islongPress = true;
  914. },
  915. checkboxChange(e, i) {
  916. console.log(e, i, 111111111)
  917. if (i === '') {
  918. console.log(this.checked)
  919. this.checked = !this.checked;
  920. this.cardHolderList.map(item => item.checked = this.checked);
  921. this.$forceUpdate()
  922. var checkList = this.cardHolderList.filter((item) => {
  923. return item.checked == true
  924. })
  925. var data = checkList.map((item, index) => {
  926. return {
  927. index: index,
  928. data: item
  929. }
  930. })
  931. this.checkedList = JSON.parse(JSON.stringify(data))
  932. } else {
  933. if (e[0]) {
  934. this.checkedList.push({
  935. index: i,
  936. data: this.cardHolderList[i]
  937. })
  938. } else {
  939. var index = this.checkedList.findIndex((item) => {
  940. return item.index == i
  941. })
  942. this.checkedList.splice(index, 1)
  943. }
  944. if (this.checkedList.length != this.cardHolderList.length) {
  945. this.checked = false
  946. }
  947. }
  948. console.log(this.checkedList)
  949. },
  950. remarkConfirm() {
  951. if (this.remark) {
  952. this.currectData.remark = this.remark
  953. this.$request.baseRequest('admin.unimall.cardHolderInfo', 'update', {
  954. cardHolderInfo: JSON.stringify(this.currectData),
  955. }, failres => {
  956. console.log('res+++++', failres.errmsg)
  957. uni.showToast({
  958. icon: "none",
  959. title: failres.errmsg,
  960. duration: 3000
  961. });
  962. }).then(res => {
  963. uni.showToast({
  964. icon: "success",
  965. title: '修改备注成功!',
  966. duration: 2000
  967. });
  968. this.remark = ''
  969. this.modalShow = false
  970. this.mescroll.resetUpScroll()
  971. })
  972. }
  973. },
  974. remarkEdit(item) {
  975. this.currectData = item
  976. this.remark = this.currectData.remark
  977. this.modalShow = true
  978. },
  979. switchType(item) {
  980. this.type = 2
  981. this.typeColumns[0].shift()
  982. this.currectData = item
  983. this.isShowType = true
  984. },
  985. typeConfirm(e) {
  986. if (this.type == 2) {
  987. console.log(e.value[0].circleName, "123312132")
  988. this.$set(this.currectData, 'classify', e.value[0].circleName)
  989. this.$request.baseRequest('admin.unimall.cardHolderInfo', 'update', {
  990. cardHolderInfo: JSON.stringify(this.currectData),
  991. }, failres => {
  992. console.log('res+++++', failres.errmsg)
  993. uni.showToast({
  994. icon: "none",
  995. title: failres.errmsg,
  996. duration: 3000
  997. });
  998. }).then(res => {
  999. uni.showToast({
  1000. icon: "success",
  1001. title: '修改分类成功!',
  1002. duration: 2000
  1003. });
  1004. this.mescroll.resetUpScroll()
  1005. })
  1006. } else {
  1007. this.typeName = e.value[0].circleName
  1008. if (this.typeName == "全部分类") this.typeName = ''
  1009. this.mescroll.resetUpScroll()
  1010. }
  1011. this.isShowType = false
  1012. },
  1013. async upCallback(page) {
  1014. if (uni.getLaunchOptionsSync().scene == 1154) {
  1015. uni.showToast({
  1016. title: '请前往小程序查看名片',
  1017. icon: 'none',
  1018. duration: 10000
  1019. });
  1020. } else {
  1021. var that = this
  1022. if (uni.getStorageSync("userInfo").id) {
  1023. uni.showLoading({
  1024. title: '数据加载中'
  1025. })
  1026. await this.$request.baseRequest('admin.unimall.cardHolderInfo', 'list', {
  1027. page: page.num,
  1028. limit: page.size,
  1029. commonId: uni.getStorageSync("userInfo").id,
  1030. searchContent: this.searchVal,
  1031. classify: this.typeName
  1032. }, failres => {
  1033. console.log('res+++++', failres.errmsg)
  1034. uni.showToast({
  1035. icon: "none",
  1036. title: failres.errmsg,
  1037. duration: 3000
  1038. });
  1039. uni.hideLoading()
  1040. }).then(res => {
  1041. console.log(res)
  1042. if (page.num == 1) this.cardHolderList = [];
  1043. let curPageLen = res.data.items.length;
  1044. let totalPage = res.data.total;
  1045. for (var i = 0; i < res.data.items.length; i++) {
  1046. res.data.items[i].checked = false
  1047. if (res.data.items[i].classify) {
  1048. res.data.items[i].classifyName = res.data.items[i].classify[0]
  1049. }
  1050. }
  1051. this.cardHolderList = res.data.items
  1052. this.loading = false
  1053. this.$nextTick(() => {
  1054. that.mescroll.endBySize(curPageLen, totalPage)
  1055. });
  1056. uni.hideLoading()
  1057. })
  1058. await this.$request.baseRequest('admin.unimall.cardClassifyInfo', 'list', {
  1059. page: 1,
  1060. limit: 9999,
  1061. commonId: uni.getStorageSync("userInfo").id
  1062. }, failres => {
  1063. console.log('res+++++', failres.errmsg)
  1064. uni.showToast({
  1065. icon: "none",
  1066. title: failres.errmsg,
  1067. duration: 3000
  1068. });
  1069. }).then(res => {
  1070. res.data.items.unshift({
  1071. circleName: '全部分类'
  1072. })
  1073. this.typeColumns = [res.data.items]
  1074. console.log(this.typeColumns)
  1075. })
  1076. //清楚扫码添加跳页刷新数据状态开关
  1077. uni.setStorageSync("scanAddCardToIndex", 0)
  1078. }
  1079. }
  1080. },
  1081. toNotice() {
  1082. if (this.userInfo.phone) {
  1083. uni.navigateTo({
  1084. url: "/pages/cardHolder/notice"
  1085. })
  1086. } else {
  1087. this.showAuthorizePhone = true
  1088. }
  1089. },
  1090. micOpen: function() {
  1091. if (this.userInfo.phone) {
  1092. uni.navigateTo({
  1093. url: "/pages/cardHolder/search?mic=1"
  1094. })
  1095. } else {
  1096. this.showAuthorizePhone = true
  1097. }
  1098. },
  1099. uploadFile: function(tempFilePath) {
  1100. return new Promise((resolve, reject) => {
  1101. //调用你的接口把音频文件转为文字
  1102. this.$minApi.upload('txasr/SentenceRecognition', null, tempFilePath)
  1103. .then(res => {
  1104. if (res.code == 1) {
  1105. resolve(res.data.Result);
  1106. } else {
  1107. reject(e);
  1108. }
  1109. })
  1110. .catch(e => {
  1111. reject(e);
  1112. });
  1113. });
  1114. },
  1115. search() {
  1116. if (this.userInfo.phone) {
  1117. uni.navigateTo({
  1118. url: "/pages/cardHolder/search"
  1119. })
  1120. } else {
  1121. this.showAuthorizePhone = true
  1122. }
  1123. },
  1124. input(res) {
  1125. console.log('----input:', res)
  1126. },
  1127. clear(res) {
  1128. uni.showToast({
  1129. title: 'clear事件,清除值为:' + res.value,
  1130. icon: 'none'
  1131. })
  1132. },
  1133. blur(res) {
  1134. uni.showToast({
  1135. title: 'blur事件,输入值为:' + res.value,
  1136. icon: 'none'
  1137. })
  1138. },
  1139. focus(e) {
  1140. uni.showToast({
  1141. title: 'focus事件,输出值为:' + e.value,
  1142. icon: 'none'
  1143. })
  1144. },
  1145. cancel(res) {
  1146. uni.showToast({
  1147. title: '点击取消,输入值为:' + res.value,
  1148. icon: 'none'
  1149. })
  1150. },
  1151. selectType() {
  1152. this.isShowType = true
  1153. this.type = 1
  1154. },
  1155. scan() {
  1156. if (uni.getStorageSync("userInfo")) {
  1157. uni.scanCode({
  1158. success: function(res) {
  1159. console.log('条码类型:' + res.scanType);
  1160. console.log('条码内容:' + res.result);
  1161. // console.log(res.result.split("=")[1],res.result.split("=")[1].indexOf(','),res.result.split("=")[1].split(",")[0])
  1162. // var cardId = res.result.split("=")[1].split(",")[0]
  1163. var cardId = res.result.split("=")[1]
  1164. that.$request.baseRequest('admin.unimall.cardHolderInfo', 'getAdded', {
  1165. commonId: uni.getStorageSync("userInfo").id,
  1166. cardId: cardId
  1167. }, failres => {
  1168. console.log('res+++++', failres.errmsg)
  1169. uni.showToast({
  1170. icon: "none",
  1171. title: failres.errmsg,
  1172. duration: 3000
  1173. });
  1174. }).then(res1 => {
  1175. uni.navigateTo({
  1176. url: "/pages/cardHolder/scanCodeAddCard?id=" + res.result
  1177. .split("=")[1]
  1178. })
  1179. })
  1180. }
  1181. });
  1182. } else {
  1183. this.showAuthorizePhone = true
  1184. }
  1185. },
  1186. toMap(item) {
  1187. uni.navigateTo({
  1188. url: "/pages/cardHolder/map?val=" + JSON.stringify(item)
  1189. })
  1190. },
  1191. }
  1192. }
  1193. </script>
  1194. <style lang="scss" scoped>
  1195. .content {
  1196. // padding: 0 20rpx;
  1197. }
  1198. .u-nav-slot {
  1199. /deep/.u-badge {
  1200. position: absolute;
  1201. top: 0;
  1202. right: 6rpx;
  1203. }
  1204. }
  1205. .content1 {
  1206. padding: 20rpx;
  1207. background-color: #112253;
  1208. .search {
  1209. color: #9199af;
  1210. background: #22325f;
  1211. border-radius: 50rpx;
  1212. width: 93%;
  1213. padding: 10rpx 0 10rpx 30rpx;
  1214. box-sizing: border-box;
  1215. margin-right: 20rpx;
  1216. }
  1217. .left {
  1218. width: 80%;
  1219. text {
  1220. height: 46rpx;
  1221. white-space: nowrap;
  1222. overflow: scroll;
  1223. position: relative;
  1224. margin-left: 20rpx;
  1225. }
  1226. }
  1227. .right {
  1228. // width:14%;
  1229. margin-right: 20rpx
  1230. }
  1231. }
  1232. .content2 {
  1233. background: #112253;
  1234. color: #fff;
  1235. padding: 20rpx 20rpx 200rpx 20rpx;
  1236. border-radius: 0px 0px 20px 20px;
  1237. }
  1238. .content3 {
  1239. // padding:0 20rpx;
  1240. // position: relative;
  1241. // top: 376rpx;
  1242. margin: 0 20rpx;
  1243. background: #f5f5f5;
  1244. // height: 1000px;
  1245. border-radius: 30rpx;
  1246. .item {
  1247. border-radius: 30rpx;
  1248. }
  1249. .style1 {
  1250. display: flex;
  1251. width: 100%;
  1252. margin-bottom: 90rpx;
  1253. .left {
  1254. width: 132rpx;
  1255. height: 132rpx;
  1256. border-radius: 50%;
  1257. }
  1258. .right {
  1259. margin-left: 40rpx;
  1260. .row1 {
  1261. .name {
  1262. font-size: 38rpx;
  1263. font-weight: bold;
  1264. color: #040000;
  1265. margin-right: 20rpx;
  1266. }
  1267. .post {
  1268. font-size: 26rpx;
  1269. font-weight: 500;
  1270. color: #666666;
  1271. }
  1272. }
  1273. .row2 {
  1274. font-size: 24rpx;
  1275. font-weight: bold;
  1276. color: #323333;
  1277. }
  1278. .row3 {
  1279. margin-top: 30rpx;
  1280. font-size: 24rpx;
  1281. font-weight: 500;
  1282. color: #323333;
  1283. }
  1284. .row2,
  1285. .row4 {
  1286. margin-top: 10rpx;
  1287. }
  1288. }
  1289. }
  1290. .style2 {
  1291. padding: 15rpx;
  1292. margin-bottom: 80rpx;
  1293. .top {
  1294. .row1 {
  1295. .name {
  1296. font-size: 38rpx;
  1297. font-weight: bold;
  1298. color: #040000;
  1299. margin-right: 20rpx;
  1300. }
  1301. .post {
  1302. font-size: 26rpx;
  1303. font-weight: 500;
  1304. color: #666666;
  1305. }
  1306. }
  1307. .row2 {
  1308. margin-top: 10rpx;
  1309. font-size: 24rpx;
  1310. font-weight: bold;
  1311. color: #323333;
  1312. }
  1313. }
  1314. .bottom {
  1315. margin-top: 20rpx;
  1316. .left {
  1317. margin-right: 40rpx;
  1318. .row1 {
  1319. .name {
  1320. font-size: 38rpx;
  1321. font-weight: bold;
  1322. color: #040000;
  1323. margin-right: 20rpx;
  1324. }
  1325. .post {
  1326. font-size: 26rpx;
  1327. font-weight: 500;
  1328. color: #666666;
  1329. }
  1330. }
  1331. .row2 {
  1332. margin-top: 10rpx;
  1333. font-size: 26rpx;
  1334. font-weight: bold;
  1335. color: #323333;
  1336. }
  1337. }
  1338. .right {
  1339. .row1,
  1340. .row2 {
  1341. font-size: 24rpx;
  1342. font-weight: 500;
  1343. color: #323333;
  1344. }
  1345. .row2,
  1346. .row4 {
  1347. margin-top: 10rpx;
  1348. }
  1349. }
  1350. }
  1351. }
  1352. .card-list-item {
  1353. width: calc(100%);
  1354. // left:-20rpx;
  1355. position: relative;
  1356. border-radius: 30rpx;
  1357. padding: 40rpx;
  1358. box-sizing: border-box;
  1359. margin-bottom: 20rpx;
  1360. .car-bottom {
  1361. position: absolute;
  1362. bottom: 63rpx;
  1363. left: 0rpx;
  1364. bottom: 0rpx;
  1365. width: 100%;
  1366. background: url("../../static/imgs/card/bg5.png") no-repeat center;
  1367. background-size: 100% 100%;
  1368. height: 80rpx;
  1369. // width: calc(100% - 40rpx);
  1370. .left {
  1371. // top: -40rpx;
  1372. position: absolute;
  1373. padding: 20rpx 0;
  1374. width: 70vw;
  1375. height: 80rpx;
  1376. box-sizing: border-box;
  1377. display: flex;
  1378. align-items: center;
  1379. justify-content: space-evenly;
  1380. left: 0px;
  1381. // background-size: 100% 100%;
  1382. overflow-y: hidden;
  1383. }
  1384. }
  1385. .left {
  1386. width: 30%;
  1387. .top {
  1388. margin-bottom: 20rpx;
  1389. }
  1390. .img {
  1391. width: 80%;
  1392. }
  1393. .bottom {}
  1394. }
  1395. .right {
  1396. .row1 {
  1397. .line {
  1398. width: 1px;
  1399. height: 20px;
  1400. margin: 0 20rpx;
  1401. background: black;
  1402. }
  1403. }
  1404. }
  1405. }
  1406. }
  1407. .slot-content {
  1408. width: 100%;
  1409. }
  1410. .shade {
  1411. background: rgba(0, 0, 0, 0.2);
  1412. width: 100%;
  1413. height: 100vh;
  1414. position: fixed;
  1415. top: 0;
  1416. left: 0;
  1417. }
  1418. .qrCode {
  1419. position: absolute;
  1420. top: 50%;
  1421. left: 0;
  1422. right: 0;
  1423. transform: translateY(-50%);
  1424. text-align: center;
  1425. }
  1426. /deep/.u-checkbox-group {
  1427. position: absolute;
  1428. right: 20px;
  1429. z-index: 99;
  1430. top: 30px;
  1431. }
  1432. .del-style {
  1433. background: #fff;
  1434. padding: 20rpx;
  1435. width: calc(100vw - 40rpx);
  1436. position: fixed;
  1437. display: flex;
  1438. z-index: 100;
  1439. justify-content: space-between;
  1440. bottom: 0;
  1441. font-size: 28rpx;
  1442. .right {
  1443. color: #344577;
  1444. }
  1445. }
  1446. .del,
  1447. .qx {
  1448. padding: 10rpx;
  1449. }
  1450. .del {
  1451. color: #FF4040;
  1452. }
  1453. .qx {
  1454. color: #666;
  1455. bottom: 0
  1456. }
  1457. .share-content {
  1458. display: flex;
  1459. padding: 20rpx;
  1460. justify-content: center;
  1461. font-size: 24rpx;
  1462. button {
  1463. background: transparent;
  1464. line-height: 1;
  1465. }
  1466. button:after {
  1467. border: none;
  1468. }
  1469. }
  1470. .sq-view {
  1471. padding: 60rpx 80rpx 80rpx 80rpx;
  1472. .text {
  1473. display: flex;
  1474. justify-content: center;
  1475. font-size: 32rpx;
  1476. font-weight: bold;
  1477. color: #1A1A1A;
  1478. margin-bottom: 60rpx;
  1479. }
  1480. .confirm {
  1481. display: flex;
  1482. justify-content: center;
  1483. color: white;
  1484. // margin: 40rpx auto;
  1485. background: #18254C;
  1486. border-radius: 20rpx;
  1487. }
  1488. }
  1489. .icon-text {
  1490. margin-left: 10px;
  1491. font-size: 26rpx;
  1492. font-weight: 500;
  1493. color: #323333;
  1494. }
  1495. /deep/.u-checkbox__icon-wrap.u-checkbox__icon-wrap--square {
  1496. border-color: #D7DEEB !important;
  1497. }
  1498. .wrap {
  1499. position: fixed;
  1500. top: 0;
  1501. width: 100%;
  1502. }
  1503. /deep/.mescroll-body {
  1504. min-height: 558px !important;
  1505. height: 558px !important;
  1506. background-color: green;
  1507. overflow: scroll !important;
  1508. }
  1509. .auth-btncard {
  1510. display: flex !important;
  1511. justify-content: space-between !important;
  1512. .btn-unok {
  1513. width: 40%;
  1514. }
  1515. .btn-ok {
  1516. width: 40%;
  1517. }
  1518. }
  1519. .auth-card {
  1520. text-align: center;
  1521. .avatar-img {
  1522. width: 250rpx;
  1523. }
  1524. .title {
  1525. font-size: 20rpx;
  1526. }
  1527. .content {
  1528. font-size: 32rpx;
  1529. font-weight: bold;
  1530. color: #1A1A1A;
  1531. margin-bottom: 30rpx;
  1532. }
  1533. }
  1534. .avatar-wrapper {
  1535. color: #333 !important;
  1536. border: none !important;
  1537. border-radius: 0 !important;
  1538. background-color: transparent !important;
  1539. padding: 0;
  1540. }
  1541. .avatar-wrapper::after {
  1542. border: none !important;
  1543. }
  1544. .avatar {
  1545. width: 100rpx;
  1546. height: 100rpx;
  1547. overflow: hidden;
  1548. border-radius: 100%;
  1549. }
  1550. /deep/.u-popup__content {
  1551. border-radius: 20rpx !important;
  1552. }
  1553. </style>