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