论坛风格切换切换到宽版
  • 84阅读
  • 16回复

打开浏览器 [复制链接]

上一主题 下一主题
离线北斗星

只看该作者 10楼  发表于: 2025-11-07
离线北斗星

只看该作者 11楼  发表于: 2025-11-07
module.exports = {
    // 配置路径别名
    configureWebpack: {
        devServer: {
            // 调试时允许内网穿透,让外网的人访问到本地调试的H5页面
            disableHostCheck: true,
            //port: '6680', //端口号
            proxy: {
                '/api': { // 接口请求中 从 /host 这里 进行代理
                    target: 'http://api1.zhaogongla.cn:6680/api/', //这里后台的地址模拟的;应该填写你们真实的后台接口
                    changeOrigin: true, // 允许跨域
                    pathRewrite: {
                        '^/api': '' // 重定向 为空
                    }
                }
            }
        }
    }
    // productionSourceMap: false,
}
离线北斗星

只看该作者 12楼  发表于: 2025-11-07
//const BASE_URL = 'http://api.13.com/api/'  //'http://localhost:8082'
//const BASE_URL = 'http://api1.zhaogongla.cn:6680/api/'
const BASE_URL = '/api/'
//const BASE_URL = process.env.NODE_ENV === 'development' ? "/api/" : "http://api1.zhaogongla.cn:6680/api/";
/* let BASE_URL
if (process.env.NODE_ENV === 'development' && process.env.UNI_PLATFORM === 'h5') {
    // 本地开发环境且是h5端
    BASE_URL = '/api/'
} else if (process.env.NODE_ENV === 'production' && process.env.UNI_PLATFORM === 'h5') {
    // 打包环境且是h5端
    BASE_URL= 'http://api1.zhaogongla.cn:6680/api/'    //这里的接口地址和manifest.json里面写的一致
} */
离线北斗星

只看该作者 13楼  发表于: 2025-11-07


    location /api/ {
    proxy_pass http://api1.zhaogongla.cn:6680/api/;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    add_header 'Access-Control-Allow-Origin' '*';
    add_header 'Access-Control-Allow-Methods' 'GET, POST';
    }
离线北斗星

只看该作者 14楼  发表于: 2025-11-08
location /api/ {
            # 把 /api 路径下的请求转发给真正的后端服务器
            proxy_pass http://localhost:18080/;

            # 把host头传过去,后端服务程序将收到your.domain.name, 否则收到的是localhost:18080
            proxy_set_header Host $http_host;

            # 把cookie中的path部分从/api替换成/service
            proxy_cookie_path /api /;

            # 把cookie的path部分从localhost:18080替换成your.domain.name
            proxy_cookie_domain localhost:18080 tosim.top;
        }
离线北斗星

只看该作者 15楼  发表于: 2025-11-09
1. 基础发光效果(单色光晕)
css
Copy Code
.glow-text {
  color: #fff;
  text-shadow: 0 0 10px #00ff00,  /* 水平偏移 垂直偏移 模糊半径 颜色 */
               0 0 20px #00ff00;
  font-size: 3rem;
}
2. 霓虹灯效果(多色渐变)
css
Copy Code
.neon-text {
  color: #fff;
  text-shadow:
    0 0 5px #ff00ff,
    0 0 10px #ff00ff,
    0 0 20px #ff00ff,
    0 0 40px #00ffff,
    0 0 80px #00ffff;
  animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
      0 0 5px #ff00ff,
      0 0 10px #ff00ff,
      0 0 20px #ff00ff,
      0 0 40px #00ffff,
      0 0 80px #00ffff;
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}
3. 外发光+内发光组合
css
Copy Code
.combined-glow {
  color: rgba(255,255,255,0.8);
  text-shadow:
    0 0 8px #ff0000,          /* 外发光 */
    0 0 16px #ff0000,
    inset 0 0 8px #ffffff;    /* 内发光(需配合背景色) */
  background-color: #000;
  padding: 20px;
}
‌参数说明:‌

text-shadow格式:x-offset y-offset blur-radius color
多组阴影用逗号分隔可实现叠加效果
使用animation可以实现动态闪烁效果
‌注意事项:‌

发光效果在深色背景上更明显
模糊半径(blur-radius)越大,光晕范围越广
可通过JavaScript动态修改阴影颜色实现交互效果
🚀 ‌高效开发必备工具‌ 🚀
🎯 一键安装IDE插件,智能感知本地环境💡精准解答,深得你心 ✨ 开启高效开发新境界
🚀 ‌立即体验‌ → 👉文心快码
离线北斗星

只看该作者 16楼  发表于: 2025-11-10
  1. <template>
  2.     <uni-card is-full :is-shadow="false">
  3.               <view><text class="uni-h6">姓名预估评分(娱乐,仅参考)</text></view>
  4.             </uni-card>
  5.     <view style="background-color: #fff;">
  6.         <text class="s"><text class="y">{{ sancai.s}} </text><text>分</text></text>
  7.         <uni-section title="用字分析" type="line"></uni-section>
  8.         <view style="padding-left:80px;">
  9.             <table class="table" style="width:auto;text-align: center;">
  10.                     <tbody>
  11.                         <tr><td></td><td>繁体</td><td>拼音</td><td>康熙笔划</td><td>五行</td></tr>
  12.                         
  13.                                         <tr v-for="(item ,index) in datas.namelist" :index="index" :key="index">
  14.                                             <td v-if="isprivacy==2">
  15.                                                 <text v-if="(datas.namelist.length-2)==index && (datas.namelist.length>2)" class="mosaic-text combined-glow">{{ item.namechr}}</text>
  16.                                                 <text v-else-if="(datas.namelist.length-1)==index && (datas.namelist.length<=2)" class="mosaic-text combined-glow">{{ item.namechr}}</text>
  17.                                                 <text v-else class="combined-glow">{{ item.namechr}}</text>
  18.                                             </td>
  19.                                             <td v-else class="combined-glow">{{ item.namechr}}</td>
  20.                                             
  21.                                             <td v-if="isprivacy==2">
  22.                                                 <text v-if="(datas.namelist.length-2)==index && (datas.namelist.length>2)" class="mosaic-text">{{ item.fantizi}}</text>
  23.                                                 <text v-else-if="(datas.namelist.length-1)==index && (datas.namelist.length<=2)" class="mosaic-text">{{ item.fantizi}}</text>
  24.                                                 <text v-else>{{ item.fantizi}}</text>
  25.                                             </td>
  26.                                             <td v-else>{{ item.fantizi}}</td>
  27.                                             
  28.                                             <td>{{ item.pinyin}}</td>
  29.                                             <td>{{ item.strokes}}</td>
  30.                                             <td>{{ item.wuxing}}</td>
  31.                                         </tr>
  32.                     </tbody>
  33.             </table>
  34.         </view>
  35.         
  36.     </view>
  37.     <uni-section title="六格分析" type="line"></uni-section>
  38.     <view style="background-color: #ffffff;text-align: right;padding-right: 20rpx;" >
  39.         <uni-tooltip content="除天格外,其他显示红色,即为凶,绿色为吉,蓝色为半吉。">说明</uni-tooltip>
  40.         <view @click="bname()"><text class="ff1">    </text></view>
  41.     </view>
  42.     <view style="background-color: #ffffff; display: grid;
  43.   place-items: center;
  44.   height: 20vh">
  45.         <div style="font-size:13px;position:relative;margin-left:0px; width:300px; height:170px; overflow:hidden; background-repeat:no-repeat; background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACqCAYAAAAX43IEAAAC30lEQVR4nO3d0W3CMBRA0aZiJHZiJnZiJ/e3X8hqrJoL5wyArChcPUdRfIwxxhdAwPfuBQDMEiwgQ7CADMECMgQLyBAsIEOwgAzBAjIEC8gQLCBDsIAMwQIyLrsX8GqO23X3Et7OuD92L2GJVffGu1yPHUxYQIZgARm2hE8Y3fntzP3gUcMaJiwgQ7CADMECMgQLyBAsIEOwgAzBAjIEC8gQLCBDsIAMwQIyBAvIECwgQ7CADMECMgQLyBAsIEOwgAzBAjIEC8gQLCBDsIAMwQIyBAvIECwgQ7CADMECMgQLyBAsIEOwgAzBAjIuuxfA6zpu1yW/M+6PJb+z26rrwd+ZsIAMwQIybAlh0rtsbcsECyZ5prefYDHFn4xX4BkWkGHCgklnpkyvRKxhwgIyBAvIECwgQ7CADMECMgQLyBAsIEOwgAzBAjIEC8gQLCBDsIAMwQIyBAvIECwgQ7CADMECMgQLyBAsIEOwgAzBAjIEC8gQLCBDsIAMwQIyBAvIECwgQ7CADMECMgQLyLjsXgBUHLfr7iV8PBMWkCFYQIYtIUwa98fuJXw8ExaQYcKCSaseupvU/s6EBWQIFpBhSwiTzmzlvMO1hgkLyBAsIEOwgAzBAjIEC8gQLCBDsIAMwQIyBAvIECwgQ7CADMECMgQLyBAsIEOwgAzBAjIEC8gQLCBDsIAMwQIyBAvIECwgQ7CADOcSMuXMuXqOZmcVExaQYcJ64uxpvSaL9+L05v1MWECGYAEZxxhj7F4EwAwTFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpDxrx/w8wE0aHm1j1CasIAMwQIyfMAPyDBhARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZP+PdOcYDYaNOAAAAAElFTkSuQmCC) -12px 0px;">
  46.         <div class="wg" :style="{color:wgColor}">外格 {{ wg.num }}<br>({{ wg.wx }})</div>
  47.         <div class="bg" :style="{color:bgColor}">变格{{ bg.num }}<br>({{ bg.wx }})</div>
  48.                             <!-- //if (datas.type==1)
  49.         <div style="position:absolute; left:95px; top:68px; width:50px; height:18px; text-align:left;"></div> -->
  50.         <view v-if="datas.type=='1'">
  51.             <view v-if="lname.namelength=='3'">
  52.                 <div style="position:absolute; left:150px; top:5px; width:50px; height:18px; text-align:left">  1</div>
  53.                 <view v-for="(item ,index) in datas.namelist" :index="index" :key="index">
  54.                 <div v-if="index===0" style="position:absolute; left:150px; top:40px; width:50px; height:18px"><text class="combined-glow">{{ item.namechr}}</text> {{ item.strokes}}</div>
  55.                 <div v-if="index===1" style="position:absolute; left:150px; top:78px; width:50px; height:18px"><text v-if="isprivacy==2" class="mosaic-text"><text class="combined-glow">{{ item.namechr}}</text></text><text v-else><text class="combined-glow">{{ item.namechr}}</text></text>  {{ item.strokes}}</div>
  56.                 <div v-if="index===2" style="position:absolute; left:150px; top:110px; width:50px; height:18px"><text class="combined-glow">{{ item.namechr}}</text> {{ item.strokes}}</div>
  57.                 </view>
  58.             </view>
  59.             <view v-else-if="lname.namelength=='2'">
  60.                 <div style="position:absolute; left:150px; top:5px; width:50px; height:18px; text-align:left">  1</div>
  61.                 <view v-for="(item ,index) in datas.namelist" :index="index" :key="index">
  62.                 <div v-if="index===0" style="position:absolute; left:150px; top:40px; width:50px; height:18px"><text class="combined-glow">{{ item.namechr}}</text> {{ item.strokes}}</div>
  63.                 <div v-if="index===1" style="position:absolute; left:150px; top:78px; width:50px; height:18px"><text v-if="isprivacy==2" class="mosaic-text"><text class="combined-glow">{{ item.namechr}}</text></text><text v-else><text class="combined-glow">{{ item.namechr}}</text></text> {{ item.strokes}}</div>
  64.                 </view>
  65.                 <div style="position:absolute; left:150px; top:110px; width:50px; height:18px">1</div>
  66.             </view>
  67.             <view v-else-if="lname.namelength=='4'">
  68.                 <view v-for="(item ,index) in datas.namelist" :index="index" :key="index">
  69.                 <div v-if="index===0" style="position:absolute; left:150px; top:5px; width:50px; height:18px"><text class="combined-glow">{{ item.namechr}}</text> {{ item.strokes}}</div>
  70.                 <div v-if="index===1" style="position:absolute; left:150px; top:40px; width:50px; height:18px"><text class="combined-glow">{{ item.namechr}}</text> {{ item.strokes}}</div>
  71.                 <div v-if="index===2" style="position:absolute; left:150px; top:78px; width:50px; height:18px"><text v-if="isprivacy==2" class="mosaic-text"><text class="combined-glow">{{ item.namechr}}</text></text><text v-else><text class="combined-glow">{{ item.namechr}}</text></text> {{ item.strokes}}</div>
  72.                 <div v-if="index===3" style="position:absolute; left:150px; top:110px; width:50px; height:18px"><text class="combined-glow">{{ item.namechr}}</text> {{ item.strokes}}</div>
  73.                 </view>
  74.             </view>
  75.             <view v-else>
  76.             </view>
  77.         </view>
  78.         <view v-else>
  79.             <view v-if="lname.namelength=='3'">
  80.                 <view v-for="(item ,index) in datas.namelist" :index="index" :key="index">
  81.                 <div v-if="index===0" style="position:absolute; left:150px; top:5px; width:50px; height:18px"><text class="combined-glow">{{ item.namechr}}</text> {{ item.strokes}}</div>
  82.                 <div v-if="index===1" style="position:absolute; left:150px; top:40px; width:50px; height:18px"><text v-if="isprivacy==2" class="mosaic-text"><text class="combined-glow">{{ item.namechr}}</text></text><text v-else><text class="combined-glow">{{ item.namechr}}</text></text> {{ item.strokes}}</div>
  83.                 <div v-if="index===2" style="position:absolute; left:150px; top:78px; width:50px; height:18px"><text class="combined-glow">{{ item.namechr}}</text> {{ item.strokes}}</div>
  84.                 </view>
  85.                 <div style="position:absolute; left:150px; top:110px; width:50px; height:18px">1</div>
  86.             </view>
  87.             <view v-else-if="lname.namelength=='4'">
  88.                 <view v-for="(item ,index) in datas.namelist" :index="index" :key="index">
  89.                 <div v-if="index===0" style="position:absolute; left:150px; top:5px; width:50px; height:18px"><text class="combined-glow">{{ item.namechr}}</text> {{ item.strokes}}</div>
  90.                 <div v-if="index===1" style="position:absolute; left:150px; top:40px; width:50px; height:18px"><text class="combined-glow">{{ item.namechr}}</text> {{ item.strokes}}</div>
  91.                 <div v-if="index===2" style="position:absolute; left:150px; top:78px; width:50px; height:18px"><text v-if="isprivacy==2" class="mosaic-text"><text class="combined-glow">{{ item.namechr}}</text></text><text v-else><text class="combined-glow">{{ item.namechr}}</text></text> {{ item.strokes}}</div>
  92.                 <div v-if="index===3" style="position:absolute; left:150px; top:110px; width:50px; height:18px"><text class="combined-glow">{{ item.namechr}}</text> {{ item.strokes}}</div>
  93.                 </view>
  94.             </view>
  95.             <view v-else>
  96.             </view>
  97.         </view>
  98.         <div class="zg" :style="{color:zgColor}">总格 {{ zg.num }} ({{ zg.wx }})</div>
  99.         <div class="tg" :style="{color:tgColor}">天格 {{ tg.num }}<br>({{ tg.wx }})</div>
  100.         <div class="rg" :style="{color:rgColor}">人格 {{ rg.num }}<br>({{ rg.wx }})</div>
  101.         <div class="dg" :style="{color:dgColor}">地格 {{ dg.num }}<br>({{ dg.wx }})</div>
  102.         </div>
  103.     </view>
  104.     <uni-section title="正文" type="line"></uni-section>
  105.         <view class="newTab">
  106.             <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" style-type="text"
  107.                 active-color="#8968CD"></uni-segmented-control>
  108.             <view class="content">
  109.                 <view v-show="current===0">
  110.                     <uni-card title="姓名对健康的影响" :isFull="true" v-if="showData">
  111.                         
  112.                         <view class="a"><text class="uni-body"> {{ lname.health }}</text></view>
  113.                         
  114.                     </uni-card>
  115.                     <uni-card title="一、姓名影响先天主运" :isFull="true" >
  116.                         <view class="t"><text :style="{color:lname.n1a}">可以测试先天主运可享受的运势,并可预测此人性格如何。<br>
  117.                         人格的解析:人格数又称主运,为先天主运,是整个姓名的中心点,影响人的一生命运。。</text></view>
  118.                         <view class="a">
  119.                             <text class="uni-body"><view>您的个性分析(性格)</view>
  120.                               <view class="b"><text>{{ lname.n1b }}</text> </view>
  121.                             </text>
  122.                         </view>
  123.                         <view class="a">
  124.                             <text class="uni-body"><view>{{ lname.n1c }} (<text :style="{color:lname.n1a}">{{ lname.n1d }}</text>)</view>
  125.                                <view class="b"><text>{{ lname.n1e }}</text></view>
  126.                             </text>
  127.                         </view>
  128.                     </uni-card>
  129.                     
  130.                         <uni-card title="二、姓名影响后天主运,即您通过努力能得到的结果。" :isFull="true" >
  131.                             <view class="t"><text :style="{color:lname.n2a}">变格的解析:代表自己后天主运,即努力的结果。</text></view>
  132.                             <view class="a">
  133.                                 <text class="uni-body"><view>{{ lname.n2b }} (<text :style="{color:lname.n2a}">{{ lname.n2c }}</text>)</view>
  134.                                    <view class="b"><text>{{ lname.n2d }}</text></view>
  135.                                 </text>
  136.                             </view>
  137.                         </uni-card>
  138.                         <uni-card title="三、少年运,这是人生中1-15岁的运势" :isFull="true" >
  139.                             <view class="a">
  140.                                 <text class="uni-body"><view>少年运解释</view>
  141.                                    <view class="b"><text>{{ lname.n3b }}</text></view>
  142.                                 </text>
  143.                             </view>
  144.                             <view class="a">
  145.                                 <text class="uni-body"><view>地格影响少年运:{{ lname.n3c }} (<text :style="{color:lname.n3a}">{{ lname.n3d }}</text>)</view>
  146.                                    <view class="b"><text>{{ lname.n3e }}</text></view>
  147.                                 </text>
  148.                             </view>
  149.                             <view class="a">
  150.                                 <text class="uni-body"><view>天格影响少年运:{{ lname.n3f }} (<text style="color:#ff0000;">{{ lname.n3g }}</text>)(一般不看此吉凶)</view>
  151.                                    <view class="b"><text>{{ lname.n3h }}</text></view>
  152.                                 </text>
  153.                             </view>
  154.                         </uni-card>
  155.                         <uni-card title="三、青年运,这是人生中12-27岁的运势" :isFull="true" >
  156.                             <view class="a">
  157.                                 <text class="uni-body"><view>青年运解释</view>
  158.                                    <view class="b"><text>{{ lname.n4a }}</text></view>
  159.                                 </text>
  160.                             </view>
  161.                             <view class="a">
  162.                                 <text class="uni-body"><view>人格影响青年运:{{ lname.n4b }} (<text style="color:#ff0000;">{{ lname.n4c }}</text>)</view>
  163.                                    <view class="b"><text>{{ lname.n4d }}</text></view>
  164.                                 </text>
  165.                             </view>
  166.                             <view class="a">
  167.                                 <text class="uni-body"><view>地格影响青年运:{{ lname.n4e }} (<text style="color:#ff0000;">{{ lname.n4f }}</text>)</view>
  168.                                    <view class="b"><text>{{ lname.n4g }}</text></view>
  169.                                 </text>
  170.                             </view>
  171.                         </uni-card>
  172.                         <uni-card title="五、壮年运,这是人生中24-39岁的运势" :isFull="true" >
  173.                             <view class="a">
  174.                                 <text class="uni-body"><view>壮年运解释</view>
  175.                                    <view class="b"><text>{{ lname.n5a }}</text></view>
  176.                                 </text>
  177.                             </view>
  178.                             <view class="a">
  179.                                 <text class="uni-body"><view>人格影响壮年运:{{ lname.n5b }} (<text style="color:#ff0000;">{{ lname.n5c }}</text>)</view>
  180.                                    <view class="b"><text>{{ lname.n5d }}</text></view>
  181.                                 </text>
  182.                             </view>
  183.                         </uni-card>
  184.                         <uni-card title="六、中年运,这是人生中36-51岁的运势" :isFull="true" >
  185.                             <view class="a">
  186.                                 <text class="uni-body"><view>中年运解释</view>
  187.                                    <view class="b"><text>{{ lname.n6a }}</text></view>
  188.                                 </text>
  189.                             </view>
  190.                             <view class="a">
  191.                                 <text class="uni-body"><view>人格影响中年运:{{ lname.n6b }} (<text style="color:#ff0000;">{{ lname.n6c }}</text>)</view>
  192.                                    <view class="b"><text>{{ lname.n4d }}</text></view>
  193.                                 </text>
  194.                             </view>
  195.                             <view class="a">
  196.                                 <text class="uni-body"><view>外格影响中年运:{{ lname.n6e }} (<text style="color:#ff0000;">{{ lname.n6f }}</text>)</view>
  197.                                    <view class="b"><text>{{ lname.n6g }}</text></view>
  198.                                 </text>
  199.                             </view>
  200.                         </uni-card>
  201.                         <uni-card title="七、老年运,直接反应出48-63岁时的人生" :isFull="true" >
  202.                             <view class="a">
  203.                                 <text class="uni-body"><view>老年运解释</view>
  204.                                    <view class="b"><text>{{ lname.n7a }}</text></view>
  205.                                 </text>
  206.                             </view>
  207.                             <view class="a">
  208.                                 <text class="uni-body"><view>总格:{{ lname.n7b }} (<text style="color:#ff0000;">{{ lname.n7c }}</text>)</view>
  209.                                    <view class="b"><text>{{ lname.n7d }}</text></view>
  210.                                 </text>
  211.                             </view>
  212.                         </uni-card>
  213.                         <uni-card title="八、姓名影响家庭运" :isFull="true" >
  214.                             
  215.                             <view class="a"><text class="uni-body"> 请点击“家庭运测算”工具,系统将根据“夫”姓与您名字组合测算家庭运。</text></view>
  216.                             
  217.                         </uni-card>
  218.                         <uni-card title="天格的解析" :isFull="true" >
  219.                             <view class="t"><text :style="{color:lname.n8a}">为姓氏格,姓氏来源与祖先,有“传承”的意思,原则上不能变更只能接受。代表着父母、长辈、上级、领导等。天格数是先祖留传下来的,其数理对人影响不大。</text></view>
  220.                             <view class="a">
  221.                                 <text class="uni-body"><view>{{ lname.n8b }} (<text style="color:#ff0000;">{{ lname.n8c }}</text>)</view>
  222.                                    <view class="b"><text>{{ lname.n8d }}</text></view>
  223.                                 </text>
  224.                             </view>
  225.                         </uni-card>
  226.                         <uni-card title="外格的解析" :isFull="true" >
  227.                             <view class="t"><text :style="{color:lname.n9a}">代表兄弟、朋友、社会环境,影响人的社交能力、智慧等,其数理不用重点去看。{{ lname.n9e }}</text></view>
  228.                             <view class="a">
  229.                                 <text class="uni-body"><view>{{ lname.n9b }} (<text style="color:#ff0000;">{{ lname.n9c }}</text>)</view>
  230.                                    <view class="b"><text>{{ lname.n9d }}</text></view>
  231.                                 </text>
  232.                             </view>
  233.                         </uni-card>
  234.                         <uni-card title="总格的解析:代表自己的老年运。" :isFull="true" >
  235.                             <view class="t"><text :style="{color:lname.n10a}">外格又称变格,影响人的社交能力、智慧等,其数理不用重点去看。</text></view>
  236.                             <view class="a">
  237.                                 <text class="uni-body"><view>{{ lname.n10b }} (<text style="color:#ff0000;">{{ lname.n10c }}</text>)</view>
  238.                                    <view class="b"><text>{{ lname.n10d }}</text></view>
  239.                                 </text>
  240.                             </view>
  241.                         </uni-card>
  242.                         <uni-section title="姓名总评" type="circle">
  243.                             <uni-card >
  244.                                 <view class="d" style=""><text>{{ sancai.r }} </text></view>
  245.                             </uni-card>
  246.                         </uni-section>
  247.                         
  248.                     
  249.                 </view>
  250.                 <view v-show="current===1">
  251.                     <view>
  252.                         <uni-card title="数理影响分析" :isFull="true" >
  253.                             <view v-for="(items ,indexs) in lname.list" :index="indexs" :key="indexs">
  254.                                 <text style="font-weight: bold;">{{ indexs }} :</text>
  255.                                 <text v-for="(item ,index) in items" :index="index" :key="index" :style="{color:item}"> {{ index }}  </text>
  256.                             </view>
  257.                         </uni-card>    
  258.                         <uni-card title="数理影响解析" :isFull="true" >
  259.                             <view v-for="(items ,indexs) in lname.shuli" :index="indexs" :key="indexs">
  260.                                 <text style="font-weight: bold;" :style="{color:items.a}">{{ indexs }} :</text> <text>{{ items.b }}</text>
  261.                                 
  262.                             </view>
  263.                         </uni-card>    
  264.                     </view>
  265.                 </view>
  266.                 
  267.                 
  268.                 
  269.                 <view v-show="current===2">
  270.                     <uni-section title="姓名的音象" type="circle">
  271.                         <uni-card >
  272.                             <view class="d" style=""><text>{{ sancai.t }} </text></view>
  273.                         </uni-card>
  274.                     </uni-section>
  275.                     <!-- <uni-section title="圆形装饰-主标题" sub-title="副标题" type="circle" ></uni-section> -->
  276.                     <uni-section overflow title="字义解释" type="circle">
  277.                         <uni-card v-for="(item ,index) in datas.namelist" :index="index" :key="index">
  278.                             <view><text class="zi">{{ item.namechr }}</text><text class="a1">{{ item.struct }}</text></view>
  279.                             <view><text class="a2">字义解释:{{ item.ziyishort }}</text></view>
  280.                             <view><text class="uni-body" style="font-weight: normal;">{{ item.ziyilong }}</text></view>
  281.                             <view><text class="uni-body" style="font-weight: normal;">{{ item.ziyitxt }}</text></view>
  282.                             <view><text class="uni-body" style="font-weight: normal;">{{ item.zdmeaning }}</text></view>
  283.                         </uni-card>
  284.                     </uni-section>
  285.                 </view>
  286.                 
  287.                 <!-- <view v-show="current===3">
  288.                     <uni-section title="五行之气" type="circle">
  289.                         <uni-card >
  290.                             <view class="d" style=""><text>{{ fenxi.xinge }} </text></view>
  291.                             <view class="d" style=""><text><strong>性格:</strong>{{ fenxi.xinge1 }} </text></view>
  292.                         </uni-card>
  293.                     </uni-section>
  294.                     
  295.                     <uni-section title="三才配置" type="circle">
  296.                         <uni-card >
  297.                             <uni-card >
  298.                                 <view class="d" style=""><text>{{ sancai.u }} {{ sancai.v }} </text></view>
  299.                                 <view class="d" style=""><text><strong>解释:</strong>{{ sancai.w }} </text></view>
  300.                             </uni-card>
  301.                         </uni-card>
  302.                     </uni-section>
  303.                     
  304.                     <uni-section title="铁口直断一" type="circle">
  305.                         <uni-card >
  306.                             <view class="d" style="">
  307.                                 <view v-for="(items ,indexs) in fenxi.shuli" :index="indexs" :key="indexs">
  308.                                     <text style="font-size:30rpx;font-weight: bold;">{{ indexs }}</text>
  309.                                     <view v-for="(item ,index) in items" :index="index" :key="index">
  310.                                     <text>{{ item }}</text>
  311.                                     </view>
  312.                                 </view>
  313.                             </view>
  314.                         </uni-card>
  315.                     </uni-section>
  316.                     
  317.                     <uni-section title="铁口直断二" type="circle">
  318.                         <uni-card >
  319.                             <view class="d" style="">
  320.                                 <view v-for="(items ,indexs) in fenxi.shulitwo" :index="indexs" :key="indexs">
  321.                                     <text style="font-size:30rpx;font-weight: bold;">{{ indexs }}</text>
  322.                                     
  323.                                     <text>{{ items }}</text>
  324.                                     
  325.                                 </view>
  326.                             </view>
  327.                         </uni-card>
  328.                     </uni-section>
  329.                     
  330.                     
  331.                     <uni-section title="人格定性格及体型" type="circle">
  332.                         <uni-card >
  333.                             <view class="d" style=""><text>{{ sancai.t }} </text></view>
  334.                         </uni-card>
  335.                     </uni-section>
  336.                     
  337.                 </view> -->
  338.                 
  339.             </view>
  340.         </view>
  341.     
  342.     <!-- <view>
  343.             <web-view src="http://www.zhenming.cc/name/612DEF4CA22BEZZZJYI"></web-view>
  344.         </view> -->
  345.         
  346.                 
  347.                 
  348. </template>
  349. <script>
  350.     export default {
  351.         components: {},
  352.         data() {
  353.             return {
  354.                 showData:true,
  355.                 datas:{},
  356.                 lname:{},
  357.                 xname:{},
  358.                 wg:{},
  359.                 bg:{},
  360.                 zg:{},
  361.                 tg:{},
  362.                 rg:{},
  363.                 dg:{},
  364.                 wgColor:'',
  365.                 bgColor:'',
  366.                 zgColor:'',
  367.                 tgColor:'',
  368.                 rgColor:'',
  369.                 dgColor:'',
  370.                 sancai:{},
  371.                 fenxi:{},
  372.                 current:0,
  373.                 //items: ['六格总评', '数理影响', '内部分析', '字义与音律'],
  374.                 //items: ['六格总评', '数理影响', '字义与音律', '内部分析'],
  375.                 items: ['六格总评', '数理影响', '字义与音律'],
  376.                 gid:'',
  377.                 isprivacy:1
  378.                 /* lname:{
  379.                     wg:{
  380.                         num:0,
  381.                         wx:''
  382.                     }
  383.                 }
  384.                  */
  385.             }
  386.         },
  387.         onLoad: function (option) { //option为object类型,会序列化上个页面传递的参数
  388.         //console.log('isprivacy',option.isprivacy)
  389.         this.isprivacy = option.isprivacy;
  390.                 console.log(option.gid); //打印出上个页面传递的参数。
  391.                 //console.log(option.name); //打印出上个页面传递的参数。
  392.                 this.getDetailInfo (option.gid)
  393.                 //this.getDetailInfo (option.gid)
  394.         },
  395.         onReady() {
  396.                 // #ifdef APP-PLUS
  397.                 var currentWebview = this.$scope.page.$getAppWebview() //获取当前页面的webview对象
  398.                 setTimeout(function() {
  399.                     wv = currentWebview.children()[0]
  400.                     wv.setStyle({scalable:true})
  401.                 }, 1000); //如果是页面初始化调用时,需要延时一下
  402.                 // #endif
  403.         },
  404.         methods: {
  405.             async getDetailInfo (gid) {
  406.                 uni.showLoading()
  407.                     const resss = await this.$myRuquest({
  408.                         url: 'liunameok',
  409.                         method :'post',
  410.                         data:{'gid':gid}
  411.                     }).then((ress)=>{
  412.                         console.log(ress);
  413.                         this.datas = ress.data.data;
  414.                         this.lname = ress.data.data.lname;
  415.                         this.xname = ress.data.data.xname;
  416.                         this.wg = this.lname.wg;
  417.                         this.bg = this.lname.bg;
  418.                         this.zg = this.lname.zg;
  419.                         this.tg = this.lname.tg;
  420.                         this.rg = this.lname.rg;
  421.                         this.dg = this.lname.dg;
  422.                         this.wgColor = this.wg.color;
  423.                         this.bgColor = this.bg.color;
  424.                         this.zgColor = this.zg.color;
  425.                         this.tgColor = this.tg.color;
  426.                         this.rgColor = this.rg.color;
  427.                         this.dgColor = this.dg.color;
  428.                         this.sancai = this.lname.sancai;
  429.                         this.showData = this.lname.show;
  430.                         this.fenxi = ress.data.data.fenxi;
  431.                         this.gid = gid;
  432.                         //console.log(this.lname.n1.a)
  433.                         
  434.                         //console.log(this.fontColor)
  435.                         //this.info = res.data.message[0]
  436.                         //console.log(ress.data.data.url)
  437.                     })
  438.                     
  439.                     uni.hideLoading()
  440.             },
  441.             async bname () {
  442.                 
  443.                 //uni.showLoading()
  444.                 //this.$myRuquest({})
  445.                     console.log(this.gid);
  446.                     //var href = '../v2pingfenResult/v2pingfenResult?gid='+res
  447.                     var {href} = this.$router.resolve({path:"/pages/v2pingfenResult/v2pingfenResult",query:{ gid :this.gid}})
  448.                     /*     uni.navigateTo({
  449.                             url: '../v2pingfenResult/v2pingfenResult?gid='+res
  450.                         }) */
  451.                     window.open(href,'_blank');
  452.                     //uni.hideLoading()
  453.             },
  454.             /* bname(gid){
  455.                 console.log(gid);
  456.                 uni.navigateTo({
  457.                     url: '/path/to/your/page'
  458.                 });
  459.             }, */
  460.             onClickItem(index) {
  461.                 if (this.current !== index.currentIndex) {
  462.                     this.current = index.currentIndex;
  463.                 }
  464.             }
  465.             
  466.         }
  467.     }
  468. </script>
  469. <style lang="scss">
  470.     .t{
  471.         font-size:0.7rem;
  472.         color:#ADADAD;
  473.     }
  474. .a1{
  475.     color:#000;
  476.     padding-left:10rpx;
  477. }
  478. .a2{
  479.     margin-top:20rpx;
  480.     color: #6c757d!important;
  481.     font-weight: bold;
  482.     height:60rpx;
  483.     line-height: 60rpx;
  484. }
  485. .zi{
  486.     font-size:36rpx;
  487.     padding:10rpx;
  488.     color: #fff;
  489.     background-color: #007bff;
  490.     border-color: #007bff;
  491.     height:50rpx;
  492.     width:60rpx;
  493.     line-height: 50rpx;
  494. }
  495. .b{
  496.     font-weight: normal;padding:20rpx 0;
  497.     height:auto;
  498.     line-height:40rpx;
  499.     font-size:0.85rem;
  500.     padding:15rpx 10rpx;
  501. }
  502. .table {
  503.     width: 100%;
  504.     margin-bottom: 5rpx;
  505.     color: #212529;
  506. }
  507. td{
  508.     height:65rpx;
  509.     line-height: 65rpx;
  510. }
  511. .wg{
  512.     position:absolute; left:12px; top:60px; width:64px; height:18px;
  513. }
  514. .bg{
  515.     position:absolute; left:80px; top:68px; width:50px; height:18px; text-align:left;
  516. }
  517. .zg{
  518.     position:absolute; left:103px; top:145px; width:120px; height:18px;
  519. }
  520. .tg{
  521.     position:absolute; left:215px; top:10px; width:64px; height:18px;
  522. }
  523. .rg{
  524.     position:absolute; left:215px; top:50px; width:64px; height:18px;
  525. }
  526. .dg{
  527.     position:absolute; left:215px; top:90px; width:64px; height:18px;
  528. }
  529. .newTab{
  530.     background-color: #ffffff;
  531.     margin-top:5rpx;
  532. }
  533. .uni-body{
  534.     font-weight:bold;
  535. }
  536. .a-font{
  537.     color:#ff0000;
  538. }
  539. .a{
  540.     padding:15rpx 10rpx;
  541.     background-color: #FAFAFA;
  542.     margin-bottom: 15rpx;
  543. }
  544. .c{
  545.     padding:10rpx 0;    
  546. }
  547. .s{
  548.     position: absolute;
  549.     top:20px;
  550.     left:270px;
  551. }
  552. .y{
  553.     font-size:48px;
  554.     color:#ff0000;
  555.     background: #EDEDED;
  556.     border: 0.1875em solid #EDEDED;
  557.     border-radius: 50%;
  558.     transform:scale(.5);transform-origin: 0% 50%;
  559. }
  560. .mosaic-text {
  561.   filter: blur(3px) brightness(80%);
  562. }
  563. .combined-glow {
  564.      color: #fff;
  565.      font-family:"华文行楷";
  566.       text-shadow:
  567.         0 0 5px #ff00ff,
  568.         0 0 10px #ff00ff,
  569.         0 0 20px #ff00ff,
  570.         0 0 40px #ffff7f,
  571.         0 0 80px #ffff7f;
  572.       animation: flicker 1.5s infinite alternate;
  573. }
  574. @keyframes flicker {
  575.   0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
  576.     text-shadow:
  577.       0 0 5px #ff00ff,
  578.       0 0 10px #ff00ff,
  579.       0 0 20px #ff00ff,
  580.       0 0 40px #00ffff,
  581.       0 0 80px #00ffff;
  582.   }
  583.   20%, 24%, 55% {
  584.     text-shadow: none;
  585.   }
  586. }
  587. </style>


快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
上一个 下一个