cardHolder.vue 38 KB

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