myInfo.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002
  1. <template>
  2. <view class="content">
  3. <u-loading-page loading-mode='spinner' image="/static/imgs/logo.png" iconSize='60' :loading='loading'></u-loading-page>
  4. <view v-show='!loading'>
  5. <view class="card-list content1">
  6. <view class="row" v-for="(item,index) in cardList" :key="index">
  7. <view class="title-name">
  8. {{item.cardBusiness}}
  9. </view>
  10. <view class="card-list-item"
  11. :style="item.currentBackground?'background:url('+item.currentBackground+');background-size:100% 100%':''">
  12. <view class="card-content style1" v-if="item.cuttentTemplate==1">
  13. <view class="left">
  14. <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px"
  15. shape="circle"></u--image>
  16. </view>
  17. <view class="right">
  18. <view class="row1">
  19. <text class="name">{{item.name}}</text>
  20. <text class="post">{{item.post}}</text>
  21. </view>
  22. <view class="row2">
  23. {{item.companyName}}
  24. </view>
  25. <view class="row3 flex">
  26. <u--image :showLoading="true" src="/static/imgs/card/address1.png" width="13px"
  27. height="16px"></u--image> <view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
  28. </view>
  29. <view class="row4 flex">
  30. <u--image :showLoading="true" src="/static/imgs/card/phone1.png" width="12px"
  31. height="13px"></u--image><view class='icon-text'>{{ item.phone }}</view>
  32. </view>
  33. <view class="row4 flex">
  34. <u--image :showLoading="true" src="/static/imgs/card/remark1.png" width="10px"
  35. height="12px"></u--image><view class='icon-text'>{{item.remark?item.remark:'--'}}</view>
  36. </view>
  37. <!-- <view class="">
  38. 备注
  39. </view> -->
  40. </view>
  41. </view>
  42. <view class="card-content style1 flex-between" v-if="item.cuttentTemplate==2">
  43. <view class="right">
  44. <view class="row1">
  45. <text class="name">{{item.name}}</text>
  46. <text class="post">{{item.post}}</text>
  47. </view>
  48. <view class="row2">
  49. {{item.companyName}}
  50. </view>
  51. <view class="row3 flex">
  52. <u--image :showLoading="true" src="/static/imgs/card/address3.png" width="13px"
  53. height="16px"></u--image><view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
  54. </view>
  55. <view class="row4 flex">
  56. <u--image :showLoading="true" src="/static/imgs/card/phone3.png" width="12px"
  57. height="13px"></u--image><view class='icon-text'>{{ item.phone }}</view>
  58. </view>
  59. <view class="row4 flex">
  60. <u--image :showLoading="true" src="/static/imgs/card/remark3.png" width="10px"
  61. height="12px"></u--image><view class='icon-text'>{{item.remark?item.remark:'--'}}</view>
  62. </view>
  63. <!-- <view class="">
  64. 备注
  65. </view> -->
  66. </view>
  67. <view class="left">
  68. <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px"
  69. shape="circle" v-if="item.headSculpture"></u--image>
  70. <u--image :showLoading="true" src="/./../static/imgs/card/defaulthead.png" width="66px"
  71. height="66px" shape="circle" v-else></u--image>
  72. </view>
  73. </view>
  74. <view class="card-content style2" v-if="item.cuttentTemplate==3">
  75. <view class="top">
  76. <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px"
  77. shape="circle" v-if="item.headSculpture"></u--image>
  78. <u--image :showLoading="true" src="/./../static/imgs/card/defaulthead.png" width="66px"
  79. height="66px" shape="circle" v-else></u--image>
  80. </view>
  81. <view class="bottom flex">
  82. <view class="left">
  83. <view class="row1">
  84. <text class="name">{{item.name}}</text>
  85. <text class="post">{{item.post}}</text>
  86. </view>
  87. <view class="row2">
  88. {{item.companyName}}
  89. </view>
  90. </view>
  91. <view class="right">
  92. <view class="row3 flex">
  93. <u--image :showLoading="true" src="/static/imgs/card/address1.png" width="13px"
  94. height="16px"></u--image><view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
  95. </view>
  96. <view class="row4 flex">
  97. <u--image :showLoading="true" src="/static/imgs/card/phone1.png" width="12px"
  98. height="13px"></u--image><view class='icon-text'>{{ item.phone }}</view>
  99. </view>
  100. <view class="row4 flex">
  101. <u--image :showLoading="true" src="/static/imgs/card/remark1.png" width="10px"
  102. height="12px"></u--image><view class='icon-text'>{{item.remark?item.remark:'--'}}</view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. <view class="card-content style2" v-if="item.cuttentTemplate==4">
  108. <view class="top">
  109. <view class="row1">
  110. <text class="name">{{item.name}}</text>
  111. <text class="post">{{item.post}}</text>
  112. </view>
  113. <view class="row2">
  114. {{item.companyName}}
  115. </view>
  116. </view>
  117. <view class="bottom flex">
  118. <view class="left">
  119. <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px"
  120. shape="circle" v-if="item.headSculpture"></u--image>
  121. <u--image :showLoading="true" src="/./../static/imgs/card/defaulthead.png" width="66px"
  122. height="66px" shape="circle" v-else></u--image>
  123. </view>
  124. <view class="right">
  125. <view class="row3 flex">
  126. <u--image :showLoading="true" src="/static/imgs/card/address2.png" width="13px"
  127. height="16px"></u--image><view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
  128. </view>
  129. <view class="row4 flex">
  130. <u--image :showLoading="true" src="/static/imgs/card/phone2.png" width="12px"
  131. height="13px"></u--image><view class='icon-text'>{{ item.phone }}</view>
  132. </view>
  133. <view class="row4 flex">
  134. <u--image :showLoading="true" src="/static/imgs/card/remark2.png" width="10px"
  135. height="12px"></u--image><view class='icon-text'>{{item.remark?item.remark:'--'}}</view>
  136. </view>
  137. </view>
  138. </view>
  139. </view>
  140. <view class="car-bottom flex">
  141. <view class="left">
  142. <image src="../../static/imgs/card/home.png" mode="widthFix" style="width: 32rpx;"
  143. @click="toHome(item)"></image>
  144. <image src="../../static/imgs/card/share.png" mode="widthFix" style="width: 35rpx;"
  145. @click="share(item)"></image>
  146. <image src="../../static/imgs/card/ewm.png" mode="widthFix" style="width: 32rpx;"
  147. @click="showCode(item)"></image>
  148. </view>
  149. <view class="right">
  150. <text class="text" @click="topMarking(item)">置顶</text>
  151. <text class="text" @click="del(item.id)">删除</text>
  152. <text class="text" @click="toEditCard(item)">编辑</text>
  153. </view>
  154. <!-- <u-button text="置顶" @click="topMarking(item)" throttle-time='1000'></u-button> -->
  155. <!-- <button @click="$u.debounce(topMarking, 500)">置顶</button> -->
  156. <!-- <button @click="$u.debounce(topMarking(item), 500)">置顶</button> -->
  157. <!-- <u-button text="删除" @click="del(item.id)" throttle-time='1000'></u-button> -->
  158. <!-- <button @click="toEditCard(item)">编辑</button> -->
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. <view class="upload flex flex-all-center" @click="addCard">
  164. <view class="solids flex flex-all-center">
  165. <image src="../../static/imgs/card/add.png" mode="widthFix" style="width: 148rpx;"></image>
  166. <text class='text'>添加新名片</text>
  167. </view>
  168. </view>
  169. </view>
  170. <u-toast ref="uToast"></u-toast>
  171. <u-popup :round='10' :show="isShowDel" @close="isShowDel=false" mode="center">
  172. <view class="del-style">
  173. <text class="title">删除名片自动退出关联得圈子,确定删除?</text>
  174. <view class="">
  175. <view @click='radiovalue=1' class="flex align-item-center radio-wrap">
  176. <image style='width:13px;height:13px;margin-right:10rpx;' :src="radiovalue==1?'../../static/imgs/mySet/checked.png':'../../static/imgs/mySet/not-checked.png'" mode=""></image>
  177. <view class="">仅从自己名片列表删除</view>
  178. </view>
  179. <view @click='radiovalue=2' class="flex align-item-center radio-wrap">
  180. <image style='width:13px;height:13px;margin-right:10rpx;' :src="radiovalue==2?'../../static/imgs/mySet/checked.png':'../../static/imgs/mySet/not-checked.png'" mode=""></image>
  181. <view class="">从所有拥有此名片用户列表删除</view>
  182. </view>
  183. </view>
  184. <view class="flex footer">
  185. <view class="cancel" @click="isShowDel=false">
  186. 取消
  187. </view>
  188. <view class="confirm" @click="delCard">
  189. 删除
  190. </view>
  191. </view>
  192. </view>
  193. </u-popup>
  194. <u-popup :show="isShowCode" @close="isShowCode=false" mode="center" :round='10'>
  195. <image style='margin:10px;' :src="selectCode" mode="widthFix"></image>
  196. </u-popup>
  197. <u-popup :show="popupshow" :closeOnClickOverlay='true' :overlayOpacity='0.4' @close='handleHiddenShare'
  198. :round="10" mode="bottom">
  199. <view>
  200. <view class="share-content">
  201. <view class="block" @click="toUrl()">
  202. <button class="moment">
  203. <view class="iconfont icon-pengyouquan"></view>
  204. <view>分享朋友圈</view>
  205. </button>
  206. </view>
  207. <view class="block">
  208. <button class="shareBtn" type="default" data-name="shareBtn" open-type="share">
  209. <view class="iconfont icon-weixin"></view>
  210. <view>分享微信好友</view>
  211. </button>
  212. </view>
  213. </view>
  214. </view>
  215. </u-popup>
  216. <!-- 生成图片 -->
  217. <poster :data="canvasData" background-color="#FFF" :width='750' :height='420' @on-success="posterSuccess"
  218. ref="poster" @on-error="posterError"></poster>
  219. <point-share @close='showShare=false' :show='showShare'></point-share>
  220. </view>
  221. </template>
  222. <script>
  223. import Poster from '../../components/zhangyuhao-poster/Poster.vue';
  224. import PointShare from '../../components/point-share/index.vue';
  225. var that;
  226. export default {
  227. components: {
  228. Poster,
  229. PointShare
  230. },
  231. data() {
  232. return {
  233. isShowCode: false,
  234. selectCode: '',
  235. id: '',
  236. showShare:false,
  237. popupshow:false,
  238. radiovalue: 1,
  239. loading:true,
  240. isShowDel: false,
  241. cardList: [],
  242. canvasData:{},
  243. clicknum:0,
  244. poster:''
  245. };
  246. },
  247. onLoad() {
  248. that = this
  249. this.userInfo = uni.getStorageSync("userInfo")
  250. },
  251. onShow() {
  252. this.init()
  253. },
  254. onShareAppMessage(res) {
  255. console.log(res, this.popupshow)
  256. let that = this;
  257. //生成名片图片
  258. let imageUrl = this.poster
  259. console.log("imageUrl", imageUrl)
  260. if (res.from === 'button') {
  261. let path = `/pages/cardHolder/scanCodeAddCard?id=${that.currectData.id}`
  262. return {
  263. title: this.popupshow ? `${that.currectData.name}分享的名片~` : '电子名片',
  264. path: path,
  265. imageUrl: this.popupshow ? imageUrl : '',
  266. };
  267. }
  268. if (res.from === 'menu') {
  269. return {
  270. title: '我的名片',
  271. path: '/pages/tabBarPro/index/index',
  272. imageUrl: this.popupshow ? imageUrl : ''
  273. };
  274. }
  275. },
  276. methods: {
  277. toUrl(){
  278. this.popupshow=false
  279. this.showShare=true
  280. },
  281. handleHiddenShare() {
  282. this.popupshow = false
  283. },
  284. posterError(err) {
  285. console.log(err)
  286. uni.hideLoading()
  287. },
  288. posterSuccess(url) {
  289. console.log("hahahah", url)
  290. // 生成成功,会把临时路径在这里返回
  291. this.poster = url;
  292. uni.hideLoading()
  293. this.popupshow = true
  294. console.log(url)
  295. },
  296. showCode(val) {
  297. this.selectCode = val.qrCodeMyself
  298. this.isShowCode = true
  299. },
  300. share(item) {
  301. uni.showLoading({
  302. title: '加载中',
  303. mask: true
  304. })
  305. this.currectData = item
  306. var data = [{
  307. type: 'image',
  308. path: this.currectData.currentBackground,
  309. use: 'bg',
  310. x: -10,
  311. y: 0,
  312. width: 530,
  313. height: 325
  314. },
  315. {
  316. type: 'image',
  317. path: this.currectData.headSculpture,
  318. shape: 'circle',
  319. use: 'head',
  320. x: 30,
  321. y: 30,
  322. width: 100,
  323. height: 100
  324. },
  325. {
  326. type: 'text',
  327. text: this.currectData.name,
  328. use: 'name',
  329. x: 150,
  330. y: 50,
  331. size: 24,
  332. color: '#000'
  333. },
  334. {
  335. type: 'text',
  336. text: this.currectData.post,
  337. use: 'post',
  338. x: 240,
  339. y: 55,
  340. size: 18,
  341. color: '#666666'
  342. },
  343. {
  344. type: 'text',
  345. text: this.currectData.companyName,
  346. use: 'companyName',
  347. x: 150,
  348. y: 95,
  349. size: 18,
  350. color: '#000'
  351. },
  352. {
  353. type: 'image',
  354. path: '../../static/imgs/card/address1.png',
  355. use: 'address-icon',
  356. x: 145,
  357. y: 130,
  358. width: 15,
  359. height: 20
  360. },
  361. {
  362. type: 'textarea',
  363. text: this.currectData.province + this.currectData.city + this.currectData.area + this
  364. .currectData.detailedAddress,
  365. lineSpace: 1,
  366. width: 320,
  367. use: 'address',
  368. x: 175,
  369. y: 135,
  370. size: 14,
  371. color: '#000'
  372. },
  373. {
  374. type: 'image',
  375. path: '../../static/imgs/card/phone1.png',
  376. use: 'phone-icon',
  377. x: 145,
  378. y: 163,
  379. width: 16,
  380. height: 16
  381. },
  382. {
  383. type: 'text',
  384. text: this.currectData.phone,
  385. use: 'phone',
  386. x: 175,
  387. y: 167,
  388. size: 14,
  389. color: '#000'
  390. },
  391. {
  392. type: 'image',
  393. path: '../../static/imgs/card/remark1.png',
  394. use: 'remark-icon',
  395. x: 145,
  396. y: 197,
  397. width: 13,
  398. height: 16
  399. },
  400. {
  401. type: 'textarea',
  402. text: this.currectData.remark ? this.currectData.remark : '单击添加备注',
  403. use: 'remark',
  404. lineSpace: 2,
  405. width: 200,
  406. x: 175,
  407. y: 200,
  408. size: 13,
  409. color: '#000'
  410. },
  411. {
  412. type: 'image',
  413. path: '../../static/imgs/card/bgc1.png',
  414. use: 'bg1',
  415. x: 3,
  416. y: 243,
  417. width: 240,
  418. height: 67
  419. },
  420. {
  421. type: 'image',
  422. path: '../../static/imgs/card/bgc2.png',
  423. use: 'bg2',
  424. x: 225,
  425. y: 243,
  426. width: 278,
  427. height: 67
  428. },
  429. {
  430. type: 'image',
  431. path: '../../static/imgs/card/home.png',
  432. use: 'home',
  433. x: 30,
  434. y: 260,
  435. width: 33,
  436. height: 33
  437. },
  438. {
  439. type: 'image',
  440. path: '../../static/imgs/card/share.png',
  441. use: 'share',
  442. x: 90,
  443. y: 263,
  444. width: 33,
  445. height: 28
  446. },
  447. {
  448. type: 'image',
  449. path: '../../static/imgs/card/ewm.png',
  450. use: 'code',
  451. x: 150,
  452. y: 263,
  453. width: 32,
  454. height: 32
  455. },
  456. {
  457. type: 'text',
  458. text: '置顶',
  459. use: 'top',
  460. x: 280,
  461. y: 265,
  462. size: 24,
  463. color: '#fff'
  464. },
  465. {
  466. type: 'text',
  467. text: '删除',
  468. use: 'del',
  469. x: 350,
  470. y: 265,
  471. size: 24,
  472. color: '#fff'
  473. },
  474. {
  475. type: 'text',
  476. text: '编辑',
  477. use: 'edit',
  478. x: 420,
  479. y: 265,
  480. size: 24,
  481. color: '#fff'
  482. },
  483. ]
  484. console.log(this.currectData.cuttentTemplate, 111111)
  485. for (var i = 0; i < data.length; i++) {
  486. switch (this.currectData.cuttentTemplate) {
  487. case '2':
  488. if (data[i].use === 'name' ||
  489. data[i].use === 'companyName' ||
  490. data[i].use === 'address-icon' ||
  491. data[i].use === 'phone-icon' ||
  492. data[i].use === 'remark-icon') {
  493. data[i].x = 30
  494. }
  495. if (data[i].use === 'address-icon') {
  496. data[i].path = '../../static/imgs/card/address3.png'
  497. }
  498. if (data[i].use === 'phone-icon') {
  499. data[i].path = '../../static/imgs/card/phone3.png'
  500. }
  501. if (data[i].use === 'remark-icon') {
  502. data[i].path = '../../static/imgs/card/remark3.png'
  503. }
  504. if (data[i].use === 'post') {
  505. data[i].x = 100
  506. }
  507. if (data[i].use === 'address' ||
  508. data[i].use === 'phone' ||
  509. data[i].use === 'remark') {
  510. data[i].x = 60
  511. }
  512. if (data[i].use == 'head') {
  513. data[i].x = 370
  514. }
  515. break;
  516. case '3':
  517. if (data[i].use === 'name') {
  518. data[i].x = 30
  519. data[i].y = 150
  520. }
  521. if (data[i].use === 'companyName') {
  522. data[i].x = 30
  523. data[i].y = 180
  524. }
  525. if (data[i].use === 'post') {
  526. data[i].x = 100
  527. data[i].y = 153
  528. }
  529. if (data[i].use === 'address-icon' ||
  530. data[i].use === 'phone-icon' ||
  531. data[i].use === 'remark-icon') {
  532. data[i].x = 170
  533. }
  534. if (data[i].use === 'address-icon') {
  535. data[i].y = 150
  536. }
  537. if (data[i].use === 'address') {
  538. data[i].y = 155;
  539. data[i].width = 300
  540. }
  541. if (data[i].use === 'phone-icon') {
  542. data[i].y = 180
  543. }
  544. if (data[i].use === 'phone') {
  545. data[i].y = 183
  546. }
  547. if (data[i].use === 'remark-icon') {
  548. data[i].y = 210
  549. }
  550. if (data[i].use === 'remark') {
  551. data[i].y = 212
  552. }
  553. if (data[i].use === 'address' ||
  554. data[i].use === 'phone' ||
  555. data[i].use === 'remark') {
  556. data[i].x = 190
  557. }
  558. break;
  559. case '4':
  560. if (data[i].use === 'name' ||
  561. data[i].use === 'companyName') {
  562. data[i].x = 30
  563. }
  564. if (data[i].use === 'companyName') {
  565. data[i].y = 90
  566. }
  567. if (data[i].use === 'post') {
  568. data[i].x = 100
  569. }
  570. if (data[i].use == 'head') {
  571. data[i].x = 25
  572. data[i].y = 120
  573. }
  574. if (data[i].use === 'address-icon') {
  575. data[i].path = '../../static/imgs/card/address2.png'
  576. }
  577. if (data[i].use === 'phone-icon') {
  578. data[i].path = '../../static/imgs/card/phone2.png'
  579. }
  580. if (data[i].use === 'remark-icon') {
  581. data[i].path = '../../static/imgs/card/remark2.png'
  582. }
  583. if (data[i].use === 'address-icon' ||
  584. data[i].use === 'phone-icon' ||
  585. data[i].use === 'remark-icon') {
  586. data[i].x = 170
  587. }
  588. if (data[i].use === 'address') {
  589. data[i].width = 300
  590. }
  591. if (data[i].use === 'address' ||
  592. data[i].use === 'phone' ||
  593. data[i].use === 'remark') {
  594. data[i].x = 190
  595. }
  596. break;
  597. default:
  598. }
  599. }
  600. this.canvasData = {
  601. clicknum: this.clicknum++,
  602. list: data,
  603. page:'myInfo'
  604. }
  605. console.log(1111111)
  606. },
  607. toHome(item) {
  608. uni.navigateTo({
  609. url: "/pages/mySet/myHome?id=" + item.personalHomeId
  610. })
  611. },
  612. radioChange(n) {
  613. console.log('radioChange', n);
  614. },
  615. init() {
  616. var that = this
  617. this.$request.baseRequest('admin.unimall.cardManagementInfo', 'list', {
  618. commonId: this.userInfo.id
  619. }, failres => {
  620. this.$refs.uToast.show({
  621. type: 'error',
  622. message: failres.errmsg,
  623. })
  624. uni.hideLoading()
  625. }).then(res => {
  626. this.cardList = res.data.items
  627. setTimeout(()=>{
  628. that.loading=false
  629. },1500)
  630. })
  631. },
  632. toEditCard(val) {
  633. uni.navigateTo({
  634. url: "/pages/mySet/editCard?itemVal=" + JSON.stringify(val)
  635. })
  636. },
  637. delCard() {
  638. let _data = {}
  639. if (this.radiovalue == 1) {
  640. _data = {
  641. id: this.id
  642. }
  643. } else {
  644. _data = {
  645. id: this.id,
  646. deleteCondition: 1
  647. }
  648. }
  649. that.$request.baseRequest('admin.unimall.cardManagementInfo', 'delete', _data, failres => {
  650. this.$refs.uToast.show({
  651. type: 'error',
  652. message: failres.errmsg,
  653. })
  654. uni.hideLoading()
  655. }).then(res => {
  656. this.isShowDel = false
  657. this.$refs.uToast.show({
  658. type: 'success',
  659. message: '删除成功!',
  660. })
  661. this.init()
  662. })
  663. },
  664. del(val) {
  665. this.id = val
  666. this.isShowDel = true
  667. },
  668. addCard() {
  669. uni.navigateTo({
  670. url: "/pages/mySet/newCard"
  671. })
  672. },
  673. topMarking(val) {
  674. that.$request.baseRequest('admin.unimall.cardManagementInfo', 'top', {
  675. cardManagementInfo: JSON.stringify({
  676. id: val.id
  677. })
  678. }, failres => {
  679. this.$refs.uToast.show({
  680. type: 'error',
  681. message: failres.errmsg,
  682. })
  683. uni.hideLoading()
  684. }).then(res => {
  685. this.$refs.uToast.show({
  686. type: 'success',
  687. message: '置顶成功!',
  688. })
  689. this.init()
  690. })
  691. }
  692. }
  693. }
  694. </script>
  695. <style lang="scss" scoped>
  696. .content {
  697. padding-bottom: 40rpx;
  698. }
  699. .card-content {
  700. width: 100%;
  701. }
  702. .content1 {
  703. .icon-text{
  704. margin-left:10rpx;
  705. }
  706. .style1 {
  707. display: flex;
  708. padding: 20rpx 30rpx;
  709. width: 85%;
  710. margin-bottom: 70rpx;
  711. .left {
  712. width: 132rpx;
  713. height: 132rpx;
  714. border-radius: 50%;
  715. }
  716. .right {
  717. margin-left: 40rpx;
  718. .row1 {
  719. .name {
  720. font-size: 38rpx;
  721. font-weight: bold;
  722. color: #040000;
  723. margin-right: 20rpx;
  724. }
  725. .post {
  726. font-size: 26rpx;
  727. font-weight: 500;
  728. color: #666666;
  729. }
  730. }
  731. .row2 {
  732. margin-top: 20rpx;
  733. font-size: 24rpx;
  734. font-weight: bold;
  735. color: #323333;
  736. }
  737. .row3,.row4 {
  738. margin-top: 30rpx;
  739. font-size: 24rpx;
  740. font-weight: 500;
  741. color: #323333;
  742. }
  743. }
  744. }
  745. .style2 {
  746. padding: 30rpx;
  747. margin-bottom: 70rpx;
  748. .top {
  749. .row1 {
  750. .name {
  751. font-size: 38rpx;
  752. font-weight: bold;
  753. color: #040000;
  754. margin-right: 20rpx;
  755. }
  756. .post {
  757. font-size: 26rpx;
  758. font-weight: 500;
  759. color: #666666;
  760. }
  761. }
  762. .row2 {
  763. margin-top: 20rpx;
  764. font-size: 24rpx;
  765. font-weight: bold;
  766. color: #323333;
  767. }
  768. }
  769. .bottom {
  770. margin-top: 20rpx;
  771. .left {
  772. margin-right: 40rpx;
  773. .row1 {
  774. .name {
  775. font-size: 38rpx;
  776. font-weight: bold;
  777. color: #040000;
  778. margin-right: 20rpx;
  779. }
  780. .post {
  781. font-size: 26rpx;
  782. font-weight: 500;
  783. color: #666666;
  784. }
  785. }
  786. .row2 {
  787. margin-top: 20rpx;
  788. font-size: 24rpx;
  789. font-weight: bold;
  790. color: #323333;
  791. }
  792. }
  793. .right {
  794. .row1,
  795. .row2 {
  796. font-size: 24rpx;
  797. font-weight: 500;
  798. color: #323333;
  799. }
  800. .row2 {
  801. margin-top: 20rpx;
  802. }
  803. .row3,.row4 {
  804. margin-top: 30rpx;
  805. font-size: 24rpx;
  806. font-weight: 500;
  807. color: #323333;
  808. }
  809. }
  810. }
  811. }
  812. }
  813. .card-list {
  814. padding: 0 20rpx;
  815. .title-name {
  816. font-weight: bold;
  817. color: #19191A;
  818. margin: 20rpx 0;
  819. }
  820. }
  821. .card-list-item {
  822. width: calc(100% + 40rpx);
  823. left: -20rpx;
  824. position: relative;
  825. border-radius: 30rpx;
  826. padding: 40rpx;
  827. box-sizing: border-box;
  828. .car-bottom {
  829. position: absolute;
  830. bottom: 20rpx;
  831. left: 20rpx;
  832. width: calc(100% - 40rpx);
  833. .left {
  834. position: absolute;
  835. padding: 20rpx 0;
  836. width: 310rpx;
  837. box-sizing: border-box;
  838. display: flex;
  839. justify-content: space-evenly;
  840. background: url("../../static/imgs/card/bgc1.png") no-repeat center;
  841. background-size: 100% 100%;
  842. }
  843. .right {
  844. font-size: 26rpx;
  845. padding: 20rpx 0;
  846. position: relative;
  847. right: -280rpx;
  848. width: calc(100vw - 320rpx);
  849. box-sizing: border-box;
  850. display: flex;
  851. justify-content: space-evenly;
  852. background: url("../../static/imgs/card/bgc2.png") no-repeat center;
  853. background-size: 100% 100%;
  854. .text {
  855. color: #fff;
  856. }
  857. }
  858. }
  859. .left {
  860. width: 30%;
  861. .top {
  862. margin-bottom: 20rpx;
  863. }
  864. .img {
  865. width: 80%;
  866. }
  867. .bottom {}
  868. }
  869. .right {
  870. .row1 {
  871. .line {
  872. width: 1px;
  873. height: 20px;
  874. margin: 0 20rpx;
  875. background: black;
  876. }
  877. }
  878. }
  879. }
  880. .upload {
  881. background-color: #fff;
  882. margin: 20rpx;
  883. border-radius: 20rpx;
  884. padding: 76rpx;
  885. .solids {
  886. flex-direction: column;
  887. .text {
  888. margin-top: 20rpx;
  889. font-size: 26rpx;
  890. font-weight: 500;
  891. color: #666666;
  892. }
  893. }
  894. }
  895. .share-content {
  896. display: flex;
  897. padding: 20rpx;
  898. justify-content: center;
  899. font-size: 24rpx;
  900. button {
  901. background: transparent;
  902. line-height: 1.5;
  903. }
  904. button:after {
  905. border: none;
  906. }
  907. }
  908. .icon-pengyouquan,.icon-weixin{
  909. font-size:50px;
  910. color:#33CC00;
  911. }
  912. .del-style{
  913. padding:40rpx 40rpx 80rpx 40rpx;
  914. font-size:32rpx;
  915. position:relative;
  916. .title{
  917. color:#1A1A1A;
  918. font-size:32rpx;
  919. font-weight: bold;
  920. }
  921. .radio-wrap{
  922. padding:23rpx;
  923. border-radius:10rpx;
  924. background:#F5F5F5;
  925. margin:20rpx 0;
  926. }
  927. .cancel,.confirm{
  928. width: 50%;
  929. text-align: center;
  930. padding: 35rpx 0;
  931. border-top: 1px solid #ccc;
  932. font-size:36rpx;
  933. }
  934. .footer{
  935. position: absolute;
  936. bottom: -33px;
  937. width: 100%;
  938. left: 0;
  939. }
  940. .cancel{
  941. border-right: 1px solid #ccc;
  942. }
  943. .confirm{
  944. color:#4977FC;
  945. }
  946. }
  947. </style>