<template name="merchant-backstage" >
  <view class="page">
    <view class="m-banner-img">
      <view class="member-top">
        <view class="m-user-info">
          <image lazy-load :src="store_info.store_logo" mode="scaleToFill" />
          <view class="m-name">
            <label>{{ store_info.store_name }}</label>
            <label style="position: relative" v-if="hasLogin"
              ><label class="sup">{{
                store_info.store_grade_name
              }}</label></label
            >
          </view>
        </view>
        <view class="g-flex member-order-tab">
          <view hover-class="none" class="g-flex-items">
            <view>{{ orders.yestoday_num }}</view>
            {{ __("昨日订单数") }}
          </view>
          <view hover-class="none" class="g-flex-items">
            <view>{{ orders.month_num }}</view>
            {{ __("当月订单数") }}
          </view>
          <view class="g-flex-item hide"></view>
          <view hover-class="none" class="g-flex-items">
            <view>{{ orders.pay_amount }}</view>
            {{ __("成交总金额") }}
          </view>
        </view>
      </view>
    </view>

    <view class="m-ber">
      <view class="m-cell m-cell-access m-info-sp">
        <view class="m-cell-bd">
          <navigator
            url="/seller/order/lists"
            class="m-order-title"
            hover-class="none"
          >
            <view class="m-ber-image" style="color: #009688; opacity: 0.6">
              <view class="iconfont zc zc-wodedingdan i-type"></view>
            </view>
            <label class="m-ber-n">{{ __("订单管理") }}</label>
            <label>
              <image
                class="nav-image"
                lazy-load
                src="/static/images/nav.png"
                mode="scaleToFill"
              />
              <label
                class="m-ber-n"
                style="float: right; margin-right: 20rpx; color: #999"
                >{{ __("查看全部订单") }}</label
              >
            </label>
          </navigator>
        </view>
      </view>

      <view class="m-ber-quan">
        <view class="g-flex m-ber-l">
          <navigator
            url="/seller/order/lists?order_state_id=2010&sl=1"
            class="g-flex-item"
            hover-class="none"
          >
            <uni-badge
              v-if="orders.wait_pay_num > 0"
              :text="orders.wait_pay_num"
              type="purple"
            ></uni-badge>
            <view class="iconfont zc zc-daifukuan i-type"></view>
            {{ __("待付款") }}
          </navigator>
          <navigator
            url="/seller/order/lists?order_state_id=2020,2030&sl=3"
            class="g-flex-item"
            hover-class="none"
          >
            <uni-badge
              v-if="orders.wait_shipping_num > 0"
              :text="orders.wait_shipping_num"
              type="purple"
            ></uni-badge>
            <view class="iconfont zc zc-daishouhuo i-type"></view>
            {{ __("待发货") }}
          </navigator>

          <navigator
            url="/seller/order/lists?order_state_id=2040&sl=4"
            class="g-flex-item"
          >
            <uni-badge
              v-if="orders.ship_num > 0"
              :text="orders.ship_num"
              type="purple"
            ></uni-badge>
            <view class="iconfont zc zc-yifahuo i-type"></view>
            {{ __("已发货") }}
          </navigator>

          <navigator
            url="/seller/order/lists?order_state_id=2060&sl=5"
            class="g-flex-item"
            hover-class="none"
          >
            <uni-badge
              v-if="orders.fin_num > 0"
              :text="orders.fin_num"
              type="purple"
            ></uni-badge>
            <view class="iconfont zc zc-dingdanwancheng i-type"></view>
            {{ __("已完成") }}
          </navigator>
          <navigator
            v-if="false"
            url="/seller/order/lists?order_state_id=2070&sl=6"
            class="g-flex-item"
            hover-class="none"
          >
            <!-- <uni-badge v-if="(orders.ship_num >0)" :text="orders.ship_num" type="purple"></uni-badge> -->
            <view class="iconfont zc zc-yifahuo i-type"></view>
            {{ __("已取消") }}
          </navigator>
        </view>
      </view>
    </view>

    <view class="m-ber">
      <view class="m-cell m-cell-access m-info-sp">
        <view class="m-cell-bd">
          <navigator
            url="/seller/product/lists?type=1001&sl=1"
            class="m-order-title"
            hover-class="none"
          >
            <view class="m-ber-image" style="color: #009688; opacity: 0.6">
              <view class="iconfont zc zc-tihuohexiao i-type"></view>
            </view>
            <label class="m-ber-n">{{ __("商品管理") }}</label>
            <label v-if="false">
              <image
                class="nav-image"
                lazy-load
                src="/static/images/nav.png"
                mode="scaleToFill"
              />
            </label>
          </navigator>
        </view>
      </view>

      <view class="m-ber-quan">
        <view class="g-flex m-ber-l">
          <navigator
            url="/seller/product/lists?type=1001&sl=1"
            class="g-flex-item"
            hover-class="none"
          >
            <uni-badge
              v-if="commodity.normal_num > 0"
              :text="commodity.normal_num"
              type="warning"
            ></uni-badge>
            <view class="iconfont zc zc-chushou i-type"></view>
            {{ __("出售中") }}
          </navigator>
          <navigator
            url="/seller/product/lists?type=1002&sl=2"
            class="g-flex-item"
            hover-class="none"
          >
            <uni-badge
              v-if="commodity.illegal_num > 0"
              :text="commodity.illegal_num"
              type="warning"
            ></uni-badge>
            <view class="iconfont zc zc-cangkuzhong i-type"></view>
            {{ __("仓库中") }}
          </navigator>

          <navigator
            url="/seller/product/lists?type=1000&sl=3"
            class="g-flex-item"
            hover-class="none"
          >
            <uni-badge
              v-if="commodity.off_num > 0"
              :text="commodity.off_num"
              type="warning"
            ></uni-badge>
            <view class="iconfont zc zc-weiguishangpin i-type"></view>
            {{ __("违规商品") }}
          </navigator>
          <navigator url="/seller/product/add" class="g-flex-item">
            <view class="iconfont zc zc-shangpinfabu i-type"></view>
            {{ __("发布商品") }}
          </navigator>
        </view>
      </view>
    </view>

    <view class="m-cells" style="margin-top: 20rpx">
      <view class="m-cell m-cell-access m-info-sp" v-if="false">
        <view class="m-cell-bd">
          <navigator
            url="/seller/product/sale"
            class="m-order-title"
            hover-class="none"
          >
            <view class="m-ber-image" style="color: #009688; opacity: 0.6">
              <view class="iconfont zc zc-tihuohexiao i-type"></view>
            </view>
            <label class="m-ber-n">销售开单</label>
            <label>
              <image
                class="nav-image"
                lazy-load
                src="/static/images/nav.png"
                mode="scaleToFill"
              />
            </label>
          </navigator>
        </view>
      </view>
      <view class="m-cell m-cell-access m-info-sp">
        <view class="m-cell-bd">
          <navigator
            url="/seller/order/write"
            class="m-order-title"
            hover-class="none"
          >
            <view class="m-ber-image" style="color: #009688; opacity: 0.6">
              <view class="iconfont zc zc-tihuohexiao i-type"></view>
            </view>
            <label class="m-ber-n">{{ __("扫码核销") }}</label>
            <label>
              <image
                class="nav-image"
                lazy-load
                src="/static/images/nav.png"
                mode="scaleToFill"
              />
            </label>
          </navigator>
        </view>
      </view>
      <view class="m-cell m-cell-access m-info-sp">
        <view class="m-cell-bd">
          <navigator
            url="/seller/store/account"
            class="m-order-title"
            hover-class="none"
          >
            <view class="m-ber-image" style="color: #e50dbb; opacity: 0.6">
              <view class="iconfont zc zc-yonghushezhi1 i-type"></view>
            </view>
            <label class="m-ber-n">{{ __("店铺信息设置") }}</label>
            <label>
              <image
                class="nav-image"
                lazy-load
                src="/static/images/nav.png"
                mode="scaleToFill"
              />
            </label>
          </navigator>
        </view>
      </view>
      <view class="m-cell m-cell-access m-info-sp">
        <view class="m-cell-bd">
          <navigator
            url="/seller/store/express"
            class="m-order-title"
            hover-class="none"
          >
            <view class="m-ber-image" style="color: #03a9f4; opacity: 0.6">
              <view class="iconfont zc zc-wuliukuaidi i-type"></view>
            </view>
            <label class="m-ber-n">{{ __("物流公司管理") }}</label>
            <label>
              <image
                class="nav-image"
                lazy-load
                src="/static/images/nav.png"
                mode="scaleToFill"
              />
            </label>
          </navigator>
        </view>
      </view>
    </view>

    <view class="m-cells" style="margin-top: 20rpx">
      <view class="m-cell m-cell-access m-info-sp">
        <view class="m-cell-bd">
          <navigator
            :url="'/pagesub/index/store?store_id=' + store_info.store_id"
            class="m-order-title"
            hover-class="none"
          >
            <view class="m-ber-image" style="color: #009688; opacity: 0.6">
              <view class="iconfont zc zc-dianpu i-type"></view>
            </view>
            <label class="m-ber-n">{{ __("店铺首页") }}</label>
            <label>
              <image
                class="nav-image"
                lazy-load
                src="/static/images/nav.png"
                mode="scaleToFill"
              />
            </label>
          </navigator>
        </view>
      </view>

      <view
        class="m-cell m-cell-access m-info-sp"
        v-if="userInfo.store_type === 1"
      >
        <view class="m-cell-bd">
          <navigator
            url="/seller/product/pool"
            class="m-order-title"
            hover-class="none"
          >
            <view class="m-ber-image" style="color: #009688; opacity: 0.6">
              <view class="iconfont zc zc-daishouhuo i-type"></view>
            </view>
            <label class="m-ber-n">{{ __("产品池") }}</label>
            <label>
              <image
                class="nav-image"
                lazy-load
                src="/static/images/nav.png"
                mode="scaleToFill"
              />
            </label>
          </navigator>
        </view>
      </view>
      <!--
			<view class="m-cell m-cell-access m-info-sp">
				<view class="m-cell-bd">
					<navigator url="/seller/user/add" class="m-order-title" hover-class="none">
						<view class="m-ber-image" style="color: #f30213;opacity: 0.6;">
							<view class="iconfont zc zc-member i-type"></view>
						</view>
						<label class="m-ber-n">新增会员</label>
						<label>
							<image  class="nav-image" lazy-load src="/static/images/nav.png" mode="scaleToFill" />
						</label>
					</navigator>
				</view>
			</view> -->
    </view>

    <view class="m-cells" style="margin-top: 20rpx">
      <view class="m-cell m-cell-access m-info-sp">
        <view class="m-cell-bd">
          <navigator
            url="/seller/store/address"
            class="m-order-title"
            hover-class="none"
          >
            <view class="m-ber-image" style="color: #962d77; opacity: 0.6">
              <view class="iconfont zc zc-shouhuodizhi1 i-type"></view>
            </view>
            <label class="m-ber-n">{{ __("发货地址管理") }}</label>
            <label>
              <image
                class="nav-image"
                lazy-load
                src="/static/images/nav.png"
                mode="scaleToFill"
              />
            </label>
          </navigator>
        </view>
      </view>
      <view class="m-cell m-cell-access m-info-sp">
        <view class="m-cell-bd">
          <view class="m-order-title" @click="cleanCache">
            <view class="m-ber-image" style="color: #48e5ad; opacity: 0.6">
              <view
                class="iconfont zc zc-qingchuhuancun i-type"
                style=""
              ></view>
            </view>
            <label class="m-ber-n">{{ __("清除缓存") }}</label>
            <label>
              <image
                class="nav-image"
                lazy-load
                src="/static/images/nav.png"
                mode="scaleToFill"
              />
            </label>
          </view>
        </view>
      </view>
    </view>

    <view class="m-tips" style="margin: 30rpx 0" v-if="!IsChannel">
      <view class="m-tips-logo">
        <image
          lazy-load
          mode="aspectFit"
          src="/static/images/logo_tech.png"
        ></image>
      </view>
      <view class="m-tips-str"
        >{{ __("商城套件系统提供技术支持") }} {{ versionNumber }}</view
      >
    </view>
    <view class="m-tips" style="margin: 30rpx 0" v-else>
      <view class="m-tips-str">{{ versionName }}{{ versionNumber }}</view>
    </view>
    <view
      class="msk"
      v-if="isGetnum && isStorage && isFlagPhoto && isWexinMobile"
    >
      <view class="model">
        <view class="hint">
          <view class="title">{{ __("绑定手机号") }}</view>
          <view class="content">{{
            __("您当前尚未绑定手机号，建议您绑定以获得更多优惠资讯")
          }}</view>
        </view>
        <view class="operation">
          <view class="cancel" @click="cancel">{{ __("取消") }}</view>
          <button
            class="success"
            bindgetphonenumber="getPhoneNumber"
            open-type="getPhoneNumber"
          >
            {{ __("确定") }}
          </button>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
import guessYouLike from "@/components/guess-you-like.vue";
import uniBadge from "@/components/uni-badge.vue";
import { mapState, mapMutations } from "vuex";

export default {
  data() {
    return {
      Info: "",
      UserInfo: {
        user_nickname: "新用户1",
        user_avatar:
          "https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/demodata/assets/data/avatar.png",
      },
      resource: {
        user_points: 100,
      },
      versionNumber: "",
      versionName: "",
      IsChannel: true,
      PersonalCenterList: {},
      isMembership: true,
      isCoupon: true,
      isCutPrice: true,
      isECashCard: true,
      isMemDist: true,
      isFightGrp: true,
      isAbtVendor: true,
      currentSize: 0,
      limitSize: 0,

      store_info: {},
      orders: {},
      commodity: {},

      isStorage: false,
      isGetnum: false,
    };
  },
  computed: mapState([
    "Config",
    "StateCode",
    "notice",
    "plantformInfo",
    "shopInfo",
    "userInfo",
    "hasLogin",
  ]),
  components: {
    guessYouLike,
    uniBadge,
  },
  onLoad: function (opt) {
    uni.setNavigationBarTitle({
      title: this.__("商家中心"),
    });

    var that = this;
    //console.log(this.isshow)
    this.forceUserInfo(function (user) {});

    that.load();
  },
  onShow: function () {
    uni.setNavigationBarTitle({
      title: this.__("商家中心"),
    });
    var that = this;
    this.forceUserInfo(function (user) {});
    that.load();
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
    // this.$refs.guessYouLike.scrollbottom();
  },
  methods: {
    ...mapMutations([
      "login",
      "logout",
      "getPlantformInfo",
      "forceUserInfo",
      "getUserInfo",
      "showCartNum",
    ]),
    load: function () {
      var that = this;
      var params = {};
      that.$.request({
        url: this.Config.URL.seller.dashboard,
        data: params,
        success: function (data, status, msg, code) {
          if (status == 200) {
            that.setData({
              store_info: data.store_info,
              orders: data.order,
              commodity: data.product,
            });
          }
          console.log(that.userInfo);
        },
      });
    },

    cancel: function () {
      let that = this;
      this.setData({
        isGetnum: false,
      }),
        that.$.setStorage({
          key: "cancel",
          data: "yes",
        });
    },

    getPhoneNumber: function (e) {
      var that = this;
      that.$.login({
        success: function (n) {
          var r = {
            //vendorId: that.cf.storeId,
            userId: that.userInfo.Id,
            encryptData: e.detail.encryptedData,
            encryptDataIV: e.detail.iv,
            code: n.code,
          };
          //console.log(r);

          /*that.$.xsr(that.$.makeUrl(user.UpdateUserWexinMobile, r), function(e) {
                            e.Code == 0 &&
                                ((that.userInfo.Phone = e.Info),
                                that.setData({
                                    isGetnum: false
                                }));
                        });*/
        },
      });
    },

    selectAddress: function (e) {
      var that = this;
      that.$.gopage("/member/address/list");
      /*that.$.chooseAddress({
						success: function (that)
						{
								that.$.navigateTo("/member/address/list");
						}, fail: function (that)
						{
								that.$.navigateTo("/member/address/list");
						}
				})*/
    },

    goTabBar: function (e) {
      var that = this;
      that.$.goToTabBar(that, e.currentTarget.dataset.url);
    },

    cleanCache: function (e) {
      var that = this;
      const index = e.currentTarget.dataset.index;
      const path = e.currentTarget.dataset.path;

      that.$.confirm(
        that.__("确定要清除缓存吗？"),
        function (data) {
          if (data.confirm) {
            //退出登录
            that.logout(true);

            // #ifdef MP-WEIXIN
            var info = that.$.storage.info();

            that.setData({
              currentSize: Math.round(info.currentSize * 100) / 100,
              limitSize: Math.round((info.limitSize / 1024) * 100) / 100,
            });
            // #endif
          }
        },
        true
      );
    },
    distributionWeStore: function (e) {
      var that = this;
      that.$.gopage("/pagesub/westore/index");

      //let url = that.$.sprintf('%s/tmpl/member/plantform_invite.html?u_id=%d&opener=uni&sss=ssss', that.Config.WapSiteUrl, that.userInfo.user_id);
      //that.$.gopage("/pagesub/webpage/webpage?u=" + encodeURIComponent(url) + "&tn=" + '推广中心' + "&tc=" + '#f30213' + "&tb=" + 'white')
    },
  },
};
</script>



<style lang="scss">
@import "../../styles/_variables";

.page {
  margin-bottom: var(--window-bottom);
}

.member-top {
  -webkit-animation: changeBg 20s infinite;
  animation: changeBg 20s infinite;
  background-color: #f30213;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZ4AAADhBAMAAAAKUc6cAAAAD1BMVEX///////9MaXH////////RWIOUAAAABXRSTlMiEQAzRBQVqpYAAAlZSURBVHhezNpRkpswDAZged0DyOQCDSdwxnuAzmzuf6aGJuEvGEsWIpvVSx8AO59/YWCnNN7qNy1qvFfqqFGu9LIq96p+OE3TMi1qGG91TskLqsdgCvd/iMIhnrzpoWV96ByUJR6a6p+GvKK4EVB4eM6VBxwXqEpnWR7PqdSgj4bnAo4HtB6FqjrCk1eeejsoF+N93OEBJ+ZDQFzqgIZNTyyXZKuho914Hh0eF6jUAY1bnlhKTseAtpptfQu7Gw7jhU1P2eFJWrshHszvDIirgAZ4Fhz0W38pHnDg8QZU1gGNG5640zOI7Ybh62fgAQ2X592t2q8LPG7QxnMH02sBMY52BjTOnnG5fmVXDwjthuHhkQOqjusBfWx5CjzugM6NeEpRPLhAySgioGlzg4eX86Vd1fSQ7AkCRwEhIBpmDzaEhzenfdXwsOYROAqIZ8/EgeeM6bAdeDuu/n1x00MaR2+5ezrwjPz/dGlvae2me8DRQRh+Wkl45oYraDd/QIhH9QThJRxosdaekTBbaD4NVJAYDxZM8BDtAg1rz2/p7sES9weUDB612/QXo7Vn5Pbmxt2jpjoe1j0kxYOyeUZucSzLNAjxqB7g7QENlWdkKpnkdHRQj4eaHiJ3QFS1SM2xrxPazeJhIndA8KTNMq7TUL2KGjyklMlzFjjGjjsnyZNpXYjHERA8QjxsH/c8jNX1igd2f0AkxmMZV7++0W4Euysg3cPyuHrx2zyGeAyeVHtyy0N0RMORIR6Uw0N1YTJXQEaPv+Ei4qk9dJDH0m6o3R4SPf6GI0s8/obLrUXnN3jcDYd4BI+v4cjQbu4dLpLebs53OJIfpv6G0xfeEA/Rfg/7PX0rj5OcnvT0JLsn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zZwKHreg48UEj1rQ8RWW7iF897EggscsSDhkFTwiqIw1SPCIE2fs9QoeEQQCiODxQMovFcHjgZS7RAWPthTKuUwQPFZF0nWP4BFjiBA87g9wzcARPBqpXpeH4NFMFccR0dM/jYXo6ReB5+kXgeXpNxW7+QGaJMQFymoTmAAAAABJRU5ErkJggg==");
  background-size: cover;
  text-align: center;
  width: 100%;
  /*height: 11rem;*/

  overflow: hidden;
  height: 480rpx; /* 320 */

  color: #fff;
  position: relative;
  z-index: 1;
}

@-webkit-keyframes changeBg {
  0% {
    background-color: #f30213;
  }

  90% {
    background-color: #f30213;
  }

  10% {
    background-color: #fb6e52;
  }

  20% {
    background-color: #ffce55;
  }

  30% {
    background-color: #a0d468;
  }

  40% {
    background-color: #48cfae;
  }

  50% {
    background-color: #4fc0e8;
  }

  60% {
    background-color: #5d9cec;
  }

  70% {
    background-color: #ac92ed;
  }

  80% {
    background-color: #ec87bf;
  }
}

@keyframes changeBg {
  0% {
    background-color: #f30213;
  }

  90% {
    background-color: #f30213;
  }

  10% {
    background-color: #fb6e52;
  }

  20% {
    background-color: #ffce55;
  }

  30% {
    background-color: #a0d468;
  }

  40% {
    background-color: #48cfae;
  }

  50% {
    background-color: #4fc0e8;
  }

  60% {
    background-color: #5d9cec;
  }

  70% {
    background-color: #ac92ed;
  }

  80% {
    background-color: #ec87bf;
  }
}

.m-banner-img {
  width: 100%;
  /*height: 200rpx;*/
  vertical-align: top;
  position: relative;
}

.m-user-info {
  text-align: center;
  /*
		position: absolute;
		top: 115rpx;
		width: 140rpx;
		height: 140rpx;
		left: 50%;
		margin-left: -70rpx;
		*/
  z-index: 3;
  color: #666;
  margin-top: 100rpx;
}

.m-user-info image {
  width: 140rpx;
  height: 140rpx;
  border-radius: 120rpx;
  border: 1px solid #fff;
  vertical-align: middle;
  box-shadow: 0px 2rpx 15rpx rgba(0, 0, 0, 0.35);

  position: absolute;
  left: 305rpx;
}

.m-user-info .m-name {
  position: absolute;
  top: 260rpx;
  text-align: center;
  width: 750rpx;
}

.m-user-info text,
.m-user-info label {
  line-height: 70rpx;

  font-size: 28rpx;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
  font-weight: bold;

  .sup {
    font-size: 0.45rem;
    line-height: 0.6rem;
    background-color: #f30213;
    height: 0.6rem;
    padding: 0 0.1rem;
    margin-left: 0.2rem;
    border-radius: 0.1rem;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
  }
}
.m-user-info .Phone {
  width: 140rpx;
  height: 140rpx;
  border-radius: 120rpx;
  border: 1px solid #fff;
  vertical-align: middle;
  box-shadow: 0px 2rpx 15rpx rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.m-user-info .NickName {
  line-height: 70rpx;
  display: block;
  font-size: 28rpx;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.member-order-tab {
  font-size: 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
  line-height: 20px;

  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.i-type {
  font-size: 40rpx;
}

.m-cell-hd {
  text-align: center;
  line-height: 56rpx;
}

.member-order-tab .g-flex-item {
  padding: 28rpx 0 20rpx 0;
}

.member-order-tab .g-flex-item:active {
  background-color: #ececec;
}

.my_od {
  border-left: 1px solid #dfdfdf;
}

.all_order {
  position: relative;
  display: block;
}

.m-panel-bd {
  margin-top: 20rpx;
}

.m-panel-bd label {
  vertical-align: middle;
  font-size: 50rpx;
  margin: 0rpx 10rpx;
}

.m-cell-primary {
  font-size: 24rpx;
  margin-top: 10rpx;

  label {
    font-size: 24rpx;
  }
}

.m-animate-img {
  width: 100%;
  height: 250rpx;
  overflow: hidden;
  -webkit-animation: imageAnimation 15s linear infinite alternate;
  animation: imageAnimation 15s linear infinite alternate;
  webkit-backface-visibility: hidden;
  -webkit-filter: blur(5px);
  filter: blur(5px);
  margin-top: -20px;
}

.m-animate-warp {
  overflow: hidden;
  height: 200rpx;
  -webkit-animation: imageAnimation 15s linear infinite alternate;
  animation: imageAnimation 15s linear infinite alternate;
}

@-webkit-keyframes imageAnimation {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 100%;
  }
}

@keyframes imageAnimation {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 100%;
  }
}

.iconBoxLattice .m-cell {
  display: inline-block;
  width: 25%;
  box-sizing: border-box;
  text-align: center;
  border-right: 1rpx solid #f8f8f8;
  border-bottom: 1rpx solid #f8f8f8;
}

.iconBoxLattice .m-cell .iconfont {
  font-size: 60rpx;
}

.iconBoxLattice .m-cell::before {
  border: none;
}

.iconBoxLattice .m-cell p {
  font-size: 24rpx;
}

.iconBoxLattice .m-cell label {
  font-size: 24rpx;
}

.iconBoxLattice .m-cell label.iconfont {
  font-size: 60rpx;
}

.iconBoxLattice .m-cell label.zc {
  font-size: 48rpx;
}

.iconBoxLattice .m-cell image {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 60rpx !important;
  height: 60rpx !important;
}

.iconBoxLattice .m-cell-ft {
  display: none;
}

.msk {
  position: fixed;
  top: 0;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.model {
  width: 80%;
  height: 290rpx;
  background: #fff;
  border-radius: 6rpx;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hint {
  height: 200rpx;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hint::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-bottom: 1px solid #e5e5e5;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 200%;
  height: 200%;
  -webkit-transform: scale(0.5);
  transform: scale(0.5);
  -webkit-transform-origin: left top;
  transform-origin: left top;
}

.hint .title {
  font-size: 36rpx;
}

.hint .content {
  width: 80%;
  color: #999999;
  font-size: 30rpx;
  margin-top: 20rpx;
}

.operation {
  height: 90rpx;
  display: flex;
  align-items: center;
}

.cancel,
.success {
  flex: 1;
  background: #fff;
  height: 90rpx;
  font-size: 36rpx;
}

button::after {
  line-height: none;
}

.cancel {
  position: relative;
  text-align: center;
  line-height: 90rpx;
}

.success {
  color: #3cc51f;
  padding: 0;
}

.cancel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-right: 2px solid #e5e5e5;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 200%;
  height: 200%;
  -webkit-transform: scale(0.5);
  transform: scale(0.5);
  -webkit-transform-origin: left top;
  transform-origin: left top;
}

.m-cell-bd label {
  margin: 0rpx 5rpx;
}

.m-ber {
  /* padding:20rpx; */
  margin-top: 20rpx;
  background: rgba(255, 255, 255, 1);

  .m-cell {
    &::after {
      content: " ";
      position: absolute;
      left: 0;
      bottom: 0;
      right: 0;
      height: 1px;
      border-bottom: 1px solid #ebebe7;
      color: #ebebe7;
      -webkit-transform-origin: 0 0;
      transform-origin: 0 0;
      -webkit-transform: scaleY(0.5);
      transform: scaleY(0.5);
      left: 30rpx;
    }
    &::before {
      border: none;
    }
  }
}

.m-ber-image {
  width: 46rpx;
  height: 46rpx;
  float: left;
  margin-top: -2rpx;
  margin-right: 10rpx;
}

.m-ber-image img {
  width: 100%;
  height: 100%;
}

.m-ber-n {
  // padding-left:30rpx;
}

.nav-image {
  width: 12rpx;
  height: 24rpx;
  float: right;
  padding-top: 12rpx;
}

.m-ber-quan {
  width: 100%;
  background: rgba(255, 255, 255, 1);
  padding-top: 40rpx;
  padding-bottom: 20rpx;
}

.m-ber-l {
  font-size: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 1);
  line-height: 20px;
  position: relative;
  color: #999;
}

.m-cell {
  /* padding:24rpx 20rpx; */
}

.g-flex-items {
  padding: 15px 0 11px 0;
  -webkit-box-flex: 1;
  flex: 1;
  line-height: 1;
}
</style>
