cardHolder.vue 40 KB

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