scanCodeAddCard.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  1. <template>
  2. <view>
  3. <view class="card-wrap">
  4. <!-- <card :obj="cardInfo" :styleList="bottomStyle" page="scanCodeAddCard"></card> -->
  5. <view class="card-list-cardInfo relative"
  6. :style="cardInfo.currentBackground?'background: url('+cardInfo.currentBackground+');background-size:100% 100%':''">
  7. <view class="card-content style1" v-if="cardInfo.cuttentTemplate==1">
  8. <view class="left">
  9. <u--image :showLoading="true" :src="cardInfo.headSculpture" width="66px" height="66px"
  10. shape="circle"></u--image>
  11. </view>
  12. <view class="right">
  13. <view class="row1">
  14. <text class="name">{{cardInfo.name}}</text>
  15. <text class="post">{{cardInfo.post}}</text>
  16. </view>
  17. <view class="row2">
  18. {{cardInfo.companyName}}
  19. </view>
  20. <view class="row3 flex" @click="toMap(cardInfo)">
  21. <u--image :showLoading="true" :src="'/static/imgs/card/address'+cardInfo.icon+'.png'"
  22. width="13px" height="16px"></u--image>
  23. <view class='icon-text'>{{ cardInfo.province }}{{ cardInfo.city }}{{ cardInfo.area }}</view>
  24. </view>
  25. <view @click="freeTell(cardInfo)" class="row4 flex">
  26. <u--image :showLoading="true" :src="'/static/imgs/card/phone'+cardInfo.icon+'.png'"
  27. width="12px" height="13px"></u--image>
  28. <view class='icon-text'>{{ cardInfo.phone }}</view>
  29. </view>
  30. <view class="row2 flex" style="color: #808080">
  31. <u--image :showLoading="true" :src="'/static/imgs/card/remark'+cardInfo.icon+'.png'"
  32. width="10px" height="12px"></u--image>
  33. <view class='icon-text' style="color: #808080;">{{cardInfo.remark?cardInfo.remark:''}}
  34. </view>
  35. </view>
  36. </view>
  37. <u-checkbox-group v-if='islongPress' placement="column" @change="checkboxChange($event,index)">
  38. <u-checkbox iconColor='#4977FC' activeColor="#fff" :name='index+1' :checked='cardInfo.checked'
  39. :customStyle="{marginBottom: '8px'}">
  40. </u-checkbox>
  41. </u-checkbox-group>
  42. </view>
  43. <view class="card-content style1 flex-between" v-if="cardInfo.cuttentTemplate==2">
  44. <view class="right">
  45. <view class="row1">
  46. <text class="name">{{cardInfo.name}}</text>
  47. <text class="post">{{cardInfo.post}}</text>
  48. </view>
  49. <view class="row2">
  50. {{cardInfo.companyName}}
  51. </view>
  52. <view @click="toMap(cardInfo)" class="row3 flex">
  53. <u--image :showLoading="true" :src="'/static/imgs/card/address'+cardInfo.icon+'.png'"
  54. width="13px" height="16px"></u--image>
  55. <view class='icon-text'>{{ cardInfo.province }}{{ cardInfo.city }}{{ cardInfo.area }}</view>
  56. </view>
  57. <view @click="freeTell(cardInfo)" class="row4 flex">
  58. <u--image :showLoading="true" :src="'/static/imgs/card/phone'+cardInfo.icon+'.png'"
  59. width="12px" height="13px"></u--image>
  60. <view class='icon-text'>{{ cardInfo.phone }}</view>
  61. </view>
  62. <view class="row2 flex" style="color: #808080">
  63. <u--image :showLoading="true" :src="'/static/imgs/card/remark'+cardInfo.icon+'.png'"
  64. width="10px" height="12px"></u--image>
  65. <view class='icon-text' style="color: #808080;">{{cardInfo.remark?cardInfo.remark:''}}
  66. </view>
  67. </view>
  68. </view>
  69. <view class="left">
  70. <u--image :showLoading="true" :src="cardInfo.headSculpture" width="66px" height="66px"
  71. shape="circle" v-if="cardInfo.headSculpture"></u--image>
  72. <u--image :showLoading="true" src="/static/imgs/card/defaulthead.png" width="66px" height="66px"
  73. shape="circle" v-else></u--image>
  74. </view>
  75. <u-checkbox-group v-if='islongPress' placement="column" @change="checkboxChange($event,index)">
  76. <u-checkbox iconColor='#4977FC' activeColor="#fff" :name='index+1' :checked='cardInfo.checked'
  77. :customStyle="{marginBottom: '8px'}">
  78. </u-checkbox>
  79. </u-checkbox-group>
  80. </view>
  81. <view class="card-content style2" v-if="cardInfo.cuttentTemplate==3">
  82. <view class="top">
  83. <u--image :showLoading="true" :src="cardInfo.headSculpture" width="66px" height="66px"
  84. shape="circle" v-if="cardInfo.headSculpture"></u--image>
  85. <u--image :showLoading="true" src="/static/imgs/card/defaulthead.png" width="66px" height="66px"
  86. shape="circle" v-else></u--image>
  87. </view>
  88. <view class="bottom flex">
  89. <view class="left">
  90. <view class="row1">
  91. <text class="name">{{cardInfo.name}}</text>
  92. <text class="post">{{cardInfo.post}}</text>
  93. </view>
  94. <view class="row2">
  95. {{cardInfo.companyName}}
  96. </view>
  97. </view>
  98. <view class="right">
  99. <view @click="toMap(cardInfo)" class="row1 flex">
  100. <u--image :showLoading="true" :src="'/static/imgs/card/address'+cardInfo.icon+'.png'"
  101. width="13px" height="16px"></u--image>
  102. <view class='icon-text'>{{ cardInfo.province }}{{ cardInfo.city }}{{ cardInfo.area }}
  103. </view>
  104. </view>
  105. <view @click="freeTell(cardInfo)" class="row2 flex">
  106. <u--image :showLoading="true" :src="'/static/imgs/card/phone'+cardInfo.icon+'.png'"
  107. width="12px" height="13px"></u--image>
  108. <view class='icon-text'>{{ cardInfo.phone }}</view>
  109. </view>
  110. <view class="row2 flex" style="color: #808080">
  111. <u--image :showLoading="true" :src="'/static/imgs/card/remark'+cardInfo.icon+'.png'"
  112. width="10px" height="12px"></u--image>
  113. <view class='icon-text' style="color: #808080;">
  114. {{cardInfo.remark?cardInfo.remark:''}}
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. <u-checkbox-group v-if='islongPress' placement="column" @change="checkboxChange($event,index)">
  120. <u-checkbox iconColor='#4977FC' activeColor="#fff" :name='index+1' :checked='cardInfo.checked'
  121. :customStyle="{marginBottom: '8px'}">
  122. </u-checkbox>
  123. </u-checkbox-group>
  124. </view>
  125. <view class="card-content style2" v-if="cardInfo.cuttentTemplate==4">
  126. <view class="top">
  127. <view class="row1">
  128. <text class="name">{{cardInfo.name}}</text>
  129. <text class="post">{{cardInfo.post}}</text>
  130. </view>
  131. <view class="row2">
  132. {{cardInfo.companyName}}
  133. </view>
  134. </view>
  135. <view class="bottom flex">
  136. <view class="left">
  137. <u--image :showLoading="true" :src="cardInfo.headSculpture" width="66px" height="66px"
  138. shape="circle" v-if="cardInfo.headSculpture"></u--image>
  139. <u--image :showLoading="true" src="/static/imgs/card/defaulthead.png" width="66px"
  140. height="66px" shape="circle" v-else></u--image>
  141. </view>
  142. <view class="right">
  143. <view @click="toMap(cardInfo)" class="row1 flex">
  144. <u--image :showLoading="true" :src="'/static/imgs/card/address'+cardInfo.icon+'.png'"
  145. width="13px" height="16px"></u--image>
  146. <view class='icon-text'>{{ cardInfo.province }}{{ cardInfo.city }}{{ cardInfo.area }}
  147. </view>
  148. </view>
  149. <view @click="freeTell(cardInfo)" class="row2 flex">
  150. <u--image :showLoading="true" :src="'/static/imgs/card/phone'+cardInfo.icon+'.png'"
  151. width="12px" height="13px"></u--image>
  152. <view class='icon-text'>{{ cardInfo.phone }}</view>
  153. </view>
  154. <view class="row2 flex" style="color: #808080">
  155. <u--image :showLoading="true" :src="'/static/imgs/card/remark'+cardInfo.icon+'.png'"
  156. width="10px" height="12px"></u--image>
  157. <view :style='cardInfo.remark?"color:#000;":"color:#808080;"' class='icon-text'>
  158. {{cardInfo.remark?cardInfo.remark:''}}
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. <u-checkbox-group v-if='islongPress' placement="column" @change="checkboxChange($event,index)">
  164. <u-checkbox iconColor='#4977FC' activeColor="#fff" :name='index+1' :checked='cardInfo.checked'
  165. :customStyle="{marginBottom: '8px'}">
  166. </u-checkbox>
  167. </u-checkbox-group>
  168. </view>
  169. <view class="car-bottom flex">
  170. <text style="color: #fff;font-size: 36rpx;font-weight: 700;margin-left: 40rpx;">{{value?value:'默'}}</text>
  171. </view>
  172. </view>
  173. </view>
  174. <view class="title">
  175. 名片信息
  176. </view>
  177. <view class="form-style">
  178. <view class="row" style="border-bottom: 1px solid #E6E5E5;padding-bottom: 20rpx;">
  179. <view class="left">
  180. 名片分类
  181. </view>
  182. <view class="right" @click="show = true">
  183. {{cardInfo.classify?cardInfo.classify:'默认分类'}}
  184. </view>
  185. </view>
  186. <view class="" style="padding: 20rpx 0;">
  187. <view class="left" style="margin-bottom: 20rpx;">
  188. 备注(选填)
  189. </view>
  190. <view class="right">
  191. <u--textarea v-model="cardInfo.remark" placeholder="输入备注,不超过150个字 "></u--textarea>
  192. </view>
  193. </view>
  194. <view v-if='commonId' class="flex flex-between" style="border-bottom: 1px solid #E6E5E5;padding: 20rpx 0;">
  195. <view class="left">
  196. 我的名片
  197. </view>
  198. <view class="right" @click="show1 = true">
  199. {{cardInfo.cardBusiness?cardInfo.cardBusiness:'无名片'}}
  200. </view>
  201. </view>
  202. </view>
  203. <u-picker :immediateChange="true" keyName="cardBusiness" title="选择名片" @close="show1=false" @cancel="show1=false"
  204. closeOnClickOverlay @confirm="cardConfirm" :show="show1" :columns="cardList"></u-picker>
  205. <u-picker :immediateChange="true" keyName="circleName" title="选择分类" @close="show=false" @cancel="show=false"
  206. closeOnClickOverlay @confirm="typeConfirm" :show="show" :columns="columns"></u-picker>
  207. <view class="bottom-btn">
  208. <u-button @click='cancel' text="取消" type="primary" :plain="true" color="#18254C"
  209. :customStyle="btnStyle"></u-button>
  210. <u-button @click='$u.debounce(save, 500)' text="保存" type="primary" color="#18254C"
  211. :customStyle="btnStyle"></u-button>
  212. </view>
  213. <u-modal :show="showAuthorizePhone" :showConfirmButton="false">
  214. <view class="slot-content">
  215. <view class="auth-card">
  216. <view class="img">
  217. <img class="avatar-img" src="@/static/imgs/logo.png" mode="widthFix">
  218. </view>
  219. <!-- <div class="title">手机登录后才能查看名片哦~</div> -->
  220. <view class="content">手机登录后才能查看名片哦~</view>
  221. </view>
  222. <view class="auth-btncard">
  223. <view class="btn-unok">
  224. <u-button :customStyle="customStyleUnOk" @click="showAuthorizePhone=false" :plain="true">
  225. 拒绝</u-button>
  226. </view>
  227. <view class="btn-ok">
  228. <u-button :customStyle="customStyleOk" open-type="getPhoneNumber"
  229. @getphonenumber="getPhoneNumber"> 立即登录</u-button>
  230. </view>
  231. </view>
  232. </view>
  233. </u-modal>
  234. <u-modal :show="showAuthorizeUser" :showConfirmButton="false">
  235. <view class="slot-content">
  236. <view class="auth-card">
  237. <view class="img">
  238. <img class="avatar-img" src="/static/imgs/logo.png" mode="widthFix">
  239. </view>
  240. <view class="content">邀请您补全个人信息<br></br>(昵称、头像)</view>
  241. <view style="margin-left: 100rpx;margin-right: 100rpx">
  242. <u-form :model="userInfo" ref="uForm">
  243. <u-form-item label="头像">
  244. <button class="avatar-wrapper" open-type="chooseAvatar" @chooseavatar="onChooseAvatar"
  245. slot="right">
  246. <image class="avatar"
  247. :src="userInfo.head?userInfo.head:'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0'">
  248. </image>
  249. </button>
  250. </u-form-item>
  251. <u-form-item label="昵称">
  252. <u-input inputAlign='right' v-model="userInfo.nickname" class="weui-input"
  253. @blur="userNameInput" placeholder="请输入昵称" border="false" />
  254. <!-- <input type="nickname" :value="userInfo.nickname" class="weui-input" @blur="userNameInput" placeholder="请输入昵称"/> -->
  255. </u-form-item>
  256. </u-form>
  257. </view>
  258. </view>
  259. <view class="auth-btncard">
  260. <view class="btn-unok"><u-button :customStyle="customStyleUnOk" @click="showAuthorizeUser=false">
  261. 拒绝</u-button></view>
  262. <view class="btn-ok"><u-button :customStyle="customStyleOk" @click="authUser"> 允许</u-button></view>
  263. </view>
  264. </view>
  265. </u-modal>
  266. <u-toast ref="uToast"></u-toast>
  267. </view>
  268. </template>
  269. <script>
  270. var that;
  271. import {
  272. pathToBase64,
  273. base64ToPath
  274. } from 'image-tools'
  275. import Card from '../../components/Card/Card.vue'
  276. export default {
  277. components: {
  278. Card
  279. },
  280. data() {
  281. return {
  282. showAuthorizeUser: false,
  283. showAuthorizePhone: false,
  284. customStyleUnOk: {
  285. marginTop: '20rpx',
  286. color: '#18254C',
  287. border: '2px solid #18254C',
  288. "border-radius": "10px",
  289. fontSize: "32rpx"
  290. },
  291. customStyleOk: {
  292. marginTop: '20rpx',
  293. color: '#fff',
  294. border: '2px solid #18254C',
  295. "border-radius": "10px",
  296. fontSize: "32rpx",
  297. background: "#18254C"
  298. },
  299. value: '',
  300. btnStyle: {
  301. width:'calc(50% - 80rpx)'
  302. },
  303. bottomStyle: [
  304. "position:absolute;left: 0;width:24vw;height:0;border-bottom:80rpx solid red;border-right:80rpx solid transparent;border-radius:0 0 0 20rpx",
  305. "position: absolute;right: -40rpx;width: 58vw;height: 0;border-top: 80rpx solid green;border-left: 80rpx solid transparent;border-radius: 0 0 10px 0"
  306. ],
  307. id: '',
  308. commonId: '',
  309. cardInfo: {},
  310. show: false,
  311. show1: false,
  312. columns: [],
  313. cardList: [],
  314. userInfo:{},
  315. rules: {
  316. 'userInfo.name': {
  317. type: 'string',
  318. required: true,
  319. message: '请填写姓名',
  320. trigger: ['blur', 'change']
  321. },
  322. 'userInfo.sex': {
  323. type: 'string',
  324. max: 1,
  325. required: true,
  326. message: '请选择男或女',
  327. trigger: ['blur', 'change']
  328. },
  329. },
  330. }
  331. },
  332. onLoad(options) {
  333. uni.showToast({
  334. title:options,
  335. duration:'10000'
  336. })
  337. that = this
  338. console.log(options)
  339. this.id = options.id.indexOf(",") ? options.id.split(",")[0] : options.id
  340. if (uni.getStorageSync("userInfo").phone) {
  341. this.userInfo = uni.getStorageSync("userInfo")
  342. this.commonId = options.id.indexOf(",") ? options.id.split(",")[1] : ''
  343. this.getList()
  344. } else {
  345. this.showAuthorizePhone = true
  346. }
  347. },
  348. onShow() {
  349. },
  350. methods: {
  351. //获取昵称输入内容
  352. userNameInput(e) {
  353. this.userInfo.nickname = e.detail.value
  354. },
  355. async onChooseAvatar(e) {
  356. this.$set(this.userInfo, "head", await this.toBase64(e.detail.avatarUrl))
  357. },
  358. toBase64(url) {
  359. return new Promise(resolve => {
  360. pathToBase64(url).then(path => {
  361. resolve(path);
  362. }).catch(error => {
  363. console.log(error)
  364. })
  365. })
  366. },
  367. async authUser(type) {
  368. //同步信息,没有头像和昵称自动生成
  369. this.userInfo = await this.$request.syncInfo(this.userInfo)
  370. if(this.userInfo.openId) {
  371. uni.setStorageSync("userInfo", that.userInfo)
  372. that.showAuthorizeUser = false
  373. // that.mescroll.resetUpScroll()
  374. this.getList()
  375. }
  376. },
  377. async getPhoneNumber(e) {
  378. console.log("开始登录")
  379. that.userInfo = await this.$request.wxlogin()
  380. console.log("结束登录",that.userInfo)
  381. console.log("开始获取手机号码")
  382. this.$nextTick(function() {
  383. that.userInfo.phone = that.$request.getPhone(e, that.userInfo)
  384. that.showAuthorizePhone = false
  385. that.showAuthorizeUser = true
  386. console.log("结束获取手机号码",that.userInfo.phone)
  387. });
  388. },
  389. save() {
  390. if(this.cardInfo.length==0){
  391. uni.showToast({
  392. icon: "none",
  393. title: "您还未创建名片,请前往我的先创建名片!",
  394. duration: 3000
  395. });
  396. return
  397. }
  398. this.$request.baseRequest('admin.unimall.cardHolderInfo', 'getAdded', {
  399. commonId: uni.getStorageSync("userInfo").id,
  400. cardId: this.cardInfo.id,
  401. }, failres => {
  402. console.log('res+++++', failres.errmsg)
  403. uni.showToast({
  404. icon: "none",
  405. title: failres.errmsg,
  406. duration: 3000
  407. });
  408. }).then(res1 => {
  409. uni.showLoading({
  410. title: '数据加载中',
  411. mask: true
  412. })
  413. this.$request.baseRequest('admin.unimall.cardHolderInfo', 'add', {
  414. cardHolderInfo: JSON.stringify({
  415. cardId: this.cardInfo.id,
  416. remark: this.cardInfo.remark,
  417. cardCommonId: this.commonId,
  418. myCardId: this.cardInfo.myCardId,
  419. commonId: uni.getStorageSync("userInfo").id,
  420. classify: this.cardInfo.classify
  421. })
  422. }, failres => {
  423. uni.showToast({
  424. icon: "none",
  425. title: failres.errmsg,
  426. duration: 3000
  427. });
  428. uni.hideLoading()
  429. }).then(res => {
  430. uni.showToast({
  431. icon: "success",
  432. title: '保存成功!',
  433. duration: 2000
  434. });
  435. uni.setStorageSync("scanAddCardToIndex",1)
  436. uni.switchTab({
  437. url: "/pages/cardHolder/cardHolder"
  438. })
  439. })
  440. })
  441. },
  442. cancel() {
  443. uni.switchTab({
  444. url: "/pages/cardHolder/cardHolder"
  445. })
  446. },
  447. cardConfirm(e) {
  448. console.log(e)
  449. this.cardInfo.cardBusiness = e.value[0].cardBusiness
  450. this.cardInfo.myCardId = e.value[0].id
  451. this.show1 = false
  452. },
  453. typeConfirm(e) {
  454. console.log(e)
  455. this.cardInfo.classify = e.value[0].circleName
  456. this.value = e.value[0].circleName.substring(0,1)
  457. this.show = false
  458. },
  459. async getList() {
  460. await this.$request.baseRequest('admin.unimall.cardManagementInfo', 'get', {
  461. id: this.id
  462. }, failres => {
  463. console.log('res+++++', failres.errmsg)
  464. uni.showToast({
  465. icon: "none",
  466. title: failres.errmsg,
  467. duration: 3000
  468. });
  469. uni.hideLoading()
  470. }).then(res => {
  471. console.log("this.cardInfo",res)
  472. this.cardInfo = res.data
  473. // if(this.cardInfo.length==0){
  474. // uni.showToast({
  475. // icon: "none",
  476. // title: "您还未创建名片,请前往我的先创建名片!",
  477. // duration: 3000
  478. // });
  479. // }
  480. // this.cardInfo.cardBusiness = ''
  481. // this.cardInfo.cardCommonId = res.data.commonId
  482. console.log(res)
  483. })
  484. await this.$request.baseRequest('admin.unimall.cardManagementInfo', 'list', {
  485. commonId: uni.getStorageSync("userInfo").id
  486. }, failres => {
  487. uni.showToast({
  488. icon: "none",
  489. title: failres.errmsg,
  490. duration: 3000
  491. });
  492. uni.hideLoading()
  493. }).then(res => {
  494. this.cardList = [res.data.items]
  495. this.cardInfo.cardBusiness = res.data.items[0].cardBusiness
  496. this.cardInfo.myCardId = res.data.items[0].id
  497. })
  498. await this.$request.baseRequest('admin.unimall.cardClassifyInfo', 'list', {
  499. page: 1,
  500. limit: 9999,
  501. commonId: uni.getStorageSync("userInfo").id
  502. }, failres => {
  503. console.log('res+++++', failres.errmsg)
  504. uni.showToast({
  505. icon: "none",
  506. title: failres.errmsg,
  507. duration: 3000
  508. });
  509. }).then(res => {
  510. this.columns = [res.data.items]
  511. console.log(this.columns)
  512. })
  513. }
  514. }
  515. }
  516. </script>
  517. <style scoped lang="scss">
  518. .card-wrap {
  519. margin: 0 20rpx;
  520. background: #f5f5f5;
  521. // height: 1000px;
  522. border-radius: 30rpx;
  523. .style1 {
  524. display: flex;
  525. padding: 20rpx 30rpx;
  526. width: 85%;
  527. margin-bottom: 90rpx;
  528. .left {
  529. width: 132rpx;
  530. height: 132rpx;
  531. border-radius: 50%;
  532. }
  533. .right {
  534. margin-left: 40rpx;
  535. .row1 {
  536. .name {
  537. font-size: 38rpx;
  538. font-weight: bold;
  539. color: #040000;
  540. margin-right: 20rpx;
  541. }
  542. .post {
  543. font-size: 26rpx;
  544. font-weight: 500;
  545. color: #666666;
  546. }
  547. }
  548. .row2 {
  549. font-size: 24rpx;
  550. font-weight: bold;
  551. color: #323333;
  552. }
  553. .row3 {
  554. margin-top: 30rpx;
  555. font-size: 24rpx;
  556. font-weight: 500;
  557. color: #323333;
  558. }
  559. .row2,
  560. .row4 {
  561. margin-top: 10rpx;
  562. }
  563. }
  564. }
  565. .style2 {
  566. padding: 15rpx;
  567. margin-bottom: 80rpx;
  568. .top {
  569. .row1 {
  570. .name {
  571. font-size: 38rpx;
  572. font-weight: bold;
  573. color: #040000;
  574. margin-right: 20rpx;
  575. }
  576. .post {
  577. font-size: 26rpx;
  578. font-weight: 500;
  579. color: #666666;
  580. }
  581. }
  582. .row2 {
  583. margin-top: 10rpx;
  584. font-size: 24rpx;
  585. font-weight: bold;
  586. color: #323333;
  587. }
  588. }
  589. .bottom {
  590. margin-top: 20rpx;
  591. .left {
  592. margin-right: 40rpx;
  593. .row1 {
  594. .name {
  595. font-size: 38rpx;
  596. font-weight: bold;
  597. color: #040000;
  598. margin-right: 20rpx;
  599. }
  600. .post {
  601. font-size: 26rpx;
  602. font-weight: 500;
  603. color: #666666;
  604. }
  605. }
  606. .row2 {
  607. margin-top: 10rpx;
  608. font-size: 26rpx;
  609. font-weight: bold;
  610. color: #323333;
  611. }
  612. }
  613. .right {
  614. .row1,
  615. .row2 {
  616. font-size: 24rpx;
  617. font-weight: 500;
  618. color: #323333;
  619. }
  620. .row2,
  621. .row4 {
  622. margin-top: 10rpx;
  623. }
  624. }
  625. }
  626. }
  627. }
  628. .car-bottom {
  629. position: absolute;
  630. bottom: 63rpx;
  631. left: 20rpx;
  632. bottom: 24rpx;
  633. width: 94.9%;
  634. background: url("../../static/imgs/card/bgc4.png") no-repeat center;
  635. background-size: cover;
  636. height: 80rpx;
  637. // width: calc(100% - 40rpx);
  638. .left {
  639. // top: -40rpx;
  640. position: absolute;
  641. padding: 20rpx 0;
  642. width: 70vw;
  643. height: 80rpx;
  644. box-sizing: border-box;
  645. display: flex;
  646. align-items: center;
  647. justify-content: space-evenly;
  648. left: 0px;
  649. // background-size: 100% 100%;
  650. overflow-y: hidden;
  651. }
  652. }
  653. .card-list-item {
  654. width: calc(100%);
  655. // left:-20rpx;
  656. position: relative;
  657. border-radius: 30rpx;
  658. padding: 40rpx;
  659. box-sizing: border-box;
  660. .left {
  661. width: 30%;
  662. .top {
  663. margin-bottom: 20rpx;
  664. }
  665. .img {
  666. width: 80%;
  667. }
  668. .bottom {}
  669. }
  670. .right {
  671. .row1 {
  672. .line {
  673. width: 1px;
  674. height: 20px;
  675. margin: 0 20rpx;
  676. background: black;
  677. }
  678. }
  679. }
  680. }
  681. .title {
  682. font-size: 32rpx;
  683. font-weight: bold;
  684. color: #19191A;
  685. margin-left: 20rpx;
  686. }
  687. .form-style {
  688. background: #fff;
  689. padding: 20rpx;
  690. margin: 20rpx;
  691. box-sizing: border-box;
  692. border-radius: 20rpx;
  693. .row {
  694. display: flex;
  695. justify-content: space-between;
  696. }
  697. }
  698. .bottom-btn {
  699. position: fixed;
  700. bottom: 40rpx;
  701. display: flex;
  702. justify-content: space-between;
  703. // padding: 20rpx;
  704. width: 100vw;
  705. height: auto;
  706. }
  707. .card-list-cardInfo {
  708. padding: 40rpx;
  709. }
  710. .icon-text{
  711. margin-left: 20rpx;
  712. }
  713. .slot-content {
  714. width: 100%;
  715. }
  716. .auth-btncard {
  717. display: flex !important;
  718. justify-content: space-between !important;
  719. .btn-unok {
  720. width: 40%;
  721. }
  722. .btn-ok {
  723. width: 40%;
  724. }
  725. }
  726. .auth-card {
  727. text-align: center;
  728. .avatar-img {
  729. width: 250rpx;
  730. }
  731. .title {
  732. font-size: 20rpx;
  733. }
  734. .content {
  735. font-size: 32rpx;
  736. font-weight: bold;
  737. color: #1A1A1A;
  738. margin-bottom: 30rpx;
  739. }
  740. }
  741. .avatar-wrapper {
  742. color: #333 !important;
  743. border: none !important;
  744. border-radius: 0 !important;
  745. background-color: transparent !important;
  746. padding: 0;
  747. }
  748. .avatar-wrapper::after {
  749. border: none !important;
  750. }
  751. .avatar {
  752. width: 100rpx;
  753. height: 100rpx;
  754. overflow: hidden;
  755. border-radius: 100%;
  756. }
  757. </style>