cardHolder.vue 38 KB

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