cardHolder.vue 44 KB

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