cardHolder.vue 38 KB

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