cardHolder.vue 39 KB

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