cardHolder.vue 38 KB

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