Эх сурвалжийг харах

提交采购单位pc画像浏览记录

wangkaiyue 3 жил өмнө
parent
commit
f192e453e3

+ 10 - 7
src/jfw/modules/bigmember/src/entity/portrait.go

@@ -39,27 +39,30 @@ func CreatePortraitManager(userid string, pageFlag string) (*Portrait, bool, err
 }
 
 //CreateSubVipPortraitManager 超级订阅权限校验
-func CreateSubVipPortraitManager(userid string, pageFlag, searchValue string, isWinner bool) (*Portrait, error) {
+func CreateSubVipPortraitManager(userid string, pageFlag, searchValue string, isWinner bool) (*Portrait, bool, error) {
 	if userid == "" {
-		return nil, errors.New("未登录")
+		return nil, false, errors.New("未登录")
 	}
 	if pageFlag == "" {
-		return nil, errors.New("未知请求")
+		return nil, false, errors.New("未知请求")
 	}
 	if pageFlag != "entDetail" { //需要权限校验的接口
 		bigMsg := jy.GetBigVipUserBaseMsg(userid, db.Mysql, db.Mgo)
 		if bigMsg.VipStatus <= 0 || bigMsg.Vip_BuySet.Upgrade != 1 { //免费用户留资体验
 			if searchValue != "" && jy.Portraitexperience(userid, searchValue, isWinner) {
-				return &Portrait{userid}, nil
+				return &Portrait{userid}, true, nil
+			}
+			if !(pageFlag == "buyerPortraitNotCheckPower" || pageFlag == "buyerPortrait_newMsg") {
+				return nil, false, errors.New("非法请求")
 			}
-			return nil, errors.New("非法请求")
+			return nil, false, nil
 		} else { //超级订阅升级版-校验超级订阅画像浏览次数
 			if err := bigMsg.SubVipPortraitTimesCheck(db.Mysql, searchValue, isWinner); err != nil {
-				return nil, err
+				return nil, true, err
 			}
 		}
 	}
-	return &Portrait{userid}, nil
+	return &Portrait{userid}, true, nil
 }
 
 //获取企业基本信息

+ 19 - 13
src/jfw/modules/bigmember/src/service/portrait/subvipPortraitAction.go

@@ -39,7 +39,7 @@ func (this *SubVipPortrait) SubVipEntDetail() {
 		if entId == "" {
 			return nil, fmt.Errorf("参数异常")
 		}
-		cepm, err := entity.CreateSubVipPortraitManager(userId, "entDetail", entId, true)
+		cepm, _, err := entity.CreateSubVipPortraitManager(userId, "entDetail", entId, true)
 		if err != nil {
 			return nil, err
 		}
@@ -64,7 +64,7 @@ func (this *SubVipPortrait) SubVipWinnerNewMsg() {
 		if entId == "" {
 			return nil, fmt.Errorf("参数异常")
 		}
-		cepm, err := entity.CreateSubVipPortraitManager(userId, "entNewMsg", entId, true)
+		cepm, _, err := entity.CreateSubVipPortraitManager(userId, "entNewMsg", entId, true)
 		if err != nil {
 			return nil, err
 		}
@@ -108,7 +108,7 @@ func (this *SubVipPortrait) SubVipNewMsgSelects() {
 		if entId == "" {
 			return nil, fmt.Errorf("参数异常")
 		}
-		_, err := entity.CreateSubVipPortraitManager(userId, "entNewMsg", entId, true)
+		_, _, err := entity.CreateSubVipPortraitManager(userId, "entNewMsg", entId, true)
 		if err != nil {
 			return nil, err
 		}
@@ -129,7 +129,7 @@ func (this *SubVipPortrait) SubVipPortrait() {
 		if entId == "" {
 			return nil, fmt.Errorf("参数异常")
 		}
-		cepm, err := entity.CreateSubVipPortraitManager(userId, "entPortrait", entId, true)
+		cepm, _, err := entity.CreateSubVipPortraitManager(userId, "entPortrait", entId, true)
 		if err != nil {
 			return nil, err
 		}
@@ -159,14 +159,20 @@ func (this *SubVipPortrait) PortraitUsage() {
 		if bigMsg.VipStatus <= 0 && bigMsg.Vip_BuySet.Upgrade != 1 {
 			return nil, fmt.Errorf("非法请求")
 		}
-		entId := util.DecodeId(this.GetString("entId"))
-		total, usage, isUsed := bigMsg.SubVipPortraitUsage(db.Mysql, entId, this.GetString("p_type") != "1")
+		isWinner, queryEnt := this.GetString("p_type") != "1", ""
+		if isWinner {
+			queryEnt = util.DecodeId(this.GetString("entId"))
+		} else {
+			queryEnt = this.GetString("buyer")
+		}
+
+		total, usage, isUsed := bigMsg.SubVipPortraitUsage(db.Mysql, queryEnt, isWinner)
 		returnMap := map[string]interface{}{
 			"total":  total,
 			"usage":  usage,
 			"provin": bigMsg.Vip_BuySet.AreaCount,
 		}
-		if entId != "" {
+		if queryEnt != "" {
 			returnMap["visited"] = isUsed
 		}
 		return returnMap, nil
@@ -238,7 +244,7 @@ func (this *SubVipPortrait) BuyerSelects() {
 		if buyer == "" {
 			return nil, fmt.Errorf("参数异常")
 		}
-		_, err := entity.CreateSubVipPortraitManager(userId, "buyerPortrait", buyer, false)
+		_, _, err := entity.CreateSubVipPortraitManager(userId, "buyerPortrait", buyer, false)
 		if err != nil {
 			return nil, err
 		}
@@ -261,7 +267,7 @@ func (this *SubVipPortrait) BuyerNewMsg() {
 		}
 		pageNum, _ := this.GetInteger("pageNum")
 		pageSize, _ := this.GetInteger("pageSize")
-		cepm, err := entity.CreateSubVipPortraitManager(userId, "buyerPortrait", buyer, false)
+		cepm, hasPower, err := entity.CreateSubVipPortraitManager(userId, "buyerPortrait_newMsg", buyer, false)
 		if err != nil {
 			return nil, err
 		}
@@ -275,7 +281,7 @@ func (this *SubVipPortrait) BuyerNewMsg() {
 				Area:       this.GetString("area"),
 				ScopeClass: this.GetString("scopeClass"),
 				TimeRange:  this.GetString("timeRange"),
-				HasPower:   true,
+				HasPower:   hasPower,
 			},
 			PageNum:  pageNum,
 			PageSize: pageSize,
@@ -302,7 +308,7 @@ func (this *SubVipPortrait) BuyerContacts() {
 		if buyerName == "" {
 			return nil, fmt.Errorf("企业参数异常")
 		}
-		cepm, err := entity.CreateSubVipPortraitManager(userId, "buyerPortrait", buyerName, false)
+		cepm, _, err := entity.CreateSubVipPortraitManager(userId, "buyerPortrait", buyerName, false)
 		if err != nil {
 			return nil, err
 		}
@@ -328,7 +334,7 @@ func (this *SubVipPortrait) BuyerPortrait() {
 		if buyerName == "" {
 			return nil, fmt.Errorf("参数异常")
 		}
-		cepm, err := entity.CreateSubVipPortraitManager(userId, "buyerPortrait", buyerName, false)
+		cepm, power, err := entity.CreateSubVipPortraitManager(userId, "buyerPortraitNotCheckPower", buyerName, false)
 		if err != nil {
 			return nil, err
 		}
@@ -341,7 +347,7 @@ func (this *SubVipPortrait) BuyerPortrait() {
 			Area:       this.GetString("area"),
 			ScopeClass: this.GetString("scopeClass"),
 			TimeRange:  this.GetString("timeRange"),
-			HasPower:   true,
+			HasPower:   power,
 		}, flag)
 		if err != nil {
 			return nil, err

+ 5 - 3
src/jfw/modules/common/src/qfw/util/jy/subvipPortrait.go

@@ -61,11 +61,13 @@ func (this *BigVipBaseMsg) SubVipPortraitUsage(mysql *mysql.Mysql, searchValue s
 
 //GetUsageNum 查询画像查看次数
 func (this *BigVipBaseMsg) GetUsageNum(mysql *mysql.Mysql, isWinnerPortrait bool) (usage int) {
-	usage = redis.GetInt(PowerCacheDb, this.GetPortraitRecordTimesRedisKey(isWinnerPortrait))
+	key := this.GetPortraitRecordTimesRedisKey(isWinnerPortrait)
+	usage = redis.GetInt(PowerCacheDb, key)
 	if usage == 0 && mysql != nil { //当缓存中无值时查询mysql中使用量
 		now := time.Now()
-		mysql.CountBySql(fmt.Sprintf("select count(id) from %s where user_id =? and p_type =? and year(create_time)=? and month(create_time)=?",
-			PortraitRecordTable), this.Uid, qutil.If(isWinnerPortrait, 0, 1).(int), now.Year(), int(now.Month()))
+		usage = int(mysql.CountBySql(fmt.Sprintf("select count(id) from %s where user_id =? and p_type =? and year(create_time)=? and month(create_time)=?",
+			PortraitRecordTable), this.Uid, qutil.If(isWinnerPortrait, 0, 1).(int), now.Year(), int(now.Month())))
+		redis.Put(PowerCacheDb, key, usage, 24*60*60*31)
 	}
 	return
 }

+ 212 - 0
src/web/staticres/frontRouter/pc/seeBuyerHistory/css/index-pc.css

@@ -0,0 +1,212 @@
+.flex {
+    display: flex;
+    align-items: center;
+}
+.see-container {
+    line-height: 1;
+    padding-top: 64px;
+    padding-bottom: 70px;
+    min-height: calc(100vh - 364px);
+}
+.see-header {
+    flex-direction: initial;
+    justify-content: space-between;
+    margin: 48px auto 28px auto;
+}
+.tab-title {
+    font-size: 24px;
+    line-height: 36px;
+}
+.l-tabs {
+    flex-direction: initial;
+}
+.l-tabs .tips {
+    border: 1px solid #ececec;
+    border-radius: 15px;
+    font-size: 14px;
+    color: #686868;
+    line-height: 22px;
+    margin-left: 16px;
+    padding: 2px 8px;
+}
+.l-tabs .tips span {
+    color: #2CB7CA;
+}
+.r-tabs {
+    position: relative;
+}
+.r-tabs .r-word {
+    color: #686868;
+    line-height: 22px;
+    font-size: 14px;
+}
+.r-tabs .date-class, .r-tabs .date-class .el-input__inner {
+    width: 120px;
+    height: 28px;
+}
+.r-tabs .date-class .el-input__inner {
+    padding: 0 8px 0 12px;
+    cursor: pointer;
+}
+.r-tabs .date-class .el-input__prefix{
+    display: none;
+}
+.r-tabs .date-class .el-input__suffix {
+    top: -5px;
+}
+.r-tabs .r-icons {
+    position: absolute;
+    top: 6px;
+    right: 8px;
+    color: #aaa;
+}
+.see-content .lists {
+    flex-direction: initial;
+    align-items: flex-start;
+    padding: 18px 16px;
+    box-shadow: 0px -1px 0px 0px rgba(0,0,0,0.05) inset;
+}
+.see-content .r-conts {
+    flex-direction: column;
+}
+.see-content .lists .words-img {
+    width: 60px;
+    background: #2cb7ca;
+    border-radius: 4px;
+    padding: 10px 8px;
+    text-align: center;
+    cursor: pointer;
+}
+.see-content .lists .words-img span {
+    display: inline-block;
+    font-size: 18px;
+    color: #ffffff;
+}
+.see-content .lists .words-img .xin-xi {
+    margin-top: 4px;
+}
+.see-content .lists .r-conts {
+    align-items: flex-start;
+    margin-left: 32px;
+}
+.see-content .lists .r-conts h3 {
+    color: #1d1d1d;
+    line-height: 28px;
+    font-size: 18px;
+    cursor: pointer;
+}
+.see-content .lists .r-conts h3 span {
+    line-height: 20px;
+    background: rgba(44,183,202,0.08);
+    border: 1px solid #2cb7ca;
+    border-radius: 4px;
+    font-size: 12px;
+    color: #2cb7ca;
+    padding: 0 8px;
+    margin-left: 12px;
+}
+.see-content .lists .r-conts .cont-tips {
+    font-size: 14px;
+    line-height: 22px;
+    color: #999;
+    margin: 12px 0 8px 0;
+}
+.see-content .lists .r-conts .di-zhi {
+    margin: 0;
+}
+.see-content .lists .r-conts .cont-tips span {
+    color: #686868;
+    margin-right: 32px;
+}
+.see-content .lists .r-conts h3 .status-0 {
+    background: rgba(44,183,202,0.08);
+    border-color: #2cb7ca;
+    color: #2cb7ca;
+}
+.see-content .lists .r-conts h3 .status-1 {
+    background: rgba(255,58,32,0.08);
+    border-color: #ff3a20;
+    color: #ff3a20;
+}
+.see-content .lists .r-conts h3 .status-2 {
+    background: rgba(255,159,64,0.08);
+    border-color: #ff9f40;
+    color: #ff9f40;
+}
+.see-content .lists .r-conts h3 .status-3 {
+    background: #f7f9fc;
+    border-color: #aaa;
+    color: #686868;
+}
+.r-conts .line{
+    display: flex;
+    height: 22px;
+}
+.r-conts .line i{
+
+}
+.r-conts .line i.addr{
+    background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAANESURBVHgB7VdbctowFBWEzOQ1KUtwVlBYQcMKEj4SYPiBFQArAFaQdgXkj9cHyQpCV1B2gLuC+IcZZnj1HCpR4TGy7DY/Hc6Mx7qWZB3fc3WvLMQRR/wdEiIGOp1O+vz8vJJMJr/AzOByZNcEl4vrdbVajUulkisiIhIhErm6uqptNps6zHTIcDeRSDw/PDy0xUcQ6na7zsnJyZv44w1buPBWztZbSZtBQWTw9eP1et3AYjePj48JXnichV0Vv2VT2M7lO2zWsvLQYDCYamQ8EGkXi8Wvpjm9Xq+OGHvSHk1ms1muWq16pnmhHhoOh02xL1MujAwhx2RxKQKZi4uLetg8IyG6GQHcUjYlgjQTYQmOpTeVDZlr3BimOSlTJ7S/1UzX7xkSTqVS3HX3MD1INFksFm09gDkHXr7DGL5rmy5wP+hho4ewwJ1qI1jbfjIMVpkCHFwZeKMSFMCY+6qZt8K0pqkTizmqjcX2pDo9PVWxRa8wVrKQhGPotY7vPS+7BZPJz8KAVAihjGqXy+U9QiBImfj1efS5bI9GoxzIvevziLOzMw/PlekIA6zyEHEoGOfzuae11Zi9sfl83rjVoxByVeP6+vqT3iHlESglTUWYAS77xvpY5DHdY5PYhLhrVBsuz+t9kKWBm8egxoLvl5eXUxng3nK5rPpetSMEqX+KuITw4u8auZreJ/NRTnqKEqWlZ4LqVlP7kBdhgLF0IEjT8MxULrhNjEFZWsVXUFlgpteSq4vykTWVj9Ba1u/3W/hy9YUedlXWtnLLXDVVNoi1C4VCyzQndJfxBSqAgTQWGAlLyBOCghtGxooQgVhiQO+KJGR4CpvjL8o8EwkLWBGiRHqR5G6CHLeHxnOb60WZUtnKHOkIi69+k0WSCAxQBjhSwA8hvcOdh2OslXcI60xNyPyiCDgqKeqQzxxpugE56d8RotsRCw1l+6WDVBWZHLfgCSHqn0es3yAszJ12L00P0t2ggKZ95+5nJM9I3iFSIgZw9KgiYar/McZMB5mcZ21HDnH95ydbxPIQQal8eWYH+dszFjEQKYZ0yAW/+Z/LLT4WMRGbEAHpWmL/H8wqG4uPIsSDF+VhaWG+sc3GR/xX+AW8rK4J4AmkvQAAAABJRU5ErkJggg==) no-repeat 50%;
+    background-position: left;
+    padding-left: 22px;
+    background-size: 18px;
+}
+.r-conts .line i.buyer{
+    background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAK2SURBVHgB7ZjZjRpBEIaLU0LwgDMYIvBuBrsZ4AfuBw8RgCMAIjCOAPyAOCU2A3AEkAETAg8cEqf/QtOrZjSzMz0gWdbyS605aHV/01VdVQ3RQ59RrVYryY3uoADdoG63+xIOh2vn8/nlMlggMD0cDuVCoWCQT/kCAogWiURqp9NJt/s9GAy29/t9ww+YEhCbJZFIVLAiVTzKJlqaTZPeGWiNbDbbJgUFVToDZgKYugSzxDNP+gUtxfdSdw2tNRgMFmg6eZQSkKQLyHq9TuVyubp4yffH45HBfpMFbDQatdjUbgMrmYwHhOOmMeGbm39w31AoNKFrM7LjN1erVaNcLi/JKxCW+AmXMZxz6tc5JTAdYDULmIHVfbaDsjWZ6bQa7yIMthgOhzXyKXxMG2Z8tfpXLBbT7fp78iF2ZFXnlIMlr7DpX6/vEweDX8kvkCmNPDgnQ/CKxuPxBbdOp/Mk/WyQi1yBzK8yxLNpxlmv16ta+3LkBsRMCg1JOLFGCnIFikajC44xACtLYEkseUUC0bAqE+uuAvyvYrH4RgrybDLJOS8xRlzhVxV2fJHPWJzTcHnO5/NVUlRYpbO5/XWzicl1wIhHA9AcJtrkU0pAdgLMe05zii0q8ps6bHUrDOuuQPfQA8hNrkC73S5FdxLCg2vd7ZRc59IgE04FTulCxCMOguQgkU5wOxHvEB7+2PW1LT/G43ESZceMPJakDOtUopgJ+Sddl7wGR3/yCiSgYK4qAp+19DAA+61UKs3pA1lPJEJchmw2m6ZSgWYZWEPeqgPsu/ze6WThdCLxekTyXML2+/00BuWl1ywT1TOZTOODEwmnEwaZkgcpn8ucSlIT4upohFVqIME2SUG+D4p2ZhTiHbfdbut+UsmtR2k+WbAZ05fB4Ccw2Q/soDn9S93zz4aH/jv9BfPxi/1sAfxwAAAAAElFTkSuQmCC) no-repeat 50%;
+    background-position: left;
+    padding-left: 22px;
+    background-size: 18px;
+}
+.l-tabs.flex .tip{
+    width: 18px;
+    height: 18px;
+    background:url("/frontRouter/pc/seeBuyerHistory/images/help.png") no-repeat;
+    background-position: left;
+    padding-left: 22px;
+    background-size: 18px;
+}
+.dialog{
+    width: 100%;
+    height: 100%;
+    position: fixed;
+    background-color: #00000065;
+    z-index: 99999;
+}
+.dialog .alertDiv{
+    width: 380px;
+    height: 176px;
+    background: #fff;
+    border-radius: 8px 8px 8px 8px;
+    position: absolute;
+    top: 50%;
+    left: 50%;
+    margin-top: -88px;
+    margin-left: -190px;
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    justify-content: center;
+    text-align: center;
+}
+.dialog .alertDiv .content{
+    font-size: 14px;
+    font-family: Microsoft YaHei-Regular, Microsoft YaHei;
+    font-weight: 400;
+    color: #686868;
+    line-height: 22px;
+    text-align: center;
+}
+.dialog .alertDiv .content i{
+    color: #2CB7CA;
+}
+
+.dialog .alertDiv .iKnowBtn{
+    width: 132px;
+    height: 36px;
+    background: #2CB7CA;
+    border-radius: 6px 6px 6px 6px;
+    opacity: 1;
+    line-height: 36px;
+    color: #FFFFFF;
+    margin-top: 32px;
+}

BIN
src/web/staticres/frontRouter/pc/seeBuyerHistory/images/help.png


+ 131 - 0
src/web/staticres/frontRouter/pc/seeBuyerHistory/js/index-pc.js

@@ -0,0 +1,131 @@
+function getShortName (comName) {
+    var areaMap = chinaMapJSON || []
+    var shortname = comName
+    // 1. 循环省份城市进行替换
+    areaMap.forEach(function (item) {
+        var p = item.name.replace(/[省市]/, '')
+        if (shortname.indexOf(p) !== -1) {
+        shortname = shortname.replace(item.name, '').replace(p, '')
+        console.log(p + ' -> \'\'')
+        }
+        item.city.forEach(function (iitem) {
+        var c = iitem.name.replace(/[省市]/, '')
+        if (shortname.indexOf(c) !== -1) {
+            shortname = shortname.replace(iitem.name, '').replace(c, '')
+            console.log(c + ' -> \'\'')
+        }
+        iitem.area.forEach(function (iiitem) {
+            if (shortname.indexOf(iiitem) !== -1) {
+            shortname = shortname.replace(iiitem, '')
+            console.log(iiitem + ' -> \'\'')
+            }
+        })
+        })
+    })
+    var matchRes = shortname.match(/[\u4e00-\u9fa5]{4}/gm)
+    var shortname = matchRes ? matchRes[0] : shortname.slice(0, 4)
+    if (shortname.length < 4) {
+        shortname = shortname.slice(0, 4)
+    }
+    return shortname
+}
+var vm = new Vue({
+    el: '.see-container',
+    delimiters: ['{', '}'],
+    data () {
+        return {
+            working: false,
+            empty: false,
+            dateVal: '',
+            years: '',
+            months: '',
+            points: [],
+            statusEnum: ['存续', '吊销', '注销', '撤销'],
+            statusColors: ['#2CB7CA', '#F5AF5C', '#58A1E7', '#51CEA2'],
+            seeList: {
+                pageNum: 1, // 当前页
+                pageSize: 10, // 每页多少条数据
+                total: 0, // 总页数
+                list: [] // 返回的数据
+            }
+        }
+    },
+    created() {
+        this.years = new Date().getFullYear()
+        this.months = parseInt(new Date().getMonth() + 1)
+        this.dateVal = new Date()
+        this.subPoint()
+        this.subRecord()
+    },
+    methods: {
+        subPoint() {
+            $.ajax({
+              url: '/bigmember/portrait/subVipPortrait/usage?p_type=1',
+              type: 'POST',
+              contentType: 'application/x-www-form-urlencoded',
+              data: '',
+              dataType: 'json'
+            }).done(res => {
+              if (res.error_code == 0) {
+                this.points = res.data
+              }
+            })
+        },
+        getDatas() {
+            return {
+                year: this.years,
+                month: this.months,
+                pageSize: this.seeList.pageSize,
+                pageNum: this.seeList.pageNum - 1,
+                p_type:1
+            }
+        },
+        subRecord() {
+            this.working = true
+            this.empty = false
+            $.ajax({
+                url: '/bigmember/portrait/subVipPortrait/record',
+                type: 'POST',
+                contentType: 'application/x-www-form-urlencoded',
+                data: this.getDatas(),
+                dataType: 'json'
+            }).done(res => {
+                var _this = this
+                if (res.error_code === 0) {
+                    this.working = false
+                    this.empty = true
+                    if (res.data.total) {
+                        this.seeList.total = res.data.total
+                    }
+                    if (!res.data.list){
+                        res.data.list=[]
+                    }
+                    this.seeList.list = this.seeList.list.concat(res.data.list.map(function (v) {
+                        return {
+                            name: v.name,
+                            province: v.province,
+                            city: v.city,
+                            buyerclass: v.buyerclass,
+                            checked: false
+                        }
+                    }))
+                }
+            })
+        },
+        onPageChange(page) {
+            this.seeList.pageNum = page
+            this.seeList.list = []
+            this.subRecord()
+        },
+        dateHandler(val) {
+            this.years = val.getFullYear()
+            this.months = val.getMonth() + 1
+            this.seeList.pageNum = 1
+            this.seeList.list = []
+            this.subRecord()
+        },
+        detailed(ids) {
+            window.open('/swordfish/page_big_pc/unit_portrayal/' + ids, '_blank')
+        }
+    }
+})

+ 113 - 0
src/web/templates/frontRouter/pc/seeBuyerHistory/sess/index.html

@@ -0,0 +1,113 @@
+
+<html lang="zh-cn">
+	<head>
+		<title>历史查看记录_{{Msg "seo" "qfw.swordfishsl.title"}}</title>
+		<meta name="Keywords" content="{{Msg "seo" "qfw.swordfishsl.key"}}"/>
+		<meta name="Description" content="{{Msg "seo" "qfw.swordfishsl.description"}}"/>
+		<meta name="renderer" content="webkit">
+		<meta content="telephone=no" name="format-detection"/>
+        <meta content="历史查看记录" theme="light" name="enable-header"/>
+		{{include "/common/pnc.html"}}
+		<link href="{{Msg "seo" "cdn"}}/css/pc.css?v={{Msg "seo" "version"}}" rel="stylesheet" />
+		<link href="{{Msg "seo" "cdn"}}/css/dev2/reset_pc.css?v={{Msg "seo" "version"}}" rel="stylesheet" />
+		<link href="{{Msg "seo" "cdn"}}/pccss/public-nav-1200.css?v={{Msg "seo" "version"}}" rel="stylesheet" />
+
+        <script src="{{Msg "seo" "cdn"}}/js/jquery.cookie.js"></script>
+		<script src="{{Msg "seo" "cdn"}}/js/public-nav.js?v={{Msg "seo" "version"}}"></script>
+
+        <link href="//cdn.jsdelivr.net/npm/element-ui@2.13.2/lib/theme-chalk/index.css" rel="stylesheet" />
+        <link rel="stylesheet" href='{{Msg "seo" "cdn"}}/css/ele-reset.css?v={{Msg "seo" "version"}}'>
+        <link rel="stylesheet" href='{{Msg "seo" "cdn"}}/css/selector/selector.css?v={{Msg "seo" "version"}}'>
+        <link rel="stylesheet" href='{{Msg "seo" "cdn"}}/frontRouter/pc/seeBuyerHistory/css/index-pc.css?v={{Msg "seo" "version"}}'>
+	</head>
+
+	<body>
+	{{include "/common/pchead.html"}}
+    <div class="dialog" style="display: none" onclick="closeDialog()">
+        <div class="alertDiv">
+            <div class="content">
+                每购买1个省,每月可查看<i>5个</i>采购单位画像,<i>上限<br>为80个</i>,每月1号上月余额清零重新计算。
+            </div>
+            <div class="iKnowBtn">我知道了</div>
+        </div>
+    </div>
+	<section class="see-container" v-cloak >
+        <div class="see-header flex w">
+            <div class="l-tabs flex">
+                <h3 class="tab-title">采购单位画像记录</h3>
+                <div class="tips">
+                    当月已使用:<span>{points.usage?points.usage:0}</span>/{points.total?points.total:0}
+                </div>
+                <div class="tip" @click="showTip"></div>
+            </div>
+            <div class="l-tabs r-tabs">
+                <span class="r-word">选择月份</span>
+                <el-date-picker
+                    class="date-class"
+                    v-model="dateVal"
+                    type="month"
+                    format="yyyy年MM月"
+                    @change="dateHandler"
+                    placeholder="请选择月份"
+                    :clearable="false"
+                    :editable="false">
+                </el-date-picker>
+                <i class="el-icon-arrow-down r-icons" @click="dateHandler"></i>
+            </div>
+        </div>
+        <div class="see-content w" v-show="seeList.list.length !== 0 && empty">
+            <div class="lists flex" v-for="item in seeList.list" :key="item._id">
+                <div class="r-conts flex">
+                    <h3 class="flex" @click="detailed(item.name)">{item.name}<span v-show="item.status >= 0" :class="'status-' + item.status">{item.statusWord}</span></h3>
+                    <div class="line">
+                        <div class="cont-tips address"><i class="addr">所在地:</i><span>{item.province}</span><span>{item.city}</span></div>
+                        <div class="cont-tips buyerclass"><i class="buyer">采购单位类型:</i><span>{item.buyerclass}</span></div>
+                    </div>
+                </div>
+            </div>
+            <div class="el-pagination-container" v-show="seeList.total">
+                <el-pagination
+                    background
+                    layout="prev, pager, next, ->"
+                    :hide-on-single-page="true"
+                    :current-page="seeList.pageNum"
+                    :page-size="seeList.pageSize"
+                    :total="seeList.total"
+                    @current-change="onPageChange"
+                ></el-pagination>
+            </div>
+        </div>
+        <div class="no-data" v-if="working"><el-image src="/images/working.gif"></el-image><div class="tip-text"><p>剑鱼标讯正在努力工作中...</p></div></div>
+        <div class="no-data" v-if="seeList.list == 0 && empty"><el-image src="/images/pc_12.png"></el-image><div class="tip-text"><p>暂无数据</p></div></div>
+    </section>
+
+    {{include "/common/pcbottom.html"}}
+    {{include "/common/baiducc.html"}}
+
+    <script>
+        haslogin({{.T.logid}})
+        function baiduEvent(name) {
+          try {
+            console.log(name, 'name')
+            _hmt.push(['_trackEvent', '超级订阅-pc', 'click', name]);
+          } catch (e) {
+            console.log('未初始化百度统计')
+          }
+        }
+    </script>
+    <script src="https://cdn-common.jianyu360.com/cdn/lib/vue/2.6.11/vue.min.js"></script>
+    <script src="//cdn.jsdelivr.net/npm/element-ui@2.13.2/lib/index.js"></script>
+    <script src='{{Msg "seo" "cdn"}}/common-module/public/js/china-map-data.js?v={{Msg "seo" "version"}}'></script>
+    <script src='{{Msg "seo" "cdn"}}/frontRouter/pc/seeBuyerHistory/js/index-pc.js?v={{Msg "seo" "version"}}'></script>
+    <script>
+        function closeDialog(){
+            $(".dialog").css("display","none")
+        }
+        function showTip(){
+            $(".dialog").css("display","unset")
+        }
+    </script>
+</body>
+
+</html>
+