li-guang
2020-12-22 938b068c5fbb1d2a0f9e805b23380d2a5a67c357
会员的皮肤检测
2 files modified
194 ■■■■■ changed files
hive-app/App.vue 2 ●●● patch | view | raw | blame | history
hive-app/pages/member/skinDetectionDetail.vue 192 ●●●●● patch | view | raw | blame | history
hive-app/App.vue
@@ -16,5 +16,5 @@
    /*每个页面公共css */
@import url("./common/styles/index");
@import url("./static/iconfont/iconfont.css");
@import url("//at.alicdn.com/t/font_2263696_a9xwl9mgtk.css");
@import url("//at.alicdn.com/t/font_2263696_rvcb5as2o0r.css");
</style>
hive-app/pages/member/skinDetectionDetail.vue
@@ -1,15 +1,207 @@
<template>
    <view>
        <!-- #ifndef H5 -->
        <view class="status_bar"></view>
        <!-- #endif -->
        <view>
            <h-tabs
                class="tab"
                :tabData="tabs"
                :config="{
                    color: '#abb1cc',
                    activeColor: '#518EFF',
                    underLineColor: '#518EFF',
                    underLineHeight: 6,
                    fontSize: '30',
                    underLineWidth: 110,
                }"
                @tabClick="tabClick($event)"
            />
        </view>
        <view class="content" v-if="tabIndex==0">
            <view class="flex flex-v align-center font-12">
                <image class="content-header-img" src="../../static/images/head-img.jpg"></image>
                <view class="flex mt-10">
                    <text>姓名: 哦豁</text>
                    <text>性别: 女</text>
                </view>
                <text class="mt-10">生成时间: 2020-12-21 18:22</text>
            </view>
            <view class="mt-20">
                <view class="flex align-center">
                    <text class="iconfont icondd big-dot"></text>
                    <text class="font-14">AI诊断结果(平均概率)</text>
                </view>
                <view class="font-12 flex ml-10 mt-10">
                    <view class="flex align-center">
                        <text class="iconfont icondd small-dot gray"></text>
                        <text>敏感肌肤: 50%</text>
                    </view>
                    <view class="flex align-center">
                        <text class="iconfont icondd small-dot gray"></text>
                        <text>衰老性皮肤: 50%</text>
                    </view>
                </view>
            </view>
            <view class="mt-20">
                <view class="flex align-center">
                    <text class="iconfont icondd big-dot"></text>
                    <text class="font-14">问题分析</text>
                </view>
                <view class="flex problem-row align-center">
                    <view>
                        <image class="skin-img" src="../../static/images/head-img.jpg"></image>
                    </view>
                    <view class="flex flex-v">
                        <view>
                            <text class="iconfont icondd small-dot"></text>
                            <text class="font-14">敏感肌肤</text>
                        </view>
                        <text class="font-10 ml-10 mt-10">症状描述:</text>
                        <text class="font-10 ml-10 mt-10">皮肤较薄,对外界刺激很敏感,敏感性症状可见于其他各种皮肤中,受到外界刺激时,会出现肌肤泛红,发热,瘙痒、刺痛等。</text>
                    </view>
                </view>
                <view class="flex problem-row align-center">
                    <view>
                        <image class="skin-img" src="../../static/images/head-img.jpg"></image>
                    </view>
                    <view class="flex flex-v">
                        <view>
                            <text class="iconfont icondd small-dot"></text>
                            <text class="font-14">衰老性皮肤</text>
                        </view>
                        <text class="font-10 ml-10 mt-10">症状描述:</text>
                        <text class="font-10 ml-10 mt-10">皮肤弹性减弱,无光泽,皮下脂肪减少、变薄,皮肤松弛、下垂,皱纹增多、色素增多等。</text>
                    </view>
                </view>
            </view>
        </view>
        <view class="content" v-else>
            <view class="content-title center">
                <text class="font-24 blue">敏感肌肤</text>
            </view>
            <view class="flex content-row">
                <text class="iconfont icondd big-dot mt-10"></text>
                <view class="flex flex-v font-14 content-row-right mr-10">
                    <text>症状描述:</text>
                    <text>皮肤较薄,对外界刺激很敏感,敏感性症状可见于其他各种皮肤中,受到外界刺激时,会出现肌肤泛红,发热,瘙痒、刺痛等。</text>
                </view>
            </view>
            <view class="flex content-row">
                <text class="iconfont icondd big-dot mt-10"></text>
                <view class="flex flex-v font-14 content-row-right mr-10">
                    <text>建议护理:</text>
                    <text>使用肽妍多肽护理精华液深层清洁护理。</text>
                </view>
            </view>
            <view class="flex content-row">
                <text class="iconfont icondd big-dot mt-10"></text>
                <view class="flex flex-v font-14 content-row-right mr-10">
                    <text>建议使用产品:</text>
                    <view class="font-14 flex align-center mt-10">
                        <text class="iconfont iconchanpin mr-5"></text>
                        <text>抗皱肽原液</text>
                    </view>
                    <view class="font-14 flex align-center mt-10">
                        <text class="iconfont iconchanpin mr-5"></text>
                        <text>眼部赋活肽原液</text>
                    </view>
                    <view class="font-14 flex align-center mt-10">
                        <text class="iconfont iconchanpin mr-5"></text>
                        <text>多肽头皮护理营养精华液</text>
                    </view>
                </view>
            </view>
        </view>
    </view>
</template>
<script>
    import HTabs from "@/components/liuyuno-tabs/liuyuno-tabs.vue";
    export default{
        components: {
            HTabs
        },
        data() {
          return {
            tabs:[
                {
                    state: 1,
                    name: '问题分析'
                },
                {
                    state: 2,
                    name: '解决方案'
                }
            ],
            tabIndex:0
          }
        },
        onLoad(options) {
            uni.setNavigationBarTitle({
                title: options.title
            });
        },
        methods:{
            tabClick(index){
                this.tabIndex=index
            }
        }
    }
</script>
<style>
    page{
        background: #F6F6F8;
    }
    .tab{
        background: #FFFFFF;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        box-shadow:0 6px 6px rgba(237,234,244,0.5);
    }
    .content{
        background: #FFFFFF;
        margin: 10px;
        padding: 10px 0;
        border: 1px solid #EDEAF4;
        border-radius: 4px;
        box-shadow:0 6px 6px rgba(237,234,244,0.5);
    }
    .content-header-img{
        width: 64px;
        height: 64px;
        border-radius: 50%;
    }
    .big-dot{
        font-size: 20px;
    }
    .small-dot{
        font-size: 10px;
    }
    .skin-img{
        width: 120px;
        height: 120px;
        border-radius: 4px;
    }
    .problem-row{
        padding: 10px 0;
        border-bottom: 1px solid #EDEAF4;
        margin: 0 10px;
    }
    .problem-row:nth-last-child(1){
        border: 0;
    }
    .content-title{
        border-bottom: 1px solid #EDEAF4;
        margin: 0 10px;
        padding-bottom: 10px;
    }
    .content-row-right{
        padding: 10px 0;
        border-bottom: 1px solid #EDEAF4;
    }
    .content-row:nth-last-child(1) .content-row-right{
        border: 0;
    }
</style>