slimming.wxml 8.5 KB
<wxs module="g_filter" src="g_filter.wxs"></wxs>
<view class="pd20 fs30" wx:for="{{portrait_list}}">
    <!-- 上 -->
    <view class="card pd20 flex jc_sb" style="height: 210rpx;box-sizing: border-box;">
        <image style="margin-right: 26rpx;width: 158rpx;height: 158rpx;border-radius: 50%;"
               src="{{userInfo.head_pic}}"/>


        <view class="flex mgt10" style="width: 70%;flex-direction: column;">
            <view class="flex jc_sb fs26 mgb20">
                <view style="color: #FE3A62;">{{item.customername || '-'}}</view>
                <view style="color: #FE3A62;">{{item.mobiletel || '-'}}</view>
                <view style="color: #FE3A62;" class="flex ai_c">{{item.age || '-'}}
                    <view style="color: #383838;">岁
                    </view>
                </view>
            </view>
            <view class="flex fs26 mgb20">
                <view style="color: #383838;" class="flex ai_c">减重疗程数:
                    <view style="color: #FE3A62;">
                        {{item.weightlosscourse || '0'}}
                    </view>
                </view>
                <view style="color: #383838;margin-left: 30rpx;" class="flex ai_c">塑身疗程数:
                    <view style="color: #FE3A62;">{{item.shapecourse || '0'}}</view>
                </view>

            </view>
            <view class="flex fs26 mgb20">
                <view style="color: #383838;" class="flex ai_c">购买日期:
                    <view style="color: #FE3A62;">{{item.signingdate || '-'}}</view>
                </view>
            </view>
        </view>
    </view>
    <!-- 下 -->
    <view class="card mgt20">
        <view>
            <view class="flex pd20 jc_sb ai_c">
                <view style="color: #383838;" class="fs32">日常打卡</view>
                <view bindtap="goto" data-url="/packageE/pages/user/punchInhistory/punchInhistory?customerid={{item.id}}&diffweight={{item.diffweight}}&howday={{item.tostoreqty}}&standardweight={{item.ideaweight}}"
                style="border: 1.75rpx solid #FE3A62;border-radius: 88rpx;width: 123rpx;height: 48rpx;color:#FE3A62;line-height: 48rpx;text-align: center;"
                class="fs26">查看全部
            </view>
        </view>

        <view class="flex pd20 jc_sb ai_c"
              style="flex-direction: column;border-bottom: 1rpx solid #F0F0F0;">
            <view class="flex" style="margin-right:20rpx;">
                <view wx:if="{{item.dayweight>0 }}" class="ellipsis-2"
                      style="color: #FE3A62;font-size: 84rpx;width: 250rpx;text-align: right;margin-left: 40rpx;">
                    {{  g_filter.toFixTwo(item.dayweight ) }}
                </view>
                <view wx:else class="ellipsis-2"
                      style="color: #FE3A62;font-size: 84rpx;width: 250rpx;text-align: right;margin-left: 40rpx;margin-right: 50rpx;margin-bottom: 20rpx;">
                    _ _
                </view>
                <view style="color: #383838;margin-top: 40rpx;" class="fs26">斤</view>
                <view style="width: 30rpx;height: 30rpx;margin-top: 20rpx;padding: 20rpx;"
                bindtap="goto" data-url="/packageE/pages/punchIn/punchIn?mobiletel={{item.mobiletel}}&iswhere=1&gradenames=true&isMy=1">
                <image :src="imghost+'mdd_img/modigoods.png'" style="width: 30rpx;height: 30rpx;" mode=""></image>
            </view>
        </view>
        <view style="color: #383838;" class="fs26">今日体重</view>
    </view>
</view>

<view class="flex jc_sa"
      style="height: 160rpx;padding: 20rpx 0;box-sizing: border-box;border-bottom: 1rpx solid #F0F0F0;">
    <view class="flex txt-center" style="flex-direction: column;width: 33%;">
        <view class="flex" style="margin-left: 20rpx;">
            <view style="color: #FE3A62;font-size: 52rpx;width: 60%;text-align: right;"
                  class="ellipsis-2">{{g_filter.toFixTwo(item.ringratioweight)}}
            </view>
            <view style="color: #383838;text-align: left;" class="fs26 mgt20">斤</view>

        </view>
        <view style="color: #383838;" class="fs26 mgt20">环比重量</view>
    </view>
    <view class="flex txt-center" style="flex-direction: column;width: 33%;">
        <view class="flex" style="margin-left: 20rpx;">
            <view style="color: #FE3A62;font-size: 52rpx;width: 60%;text-align: right;"
                  class="ellipsis-2">{{  g_filter.toFixTwo(item.actualweight)}}
            </view>

            <view style="color: #383838;text-align: left;" class="fs26 mgt20">斤
            </view>
        </view>
        <view style="color: #383838;" class="fs26 mgt20">实际减重</view>
    </view>
    <view class="flex txt-center" style="flex-direction: column;width: 33%;">
        <view class="flex" style="margin-left: 20rpx;">
            <view style="color: #FE3A62;font-size: 52rpx;width: 60%;text-align: right;"
                  class="ellipsis-2">{{g_filter.toFixTwo(item.diffweight)}}
            </view>

            <view style="color: #383838;text-align: left;" class="fs26 mgt20">斤
            </view>
        </view>
        <view style="color: #383838;" class="fs26 mgt20">累计减重</view>
    </view>
</view>

<view class="flex jc_sa"
      style="height: 160rpx;padding: 20rpx 0;box-sizing: border-box;border-bottom: 1rpx solid #F0F0F0;">
    <view class="flex txt-center" style="flex-direction: column;width: 33%;">
        <view class="flex" style="margin-left: 20rpx;">
            <view style="color: #FE3A62;font-size: 52rpx;width: 60%;text-align: right;;"
                  class="ellipsis-2">{{item.tostoreqty || '0'}}
            </view>
            <view style="color: #383838;text-align: left;" class="fs26 mgt20">次
            </view>
        </view>
        <view style="color: #383838;" class="fs26 mgt20">累计到店</view>
    </view>
    <view class="flex txt-center" style="flex-direction: column;width: 33%;">
        <view class="flex" style="margin-left: 20rpx;">
            <view style="color: #FE3A62;font-size: 52rpx;width: 60%;text-align: right;"
                  class="ellipsis-2">{{ g_filter.toFixTwo(item.undeduced)}}
            </view>

            <view style="color: #383838;text-align: left;" class="fs26 mgt20">斤
            </view>
        </view>
        <view style="color: #383838;" class="fs26 mgt20">未减斤数</view>
    </view>
    <view class="flex txt-center" style="flex-direction: column;width: 33%;">
        <view class="flex" style="margin-left: 20rpx;">
            <view style="color: #FE3A62;font-size: 52rpx;width: 60%;text-align: right;"
                  class="ellipsis-2">{{g_filter.toFixTwo(item.minweight) }}
            </view>
            <view style="color: #383838;text-align: left;" class="fs26 mgt20">斤</view>
        </view>
        <view style="color: #383838;" class="fs26 mgt20">最低体重</view>
    </view>
</view>

<view class="flex jc_sa"
      style="height: 68rpx;border-bottom: 1rpx solid #F0F0F0;padding: 20rpx 0;box-sizing: border-box;">
    <view style="color: #383838;" class="fs26 flex ai_c">初始体重<view style="color: #FE3A62;"
                                                                   class="fs26">{{ g_filter.toFixTwo(item.weight) }}</view>斤
    </view>
    <view style="color: #383838;" class="fs26 flex ai_c">标准体重<view style="color: #FE3A62;"
                                                                   class="fs26">{{ g_filter.toFixTwo(item.weight)}}</view>斤
    </view>
    <view style="color: #383838;" class="fs26 flex ai_c">应减斤数<view style="color: #FE3A62;"
                                                                   class="fs26">{{g_filter.toFixTwo(item.weight)}}</view>斤
    </view>
</view>
<view class="flex jc_sb"
      style="height: 68rpx;border-bottom: 1rpx solid #F0F0F0;padding: 20rpx 0;box-sizing: border-box;padding: 0 20rpx;">
    <view style="color: #383838;line-height: 68rpx;" class="fs26">减重顾问</view>
    <view style="color: #383838;line-height: 68rpx;" class="fs26">{{item.advisername || '-'}}</view>
</view>
<view class="flex jc_sb"
      style="height: 68rpx;border-bottom: 1rpx solid #F0F0F0;padding: 20rpx 0;box-sizing: border-box;padding: 0 20rpx;">
    <view style="color: #383838;line-height: 68rpx;" class="fs26">减重美体师</view>
    <view style="color: #383838;line-height: 68rpx;" class="fs26">{{item.beautyconsultant || '-'}}</view>
</view>

        </view>
 </view>

<nodata class="t-c" wx:if="{{portrait_list.length == 0 && is_get}}"></nodata>
<view class="noMore" hidden="{{!noMore}}" wx:if="{{portrait_list.length !== 0}}">- 已经到底了 -</view>