12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037 |
- <template>
- <div class="mine-header" :class="mineClass">
- <div class="tabbar-header-top-placeholder" v-if="$envs.inApp"></div>
- <div class="header-info" :class="{ pt: $envs.inWX }">
- <div class="user-img">
- <img
- :src="pageUserInfo.headimageurl || pageUserInfo.avatar"
- @error="errorImgFun"
- />
- <span v-if="accountInfo.hasVip" class="j-icon vip-icon">
- <img src="@/assets/image/icon/vip/vip-icon.png" alt="" />
- </span>
- <span v-if="accountInfo.hasBigmember" class="j-icon bigmember-icon">
- <img src="@/assets/image/icon/big-member/icon-gaojihy2.png" alt="" />
- </span>
- </div>
- <div class="user-info-container">
- <div class="user-info-top">
- <span class="ellipsis user-name" v-if="getName">{{ getName }}</span>
- </div>
- <div
- class="user-info-bottom"
- :class="{
- 'single-identity-container': userIdentityList.length === 1
- }"
- >
- <span
- class="change-identity"
- @click="changeIdentityHandle"
- v-bound-phone="bindPhoneChangeIdentityHandle()"
- >
- <span class="identity-name ellipsis">
- {{ userCurrentIdentity ? userCurrentIdentity.name : '' }}
- </span>
- <AppIcon
- v-if="userIdentityList.length > 1"
- name="qiehuan"
- size="12"
- color="#171826"
- />
- </span>
- <span
- class="identity-keep"
- @click.stop="jumpIdentityKeep"
- v-bound-phone="bindPhoneJumpIdentityKeep()"
- >
- <span>身份信息维护</span>
- <AppIcon name="youbian" size="10" color="#fff" />
- </span>
- </div>
- </div>
- <div
- class="app-header-set clickable"
- @click="jumpSetting"
- v-bound-phone="bindPhoneJumpSetting()"
- >
- <AppIcon name="Setting" size="24" color="#fff" />
- </div>
- </div>
- <div
- class="account-info"
- v-if="Array.isArray(accountList) && accountList.length > 0"
- >
- <div class="account-info-label">
- <div
- class="account-info-name"
- :class="{ 'active-type': temp.selected && accountList.length > 1 }"
- v-for="(temp, index) in accountList"
- :key="index"
- @click="changeAccountType(temp)"
- v-bound-phone="bindPhoneChangeAccountType(temp)"
- >
- <span class="type-name"
- >{{ accountList.length === 1 ? '账号类型:' : ''
- }}{{ temp.name }}</span
- >
- <span class="tip" v-if="activeAccountType.name === '注册用户'"
- >您尚未开通会员</span
- >
- </div>
- </div>
- <div class="account-info-content" v-if="activeAccountType">
- <div
- class="account-handle account-handle--free bg-line-gold"
- v-if="activeAccountType.name === '注册用户'"
- >
- <p>
- <span class="j-icon vip-icon">
- <img src="@/assets/image/icon/vip/vip-icon.png" alt="" />
- </span>
- <span class="text bold">开通超级订阅</span>
- <span
- class="activity-tip"
- v-if="activeAccountType.attr.subVipActMsg"
- >
- <i class="limit-time-icon"></i>
- {{ activeAccountType.attr.subVipActMsg }}
- </span>
- </p>
- <p>
- <span>立享27+项专属权益</span>
- <span
- class="self-handle-btn"
- @click="toBuyVip('buy')"
- v-bound-phone="bindPhoneToBuyVip('buy')"
- >立即开通</span
- >
- </p>
- </div>
- <div
- class="account-handle account-handle--vip"
- v-else-if="
- activeAccountType.name === '超级订阅' && activeAccountType.attr
- "
- >
- <div class="account-handle-item bg-line-gold">
- <p class="bold">到期时间:{{ activeAccountType.vipEntTime }}</p>
- <p
- class="self-handle-btn"
- @click="renewVip"
- v-bound-phone="bindPhoneRenewVip()"
- >
- 去续费 <AppIcon name="youbian" size="16" color="#171826" />
- </p>
- </div>
- <div class="gap"></div>
- <div class="account-handle-item bg-line-gold">
- <p class="bold">购买区域:{{ activeAccountType.attr.buyMsg }}</p>
- <p
- class="self-handle-btn"
- @click="updateVip(activeAccountType.attr)"
- v-bound-phone="bindPhoneUpdateVip(activeAccountType.attr)"
- >
- <span>{{
- activeAccountType.attr.upgrade ? '去升级' : '升级咨询'
- }}</span>
- <AppIcon name="youbian" size="16" color="#171826" />
- </p>
- </div>
- </div>
- <div
- class="account-handle account-handle--vip"
- v-else-if="
- activeAccountType.name === '省份订阅包' && activeAccountType.attr
- "
- >
- <div class="account-handle-item bg-line-blue">
- <p class="bold">到期时间:{{ activeAccountType.vipEntTime }}</p>
- <p
- class="self-handle-btn"
- @click="areaVip('renew')"
- v-bound-phone="bindPhoneAreaVip('renew')"
- >
- 去续费 <AppIcon name="youbian" size="16" color="#171826" />
- </p>
- </div>
- <div class="gap"></div>
- <div
- class="account-handle-item"
- :class="
- activeAccountType.attr.upgrade ? 'bg-line-blue' : 'bg-line-gold'
- "
- >
- <p class="bold">购买区域:{{ activeAccountType.attr.buyMsg }}</p>
- <p
- class="self-handle-btn"
- @click="areaVipUpdate(activeAccountType.attr)"
- v-bound-phone="bindPhoneAreaVipUpdate(activeAccountType.attr)"
- >
- <span
- >{{
- activeAccountType.attr.upgrade ? '去升级' : '开通超级订阅'
- }}
- </span>
- <AppIcon name="youbian" size="16" color="#171826" />
- </p>
- </div>
- </div>
- <!--大会员和商机管理-->
- <div class="account-handle account-handle--big-ent bg-line-gold" v-else>
- <p class="bold">
- {{ accountList.length > 1 ? '到期时间:' : '您的会员到期时间:'
- }}{{ activeAccountType.vipEntTime }}
- </p>
- <p
- class="self-handle-btn"
- @click="renewConsult"
- v-bound-phone="bindPhoneRenewConsult()"
- >
- 续费咨询 <AppIcon name="youbian" size="16" color="#171826" />
- </p>
- </div>
- </div>
- </div>
- <div class="gift-guide" v-if="isShowGiftEntry">
- <div class="gift-guide-container">
- <span class="gift-guide-text"
- >支持送好友超级订阅,快快送给好友吧!</span
- >
- <span class="gift-guide-btn" @click="sendToFriend">送给朋友</span>
- </div>
- </div>
- <!-- 订单tab-->
- <order-tabs />
- </div>
- </template>
- <script>
- import OrderTabs from './OrderTabs.vue'
- import { Sticky } from 'vant'
- import {
- getAccountInfo,
- getUserAccountInfo,
- vipGiftActivityConfigAjax,
- getSubResourcesAjax
- } from '@/api/modules'
- import { AppIcon } from '@/ui'
- import { openAppOrWxPage, dateFormatter } from '@/utils'
- import { LINKS } from '@/data'
- import { mapActions, mapGetters } from 'vuex'
- export default {
- components: {
- [Sticky.name]: Sticky,
- [AppIcon.name]: AppIcon,
- OrderTabs
- },
- data() {
- return {
- pageUserInfo: {
- avatar: new URL('@/assets/image/public/auto.png', import.meta.url).href, // 头像默认地址
- nickname: '',
- phone: '',
- bigmemberVip: ''
- },
- accountInfo: {
- hasVip: false,
- hasBigmember: false
- },
- // 是否是超级订阅赠送活动期间
- vipGiftPeriod: false,
- giftMonth: 0
- }
- },
- computed: {
- getName() {
- const { nickname, phone, jyname } = this.pageUserInfo
- const rephone = phone
- ? phone.replace(/(\d{3})\d{4}(\d{4})/, '$1 **** $2')
- : ''
- return nickname || rephone || jyname
- },
- // setBigVipPic() {
- // let url = new URL(
- // '@/assets/image/icon/big-member/icon-shiyonghy.png',
- // import.meta.url
- // ).href
- // const { bigmemberVip } = this.pageUserInfo
- // if (bigmemberVip === 1 || bigmemberVip === 5 || bigmemberVip === 7) {
- // url = new URL(
- // '@/assets/image/icon/big-member/icon-gaojihy.png',
- // import.meta.url
- // ).href
- // } else if (bigmemberVip === 2) {
- // url = new URL(
- // '@/assets/image/icon/big-member/icon-biaozhunhy.png',
- // import.meta.url
- // ).href
- // } else if (bigmemberVip === 3 || bigmemberVip === 6) {
- // url = new URL(
- // '@/assets/image/icon/big-member/icon-putonghy.png',
- // import.meta.url
- // ).href
- // } else if (bigmemberVip === 4) {
- // url = new URL(
- // '@/assets/image/icon/big-member/icon-shiyonghy.png',
- // import.meta.url
- // ).href
- // }
- // return url
- // },
- // 账户权益类型列表
- accountList() {
- return this.accountInfo.list || []
- },
- // 当前选中账户权益类型
- activeAccountType() {
- const obj = this.accountList.filter((item) => {
- return item.selected
- })
- return obj.length > 0 ? obj[0] : {}
- },
- mineClass() {
- const type = this.accountList[0] ? this.accountList[0].name : '注册用户'
- let cl = 'mine-header--blue'
- if (type === '注册用户' || type === '省份订阅包') {
- cl = 'mine-header--blue'
- } else if (type === '超级订阅') {
- cl = 'mine-header--gold'
- } else {
- cl = 'mine-header--black'
- }
- // 多个权益类型的时候默认黑棕
- if (this.accountList.length > 1) {
- cl = 'mine-header--black'
- }
- return cl
- },
- ...mapGetters('user', [
- 'userCurrentIdentity',
- 'userIdentityList',
- 'isLogin',
- 'userIdentityType',
- 'isSuper',
- 'isFree'
- ]),
- isShowGiftEntry() {
- const personal = this.userIdentityType === 0
- const isSuper = this.isSuper
- const isFree = this.isFree && this.activeAccountType.name !== '省份订阅包'
- const vipGiftPeriod = this.vipGiftPeriod
- const activeTypeVip =
- this.activeAccountType.name === '超级订阅' && isSuper
- return vipGiftPeriod && personal && (activeTypeVip || isFree)
- }
- },
- watch: {
- userCurrentIdentity: {
- handler() {
- localStorage.removeItem('mine_account_active_Type')
- },
- deep: true,
- immediate: true
- },
- isLogin() {
- localStorage.removeItem('mine_account_active_Type')
- }
- },
- created() {
- this.init()
- this.getVipActivityConfig()
- this.getGiftSource()
- },
- methods: {
- ...mapActions('user', ['getUserIdentityList']),
- init() {
- this.getUserInfo()
- this.getUserAccountInfo()
- },
- // 获取用户信息
- async getUserInfo() {
- try {
- const { error_code: code, data = {} } = await getAccountInfo()
- if (code === 0) {
- Object.assign(this.pageUserInfo, data)
- // P698 绑定手机号ABtest需求,未绑定手机号可以访问我的页面,点击页面内的元素通过通过绑定手机号弹框引导用户绑定手机号
- // this.checkUserHasBindPhone()
- }
- return data
- } catch (error) {
- return {}
- }
- },
- // 获取用户账号类型信息
- async getUserAccountInfo() {
- try {
- const { error_code: code, data } = await getUserAccountInfo()
- if (code === 0) {
- if (Array.isArray(data.list) && data.list.length > 0) {
- data.list.forEach((item, index) => {
- if (item.name && item.name.includes('大会员')) {
- data.hasBigmember = true
- } else if (item.name === '超级订阅') {
- data.hasVip = true
- }
- item.vipEntTime = item.endTime
- ? dateFormatter(item.endTime * 1000, 'yyyy-MM-dd')
- : ''
- item.selected = false
- if (index === 0) {
- item.selected = true
- }
- if (!localStorage.getItem('mine_account_active_Type')) {
- localStorage.setItem('mine_account_active_Type', item.name)
- }
- })
- }
- this.accountInfo = data || {}
- // 回显选中的账号权益类型
- this.backActiveName()
- }
- } catch (error) {
- return {}
- }
- },
- checkUserHasBindPhone() {
- const { phone } = this.pageUserInfo
- if (!phone) {
- const query = {
- mode: 'mergeBind'
- }
- this.bindPhone(query)
- }
- },
- // 加载默认头像
- errorImgFun(e) {
- e.target.src = new URL(
- '@/assets/image/public/auto.png',
- import.meta.url
- ).href
- },
- // 跳转到设置页
- jumpSetting() {
- openAppOrWxPage(LINKS.设置页面)
- },
- // 绑定手机号
- bindPhone(query = {}) {
- openAppOrWxPage(LINKS.绑定手机号, { query })
- },
- changeIdentityHandle() {
- this.$router.push('/mine/change/identity')
- },
- // 身份信息维护
- jumpIdentityKeep() {
- this.$router.push('/identity/keep')
- },
- // 账号权益类型切换
- changeAccountType(temp) {
- if (this.accountInfo.list) {
- this.accountInfo.list.forEach((item) => {
- item.selected = false
- })
- temp.selected = true
- }
- localStorage.setItem('mine_account_active_Type', temp.name)
- },
- backActiveName() {
- const active = localStorage.getItem('mine_account_active_Type')
- if (active && this.accountInfo.list) {
- this.accountInfo.list.forEach((item) => {
- item.selected = false
- if (item.name === active) {
- item.selected = true
- }
- })
- }
- },
- // 超级订阅
- toBuyVip(type) {
- location.href = `/jy_mobile/order/create/svip?type=${type}`
- },
- // 去续费
- renewVip() {
- if (this.activeAccountType.attr && this.activeAccountType.attr.renew) {
- this.toBuyVip('renew')
- } else {
- this.openCustomer()
- }
- },
- // 升级
- updateVip(item) {
- if (item.upgrade) {
- this.toBuyVip('upgrade')
- } else {
- this.openCustomer()
- }
- },
- // 省份订阅包续费/升级
- areaVip(type) {
- location.href = `/jy_mobile/order/create/areapack?type=${type}`
- },
- // 省份订阅包升级
- areaVipUpdate(item) {
- if (item.upgrade) {
- this.areaVip('upgrade')
- } else {
- // 开通超级订阅
- this.toBuyVip('buy')
- }
- },
- // 大会员or商机管理续费咨询
- renewConsult() {
- // 大会员续费咨询跳转落地页
- if (
- this.activeAccountType.name &&
- this.activeAccountType.name.includes('大会员')
- ) {
- const attr = this.activeAccountType.attr || {}
- const link = {
- app: attr.app,
- h5: attr.h5,
- wx: attr.wx,
- mini: attr.mini
- }
- openAppOrWxPage(link)
- } else {
- // 商机管理的续费咨询,咨询客服
- this.openCustomer()
- }
- },
- // 联系客服
- openCustomer() {
- if (this.$envs.inWX) {
- window.location.href = '/big/wx/page/customer'
- } else {
- window.location.href = '/jyapp/free/customer'
- }
- },
- <<<<<<< HEAD
- bindPhoneJumpSetting() {
- return {
- props: {
- name: '我的-设置'
- },
- next: () => {
- this.jumpSetting()
- }
- }
- },
- bindPhoneChangeIdentityHandle() {
- return {
- props: {
- name: '我的-身份切换'
- },
- next: () => {
- this.changeIdentityHandle()
- }
- }
- },
- bindPhoneJumpIdentityKeep() {
- return {
- props: {
- name: '我的-身份信息维护'
- },
- next: () => {
- this.jumpIdentityKeep()
- }
- }
- },
- bindPhoneChangeAccountType(temp) {
- return {
- props: {
- name: '我的-切换账号类型'
- },
- next: () => {
- this.changeAccountType(temp)
- }
- }
- },
- bindPhoneToBuyVip(type) {
- return {
- props: {
- name: '我的-开通超级订阅'
- },
- next: () => {
- this.toBuyVip(type)
- }
- }
- },
- bindPhoneRenewVip() {
- return {
- props: {
- name: '我的-超级订阅续费'
- },
- next: () => {
- this.renewVip()
- }
- }
- },
- bindPhoneUpdateVip(item) {
- return {
- props: {
- name: '我的-超级订阅升级'
- },
- next: () => {
- this.updateVip(item)
- }
- }
- },
- bindPhoneAreaVip(type) {
- return {
- props: {
- name: '我的-省份订阅包续费'
- },
- next: () => {
- this.areaVip(type)
- }
- }
- },
- bindPhoneAreaVipUpdate(item) {
- return {
- props: {
- name: '我的-省份订阅包升级'
- },
- next: () => {
- this.areaVipUpdate(item)
- }
- }
- },
- bindPhoneRenewConsult() {
- return {
- props: {
- name: '我的-大会员续费咨询'
- },
- next: () => {
- this.renewConsult()
- }
- =======
- // 获取超级订阅活动配置
- async getVipActivityConfig() {
- const { data } = await vipGiftActivityConfigAjax()
- if (data) {
- const { startTime, endTime } = data
- // 校验时间有效性
- const isValidPeriod =
- startTime && endTime && parseInt(startTime) < parseInt(endTime)
- const nowTime = Math.floor(Date.now() / 1000)
- this.vipGiftPeriod =
- isValidPeriod &&
- nowTime >= parseInt(startTime) &&
- nowTime <= parseInt(endTime)
- }
- },
- // 送好友
- sendToFriend() {
- const nowTime = Date.now()
- const expireTime = this.activeAccountType.vipEntTime
- if (!this.accountInfo.hasVip) {
- // 非超级订阅
- return this.$dialog
- .alert({
- title: '温馨提示',
- message:
- '您当前不是超级订阅会员,无法赠送给好友,您可以先购买后再赠送给好友。',
- confirmButtonText: '去购买',
- className: 'j-confirm-dialog'
- })
- .then(() => {
- this.$router.push('/order/create/svip?type=buy')
- })
- } else if (this.accountInfo.hasVip && this.giftMonth < 1) {
- // 是超级订阅 & 有到期时间 & 到期时间距现在不足1个月
- return this.$dialog
- .alert({
- title: '温馨提示',
- message:
- '您当前剩余订阅周期不满1个月,无法赠送给好友。您可以先续费后再赠送给好友。',
- confirmButtonText: '去续费',
- className: 'j-confirm-dialog'
- })
- .then(() => {
- this.$router.push('/order/create/svip?type=renew')
- })
- } else {
- this.$router.push('/giving/friend')
- }
- },
- async getGiftSource() {
- const { data } = await getSubResourcesAjax()
- if (data) {
- this.giftMonth = data?.gifted
- >>>>>>> main
- }
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .mine-header {
- position: relative;
- display: flex;
- flex-direction: column;
- padding: 0 8px 74px;
- flex-shrink: 0;
- background-repeat: no-repeat;
- background-position: center top;
- background-size: cover;
- &--blue {
- background-image: url(@/assets/image/mine/bg-blue.png);
- }
- &--black {
- background-image: url(@/assets/image/mine/bg-black.png);
- }
- &--gold {
- background-image: url(@/assets/image/mine/bg-gold.png);
- }
- .app-header-set {
- margin-right: 4px;
- margin-top: 2px;
- align-self: flex-start;
- }
- .header-info {
- display: flex;
- flex: 1;
- justify-content: space-between;
- align-items: center;
- padding: 8px 0;
- .user-info-container {
- display: flex;
- flex-direction: column;
- flex: 1;
- }
- .user-info-top {
- display: flex;
- align-items: center;
- line-height: 21px;
- margin-bottom: 3px;
- }
- .user-name {
- max-width: 164px;
- display: inline-block;
- font-size: 20px;
- line-height: 30px;
- color: #fff;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- word-break: break-all;
- margin-right: 8px;
- }
- .user-img {
- margin-right: 8px;
- width: 48px;
- height: 48px;
- position: relative;
- border: 1px solid rgba(255, 255, 255, 0.5);
- border-radius: 50%;
- img {
- border-radius: 50%;
- }
- .j-icon {
- position: absolute;
- }
- .vip-icon {
- left: 0;
- background-size: 20px;
- }
- .bigmember-icon {
- right: 0;
- bottom: 0;
- }
- }
- .j-icon {
- display: inline-block;
- width: 20px;
- height: 20px;
- }
- .base-icon {
- background-color: transparent;
- background-repeat: no-repeat;
- background-position: center;
- background-size: contain;
- margin-right: 8px;
- }
- //.icon-super-sub {
- // background-image: url(@/assets/image/icon/vip/icon-vip-gold-deep.png);
- //}
- .user-info-bottom {
- display: flex;
- align-items: center;
- .change-identity {
- display: flex;
- align-items: center;
- font-size: 10px;
- line-height: 14px;
- color: #171826;
- padding: 2px 8px;
- border-radius: 10px;
- border: 1px solid #fff;
- background: rgba(255, 255, 255, 0.65);
- margin-right: 8px;
- .identity-name {
- overflow: hidden;
- display: inline-block;
- max-width: 150px;
- }
- }
- .identity-keep {
- color: #fff;
- line-height: 18px;
- font-size: 12px;
- }
- }
- }
- .pt {
- padding-top: 24px;
- }
- .plr12 {
- padding-left: 12px;
- padding-right: 12px;
- }
- .self-handle-btn {
- display: flex;
- align-items: center;
- font-size: 12px;
- line-height: 18px;
- padding: 3px 12px;
- border-radius: 16px;
- border: 1px solid #fff;
- background: rgba(255, 255, 255, 0.65);
- color: #171826;
- }
- .j-icon {
- display: inline-block;
- width: 20px;
- height: 20px;
- border-radius: 50%;
- border: 1px solid rgba(255, 255, 255, 0.65);
- }
- .vip-icon {
- background: rgba(255, 255, 255, 0.65);
- backdrop-filter: blur(2px);
- }
- .bigmember-icon {
- background: rgba(255, 255, 255, 0.5);
- backdrop-filter: blur(2px);
- }
- .bg-line-gold {
- background: linear-gradient(90deg, #ffecce 0%, #fcd7b2 100%);
- .self-handle-btn {
- border: 1px solid rgba(255, 255, 255, 0.5);
- box-shadow: 0px 4px 12px 0px rgba(186, 105, 31, 0.32);
- }
- }
- .bg-line-blue {
- background: linear-gradient(90deg, #ddfff5 0%, #7ce8f6 100%);
- .self-handle-btn {
- border: 1px solid #fff;
- box-shadow: 0 4px 12px 0 rgba(31, 186, 177, 0.32);
- }
- }
- .limit-time-icon {
- display: inline-block;
- width: 12px;
- height: 12px;
- background: url(@/assets/image/icon/limit-time.png) no-repeat center;
- background-size: cover;
- vertical-align: text-bottom;
- }
- .account-info {
- font-size: 12px;
- color: #171826;
- margin-top: 8px;
- span {
- display: inline-block;
- }
- .account-info-label {
- display: flex;
- justify-content: flex-start;
- }
- .account-info-name {
- line-height: 18px;
- cursor: pointer;
- .type-name {
- padding: 2px 12px;
- border-radius: 11px;
- margin-right: 8px;
- }
- .tip {
- color: #fff;
- margin-left: 4px;
- }
- }
- .account-handle {
- display: flex;
- justify-content: space-between;
- margin-top: 8px;
- .gap {
- width: 8px;
- }
- &-item {
- display: flex;
- align-items: center;
- flex-direction: column;
- justify-content: center;
- flex: 1;
- text-align: center;
- padding: 8px 0 14px;
- border-radius: 12px 12px 0 0;
- color: #171826;
- box-shadow: 0px -2px 8px 0px rgba(169, 117, 39, 0.15);
- p {
- font-size: 12px;
- line-height: 18px;
- }
- p:nth-of-type(1) {
- margin-bottom: 6px;
- }
- }
- &--free {
- padding: 8px 12px 16px;
- border-radius: 12px 12px 0 0;
- flex-direction: column;
- position: relative;
- p:nth-of-type(1) {
- display: flex;
- align-items: center;
- margin-bottom: 4px;
- .text {
- font-size: 16px;
- line-height: 24px;
- margin-left: 2px;
- }
- .activity-tip {
- padding: 2px 5px;
- border-radius: 9px 0 9px 0;
- background: linear-gradient(90deg, #ff7c32 0%, #f33838 100%);
- margin-left: 4px;
- font-size: 10px;
- line-height: 14px;
- color: #fff;
- }
- }
- p:nth-of-type(2) {
- font-size: 12px;
- line-height: 18px;
- }
- .self-handle-btn {
- position: absolute;
- bottom: 18px;
- right: 12px;
- font-size: 12px;
- line-height: 18px;
- padding: 5px 12px;
- border-radius: 16px;
- border: 1px solid rgba(255, 255, 255, 0.5);
- background: rgba(255, 255, 255, 0.65);
- box-shadow: 0 4px 12px 0 rgba(186, 105, 31, 0.32);
- color: #33323a;
- }
- }
- &--big-ent {
- color: #171826;
- align-items: center;
- padding: 9px 16px 14px 12px;
- border-radius: 12px 12px 0px 0px;
- box-shadow: 0 -2px 8px 0 rgba(169, 117, 39, 0.15);
- }
- }
- }
- .icon-youbian {
- vertical-align: middle;
- }
- }
- .mine-header--blue {
- .account-info {
- .type-name {
- background: #b9f1f8;
- }
- }
- }
- .mine-header--gold {
- .account-info {
- .type-name {
- background: #fae7ca;
- }
- }
- }
- .mine-header--black {
- .account-info {
- .type-name {
- background: linear-gradient(90deg, #171826 0%, #444444 100%);
- color: #fae7ca;
- }
- .active-type {
- .type-name {
- background: #fae7ca;
- color: #1b1a2a;
- }
- }
- }
- .single-identity-container {
- .change-identity {
- background: #171826 !important;
- border-color: #171826 !important;
- color: #fae7ca !important;
- }
- }
- }
- .bold {
- font-weight: bold;
- }
- .gift-guide {
- position: relative;
- height: 58px;
- //margin: -4px -8px -8px;
- background: linear-gradient(272.3deg, #ffdbb9 17%, #fff2dd 100%);
- //border-radius: 0 16px 0 0;
- //overflow: hidden;
- margin-bottom: -13px;
- &-container {
- position: absolute;
- left: 0;
- right: 0;
- height: 100%;
- margin: -4px -8px -8px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 6px 20px 20px;
- background: rgba(255, 255, 255, 0.8);
- backdrop-filter: blur(10px);
- border-radius: 0 16px 0 0;
- }
- &-text {
- color: #171826;
- font-size: 12px;
- line-height: 18px;
- }
- &-btn {
- padding: 1px 12px;
- border: 1px solid rgba(255, 255, 255, 0.5);
- background: rgba(250, 231, 202, 1);
- box-shadow: 0px 4px 12px 0px rgba(186, 105, 31, 0.32);
- border-radius: 16px;
- font-size: 14px;
- line-height: 20px;
- color: #171826;
- box-sizing: border-box;
- }
- }
- ::v-deep {
- .order-tabs {
- position: absolute;
- width: 100%;
- left: 0;
- bottom: 0;
- //height: 81px;
- border-top-right-radius: 16px;
- //box-shadow: 0 -8px 12px 0 rgba(92, 31, 5, 0.15);
- background: linear-gradient(180deg, #fff 0%, #f5f6f7 100%);
- }
- }
- </style>
|