Pārlūkot izejas kodu

Merge branch 'feature/v4.8.72' of https://jygit.jydev.jianyu360.cn/qmx/jy into dev/v4.8.72_zxl

zhangxinlei1996 1 gadu atpakaļ
vecāks
revīzija
e3ebdf61ec

+ 22 - 16
src/jfw/modules/subscribepay/src/entity/basePack.go

@@ -54,6 +54,21 @@ func (this *UseBalanceStruct) fileConsume() (r map[string]interface{}, m string,
 			number = gconv.Int(dataMap["number"])
 		}
 	}
+	isExists := false
+	id := this.FindJyConsumePackRecord()
+	if id != "" && this.Remarks["downUrl"] != nil {
+		if util.MQFW.UpdateById(jyCC, id, map[string]interface{}{
+			"$set": map[string]interface{}{
+				"l_updateDate": time.Now().Unix(),
+			},
+		}) {
+			delete(this.Remarks, "id")
+			delete(this.Remarks, "title")
+			r = this.Remarks
+			r["isExists"] = true
+			isExists = true
+		}
+	}
 	if BaseMsg.Status > 0 && BaseMsg.PowerMap[3] {
 		if this.Remarks["infoType"] != nil && this.Remarks["infoType"].(string) == "S" {
 			r = SupplyInfoFile(_fileName, _id)
@@ -73,24 +88,15 @@ func (this *UseBalanceStruct) fileConsume() (r map[string]interface{}, m string,
 				log.Println("大会员附件下载-历史记录异常:" + this.UserId)
 			}
 		}(this, r)*/
-		this.saveJyConsumePackList()
+		if r["downUrl"] != nil {
+			this.Remarks["downUrl"] = r["downUrl"]
+			this.Remarks["size"] = r["size"]
+		}
+		if !isExists {
+			this.saveJyConsumePackList()
+		}
 	} else {
-		isExists := false
 		//查询当月附件下载历史记录-如是已下载过的附件不再扣除次数
-		id := this.FindJyConsumePackRecord()
-		if id != "" && this.Remarks["downUrl"] != nil {
-			if util.MQFW.UpdateById(jyCC, id, map[string]interface{}{
-				"$set": map[string]interface{}{
-					"l_updateDate": time.Now().Unix(),
-				},
-			}) {
-				delete(this.Remarks, "id")
-				delete(this.Remarks, "title")
-				r = this.Remarks
-				r["isExists"] = true
-				isExists = true
-			}
-		}
 		// log.Println(this.Remarks, "++++++", this.AccountId, id, "-------------", isExists)
 		//当月未有消费记录
 		if !isExists {

+ 2 - 1
src/web/staticres/frontRouter/pc/fileHistory/js/index-pc.js

@@ -182,7 +182,8 @@ var fileRecorder = new Vue({
         return
       }
       if (column.label === '公告来源') {
-        location.href = row.articleUrl
+        // location.href = row.articleUrl + '?aside=0'
+        window.open(row.articleUrl)
       }
     },
     indexMethod (index) {

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

@@ -22,6 +22,7 @@
     margin-top: 0;
     padding: 100px 0;
     background-color: #fff;
+    border-radius: 8px;
 }
 
 

+ 1 - 1
src/web/staticres/js/pc-collect-user-info.js

@@ -364,6 +364,7 @@ var vm = new Vue({
       sourceTitleMap: {
         pc_article_member_freeuse: '请升级大会员无限制查看标讯、超前项目,优先对接项目负责人,抢占绝对先机!',
         article_attach_freeuser: '请留下联系方式,立即免费体验【附件下载】1次,招标文件/采购清单一键下载,商机更完整!',
+        pc_mine_member_attach_learnmore: '请留下联系方式,我们会尽快联系您!部分招标公告信息等相关文件资料自主下载,帮助企业投标,客户分析、市场挖掘更高效。',
         // ent_portrait_freeuser: '请留下联系方式,立即免费体验【企业中标分析】1次,多维度可视化分析竞争对手!',
         // ent_portrait_winnerNewMsg_freeuser: '请留下联系方式,立即免费体验【企业中标分析】1次,多维度可视化分析竞争对手!',
         // ent_portrait_yearData_freeuser: '请留下联系方式,立即免费体验【企业中标分析】1次,多维度可视化分析竞争对手!',
@@ -403,7 +404,6 @@ var vm = new Vue({
         'activity_free_plan': '请完善信息,免费获取200剑鱼币',
         super_membership_day: '请留下联系方式,我们会尽快联系您体验大会员全部功能!',
         peugeot_supplier_regist:'请完善您的个人信息,抢先对接采购单位',
-        pc_mine_member_attach_learnmore: '请留下联系方式,我们会尽快联系您!部分招标公告信息等相关文件资料自主下载,帮助企业投标,客户分析、市场挖掘更高效。',
         peugeot_view_infor: '请留下联系方式,我们会尽快联系您体验大会员全部功能!'
       },
       isRefresh: false, // 留完资是否需要刷新页面

+ 5 - 3
src/web/staticres/public-pc/js/article-content.js

@@ -2170,7 +2170,8 @@ function goDownload(url) {
       location.href = url
     } else {
       // 免费用户 体验过 下载次数为-1 弹框提醒跳至超级订阅购买页
-      bidVue.$alert('您已经免费解锁过【附件下载】权益1次,暂无免费查看权限。如需查看更多,请开通超级订阅获取更多权限。', '开通超级订阅', {
+      // 您已经免费解锁过【附件下载】权益1次,暂无免费查看权限。如需查看更多,请开通超级订阅获取更多权限。
+      bidVue.$alert('您的免费【附件下载】次数已使用完,暂无免费查看权限。如需查看更多,请开通超级订阅获取更多权限。', '开通超级订阅', {
         showClose:false,
         center: true,
         confirmButtonText: '去开通',
@@ -2352,7 +2353,7 @@ function getFileData () {
               cjdyDownload(fname)
             }else {
               // 免费用户 体验过 下载次数为-1 弹框提醒跳至超级订阅购买页
-              bidVue.$alert('您已经免费解锁过【附件下载】权益1次,暂无免费查看权限。如需查看更多,请开通超级订阅获取更多权限。', '开通超级订阅', {
+              bidVue.$alert('您的免费【附件下载】次数已使用完,暂无免费查看权限。如需查看更多,请开通超级订阅获取更多权限。', '开通超级订阅', {
                 showClose:false,
                 center: true,
                 confirmButtonText: '去开通',
@@ -2367,7 +2368,7 @@ function getFileData () {
           }else{
             // 付费用户
             // 大会员用户 有下载权限
-            if (window.memberPower.indexOf(3) > -1) {
+            if (window.memberPower.indexOf(3) > -1 || window.filePackAccount.number > 0) {
               cjdyDownload(fname)
               return
             }
@@ -2392,6 +2393,7 @@ function getFileData () {
               }
               return
             }
+
             //  是大会员自定义版本没有下载权限 或 非超级订阅的商机管理用户 (弹框提醒联系客服)
             if ((window.memberStatus > 0 &&  window.memberPower.indexOf(3) == -1) || (window.vipStatus <=0 && window.entniche)) {
               bidVue.$alert('对不起,暂无权限,请联系客服', {

+ 2 - 1
src/web/staticres/tags/js/no-login-detail.js

@@ -1744,7 +1744,8 @@ function goDownload(url) {
       location.href = url
     } else {
       // 免费用户 体验过 下载次数为-1 弹框提醒跳至超级订阅购买页
-      bidVue.$alert('您已经免费解锁过【附件下载】权益1次,暂无免费查看权限。如需查看更多,请开通超级订阅获取更多权限。', '开通超级订阅', {
+      // 您已经免费解锁过【附件下载】权益1次,暂无免费查看权限。如需查看更多,请开通超级订阅获取更多权限。
+      bidVue.$alert('您的免费【附件下载】次数已使用完,暂无免费查看权限。如需查看更多,请开通超级订阅获取更多权限。', '开通超级订阅', {
         showClose:false,
         center: true,
         confirmButtonText: '去开通',

+ 8 - 3
src/web/templates/frontRouter/pc/fileHistory/sess/index.html

@@ -66,6 +66,11 @@
     .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
       background: #F5F5FB;
     }
+    .tab-header-title {
+      font-size: 24px;
+      color: #1D1D1D;
+      line-height: 36px;
+    }
     .tab-title {
       font-size: 18px;
       font-weight: 400;
@@ -82,9 +87,9 @@
     <div class="see-header flex w">
       <div class="w1080">
        <div class="header-hd">
-          <h3 class="tab-title">附件下载</h3>
+          <h3 class="tab-header-title">附件下载</h3>
           <div class="header-hd-actions">
-            <button class="tab-button" @click="goToFileNumberDetail">兑换/购买附件下载明细</button>
+            <button v-if="showHeaderCard" class="tab-button" @click="goToFileNumberDetail">兑换/购买附件下载明细</button>
           </div>
        </div>
         <!-- 大会员且有附件下载权益不展示头部 -->
@@ -215,7 +220,7 @@
       </div>
     </div>
     <div class="no-data" v-if="seeList.list == 0 && empty">
-      <el-image src="/images/pc_12.png"></el-image>
+      <el-image src="/common-module/public/image/jy-back.png"></el-image>
       <div class="tip-text">
         <p>暂无数据</p>
       </div>

+ 1 - 1
src/web/templates/frontRouter/pc/integral/sess/index.html

@@ -42,7 +42,7 @@
         .page--points--index .page-container{
           min-height: calc(100vh - 364px);
           box-sizing: border-box;
-          padding-top: 64px;
+          padding-top: 72x;
         }
         .page--points--index .logo{
           width: 130px;