|
|
|
@ -1,11 +1,11 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<!-- :style="{ minHeight: `calc(100vh - ${navbarHeight}px)` }" -->
|
|
|
|
<!-- :style="{ minHeight: `calc(100vh - ${navbarHeight}px)` }" -->
|
|
|
|
<view class="p-home-inedx g_w_all g_kuaishou" :class="computeCode == -1 ? 'g_flex_column_center' : ''" :style="{ 'background-image': `linear-gradient(to bottom, ${themeColor} 0%, ${themeColor} 130px, #ededed 220px, #ededed 100%)`, minHeight: `calc(100vh)` }">
|
|
|
|
<view class="p-home-inedx g_w_all g_kuaishou" :class="computeCode == -1 ? 'g_flex_column_center' : ''" :style="{ minHeight: `calc(100vh)` }">
|
|
|
|
<div class="navContainer">
|
|
|
|
<div class="navContainer" :style="{ backgroundImage: `linear-gradient(to bottom, ${themeColor}, ${themeColorRgba(0.98)})` }">
|
|
|
|
<u-navbar :is-back="false" :is-fixed="true" :borderBottom="false" background="transparent" :title-bold="false">
|
|
|
|
<u-navbar :is-back="false" :is-fixed="true" :borderBottom="false" background="transparent" :title-bold="false">
|
|
|
|
<view class="g_flex_row_start flex_center g_fs_20 g_pl_12">
|
|
|
|
<view class="g_flex_row_start flex_center g_fs_20 g_pl_12">
|
|
|
|
<view><img :src="appInfo.logo" alt="" class="g_w_32 g_h_32 g_radius_50" /></view>
|
|
|
|
<view><img :src="appInfo.logo" alt="" class="g_w_32 g_h_32 g_radius_50" /></view>
|
|
|
|
<view class="g_ml_8 g_mr_8 g_fw_600 g_ell_1 webfont" style="max-width: 150px">{{ appInfo.appName }}</view>
|
|
|
|
<view class="g_ml_8 g_mr_8 g_fw_600 g_ell_1 webfont" :style="{ maxWidth: '150px', color: appNameColor }">{{ appInfo.appName }}</view>
|
|
|
|
<!-- <view class="g_mr_6">|</view>
|
|
|
|
<!-- <view class="g_mr_6">|</view>
|
|
|
|
<view>信息真·价格高</view> -->
|
|
|
|
<view>信息真·价格高</view> -->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
@ -15,7 +15,7 @@
|
|
|
|
<rh-loading marginBottom="g_mb_130" />
|
|
|
|
<rh-loading marginBottom="g_mb_130" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view v-show="computeCode > -1">
|
|
|
|
<view v-show="computeCode > -1">
|
|
|
|
<view class="g_position_rela g_flex_row_center">
|
|
|
|
<view class="g_position_rela g_flex_row_center toudom" :style="{ backgroundImage: `linear-gradient(to bottom, ${themeColorRgba(0.98)}, #ededed)` }">
|
|
|
|
<view class="the_city g_flex_column_center" style hover-class="thover" @click="goCity">
|
|
|
|
<view class="the_city g_flex_column_center" style hover-class="thover" @click="goCity">
|
|
|
|
<view class="g_flex_row_center">
|
|
|
|
<view class="g_flex_row_center">
|
|
|
|
<view class="g_fs_16 g_fw_600 g_ml_10" style="width: 36px; display: inline-block">
|
|
|
|
<view class="g_fs_16 g_fw_600 g_ml_10" style="width: 36px; display: inline-block">
|
|
|
|
@ -576,7 +576,21 @@ export default {
|
|
|
|
that.getList("concat");
|
|
|
|
that.getList("concat");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
|
|
|
|
appNameColor() {
|
|
|
|
|
|
|
|
const darkThemes = ['#D81010', '#002470'];
|
|
|
|
|
|
|
|
return darkThemes.includes(this.themeColor) ? '#ffffff' : '';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
themeColorRgba(alpha) {
|
|
|
|
|
|
|
|
let hex = this.themeColor.replace('#', '');
|
|
|
|
|
|
|
|
if (hex.length === 3) hex = hex.split('').map(c => c + c).join('');
|
|
|
|
|
|
|
|
let r = parseInt(hex.substring(0, 2), 16);
|
|
|
|
|
|
|
|
let g = parseInt(hex.substring(2, 4), 16);
|
|
|
|
|
|
|
|
let b = parseInt(hex.substring(4, 6), 16);
|
|
|
|
|
|
|
|
return `rgba(${r},${g},${b},${alpha})`;
|
|
|
|
|
|
|
|
},
|
|
|
|
initData($data,callback=() => {}){
|
|
|
|
initData($data,callback=() => {}){
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
if(uni.getStorageSync("apply-token")){
|
|
|
|
if(uni.getStorageSync("apply-token")){
|
|
|
|
|