cardHolder.vue 40 KB

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