Browse Source

删除无用文件夹(已废弃)

zhangxu 4 years ago
parent
commit
507f616510

+ 0 - 160
src/pages/ms/saleinfo/component/AfterSale/index.js

@@ -1,160 +0,0 @@
-import React, { PureComponent } from 'react';
-import { Table, Card, Alert, Button, Modal } from 'antd';
-import moment from 'moment';
-import get from 'lodash/get';
-import { generateDisputeTableColumns, generateAfterSaleTableColumns } from './tableColumns';
-import { tc } from '@/conf/config';
-import styles from './index.less';
-import {fetchApi} from "@/apis/";
-
-const returnTime = time => {
-  return moment(time * 1000).format('YYYY-MM-DD HH:mm:ss');
-};
-
-const expressUrl = `${tc}/ms/web/get-express`; // 查询物流信息
-
-class AfterSale extends PureComponent {
-  constructor(props) {
-    super(props);
-    this.state = {};
-    this.disputeTableColumns = generateDisputeTableColumns();
-    this.afterSaleTableColumns = generateAfterSaleTableColumns();
-  }
-
-  viewExpress = ({ com, code: nu }, sign) => e => {
-    e.stopPropagation();
-    fetchApi(expressUrl, {
-      com,
-      nu,
-      sign,
-    }).then(resp => {
-      if (resp.code === 0) {
-        const expressInfo = get(resp, 'data.expressInfo.showapi_res_body.data', []);
-        const msg = expressInfo.length
-          ? expressInfo.map(({ time, context }) => `${time} ${context}`).join('\n')
-          : '暂无物流信息';
-        Modal.info({
-          title: '物流信息',
-          width: 720,
-          content: <pre style={{ whiteSpace: 'pre-wrap', wordWrap: 'break-word' }}>{msg}</pre>,
-        });
-      }
-    });
-  };
-
-
-  render() {
-    const { goodsInfo = {} } = this.props;
-    const { traded = {} } = goodsInfo;
-    return (
-      <div>
-        {traded.saleAfter && (
-          <>
-            <p className={styles.sectionTitle}>售后信息</p>
-            <p style={{ paddingLeft: 24, width: '50%', float: 'left', marginBottom: 0 }}>
-              当前状态: {traded.saleAfter.status}
-            </p>
-            {traded.saleAfter.refundMoney && (
-              <p style={{ paddingLeft: 24, width: '50%', float: 'right', marginBottom: 0 }}>
-                申请退款金额: {traded.saleAfter.refundMoney}
-              </p>
-            )}
-            {traded.saleAfterMerge && (
-              <Table
-                dataSource={traded.saleAfterMerge}
-                columns={this.afterSaleTableColumns}
-                pagination={false}
-                size="small"
-                rowKey={record => record.createTime + record.content}
-              />
-            )}
-          </>
-        )}
-        {traded.returnDelivery && (
-        <Card
-          size="small"
-          title="退货信息"
-          style={{ display: 'inline-block', marginTop: 15, minWidth: 250 }}
-        >
-
-            <div className={`${styles.readForm} ${styles.normal}`}>
-              {traded.returnDelivery && traded.returnDelivery.returnDelivery && (
-                <>
-                  <div className={styles.readFormItem}>
-                    <div className={styles.readFormLabel}>物流公司:</div>
-                    <div className={styles.readFormValue}>
-                      {traded.returnDelivery.returnDelivery.com}
-                    </div>
-                  </div>
-                  <div className={styles.readFormItem}>
-                    <div className={styles.readFormLabel}>物流编号:</div>
-                    <div className={styles.readFormValue}>
-                      {traded.returnDelivery.returnDelivery.code}
-                    </div>
-                  </div>
-                  <div className={styles.readFormItem}>
-                    <div className={styles.readFormLabel}>物流详情:</div>
-                    <div className={styles.readFormValue}>
-                      <Button
-
-                        type="primary"
-                        onClick={this.viewExpress(
-                          traded.returnDelivery.returnDelivery,
-                          traded.returnDelivery.sign,
-                        )}
-                        size="small"
-                        style={{
-                          height: 20,
-                          lineHeight: '18px',
-                          fontSize: 13,
-                        }}
-                      >
-                        查看物流
-                      </Button>
-                    </div>
-                  </div>
-                </>
-              )}
-              {traded.returnDelivery && traded.returnDelivery.returnAddress && (
-                <>
-                  <h3 style={{ margin: '5px 0 0', fontSize: 13 }}>
-                    <span>收货地址:</span>
-                  </h3>
-                  <div className={styles.readFormItem}>
-                    <div className={styles.readFormLabel}>地址:</div>
-                    <div className={styles.readFormValue}>
-                      {traded.returnDelivery.returnAddress.proviceFirstStageName}-
-                      {traded.returnDelivery.returnAddress.addressCitySecondStageName}-
-                      {traded.returnDelivery.returnAddress.addressCountiesThirdStageName}-
-                      {traded.returnDelivery.returnAddress.addressDetailInfo}
-                    </div>
-                  </div>
-                  <div className={styles.readFormItem}>
-                    <div className={styles.readFormLabel}>姓名:</div>
-                    <div className={styles.readFormValue}>
-                      {traded.returnDelivery.returnAddress.userName}
-                    </div>
-                  </div>
-                  <div className={styles.readFormItem}>
-                    <div className={styles.readFormLabel}>电话:</div>
-                    <div className={styles.readFormValue}>
-                      {traded.returnDelivery.returnAddress.telNumber}
-                    </div>
-                  </div>
-                  <div className={styles.readFormItem}>
-                    <div className={styles.readFormLabel}>邮编:</div>
-                    <div className={styles.readFormValue}>
-                      {traded.returnDelivery.returnAddress.addressPostalCode}
-                    </div>
-                  </div>
-                </>
-              )}
-            </div>
-        </Card>
-        )}
-      </div>
-    );
-  }
-}
-
-export default AfterSale;

+ 0 - 42
src/pages/ms/saleinfo/component/AfterSale/index.less

@@ -1,42 +0,0 @@
-.sectionTitle {
-  background-color: #eee;
-  border-radius: 5px;
-  padding: 4px 7px;
-  margin: 10px 0 5px;
-}
-.readForm {
-  display: flex;
-  flex-wrap: wrap;
-  width: 100%;
-  line-height: 22px;
-  margin-bottom: 10px;
-  &.normal {
-    .readFormItem {
-      .readFormLabel {
-        font-size: 12px;
-      }
-      .readFormValue {
-        font-size: 12px;
-      }
-    }
-  }
-  .readFormItem {
-    width: auto;
-    margin-right: 20px;
-    .readFormLabel {
-      display: inline-block;
-      width: auto;
-      font-size: 14px;
-      color: rgba(0, 0, 0, 0.45);
-      text-align: right;
-      vertical-align: middle;
-      margin-right: 5px;
-    }
-    .readFormValue {
-      display: inline-block;
-      color: rgba(0, 0, 0, 0.85);
-      font-size: 16px;
-      vertical-align: middle;
-    }
-  }
-}

+ 0 - 103
src/pages/ms/saleinfo/component/AfterSale/tableColumns.js

@@ -1,103 +0,0 @@
-import React from 'react';
-import moment from 'moment';
-import { ImageGallery, LongText } from 'wptpc-design';
-import { tc } from '@/conf/config';
-
-export const generateDisputeTableColumns = () => {
-  return [
-    // 拍品付款信息
-    {
-      align: 'center',
-      title: '操作人',
-      dataIndex: 'operator',
-      width: '100px',
-    },
-    {
-      align: 'center',
-      title: '争议原因',
-      dataIndex: 'reason',
-      render: text => <LongText text={text} limit={20} />,
-    },
-    {
-      align: 'center',
-      title: '争议信息',
-      dataIndex: 'content',
-      render: text => <LongText text={text} limit={15} />,
-    },
-    {
-      align: 'center',
-      title: '举证图片',
-      dataIndex: 'disputeImgs',
-      width: '100px',
-      render: text => {
-        if (Array.isArray(text) && text[0]) {
-          const realImgSrc = `${tc}/${text[0]}`;
-          return <ImageGallery imgGroup={realImgSrc} />;
-        }
-      },
-    },
-    {
-      align: 'center',
-      title: '时间',
-      dataIndex: 'createTime',
-      width: '200px',
-      render: text => {
-        return moment(text * 1000).format('YYYY-MM-DD HH:mm:ss');
-      },
-    },
-  ];
-};
-
-export const generateAfterSaleTableColumns = () => {
-  return [
-    // 申请售后信息
-    {
-      align: 'center',
-      title: '操作人',
-      dataIndex: 'operator',
-      width: '100px',
-    },
-    {
-      align: 'center',
-      title: '操作内容',
-      dataIndex: 'content',
-      width: '100px',
-      render: text => <LongText text={text} limit={10} />,
-    },
-    {
-      align: 'center',
-      title: '原因',
-      dataIndex: 'reason',
-      width: '100px',
-      render: text => <LongText text={text} limit={10} />,
-    },
-    {
-      align: 'center',
-      title: '举证信息',
-      dataIndex: 'disputeContent',
-      width: '250px',
-      render: text => <LongText text={text} limit={25} />,
-    },
-    {
-      align: 'center',
-      title: '举证图片',
-      dataIndex: 'disputeImgs',
-      width: '100px',
-      render: text => {
-        if (Array.isArray(text) && text[0]) {
-          const realImgSrc = `${tc}/${text[0]}`;
-          return <ImageGallery imgGroup={realImgSrc} />;
-        }
-      },
-    },
-    {
-      align: 'center',
-      title: '时间',
-      dataIndex: 'createTime',
-      width: '100px',
-      render: text => {
-        return moment(text * 1000).format('YYYY-MM-DD HH:mm:ss');
-      },
-    },
-  ];
-};

+ 0 - 64
src/pages/ms/saleinfo/component/AuctionTag/index.js

@@ -1,64 +0,0 @@
-import React, { PureComponent } from 'react';
-import { Tag, Popconfirm, Button, message } from 'antd';
-import { connect } from 'dva';
-import styles from './index.less';
-
-@connect(({ auction, user }) => ({
-  auction,
-  user,
-}))
-class Tags extends PureComponent {
-  updateSaleShow = () => {
-    const {
-      ids,
-      dispatch,
-      all: { isShow },
-    } = this.props;
-    let newShow = 1;
-    if (isShow) {
-      newShow = 0;
-    }
-    dispatch({
-      type: 'auction/_updateSaleShow',
-      payload: { saleId: ids, isShow: newShow },
-      callback: data => {
-        if (data.code === 0) {
-          message.success('操作成功');
-          this.props.getDetails();
-        }
-      },
-    });
-  };
-
-  render() {
-    const { all } = this.props;
-    // console.log(ids)
-    const {
-      isEnableReturn,
-      isFreePost,
-      hasBzj,
-      hasReturnBtn,
-      isShow,
-      isAllowIdent,
-      isRecommend,
-      isGoodShopSale,
-      isDepot,
-    } = all;
-    const isshowText = isShow ? '隐藏' : '显示';
-    return (
-      <div className={styles.tagsList}>
-        {isEnableReturn && <Tag color="orange">包退</Tag>}
-        {isFreePost && <Tag color="orange">包邮</Tag>}
-        {hasBzj && <Tag color="orange">保证金</Tag>}
-        {hasReturnBtn && <Tag color="orange">有退货按钮</Tag>}
-        {isShow ? <Tag color="orange">已显示</Tag> : <Tag color="orange">已隐藏</Tag>}
-        {isAllowIdent && <Tag color="orange">支持鉴定</Tag>}
-        {isRecommend && <Tag color="orange">精选</Tag>}
-        {isGoodShopSale && <Tag color="orange">优店</Tag>}
-        {isDepot && <Tag color="orange">产品库</Tag>}
-      </div>
-    );
-  }
-}
-
-export default Tags;

+ 0 - 4
src/pages/ms/saleinfo/component/AuctionTag/index.less

@@ -1,4 +0,0 @@
-.tagsList{
-  display: inline-block;
-  // line-height: 21px!important;
-}

+ 0 - 79
src/pages/ms/saleinfo/component/Identify/index.js

@@ -1,79 +0,0 @@
-import React, { PureComponent } from 'react';
-import { Table } from 'antd';
-import get from 'lodash/get';
-
-const identifyResult = ['假货', '真品', '无法鉴定', '与实物不符'];
-const identifyStatus = {
-  '-1': '待审核',
-  1: '通过',
-  0: '不通过',
-  '-2': '取消鉴定',
-};
-// 鉴定进程 columns
-const identifyTableColumns = [
-  {
-    align: 'center',
-    title: '恢复内容',
-    dataIndex: 'replyContent',
-    // width: '200px',
-  },
-  {
-    align: 'center',
-    title: '鉴定结果',
-    dataIndex: 'truth',
-    render: text => {
-      return identifyResult[text];
-    },
-  },
-  {
-    align: 'center',
-    title: '鉴定状态',
-    dataIndex: 'status',
-    width: 120,
-    render: text => {
-      return identifyStatus[text];
-    },
-  },
-  {
-    align: 'center',
-    title: '处理状态',
-    dataIndex: 'processName',
-    width: 120,
-  },
-  {
-    title: '鉴定号',
-    width: 180,
-    dataIndex: 'uri',
-    key: 'uri',
-    render: (text, record) => {
-      return text !== '-' ? (
-        <div style={{ width: 100, height: 60 }}>
-            {text}
-        </div>
-      ) : (
-        '-'
-      );
-    },
-  },
-];
-
-class Identify extends PureComponent {
-  render() {
-    const { goodsInfo = {} } = this.props;
-    const { traded = {} } = goodsInfo;
-    const identList = get(traded, 'ident.identList', []);
-    return (
-      <div>
-        <Table
-          dataSource={identList}
-          columns={identifyTableColumns}
-          pagination={false}
-          rowKey="uri"
-          size="small"
-        />
-      </div>
-    );
-  }
-}
-
-export default Identify;

+ 0 - 121
src/pages/ms/saleinfo/component/TradedReturn/index.js

@@ -1,121 +0,0 @@
-import React, { PureComponent } from 'react';
-import { Row, Col, Collapse, Button, Modal } from 'antd';
-import { tc } from '@/conf/config';
-import { fetchApi } from '@/apis/'
-import get from 'lodash/get';
-
-const { Panel } = Collapse;
-const customPanelStyle = {
-  borderRadius: 4,
-  border: 0,
-  verticalAlign: 'top',
-};
-
-const expressUrl = `${tc}/wechat/v1.0/express/query-express`; // 查询物流信息
-
-
-class TradedReturnPage extends PureComponent {
-
-  getByType(object, path, defaultValue) {
-    if (typeof object !== 'object') {
-      return defaultValue;
-    }
-    const defaultValueType = typeof defaultValue;
-    const result = get(object, path);
-    return defaultValue === undefined || defaultValueType === (typeof result) ? result : defaultValue;
-  }
-
-  viewExpress = ({ com, code: nu }, sign) => e => {
-    e.stopPropagation();
-    fetchApi(expressUrl, {
-      com,
-      nu,
-      sign,
-    }).then(resp => {
-      if (resp.code === 0) {
-        const expressInfo = this.getByType(resp, 'data.expressInfo.showapi_res_body.data', []);
-        const msg = expressInfo.length
-          ? expressInfo.map(({ time, context }) => `${time} ${context}`).join('\n')
-          : '暂无物流信息';
-        Modal.info({
-          title: '物流信息',
-          width: 720,
-          content: <pre style={{ whiteSpace: 'pre-wrap', wordWrap: 'break-word' }}>{msg}</pre>,
-        });
-      }
-    });
-  };
-
-
-  render() {
-    const { goodsInfo = {} } = this.props;
-    const { tradedReturn = {} } = goodsInfo;
-    return (
-      <div>
-        <Row>
-          <Col span={24}>
-            <h3>售后退货信息</h3>
-          </Col>
-          {tradedReturn && (
-            <Col span={12}>
-              <div style={{ marginBottom: '1em', paddingBottom: 10 }}>
-                <span
-                  style={{
-                    display: 'inline-block',
-                    verticalAlign: 'top',
-                    lineHeight: 46,
-                  }}
-                >
-                  <Collapse bordered={false}>
-                    {tradedReturn.delivery && (
-                      <Panel header="物流信息" key="1" style={customPanelStyle}>
-                        <p>物流公司:{tradedReturn.delivery.com}</p>
-                        <p>物流编号:{tradedReturn.delivery.code}</p>
-                        <p><Button
-                          type="primary"
-                          onClick={this.viewExpress(
-                            tradedReturn.delivery,
-                            tradedReturn.sign,
-                          )}
-                          size="small"
-                          style={{
-                            height: 20,
-                            lineHeight: '18px',
-                            fontSize: 13,
-                          }}
-                        >
-                          查看物流
-                        </Button></p>
-                      </Panel>
-                    )}
-                    {tradedReturn.returnAddress && (
-                      <Panel header="地址信息" key="2" style={customPanelStyle}>
-                        <p style={{ paddingLeft: 24 }}>
-                          地址:{tradedReturn.returnAddress.proviceFirstStageName}-
-                          {tradedReturn.returnAddress.addressCitySecondStageName}-
-                          {tradedReturn.returnAddress.addressCountiesThirdStageName}-
-                          {tradedReturn.returnAddress.addressDetailInfo}
-                        </p>
-                        <p style={{ paddingLeft: 24 }}>
-                          姓名:{tradedReturn.returnAddress.userName}
-                        </p>
-                        <p style={{ paddingLeft: 24 }}>
-                          电话:{tradedReturn.returnAddress.telNumber}
-                        </p>
-                        <p style={{ paddingLeft: 24 }}>
-                          邮编:{tradedReturn.returnAddress.addressPostalCode}
-                        </p>
-                      </Panel>
-                    )}
-                  </Collapse>
-                </span>
-              </div>
-            </Col>
-          )}
-        </Row>
-      </div>
-    );
-  }
-}
-
-export default TradedReturnPage;

+ 0 - 924
src/pages/ms/saleinfo/index.js

@@ -1,924 +0,0 @@
-import React from 'react'
-import { connect } from 'dva'
-import { fetchApi } from '@/apis/'
-import { Descriptions, message, Collapse, Col, Row, Alert, Tabs, Card, Button, Table, Tag,Modal, Input } from 'antd'
-import { apiCdn } from '@/conf/config'
-import Tags from './component/AuctionTag';
-import moment from 'moment';
-import { FilterTable, ImageGallery, LongText } from 'wptpc-design';
-import styles from './index.less';
-import isEmpty from 'lodash/isEmpty';
-import get from 'lodash/get';
-import { getSaleDetail,getUserPhoneNum } from './services';
-import { tc } from '../../../conf/config';
-import AfterSale from './component/AfterSale';
-import Identify from './component/Identify';
-import TradedReturnPage from './component/TradedReturn';
-
-const { Panel } = Collapse;
-const { TabPane } = Tabs;
-
-const bidSaleListUrl = `${tc}/ms/web/get-sale-bid-list`
-const paySaleListUrl = `${tc}/ms/web/get-sale-pay-list`
-const expressUrl = `${tc}/ms/web/get-express`; // 查询物流信息
-
-
-@connect(({ loading }) => ({
-    // 添加或者编辑接口触发的loading属性,可以用于控制接口请求阶段让对话框的”确定“按钮不可点击
-    // actionLoading: loading.effects['tctemplate/_addItem'] || loading.effects['ugc/_editItem']
-}))
-class Index extends React.PureComponent {
-
-    constructor(props) {
-        super();
-        this.saleId = props.location.query.saleId;
-        this.state = {
-            saleId: this.saleId,
-            total: 0,
-            computedModal: false,
-            dataSource: [],
-            computedLoading: false,
-            data: {},
-            visible: false,
-            loading: false,
-            commitLoading: false, // 控制表单提交按钮的loading
-            merchantsTel: '',
-            merchantsTelTag: true,
-            masterTel: '',
-            masterTelTag: true,
-            tradingTel: '',
-            tradingTelTag: true,
-            isContinue: false,
-        }
-    }
-    componentDidMount() {
-        this.search();
-    }
-
-    normalFilterSetting = {
-        formFields: [],
-        hasSearchBtn: false, // 是否有搜索按钮
-        hasClearBtn: false, // 是否有重置按钮
-        beforeSearchFunc: params => {
-          params.saleId = this.state.saleId;
-          return params;
-        },
-      };
-
-
-
-      viewExpress = ({ com, code: nu }, sign) => e => {
-        e.stopPropagation();
-        fetchApi(expressUrl, {
-          com,
-          nu,
-          sign,
-        }).then(resp => {
-          if (resp.code === 0) {
-            const expressInfo = get(resp, 'data.expressInfo.showapi_res_body.data', []);
-            const msg = expressInfo.length
-              ? expressInfo.map(({ time, context }) => `${time} ${context}`).join('\n')
-              : '暂无物流信息';
-            Modal.info({
-              title: '物流信息',
-              width: 720,
-              content: <pre style={{ whiteSpace: 'pre-wrap', wordWrap: 'break-word' }}>{msg}</pre>,
-            });
-          }
-        });
-      };
-    // filtertable的列表配置
-    bidTableSetting = {
-        pagination: {
-            pageSize: 10
-        },
-        columnConfig: [
-            {
-                title: '用户id',
-                dataIndex: 'userinfoId'
-            },
-            {
-                title: '用户昵称',
-                dataIndex: 'nickname'
-            },
-            {
-                title: '出价金额',
-                dataIndex: 'price'
-            },
-            {
-                title: '创建时间',
-                dataIndex: 'createTime'
-            },
-            {
-                title: 'IP',
-                dataIndex: 'ip'
-            },
-        ]
-    }
-
-    payTableSetting = {
-        pagination: {
-            pageSize: 10
-        },
-        columnConfig: [
-            {
-                title: '付款人昵称',
-                dataIndex: 'nickname'
-            },
-            {
-                title: '金额',
-                dataIndex: 'money'
-            },
-            {
-                title: '付款类型',
-                dataIndex: 'type'
-            },
-            {
-                title: '当前款项状态',
-                dataIndex: 'status'
-            },
-            {
-                title: '商户交易号',
-                dataIndex: 'out_trade_no'
-            },
-            {
-                title: '付款时间',
-                dataIndex: 'createTime',
-                render: text => moment(text * 1000).format('YYYY-MM-DD HH:mm:ss'),
-              },
-        ]
-        
-    }
-
-    getPhoneNum = () =>{
-
-          if (this.state.merchantsTelTag) {
-            getUserPhoneNum({from:2, dataId:this.state.saleId, field:3}).then(res => {
-              if (res.code === 0) {
-                if(JSON.stringify(res.data) !== '{}'){
-                this.setState({
-                  merchantsTel: res.data,
-                  merchantsTelTag: false,
-                });
-                }
-              }
-            });
-          }
-          if (this.state.tradingTelTag) {
-            getUserPhoneNum({from:2, dataId:this.state.saleId, field:4}).then(res => {
-              if (res.code === 0) {
-                this.setState({
-                  tradingTel: res.data,
-                  tradingTelTag: false,
-                });
-              }
-            });
-
-          }
-    }
-
-    getDetails = () => {
-        const { saleId, pending } = this.state;
-        if (!pending) {
-          this.setState({
-            pending: true,
-          });
-        }
-        fetchApi(`${tc}/ms/web/get-sale-detail`, {
-          saleId,
-        }).then(resp => {
-          const newState = {
-            pending: false,
-          };
-          this.setState(newState);
-        });
-    };
-
-    search = () => {
-        this.setState({ loading: true });
-        console.log("search");
-        getSaleDetail({ saleId: this.saleId }).then(res => {
-            if (res) {
-                console.log("res set state");
-                this.setState({ dataSource: res.data, loading: false });
-                if(res.code === 0){
-                    this.setState({isContinue:true})
-                    this.getPhoneNum();
-                }
-                // if(res.data.trading.winner){
-                //     // this.setState({buyer})
-                // }
-            } else {
-                console.log("set state");
-                this.setState({ loading: false });
-            }
-        });
-    };
-
-    onSearch = value => {
-        this.state.isContinue = false
-        this.state.saleId = value
-        this.state.merchantsTelTag = true
-        this.state.tradingTelTag = true
-        //this.setState({saleId: value})
-        if (!value) {
-            message.warning('请输入拍品ID')
-            return;
-        }
-        getSaleDetail({ saleId: value }).then(res => {
-            if (res) {
-                console.log(res.code);
-                this.setState({ dataSource: res.data, loading: false });
-                if(res.code === 0){
-                    this.setState({isContinue: true})
-                    this.getPhoneNum()
-                    console.log(this.state.isContinue)
-                }
-            } else {
-                console.log("set state");
-                this.setState({ loading: false });
-            }
-        });
-    };
-
-    callback(key) {
-        console.log(key);
-    }
-
-    returnTime = time => {
-        if (time) {
-            return moment(time * 1000).format('YYYY-MM-DD HH:mm:ss');
-        } else {
-            return '';
-        }
-    };
-
-    render() {
-        const customPanelStyle = {
-            borderRadius: 4,
-            border: 0,
-            verticalAlign: 'top',
-        };
-
-        const { dataSource = {}} = this.state
-        const { base = {}, traded = {}, trading = {} } = dataSource
-        const { priceData = {} } = base
-        const { deliveryInfo = {}} = trading
-        const { address = {}} = deliveryInfo
-        const isContinue = this.state.isContinue
-        const afterMergeColums = [
-            // 申请售后信息
-            {
-      
-              title: '操作人',
-              dataIndex: 'operator',
-              width: '100px',
-            },
-            {
-      
-              title: '操作内容',
-              dataIndex: 'content',
-              width: '100px',
-              render: text => <LongText text={text} limit={10}/>,
-            },
-            {
-      
-              title: '原因',
-              dataIndex: 'reason',
-              width: '100px',
-              render: text => <LongText text={text} limit={10}/>,
-            },
-            {
-      
-              title: '举证信息',
-              dataIndex: 'disputeContent',
-              width: '250px',
-              render: text => <LongText text={text} limit={25}/>,
-            },
-            {
-      
-              title: '举证图片',
-              dataIndex: 'disputeImgs',
-              width: '100px',
-              render: text =>
-                text && text[0] && <ImageGallery imgGroup={{ src: `${apiCdn}/${text[0]}` }}/>,
-            },
-            {
-      
-              title: '时间',
-              dataIndex: 'createTime',
-              width: '100px',
-              render: text => {
-                return moment(text * 1000).format('YYYY-MM-DD HH:mm:ss');
-              },
-            },
-          ];
-
-        // 鉴定信息
-        const identListColums = [
-            // 鉴定进程
-            {
-      
-              title: '恢复内容',
-              dataIndex: 'replyContent',
-              width: '200px',
-            },
-            {
-              title: '鉴定结果',
-              dataIndex: 'truth',
-              width: '200px',
-              render: text => {
-                const truth = {
-                  0: '假货',
-                  1: '真品',
-                  2: '无法鉴定',
-                  3: '与实物不符',
-                };
-                return truth[`${text}`];
-              },
-            },
-            {
-      
-              title: '鉴定状态',
-              dataIndex: 'status',
-              width: '200px',
-              render: text => {
-                const truth = {
-                  '-1': '待审核',
-                  1: '通过',
-                  0: '不通过',
-                  '-2': '取消鉴定',
-                };
-                return truth[`${text}`];
-              },
-            },
-            {
-      
-              title: '处理状态',
-              dataIndex: 'processName',
-              width: '200px',
-            },
-            {
-              title: '鉴定号',
-              width: 120,
-              dataIndex: 'uri',
-              key: 'uri',
-              render: (text, record) => {
-                return text !== '-' ? (
-                  <div style={{ width: 100, height: 60 }}>
-                    <a
-                    //   onClick={() => {
-                    //     window.open(
-                    //       `${hostDev}/yzl/traded.thawTimezg/progress?userId=${this.props.userId}&uri=${text}`,
-                    //     );
-                    //   }}
-                    >
-                      {text}
-                    </a>
-                  </div>
-                ) : (
-                  '-'
-                );
-              },
-            },
-            {
-      
-              title: '处理状态',
-              dataIndex: 'processName',
-              width: '200px',
-            },
-          ];
-
-        const baseImages = Array.isArray(base.images) && base.images.length
-            ? base.images.map(relativeUrl => apiCdn + relativeUrl)
-            : null;
-
-        return (
-            <div>
-                <Input.Search placeholder="请输入拍品ID" style={{ width: 246,float:'right' }} size="small" onSearch={this.onSearch}/>
-                <Descriptions title="基础信息" column={2}>
-                    <Descriptions.Item label="拍品ID/Uri">{base.saleId}</Descriptions.Item>
-                    <Descriptions.Item label="拍品类型">{base.saleType}</Descriptions.Item>
-                    <Descriptions.Item label="拍品分类">{base.saleCategory}</Descriptions.Item>
-                    <Descriptions.Item label="拍品状态">{base.saleStatus}</Descriptions.Item>
-                    <Descriptions.Item label="开拍时间">{this.returnTime(base.openTime)}</Descriptions.Item>
-                    <Descriptions.Item label="截拍时间">{this.returnTime(base.endTime)}</Descriptions.Item>
-                    <Descriptions.Item label="拍品描述">{base.content}</Descriptions.Item>
-                    <Descriptions.Item label="拍品属性">
-                        {base.saleAttr && (
-                            <Tags all={base.saleAttr} ids={base.saleId} getDetails={this.props.getDetails} />
-                        )}
-                    </Descriptions.Item>
-                    <Descriptions.Item label="价格信息">
-                        <Collapse bordered={false} defaultActiveKey={['1']}>
-                            <Panel header={
-                                <div style={{ marginBottom: 4 }}>
-                                    <span>起拍价:</span>
-                                    <span style={{ marginLeft: 8 }}>{priceData.bidmoney}</span>
-                                </div>
-                            } key="1" style={customPanelStyle}>
-                                <Row>
-                                    <Col span={12}>
-                                        <p style={{ marginBottom: 4 }}>加价:{priceData.increase}</p>
-                                    </Col>
-                                    <Col span={12}>
-                                        <p style={{ marginBottom: 4 }}>一口价:{priceData.fixedPrice}</p>
-                                    </Col>
-                                    <Col span={12}>
-                                        <p style={{ marginBottom: 4 }}>参考价:{priceData.referencePrice}</p>
-                                    </Col>
-                                    <Col span={12}>
-                                        <p style={{ marginBottom: 4 }}>供货价:{priceData.depotPdPrice}</p>
-                                    </Col>
-                                </Row>
-                            </Panel>
-                        </Collapse>
-                    </Descriptions.Item>
-                    <Descriptions term="商家信息" style={{ marginBottom: 1 }}>
-                        {/* defaultActiveKey={['1']} */}
-                        {base.merchants && (
-                            <Collapse bordered={false}>
-                            {base.merchants.shopInfo && (
-                                <Panel
-                                header={
-                                    <div style={{ marginBottom: 4 }}>
-                                    <span>卖家名称(id):</span>
-                                    <a
-                                        // onClick={() => {
-                                        //   window.open(
-                                        //     `${hostDev}/wptmanage/user/profile/${base.merchants.shopInfo.id}`,
-                                        //   );
-                                        // }}
-                                        style={{ marginLeft: 8 }}
-                                    >
-                                        {base.merchants.shopInfo.shopName}
-                                    </a>
-                                    <span style={{ marginLeft: 2 }}>({base.merchants.shopInfo.id})</span>
-                                    </div>
-                                }
-                                key="1"
-                                style={customPanelStyle}
-                                >
-                                <p style={{ marginBottom: 4 }}>
-                                    卖家手机号:{this.state.merchantsTel}
-                                </p>
-                                </Panel>
-                            )}
-                            {base.merchants.master && (
-                                <Panel header="库主" key="2" style={customPanelStyle}>
-                                <div style={{ marginBottom: 4 }}>
-                                    <span>库主id:</span>
-                                    <span style={{ marginLeft: 8 }}>{base.merchants.master.id}</span>
-                                </div>
-                                <div style={{ marginBottom: 4 }}>
-                                    <span>库主名称:</span>
-                                    <a
-                                    //   onClick={() => {
-                                    //     window.open(
-                                    //       `${hostDev}/wptmanage/user/profile/${base.merchants.master.id}`,
-                                    //     );
-                                    //   }}
-                                    style={{ marginLeft: 8 }}
-                                    >
-                                    {base.merchants.master.shopName}
-                                    </a>
-                                </div>
-                                <p style={{ marginBottom: 4 }}>
-                                    <span>库主手机号:</span>
-                                    <span style={{ marginLeft: 8 }}>{this.state.masterTel || base.merchants.master.tel}</span>
-                                    <a style={{ marginLeft: 4 }} onClick={this.handleShowMasterTel}>
-                                    显示电话
-                                    </a>
-                                </p>
-                                </Panel>
-                            )}
-                            </Collapse>
-                        )}
-                    </Descriptions>
-                    <Descriptions.Item label="拍品图片">{baseImages && <ImageGallery imgGroup={baseImages} />}</Descriptions.Item>
-                </Descriptions>
-
-
-                {(!isEmpty(trading) || !isEmpty(traded)) &&
-                    <Alert
-                        style={{ marginBottom: 10 }}
-                        message={
-                            <div className={styles.readForm}>
-                                {!!traded.finishedTime &&
-                                    (traded.status === 'finished' || traded.status === 'unsold') && (
-                                        <div className={styles.readFormItem}>
-                                            <div className={styles.readFormLabel}>
-                                                {traded.status === 'finished' ? '交易完成时间' : ''}
-                                                {traded.status === 'unsold' ? '交易失败时间' : ''}:
-                            </div>
-                                            <div className={styles.readFormValue}>{this.returnTime(traded.finishedTime)}</div>
-                                        </div>
-                                    )}
-                                {!!traded.launchTime && (
-                                    <div className={styles.readFormItem}>
-                                        <div className={styles.readFormLabel}>退货时间:</div>
-                                        <div className={styles.readFormValue}>{this.returnTime(traded.launchTime)}</div>
-                                    </div>
-                                )}
-                                {!!traded.thawTime && (
-                                    <div className={styles.readFormItem}>
-                                        <div className={styles.readFormLabel}>货款解冻:</div>
-                                        <div className={styles.readFormValue}>{this.returnTime(traded.thawTime)}</div>
-                                    </div>
-                                )}
-                                {!!trading.paidTime && (
-                                    <div className={styles.readFormItem}>
-                                        <div className={styles.readFormLabel}>付款时间:</div>
-                                        <div className={styles.readFormValue}>{this.returnTime(trading.paidTime)}</div>
-                                    </div>
-                                )}
-                                {!!trading.delayPayTime && (
-                                    <div className={styles.readFormItem}>
-                                        <div className={styles.readFormLabel}>截止付款:</div>
-                                        <div className={styles.readFormValue}>{this.returnTime(trading.delayPayTime)}</div>
-                                    </div>
-                                )}
-                                {!!trading.deliveryTime && (
-                                    <div className={styles.readFormItem}>
-                                        <div className={styles.readFormLabel}>发货时间:</div>
-                                        <div className={styles.readFormValue}>{this.returnTime(trading.deliveryTime)}</div>
-                                    </div>
-                                )}
-                                {!!trading.originDelayPayTime && (
-                                    <div className={styles.readFormItem}>
-                                        <div className={styles.readFormLabel}>原截止日期:</div>
-                                        <div className={styles.readFormValue}>
-                                            {this.returnTime(trading.originDelayPayTime)}
-                                        </div>
-                                    </div>
-                                )}
-                                {!!trading.delayReceiptTime && (
-                                    <div className={styles.readFormItem}>
-                                        <div className={styles.readFormLabel}>截止收货:</div>
-                                        <div className={styles.readFormValue}>{this.returnTime(trading.delayReceiptTime)}</div>
-                                    </div>
-                                )}
-                            </div>
-                        }
-                        type="info"
-                    />
-                }
-
-                {/* 显示各类信息 */}
-                <Tabs defaultActiveKey="1" onChange={this.callback}>
-                    
-                    <TabPane tab="交易信息" key="1">
-                        {trading.winner && (
-                            <div className={styles.buyerInfoItem}>
-                                <Card size="small" title="中拍买家信息">
-                                    <div className={`${styles.readForm} ${styles.normal}`}>
-                                        <div className={styles.readFormItem}>
-                                            <div className={styles.readFormLabel}>买家id:</div>
-                                            <div className={styles.readFormValue}>{trading.winner.id}</div>
-                                        </div>
-                                        <div className={styles.readFormItem}>
-                                            <div className={styles.readFormLabel}>买家名称:</div>
-                                            <div className={styles.readFormValue}>
-                                                <a
-                                                    onClick={() => {
-                                                    }}
-                                                >
-                                                    {trading.winner.shopName}
-                                                </a>
-                                            </div>
-                                        </div>
-                                        <div className={styles.readFormItem}>
-                                            <div className={styles.readFormLabel}>买家手机号:</div>
-                                            <div className={styles.readFormValue}>
-                                                {this.state.tradingTel || trading.winner.tel} 
-                                            </div>
-                                        </div>
-                                    </div>
-                                </Card>
-                            </div>
-                        )}
-
-                        {trading.dealInfo && (
-                            <div className={styles.buyerInfoItem}>
-                                <Card size="small" title="拍品成交价格信息">
-                                    <div className={`${styles.readForm} ${styles.normal}`}>
-                                        <div className={styles.readFormItem}>
-                                            <div className={styles.readFormLabel}>成交价:</div>
-                                            <div className={styles.readFormValue}>{trading.dealInfo.price}</div>
-                                        </div>
-                                        <div className={styles.readFormItem}>
-                                            <div className={styles.readFormLabel}>原价:</div>
-                                            <div className={styles.readFormValue}>{trading.dealInfo.originPrice}</div>
-                                        </div>
-                                        <div className={styles.readFormItem}>
-                                            <div className={styles.readFormLabel}>折扣:</div>
-                                            <div className={styles.readFormValue}>{trading.dealInfo.discount}</div>
-                                        </div>
-                                        <div className={styles.readFormItem}>
-                                            <div className={styles.readFormLabel}>定金:</div>
-                                            <div className={styles.readFormValue}>{trading.dealInfo.deposit}</div>
-                                        </div>
-                                        <div className={styles.readFormItem}>
-                                            <div className={styles.readFormLabel}>尾款:</div>
-                                            <div className={styles.readFormValue}>{trading.dealInfo.finalPrice}</div>
-                                        </div>
-                                    </div>
-                                </Card>
-                            </div>)}
-
-                        
-                        <p className={styles.sectionTitle}>出价列表</p>
-                        {isContinue && <FilterTable
-                            filterSetting={this.normalFilterSetting}
-                            tableSetting={this.bidTableSetting}
-                            apiUrl={bidSaleListUrl}
-                            isPage={false}
-                        />
-                        }
-                        <p className={styles.sectionTitle}>付款信息</p>
-                        {isContinue &&
-                        <FilterTable
-                            filterSetting={this.normalFilterSetting}
-                            tableSetting={this.payTableSetting}
-                            apiUrl={paySaleListUrl}
-                            isPage={false}
-                        />
-                        }
-
-                        {/* // 底部 */}
-                        <div className={styles.otherInfo}>
-                            <Row gutter={16} type="flex" align="top">
-                                {traded.poundage && (
-                                    <Col span={8}>
-                                        <div className={styles.otherInfoItem}>
-                                            <Card size="small" title="手续费信息">
-                                                <div className={`${styles.readForm} ${styles.normal}`}>
-                                                    <div className={styles.readFormItem}>
-                                                        <div className={styles.readFormLabel}>手续费金额:</div>
-                                                        <div className={styles.readFormValue}>¥{traded.poundage.total_fee}</div>
-                                                    </div>
-                                                    <div className={styles.readFormItem}>
-                                                        <div className={styles.readFormValue}>
-                                                            {traded.poundage.feeList.map(item => {
-                                                                return <span>{item}</span>;
-                                                            })}
-                                                        </div>
-                                                    </div>
-                                                </div>
-                                            </Card>
-                                        </div>
-                                    </Col>
-                                )}
-                                {trading.disCountInfo && (
-                                    <Col span={8}>
-                                        <div className={styles.otherInfoItem}>
-                                            <Card
-                                                className={styles.sendInfo}
-                                                size="small"
-                                                title="折扣信息"
-                                            >
-
-                                                <Collapse bordered={false}>
-                                                    {trading.disCountInfo.couponList && (
-                                                        <Panel header="优惠券列表" key="1" style={customPanelStyle}>
-                                                            <Table
-                                                                dataSource={trading.disCountInfo.couponList}
-                                                                // columns={couponListColums}
-                                                                pagination={false}
-                                                                style={{ marginBottom: 16 }}
-                                                                size="small"
-                                                            />
-                                                        </Panel>
-                                                    )}
-                                                    <Panel header="其他折扣信息" key="2" style={customPanelStyle}>
-                                                        <p style={{ paddingLeft: 24 }}>
-                                                            店铺红包金额:{trading.disCountInfo.shopRedPack}
-                                                        </p>
-                                                        <p style={{ paddingLeft: 24 }}>平台补贴:{trading.disCountInfo.wptSubsidy}</p>
-                                                    </Panel>
-                                                </Collapse>
-
-                                            </Card>
-                                        </div>
-                                    </Col>
-                                )}
-                                {trading.deliveryInfo && (
-                                    <Col span={8}>
-                                        <div className={styles.otherInfoItem}>
-                                            <Card
-                                                className={styles.sendInfo}
-                                                size="small"
-                                                title="发货信息"
-                                                // extra={this.sendInfoExtraBtn()}
-                                            >
-
-                                                <div className={`${styles.readForm} ${styles.normal}`}>
-                                                    {trading.deliveryInfo.delivery && (
-                                                        <>
-                                                            <h3 style={{ width: '100%', margin: 0, fontSize: 13 }}>
-                                                                <span>物流信息:</span>
-                                                                {trading.deliveryInfo.delivery &&
-                                                                    trading.deliveryInfo.delivery.com &&
-                                                                    trading.deliveryInfo.delivery.code && (
-                                                                        <Button
-                                                                            type="primary"
-                                                                            onClick={this.viewExpress(
-                                                                                trading.deliveryInfo.delivery,
-                                                                                trading.deliveryInfo.sign,
-                                                                            )}
-                                                                            size="small"
-                                                                            style={{
-                                                                                height: 20,
-                                                                                lineHeight: '18px',
-                                                                                fontSize: 13,
-                                                                            }}
-                                                                        >
-                                                                            查看物流
-                                                                        </Button>
-                                                                    )}
-                                                            </h3>
-                                                            <div className={styles.readFormItem}>
-                                                                <div className={styles.readFormLabel}>物流公司:</div>
-                                                                <div className={styles.readFormValue}>
-                                                                    {trading.deliveryInfo.delivery.com}
-                                                                </div>
-                                                            </div>
-                                                            <div className={styles.readFormItem}>
-                                                                <div className={styles.readFormLabel}>物流编号:</div>
-                                                                <div className={styles.readFormValue}>
-                                                                    {trading.deliveryInfo.delivery.code}
-                                                                </div>
-                                                            </div>
-                                                        </>
-                                                    )}
-
-                                                    <h3 style={{ width: '100%', margin: '5px 0 0', fontSize: 13 }}>
-                                                        <span>收货地址:{isEmpty(address) && <Button
-                                                            type="primary"
-                                                            onClick={this.handleShowAddr}
-                                                            size="small"
-                                                            style={{
-                                                                height: 20,
-                                                                lineHeight: '18px',
-                                                                fontSize: 13,
-                                                            }}
-                                                        >
-                                                            查看地址
-                                        </Button>}</span>
-                                                    </h3>
-                                                    {!isEmpty(address) && (
-                                                        <>
-                                                            <div className={styles.readFormItem}>
-                                                                <div className={styles.readFormLabel}>地址:</div>
-                                                                <div className={styles.readFormValue}>
-                                                                    {address.proviceFirstStageName}-
-                                        {address.addressCitySecondStageName}-
-                                        {address.addressCountiesThirdStageName}-
-                                        {address.addressDetailInfo}
-                                                                </div>
-                                                            </div>
-                                                            <div className={styles.readFormItem}>
-                                                                <div className={styles.readFormLabel}>姓名:</div>
-                                                                <div className={styles.readFormValue}>{address.userName}</div>
-                                                            </div>
-                                                            <div className={styles.readFormItem}>
-                                                                <div className={styles.readFormLabel}>电话:</div>
-                                                                <div className={styles.readFormValue}>{address.telNumber}</div>
-                                                            </div>
-                                                            <div className={styles.readFormItem}>
-                                                                <div className={styles.readFormLabel}>邮编:</div>
-                                                                <div className={styles.readFormValue}>
-                                                                    {address.addressPostalCode}
-                                                                </div>
-                                                            </div>
-                                                        </>)
-                                                    }
-                                                </div>
-
-                                            </Card>
-                                        </div>
-                                    </Col>
-                                )}
-                                {traded.credits && (
-                                    <Col span={8}>
-                                        <div className={styles.otherInfoItem}>
-                                            <Card size="small" title="积分信息">
-
-                                                <div className={`${styles.readForm} ${styles.normal}`}>
-                                                    <div className={styles.readFormItem}>
-                                                        <div className={styles.readFormLabel}>结算前卖家总积分:</div>
-                                                        <div className={styles.readFormValue}>
-                                                            {traded.credits.totalSellerLevelScores}
-                                                        </div>
-                                                    </div>
-                                                    <div className={styles.readFormItem}>
-                                                        <div className={styles.readFormLabel}>此单结算卖家积分:</div>
-                                                        <div className={styles.readFormValue}>
-                                                            {traded.credits.sellerLevelScores}
-                                                        </div>
-                                                    </div>
-                                                    <div className={styles.readFormItem}>
-                                                        <div className={styles.readFormLabel}>结算前买家成长值:</div>
-                                                        <div className={styles.readFormValue}>
-                                                            {traded.credits.preMemberLevelScores}
-                                                        </div>
-                                                    </div>
-                                                    <div className={styles.readFormItem}>
-                                                        <div className={styles.readFormLabel}>此单结算买家成长值:</div>
-                                                        <div className={styles.readFormValue}>
-                                                            {traded.credits.memberLevelScores}
-                                                        </div>
-                                                    </div>
-                                                </div>
-
-                                            </Card>
-                                        </div>
-                                    </Col>
-                                )}
-                                {traded.rate && (
-                                    <Col span={8}>
-                                        <div className={styles.otherInfoItem}>
-                                            <Card size="small" title="评价信息">
-
-                                                <div className={`${styles.readForm} ${styles.normal}`}>
-                                                    <div className={styles.readFormItem}>
-                                                        <div className={styles.readFormLabel}>评分:</div>
-                                                        <div className={styles.readFormValue}>{traded.rate.stars}</div>
-                                                    </div>
-                                                    <div className={styles.readFormItem}>
-                                                        <div className={styles.readFormLabel}>是否匿名:</div>
-                                                        <div className={styles.readFormValue}>
-                                                            {traded.rate.isAnonymous ? '是' : '否'}
-                                                        </div>
-                                                    </div>
-                                                    <div className={styles.readFormItem}>
-                                                        <div className={styles.readFormLabel}>评价内容:</div>
-                                                        <div className={styles.readFormValue}>{traded.rate.content}</div>
-                                                    </div>
-                                                    <div className={styles.readFormItem}>
-                                                        <div className={styles.readFormLabel}>评价时间:</div>
-                                                        <div className={styles.readFormValue}>
-                                                            {/* {returnTime(traded.rate.createTime)} */}
-                                                        </div>
-                                                    </div>
-                                                    {traded.rate.imgs && (
-                                                        <div className={styles.readFormItem}>
-                                                            <div className={styles.readFormLabel}>评价图片:</div>
-                                                            <div className={styles.readFormValue}>
-                                                                {traded.rate.imgs.map(relativeSrc => {
-                                                                    return (
-                                                                        <img
-                                                                            // src={`${apiCdn}/${relativeSrc}`}
-                                                                            alt=""
-                                                                            style={{ maxWidth: 50 }}
-                                                                        />
-                                                                    );
-                                                                })}
-                                                            </div>
-                                                        </div>
-                                                    )}
-                                                    {traded.rate.tags && (
-                                                        <div className={styles.readFormItem}>
-                                                            <div className={styles.readFormLabel}>评价标签:</div>
-                                                            <div className={styles.readFormValue}>
-                                                                {traded.rate.tags.map(item => {
-                                                                    if (item.isSelected) {
-                                                                        return <Tag>{item.tagName}</Tag>;
-                                                                    } else {
-                                                                        return null;
-                                                                    }
-                                                                })}
-                                                            </div>
-                                                        </div>
-                                                    )}
-                                                </div>
-                                            </Card>
-                                        </div>
-                                    </Col>
-                                )}
-                            </Row>
-                        </div>
-                    </TabPane>
-                    
-                    <TabPane tab="售后信息" key="2">
-                    {traded && (
-                        <AfterSale refresh={this.getDetails} goodsInfo={dataSource} saleId={this.saleId} />)}
-                    </TabPane>
-                    <TabPane tab="鉴定信息" key="3">
-                    {traded && (
-                        <Identify refresh={this.getDetails} goodsInfo={dataSource} saleId={this.saleId} />
-                    )}
-                    </TabPane>
-                    <TabPane tab="售后退货信息" key="4">
-                        {dataSource.tradedReturn && (
-                        <TradedReturnPage refresh={this.getDetails} goodsInfo={dataSource} saleId={this.saleId} />
-                        )}
-                    </TabPane>
-                </Tabs>
-
-            </div>
-        )
-    }
-}
-
-export default Index

+ 0 - 162
src/pages/ms/saleinfo/index.less

@@ -1,162 +0,0 @@
-.readForm {
-  display: flex;
-  flex-wrap: wrap;
-  width: 100%;
-  line-height: 22px;
-  margin-bottom: 10px;
-  &.normal {
-    .readFormItem {
-      .readFormLabel {
-        font-size: 12px;
-      }
-      .readFormValue {
-        font-size: 12px;
-      }
-    }
-  }
-  .readFormItem {
-    width: auto;
-    margin-right: 20px;
-    .readFormLabel {
-      display: inline-block;
-      width: auto;
-      font-size: 14px;
-      color: rgba(0, 0, 0, 0.45);
-      text-align: right;
-      vertical-align: middle;
-      margin-right: 5px;
-    }
-    .readFormValue {
-      display: inline-block;
-      color: rgba(0, 0, 0, 0.85);
-      font-size: 16px;
-      vertical-align: middle;
-    }
-  }
-}
-.static {
-  padding: 8px 15px 0 15px !important;
-  margin-bottom: 10px;
-}
-.buyerInfo {
-  display: flex;
-  .buyerInfoItem {
-    flex: 1;
-    margin-right: 20px;
-    &:last-child {
-      margin-right: 0;
-    }
-  }
-  :global {
-    .ant-card-body {
-      padding-bottom: 2px;
-    }
-    p {
-      margin-bottom: 10px;
-      &:last-child {
-        margin-bottom: 0;
-      }
-    }
-  }
-}
-.sectionTitle {
-  background-color: #eee;
-  border-radius: 5px;
-  padding: 4px 7px;
-  margin: 10px 0 5px;
-}
-
-.otherInfo{
-  margin-top: 15px;
-  :global{
-    .ant-card-body {
-      padding-bottom: 2px;
-    }
-  }
-}
-.sendInfo{
-  :global{
-    .ant-card-extra{
-      padding: 0!important;
-    }
-  }
-}
-
-
-
-
-.boxList {
-  padding-left: 30px;
-}
-p {
-  padding-bottom: 10px;
-}
-h3 {
-  margin-bottom: 20px;
-}
-.searchContainer {
-  overflow: hidden;
-  zoom: 1;
-}
-.queryParam {
-  display: inline-block;
-  vertical-align: top;
-  margin-right: 20px;
-}
-.pagination {
-  text-align: right;
-}
-.links {
-  text-align: right;
-  color: #e3e3e3;
-  margin-left: 20px;
-  float: right;
-  margin-top: 5px;
-  i {
-    margin-right: 5px;
-  }
-}
-.boxSpan {
-  display: inline-block;
-  width: 90px;
-  height: 46px;
-  vertical-align: middle;
-  line-height: 46px;
-}
-.imgs {
-  margin-right: 10px;
-}
-.boxSpanDec {
-  display: block;
-  width: 130px;
-  clear: both;
-}
-.lfDes {
-  float: left;
-  margin-left: 130px;
-  margin-top: -20px;
-}
-.lfDes div {
-  color: rgba(0, 0, 0, 0.65) !important;
-}
-.clearLf {
-  clear: both;
-}
-.spanName {
-  display: inline-block;
-  vertical-align: top;
-  max-width: 600px;
-}
-.spanId {
-  display: inline-block;
-  vertical-align: top;
-  line-height: 46px;
-}
-.koufen {
-  margin-left: 20px;
-}
-.wlContext {
-  display: inline-block;
-  vertical-align: top;
-}
-

+ 0 - 16
src/pages/ms/saleinfo/services.js

@@ -1,16 +0,0 @@
-import { fetchApi } from '@/apis/'
-import { tc } from '@/conf/config'
-
-export async function getSaleDetail (params) {
-  console.log("getSaleDertail")
-  const url = `${tc}/ms/web/get-sale-detail`
-  console.log(url)
-  return fetchApi(url, params)
-}
-
-export async function getUserPhoneNum (params) {
-  console.log("get user phone num")
-  const url = `${tc}/ms/web/get-user-phone-number`
-  console.log(url)
-  return fetchApi(url, params)
-}

+ 0 - 78
src/pages/ms/userinfo/ActionLogs.js

@@ -1,78 +0,0 @@
-/**
- * 操作日志
- * @author biang
- */
-import React, { PureComponent } from 'react';
-import { Table, Modal } from 'antd';
-import moment from 'moment';
-import { getActionLogs } from './services';
-
-class ActionLogs extends PureComponent {
-  static defaultProps = {
-    visible: false,
-    userId: null,
-    onClose() {},
-  };
-  
-  state = {
-    data: [],
-  };
-
-  componentWillReceiveProps(nextProps) {
-    console.log('点击后111',nextProps);
-    if (nextProps.visible && !this.props.visible) {
-      this.getData(nextProps);
-    }
-  }
-
-  async getData(props) {
-    const { userId } = props;
-    console.log('上一个页面进来的uid',userId);
-    const res = await getActionLogs(userId);
-    console.log('点击后',res);
-    if (res.code === 0) {
-      this.setState({
-        data: res.data.list,
-      });
-    }
-  }
-
-  renderList() {
-    const columns = [
-      {
-        dataIndex: 'actionUserName',
-        title: '操作人',
-        width: 100,
-      },
-      {
-        dataIndex: 'createTime',
-        title: '操作时间',
-        width: 110,
-        render(time) {
-          return moment.unix(time).format('YYYY-MM-DD HH:mm:ss');
-        },
-      },
-      {
-        dataIndex: 'remark',
-        title: '操作备注',
-      },
-    ];
-    return <Table columns={columns} dataSource={this.state.data} size="small" />;
-  }
-
-  render() {
-    return (
-      <Modal
-        title="操作记录"
-        visible={this.props.visible}
-        footer={null}
-        onCancel={this.props.onClose}
-        width={620}
-        onChange={this.handlePageChange}
-      >
-        {this.renderList()}
-      </Modal>
-    );
-  }
-}
-export default ActionLogs

+ 0 - 39
src/pages/ms/userinfo/AddressCard.js

@@ -1,39 +0,0 @@
-/**
- * 用户地址列表
- * @author biang
- */
-import React from 'react';
-import { Card, Table, Tag } from 'antd';
-
-const columns = [
-  {
-    title: '地址',
-    dataIndex: 'address',
-    width: '50%',
-  },
-  {
-    title: '收件人',
-    dataIndex: 'name',
-    width: '25%',
-  },
-  {
-    title: '收件人电话',
-    dataIndex: 'tel',
-    width: '25%',
-  },
-  {
-    title: '',
-    dataIndex: 'default',
-    render(isDefault) {
-      return isDefault ? <Tag color="orange">默认</Tag> : null;
-    },
-  },
-];
-
-const AddressCard = ({ data, ...restProps }) => (
-  <Card {...restProps}>
-    <Table columns={columns} dataSource={data} pagination={false} size="small" />
-  </Card>
-);
-
-export default AddressCard;

+ 0 - 72
src/pages/ms/userinfo/UserSearch.js

@@ -1,72 +0,0 @@
-/**
- * 用户搜索
- * @author biang
- */
-import React, { PureComponent } from 'react';
-import { Input, message } from 'antd';
-import get from 'lodash/get';
-import { getUserDetail } from './services';
-
-const { Search } = Input;
-
-export default class UserSearch extends PureComponent {
-  state = {
-    // queryType: 'uid',
-    searchValue: '',
-  };
-
-  // handleChangeQueryType = type => {
-  //   this.setState({
-  //     queryType: type,
-  //   });
-  // };
-
-  handleSearchChange = e => {
-    this.setState({
-      searchValue: e.target.value,
-    });
-  };
-
-  handleSearch = async () => {
-    const { onMySearch } = this.props;
-    onMySearch();
-    const { searchValue } = this.state;
-    if (!searchValue || !searchValue.trim()) {
-      message.warning('请输入相关的搜索条件');
-      return;
-    }
-    try {
-      const res = await getUserDetail({
-        userinfoId : searchValue,
-      });
-      if (res.code === 0) {
-        const userinfoId = get(res.data, ['user', 'uid']);
-        if (userinfoId) {
-          this.props.history.push(`/ms/userinfo?userinfoId=${userinfoId}`);
-          
-          //页面数据不更新解决方式,先跳到一个空白页面,再跳回来
-          this.props.history.push('/empty'); // 空白页面
-          setTimeout(() => {
-            this.props.history.push(`/ms/userinfo?userinfoId=${userinfoId}`); // 要跳转的页面,其中id为参数
-          });
-        }
-      }
-    } catch (err) {
-      // message.error(err.toString());
-    }
-  };
-
-  render() {
-    const { searchValue } = this.state;
-    return (
-      <Search
-        placeholder="输入用户id/认证店铺名称/手机号"
-        style={{ width: 246 ,borderRadius: '50%' ,float:'right'}}
-        size="small"
-        onSearch={this.handleSearch}
-        onChange={this.handleSearchChange}
-        value={searchValue}
-      />
-    );
-  }
-}

+ 0 - 411
src/pages/ms/userinfo/index.js

@@ -1,411 +0,0 @@
-import React from 'react'
-import { connect } from 'dva'
-import { Divider, message, Popconfirm, Icon, Descriptions, Collapse, Col, Row, Alert, Tabs, Card, Button, Table, Tag } from 'antd'
-import { us } from '@/conf/config'
-import { FilterTable } from 'wptpc-design';
-import styles from './index.less';
-import classnames from 'classnames';
-import isEmpty from 'lodash/isEmpty';
-import { getUserDetail, getTagByUser } from './services';
-import DescriptionList from '@/components/DescriptionList';
-import CountTag from '@/components/CountTag';
-import get from 'lodash/get';
-import Input from "antd/lib/input";
-import UserSearch from './UserSearch';
-import LevelStyle from './level.less';
-import UserLevel from '@/components/UserLevel';
-import ActionLogs from './ActionLogs';
-import { fetchApi } from '@/apis/'
-
-const { Panel } = Collapse;
-const { TabPane } = Tabs;
-const mockUrl = `${us}/mock/user/login`; // 模拟登陆
-const { Description } = DescriptionList;
-const columns = [
-    {
-        title: '地址',
-        dataIndex: 'address',
-        width: '50%',
-    },
-    {
-        title: '收件人',
-        dataIndex: 'name',
-        width: '25%',
-    },
-    {
-        title: '收件人电话',
-        dataIndex: 'tel',
-        width: '25%',
-    },
-    {
-        title: '',
-        dataIndex: 'default',
-        render(isDefault) {
-            return isDefault ? <Tag color="orange">默认</Tag> : null;
-        },
-    },
-];
-const getPercent = (value, total) => {
-    if (total === 0) return '--';
-    return `${Math.round(value * 10000 / total) / 100}%`;
-}
-// @connect(({ loading }) => ({
-//     // 添加或者编辑接口触发的loading属性,可以用于控制接口请求阶段让对话框的”确定“按钮不可点击
-//     // actionLoading: loading.effects['tctemplate/_addItem'] || loading.effects['ugc/_editItem']
-// }))
-class Userinfo extends React.PureComponent {
-
-    constructor() {
-        super();
-        this.state = {
-            actionLogsVisible: false,
-            total: 0,
-            computedModal: false,
-            dataSource2: [],
-            computedLoading: false,
-            data: {},
-            visible: false,
-            loading: false,
-            commitLoading: false, // 控制表单提交按钮的loading
-            userinfo: {},
-            usertag: {},
-        }
-    }
-
-
-
-
-    callback(key) {
-        console.log(key);
-    }
-    fetchUserInfo(dispatch, uid) {
-        dispatch({
-            type: 'userProfile/getUserInfo',
-            payload: {
-                tel: 0,
-                uid,
-            },
-        }).then(() => {
-            dispatch({
-                type: 'userProfile/getUserTags',
-            });
-        });
-    }
-
-  mockLogin = (uid) => e => {
-    e.stopPropagation();
-    fetchApi(mockUrl, {
-      uid
-    }).then(resp => {
-      if (resp.code === 0) {
-          message.success("模拟成功,有效期1小时。请谨慎操作!!!")
-      }
-    });
-  };
-
-    onMySearch = () => {
-        // const uid = get(this.props.location, ['query', 'uid']);
-        const userinfoId = get(this.props.location, ['query', 'userinfoId']);
-        this.setState({
-            tabActiveKey: 'basic',
-            address: [],
-        });
-    };
-
-    componentDidMount() {
-        const userinfoId = get(this.props.location, ['query', 'userinfoId']);
-        const _this = this;    //先存一下this,以防使用箭头函数this会指向我们不希望它所指向的对象。
-        if (userinfoId) {
-            getUserDetail({
-                userinfoId,
-            }).then(resp => {
-                _this.setState({
-                    userinfo: resp.data,
-                });
-            });
-            getTagByUser({
-                userinfoId,
-            }).then(resp => {
-                _this.setState({
-                    usertag: resp.data,
-                });
-            });
-        }
-        else {
-            message.warning('请输入相关的搜索条件');
-        }
-    }
-    render() {
-        const customPanelStyle = {
-            borderRadius: 4,
-            border: 0,
-            verticalAlign: 'top',
-        };
-        const trading = {}
-        const traded = {}
-        const addressInfo = "aaa"
-        const { userinfo = {} , usertag = {}} = this.state
-        const { user = {}, userExtend = {}, userAddress = {}, punish = {}, payauth = {} } = userinfo
-        const { systemTags = [] , userTags = [] } = usertag
-        const { history } = this.props;
-        const inDispute = get(userExtend, 'inDispute', '--');
-        const DelayAccountPayment = get(punish, 'DelayAccountPayment.value', '--');
-        const ForbiddenBailUser = get(punish, 'ForbiddenBailUser.value', '--');
-        const ForbiddenPublish = get(punish, 'ForbiddenPublish.value', '--');
-        const ForbiddenShop = get(punish, 'ForbiddenShop.value', '--');
-        const ForbiddenWithdraw = get(punish, 'ForbiddenWithdraw.value', '--');
-        const Scalping = get(punish, 'Scalping.value', '--');
-        const withDraw = get(payauth, 'withDraw.time', '--');
-        const bailWithDraw = get(payauth, 'bailWithDraw.time', '--');
-        const payment = get(payauth, 'payment.time', '--');
-        const uid = get(user, 'uid');
-        //   console.log(dataSource)
-        // const usertag = this.state.usertag
-
-        const system_tags = systemTags.map((item,index) =>{
-            return (
-                <span className="ant-tag" name={item} key={index} >{item.tagName}</span>
-            )
-        });
-        const user_tags = userTags.map((item,index) =>{
-            return (
-                <span className="ant-tag"  name={item} key={index}>{item.tagName}</span>
-            )
-        });
-        return (
-            <div>
-                <img style={{ width: 50, borderRadius: '50%' }} src={user.avatar}></img>
-                {/* <Input.Search placeholder="输入用户id/认证店铺名称/手机号" style={{ width: 246,float:'right' }} size="small"/> */}
-                <UserSearch onMySearch={this.onMySearch} history={history} />
-                <Descriptions title={user.nickName} column={2}>
-                  <Descriptions.Item label="用户ID">
-                    <div onClick={this.mockLogin(
-                      user.uid
-                    )}>{user.uid}</div>
-                  </Descriptions.Item>
-                    <Descriptions.Item label="卖家等级">
-                        <i
-                            className={classnames(
-                                LevelStyle.SellerLevel__Icon,
-                                LevelStyle[`SellerLevel__Icon--lv${get(user, 'sellerLevel', 0)}`],
-                            )}
-                        />
-                        <span style={{ marginLeft: 4 }}>{user.sellerLevelScore}</span>
-                    </Descriptions.Item>
-                    <Descriptions.Item label="初次访问">{user.firstLoginTime}</Descriptions.Item>
-                    <Description label="标签" style={{ width: '50%' }}>
-                        <div className="App">
-                            {system_tags}{user_tags}
-                        </div>
-                    </Description>
-                    <Descriptions.Item label="所属平台">{get(user, 'source')}</Descriptions.Item>
-                    <Descriptions.Item label="买家等级">
-                        <UserLevel buyerLevel={get(user, 'memberLevel', 0)} />
-                        <span style={{ marginLeft: 4 }}>
-                            {user.memberLevelScores}
-                        </span>
-                    </Descriptions.Item>
-                    <Descriptions.Item label="邀请人">
-                        {get(user, 'inviteUid') ? (
-                            <a
-                                onClick={() => {
-                                    window.open(`/wptmanage/user/profile/${get(user, 'inviteUid')}`);
-                                }}
-                            >
-                                {get(user, 'inviteFrom')}
-                            </a>
-                        ) : (
-                                get(user, 'inviteFrom')
-                            )}
-                    </Descriptions.Item>
-                    <Descriptions.Item label="微信昵称">{user.wxName}</Descriptions.Item>
-                </Descriptions>
-
-
-                {/* 显示各类信息 */}
-                <Tabs defaultActiveKey="1" onChange={this.callback}>
-                    <TabPane tab="基础" key="1">
-                        <Card size="small">
-                            <div >
-                                <Descriptions title="" column={2}>
-                                    <Descriptions.Item label="真实姓名">{user.name}</Descriptions.Item>
-                                    <Descriptions.Item label="地区">{user.ragion}</Descriptions.Item>
-                                    <Descriptions.Item label="认证时间">{user.verifyTime}</Descriptions.Item>
-                                    <Descriptions.Item label="电话">{user.tel}</Descriptions.Item>
-                                    <Descriptions.Item label="刷单惩罚">{Scalping === '--' ? Scalping : Scalping === 0 ? '否' : '是'}</Descriptions.Item>
-                                    {/* <Descriptions.Item label="全站拉黑">是/否</Descriptions.Item> */}
-                                    <Descriptions.Item label="用户身份证">{user.idCode}</Descriptions.Item>
-                                    <Descriptions.Item label="认证用户身份证">{user.verifyIdcode}</Descriptions.Item>
-                                    <Descriptions.Item label="认证过期时间">{user.expireTime}</Descriptions.Item>
-                                    <Descriptions.Item label="openid">{user.openId}</Descriptions.Item>
-                                    <Descriptions.Item label="能否接受消息">{user.receive}</Descriptions.Item>
-                                    <Descriptions.Item label="禁止上拍">{ForbiddenPublish === '--' ? ForbiddenPublish : ForbiddenPublish === 0 ? '不禁止' : '禁止'}</Descriptions.Item>
-                                </Descriptions>
-                            </div>
-                        </Card>
-                        <Card size="small">
-                            <div >
-                                <Descriptions title="" column={2}>
-                                    <Descriptions.Item label="用户余额">¥{get(user, 'balance', 0)}</Descriptions.Item>
-                                    <Descriptions.Item label="余额提现额度">¥{user.withdrawLimit}</Descriptions.Item>
-                                    <Descriptions.Item label="增加余额免费提现额度">¥{user.withdrawFreeLimit}</Descriptions.Item>
-                                    <Descriptions.Item label="余额提现次数"><span>{`今日剩余${get(user, 'withdraw', 0)}次`}</span></Descriptions.Item>
-                                    <Descriptions.Item label="用户货款">¥{get(user, 'balanceResidue', 0)}</Descriptions.Item>
-                                    <Descriptions.Item label="货款提现额度">¥{user.withdrawResidueLimit}</Descriptions.Item>
-                                    <Descriptions.Item label="货款提现次数">{`今日剩余${get(user, 'withdrawResidue', 0)}次`}</Descriptions.Item>
-                                    <Descriptions.Item label="店铺保证金支出">{bailWithDraw === '--' ? bailWithDraw : bailWithDraw === 0 ? '允许' : '拒绝'}</Descriptions.Item>
-                                    <Descriptions.Item label="店铺保证金">¥{user.bail}/{user.bailTime}</Descriptions.Item>
-                                    <Descriptions.Item label="冻结余额">¥{user.balanceFroze}</Descriptions.Item>
-                                    <Descriptions.Item label="店铺保证金提现">{ForbiddenBailUser === '--' ? ForbiddenBailUser : ForbiddenBailUser === 0 ? '允许' : '拒绝'}</Descriptions.Item>
-                                    <Descriptions.Item label="封店">{ForbiddenShop === '--' ? ForbiddenShop : ForbiddenShop === 0 ? '未封店' : '已封店'}</Descriptions.Item>
-                                    <Descriptions.Item label="余额及货款提现">{ForbiddenWithdraw === '--' ? ForbiddenWithdraw : ForbiddenWithdraw === 0 ? '允许' : '拒绝'}</Descriptions.Item>
-                                    <Descriptions.Item label="延长账期"> {DelayAccountPayment === '--' ? DelayAccountPayment : DelayAccountPayment === 0 ? '否' : '是'}</Descriptions.Item>
-                                    <Descriptions.Item label="余额支出">{withDraw === '--' ? withDraw : withDraw === 0 ? '允许' : '拒绝'}</Descriptions.Item>
-                                </Descriptions>
-                            </div>
-                        </Card>
-                        <Card size="small">
-                            <div >
-                                <Descriptions title="" column={2}>
-                                    <Descriptions.Item label="分享有礼积分">{userExtend.exchangePoint}</Descriptions.Item>
-                                    <Descriptions.Item label="今日出价拍品数">{userExtend.bidNum}</Descriptions.Item>
-                                    <Descriptions.Item label="扣分记录">{userExtend.deductScoreHistory}</Descriptions.Item>
-                                    <Descriptions.Item label="分类权重">{userExtend.categoryWeight}</Descriptions.Item>
-                                    <Descriptions.Item label="存在争议拍品">{inDispute === '--' ? inDispute : inDispute === true ? '是' : '否'}</Descriptions.Item>
-                                    <Descriptions.Item label="当日拉黑粉丝次数">{user.blacklistTodayNum}</Descriptions.Item>
-                                </Descriptions>
-                            </div>
-                        </Card>
-                    </TabPane>
-                    <TabPane tab="店铺" key="2">
-                        <Card>
-                            <DescriptionList size="small" col="2">
-                                <Description term="店铺地址">{user.uri}</Description>
-                                <Description term="店铺动态评分">{user.rate}</Description>
-                                <Description term="关注 / 粉丝">
-                                    {get(user, ['credits', 'attention'], '--')}/{get(user, ['credits', 'fans'], '--')}
-                                </Description>
-                                <Description term="买入 / 卖出">
-                                    {get(user, ['credits', 'buyTotal'], '--')}/{get(user, ['credits', 'sellerTotal'], '--')}
-                                </Description>
-                                <Description term="买统计">
-                                    <CountTag
-                                        className={styles.ShopCard__CountTag}
-                                        label="总"
-                                        value={get(user, ['credits', 'buyTotal'], '--')}
-                                    />
-                                    <CountTag
-                                        className={styles.ShopCard__CountTag}
-                                        label="退货"
-                                        value={get(user, ['credits', 'buyReturn'], '--')}
-                                    />
-                                    <CountTag
-                                        className={styles.ShopCard__CountTag}
-                                        label="违约"
-                                        value={get(user, ['credits', 'buyFail'], '--')}
-                                    />
-                                    <CountTag
-                                        className={styles.ShopCard__CountTag}
-                                        label="成功"
-                                        value={get(user, ['credits', 'buyNum'], '--')}
-                                    />
-                                </Description>
-                                <Description term="买统计比例">
-                                    <CountTag
-                                        className={styles.ShopCard__CountTag}
-                                        label="违约比例"
-                                        value={getPercent(
-                                            get(user, ['credits', 'buyFail'], 0),
-                                            get(user, ['credits', 'buyTotal'], 0)
-                                        )}
-                                    />
-                                    <CountTag
-                                        className={styles.ShopCard__CountTag}
-                                        label="退货比例"
-                                        value={getPercent(
-                                            get(user, ['credits', 'buyReturn'], 0),
-                                            get(user, ['credits', 'buyTotal'], 0)
-                                        )}
-                                    />
-                                </Description>
-                                <Description term="卖统计">
-                                    <CountTag
-                                        className={styles.ShopCard__CountTag}
-                                        label="总"
-                                        value={get(user, ['credits', 'sellerTotal'], '--')}
-                                    />
-                                    <CountTag
-                                        className={styles.ShopCard__CountTag}
-                                        label="争议"
-                                        value={get(user, ['credits', 'sellerDispute'], '--')}
-                                    />
-                                    <CountTag
-                                        className={styles.ShopCard__CountTag}
-                                        label="100天违约"
-                                        value={get(user, ['credits', 'seller100dFault'], '--')}
-                                    />
-                                    <CountTag
-                                        className={styles.ShopCard__CountTag}
-                                        label="100天订单"
-                                        value={get(user, ['credits', 'seller100Total'], '--')}
-                                    />
-
-                                    <CountTag
-                                        className={styles.ShopCard__CountTag}
-                                        label="成功"
-                                        value={get(user, ['credits', 'sellerNum'], '--')}
-                                    />
-                                </Description>
-                                <Description term="卖统计比例">
-                                    <CountTag
-                                        className={styles.ShopCard__CountTag}
-                                        label="争议比例"
-                                        value={getPercent(
-                                            get(user, ['credits', 'sellerDispute'], 0),
-                                            get(user, ['credits', 'sellerTotal'], 0)
-                                        )}
-                                    />
-                                    <CountTag
-                                        className={styles.ShopCard__CountTag}
-                                        label="100天违约比例"
-                                        value={
-                                            // get(data, ['credits', 'dispute_rate'], 0)
-                                            getPercent(
-                                                get(user, ['credits', 'seller100dFaultRate'], 0),
-                                                1
-                                            )}
-                                    />
-                                </Description>
-                                <Description term="销售均价">
-                                    {get(user, ['credits', 'avgPrice'], 0)}元
-                                        (每周一更新,最近30天的)
-                                </Description>
-                                <Description term="短信发送次数">
-                                    短信{get(user, ['credits', 'sms'])}次
-                                    语音短信{get(user, ['credits', 'call'])}次
-                                 </Description>
-                                <Description term="15天退款率">{get(user, 'refundRate', '')}</Description>
-                            </DescriptionList>
-                        </Card>
-                        <ActionLogs
-                            userId={uid}
-                            visible={this.state.actionLogsVisible}
-                            onClose={() => {
-                                this.setState({
-                                    actionLogsVisible: false,
-                                });
-                            }}
-                        />
-                    </TabPane>
-                    <TabPane tab="地址" key="3">
-                        <Table columns={columns} dataSource={userAddress.list || []} pagination={false} size="small" />
-                    </TabPane>
-                </Tabs>
-
-            </div>
-
-        )
-    }
-}
-
-export default Userinfo

+ 0 - 123
src/pages/ms/userinfo/index.less

@@ -1,123 +0,0 @@
-.readForm {
-  display: flex;
-  flex-wrap: wrap;
-  width: 100%;
-  line-height: 22px;
-  margin-bottom: 10px;
-  &.normal {
-    .readFormItem {
-      .readFormLabel {
-        font-size: 12px;
-      }
-      .readFormValue {
-        font-size: 12px;
-      }
-    }
-  }
-  .readFormItem {
-    width: auto;
-    margin-right: 20px;
-    .readFormLabel {
-      display: inline-block;
-      width: auto;
-      font-size: 14px;
-      color: rgba(0, 0, 0, 0.45);
-      text-align: right;
-      vertical-align: middle;
-      margin-right: 5px;
-    }
-    .readFormValue {
-      display: inline-block;
-      color: rgba(0, 0, 0, 0.85);
-      font-size: 16px;
-      vertical-align: middle;
-    }
-  }
-}
-.static {
-  padding: 8px 15px 0 15px !important;
-  margin-bottom: 10px;
-}
-.buyerInfo {
-  display: flex;
-  .buyerInfoItem {
-    flex: 1;
-    margin-right: 20px;
-    &:last-child {
-      margin-right: 0;
-    }
-  }
-  :global {
-    .ant-card-body {
-      padding-bottom: 2px;
-    }
-    p {
-      margin-bottom: 10px;
-      &:last-child {
-        margin-bottom: 0;
-      }
-    }
-  }
-}
-.sectionTitle {
-  background-color: #eee;
-  border-radius: 5px;
-  padding: 4px 7px;
-  margin: 10px 0 5px;
-}
-
-.otherInfo{
-  margin-top: 15px;
-  :global{
-    .ant-card-body {
-      padding-bottom: 2px;
-    }
-  }
-}
-.sendInfo{
-  :global{
-    .ant-card-extra{
-      padding: 0!important;
-    }
-  }
-}
-
-.ShopCard {
-  &__CountTag {
-    margin-right: 2px;
-  }
-}
-
-
-// .container-info {
-//   display: flex;
-//   flex-wrap: wrap;
-//   margin-bottom: 20px;
-//   &.form-inline li {
-//       width: auto;
-//       margin-right: 20px;
-//       /deep/ .el-input {
-//           width: 183px;
-//       }
-//   }
-//   li {
-//       width: auto;
-//       min-width: 260px;
-//       margin-right: 10px;
-//       padding-top: 10px;
-//       font-size: 0;
-//       span {
-//           display: inline-block;
-//           vertical-align: middle;
-//           font-size: 12px;
-//           &:first-child {
-//               width: 105px;
-//               text-align: right;
-//           }
-//           &:last-child {
-//               min-width: 140px;
-//               padding-left: 10px;
-//           }
-//       }
-//   }
-// }

+ 0 - 207
src/pages/ms/userinfo/level.less

@@ -1,207 +0,0 @@
-@font-face {
-  font-family:wptFontMain;
-  src:url('https://cdn01t.weipaitang.com/res/js/plugin/fonts/wptFontMain.ttf?v=0.9.3.08') format('truetype');
-}
-
-.SellerLevel {
-  &__Icon {
-    display: inline-block;
-    width: 28px;
-    height: 15px;
-    background-image: url('https://cdn.weipaitang.com/static/20190328628fecec-6c77-41b4-8e96-c481e27cb6de-W56H450');
-    background-repeat: no-repeat;
-    background-size: cover;
-    vertical-align: middle;
-    &--lv1 {
-      background-position: 0px 0px;
-    }
-    &--lv2 {
-      background-position: 0px -15px;
-    }
-    &--lv3 {
-      background-position: 0px -30px;
-    }
-    &--lv4 {
-      background-position: 0px -45px;
-    }
-    &--lv5 {
-      background-position: 0px -60px;
-    }
-    &--lv6 {
-      background-position: 0px -75px;
-    }
-    &--lv7 {
-      background-position: 0px -90px;
-    }
-    &--lv8 {
-      background-position: 0px -105px;
-    }
-    &--lv9 {
-      background-position: 0px -120px;
-    }
-    &--lv10 {
-      background-position: 0px -135px;
-    }
-    &--lv11 {
-      background-position: 0px -150px;
-    }
-    &--lv12 {
-      background-position: 0px -165px;
-    }
-    &--lv13 {
-      background-position: 0px -180px;
-    }
-    &--lv14 {
-      background-position: 0px -195px;
-    }
-    &--lv15 {
-      background-position: 0px -210px;
-    }
-  }
-}
-
-.BuyerLevel {
-  &__Icon {
-    display: inline-block;
-    width: 25px;
-    height: 15px;
-    line-height: 15px;
-    background-color: #E0B176;
-    color: #fff;
-    font-size: 15px;
-    font-family: wptFontMain;
-    font-style: normal;
-    vertical-align: middle;
-    &--lv1 {
-      &::before {
-        content: "\e6b8";
-      }
-    } /* 白丁*/
-    &--lv2 {
-      &::before {
-        content: "\e6ba";
-      }
-    } /* 童生*/
-    &--lv3 {
-      &::before {
-        content: "\e6bc";
-      }
-    } /* 秀才*/
-    &--lv4 {
-      &::before {
-        content: "\e6b7";
-      }
-    } /* 举人*/
-    &--lv5 {
-      &::before {
-        content: "\e6bb";
-      }
-    } /* 进士*/
-    &--lv6 {
-      &::before {
-        content: "\e6bf";
-      }
-    } /* 状元*/
-    &--lv7 {
-      &::before {
-        content: "\e6bd";
-      }
-    } /* 学士*/
-    &--lv8 {
-      &::before {
-        content: "\e6be";
-      }
-    } /* 侍郎*/
-    &--lv9 {
-      &::before {
-        content: "\e6c1";
-      }
-    } /* 尚书*/
-    &--lv10 {
-      &::before {
-        content: "\e6c0";
-      }
-    } /* 太傅*/
-    &--lv11 {
-      &::before {
-        content: "\e6c4";
-      }
-    } /* 君王*/
-    &--lv12 {
-      &::before {
-        content: "\e6c3";
-      }
-    } /* 圣贤*/
-  }
-}
-
-.BuyerMemberLevel {
-  &__Icon {
-    display: inline-block;
-    width: 25px;
-    height: 15px;
-    line-height: 15px;
-    background-color: #E0B176;
-    color: #fff;
-    font-size: 15px;
-    font-family: wptFontMain;
-    font-style: normal;
-    vertical-align: middle;
-    &--lv0 {
-      &::before {
-        content: "\e693"
-      }
-    }
-    &--lv1 {
-      &::before {
-        content: "\e6a5"
-      }
-    }
-    &--lv2 {
-      &::before {
-        content: "\e699"
-      }
-    }
-    &--lv3 {
-      &::before {
-        content: "\e6b9"
-      }
-    }
-    &--lv4 {
-      &::before {
-        content: "\e694"
-      }
-    }
-    &--lv5 {
-      &::before {
-        content: "\e6a4"
-      }
-    }
-    &--lv6 {
-      &::before {
-        content: "\e6a7"
-      }
-    }
-    &--lv7 {
-      &::before {
-        content: "\e6ae"
-      }
-    }
-    &--lv8 {
-      &::before {
-        content: "\e6b4"
-      }
-    }
-    &--lv9 {
-      &::before {
-        content: "\e6b0"
-      }
-    }
-    &--lv10 {
-      &::before {
-        content: "\e6b6"
-      }
-    }
-  }
-}
-

+ 0 - 28
src/pages/ms/userinfo/services.js

@@ -1,28 +0,0 @@
-import { fetchApiGet } from '@/apis'
-import { us } from '@/conf/config'
-import { fetchApi } from '@/apis'
-
-export async function getUserDetail (params) {
-  // console.log("params", params)
-  //暂时直接访问gt api接口
-  // const url = `${us}/ms/web/get-user-info`
-  const url = `${us}/ms/web/get-user-info`
-  return fetchApiGet(url, params)
-}
-// 获取操作日志
-export const getActionLogs = userId => {
-  // const url = `https://wmapit.weipaitang.com/user/user/user.action.log`;
-  const url = `https://wmapit.weipaitang.com/user/user/user.action.log?token=3b933f3c27fcee7aacf67ae80b2c5602&time=1583167921&ddid=qy01495e8aa616bb0328e6729385&ddname=%E6%B4%AA%E6%89%AC&ddphone=15825502331&power=DhC3GiKbbyzrel5AQ6Eg-WMzZGQwOGE0OTg4OWRlNTQyNTI0YTcyZjg5YTRmZDk4ZDNhNDc1ZGJlYWJkNzUyOWE5YzE0OWY0MTMxY2UyMzI2UUhfVrc2FZrlQ4K4mxAuvfQB3gVqwGDYIlJx11eBiLFgIX_lwXub9oxxveyzcYHamAtbLJjEdbij6cCss80O`;
-  return fetchApi(url, {
-    userinfoId: userId,
-  });
-};
-//获取用户标签
-export async function getTagByUser (params){
-  // const url = `${apiWptManage}/user/tag/user.bind.tag`;
-  // return fetchApi(url, {
-  //   userinfoId: userId,
-  // });
-  const url = `${us}/ms/web/get-user-tag`;
-  return fetchApiGet(url, params);
-}

+ 0 - 6
src/pages/ms/userinfo/userSearch.less

@@ -1,6 +0,0 @@
-.UserSearch {
-  &__Field {
-    // width: 40%!important;
-    // transition: cubic-bezier(0.075, 0.82, 0.165, 1) width 0.375s;
-  }
-}