Explorar o código

超级订阅权限

TANGSHIZHE %!s(int64=4) %!d(string=hai) anos
pai
achega
8ac0c2c88d

+ 18 - 16
src/jfw/modules/app/src/web/staticres/jyapp/js/historypush.js

@@ -27,24 +27,28 @@ var vm = new Vue({
       screenShow: false
     }
   },
+  created () {
+    this.getUserRoot()
+  },
   methods: {
     // 判断是否是有筛选条件
     getUserRoot: function() {
+      let _this = this
       $.ajax({
         url: '/publicapply/bidcoll/power',
         type: 'POST',
         success: function(res) {
           console.log(res)
           if(res.data) {
-            this.screenShow = true
+            _this.screenShow = true
           } else {
-            this.screenShow = false
+            _this.screenShow = false
           }
         }
       })
     },
     confirm: function(data){
-      console.log(data)
+      this.setToggle()
       if(data.name === 'dateItem'){
         if ((data.data.start / 1000).toFixed(0) == 0 && (data.data.end / 1000).toFixed(0) == 0) {
           this.time = ''
@@ -55,53 +59,51 @@ var vm = new Vue({
         } else {
           this.time = (data.data.start / 1000).toFixed(0) + '_' + (data.data.end / 1000).toFixed(0)
         }
-        this.$refs.dateItem.toggle()
         FTAGData(this.time)
         return
       } else if(data.name === 'areaItem'){
-        this.$refs.areaItem.toggle()
         this.area = data.data.join('、')
       } else if(data.name === 'industryItem'){
-        this.$refs.industryItem.toggle()
         this.subscopeclass = data.data.join(',')
       } else if(data.name === 'cateItem'){
-        this.$refs.cateItem.toggle()
         this.buyerclass = data.data.join(',')
       } else if(data.name === 'keywordItem'){
         this.$refs.keywordItem.toggle()
-        this.key = data.data.join(',')
       } else if(data.name === 'noticeItem'){
-        this.$refs.noticeItem.toggle()
         this.subtype = data.data.join(',')
+      } else if(data.name === 'rootItem'){
+        location.href = '/jyapp/vipsubscribe/introducePage'
       }
       this.getAjaXParams()
     },
     cancel: function(data){
       console.log(data)
       if(data.name === 'dateItem'){
-        this.$refs.dateItem.toggle()
         firstTime = (data.data.start / 1000).toFixed(0) + '_' + (data.data.end / 1000).toFixed(0)
-        // this.time = data.data
         initpage()
       } else if(data.name === 'areaItem'){
-        this.$refs.areaItem.toggle()
         // this.area = data.data.join('、')
       } else if(data.name === 'industryItem'){
-        this.$refs.industryItem.toggle()
         // this.subscopeclass = data.data.join(',')
       } else if(data.name === 'cateItem'){
-        this.$refs.cateItem.toggle()
         // this.subscopeclass = data.data.join(',')
       } else if(data.name === 'keywordItem'){
-        this.$refs.keywordItem.toggle()
         // this.subscopeclass = data.data.join(',')
       } else if(data.name === 'noticeItem'){
-        this.$refs.noticeItem.toggle()
         // this.subscopeclass = data.data.join(',')
       }
+      this.setToggle()
     },
     getAjaXParams: function() {
       ajaxFun(this.time, this.area, this.subscopeclass, this.buyerclass, this.key, this.subtype)
+    },
+    setToggle: function() {
+      this.$refs.dateItem.toggle(false)
+      this.$refs.areaItem.toggle(false)
+      this.$refs.industryItem.toggle(false)
+      this.$refs.cateItem.toggle(false)
+      this.$refs.keywordItem.toggle(false)
+      this.$refs.noticeItem.toggle(false)
     }
   }
 })

+ 16 - 11
src/jfw/modules/app/src/web/templates/weixin/historypush.html

@@ -59,6 +59,12 @@
             height: .88rem;
             /* padding-left: 16px; */
         }
+        .app-layout-content-b .app-content::after{
+            content: '';
+            width: 100%;
+            height: 8px;
+            background: #F5F6F7;
+        }
     </style>
 </head>
 <body class="p13" id="viperSuper">
@@ -76,8 +82,8 @@
     </li>
     <li>
         <div class="tab_right">
-            <span class="report_book"></span>
             <div class="vip_report" style="display: none;">
+                <span class="report_book"></span>
                 <a></a>报告
             </div>
         </div>
@@ -87,13 +93,13 @@
 </div>
 {{include "/big-member/commonjs.html"}}
 <div class="app-layout-content-b">
-    <div class="app-content">
+    <div class="app-content" style="background:#fff">
       {{if and (not .T.isIosExam) (not .T.isIosExamPhone)}}
   		<div class="header_header" style="height: 60px;display:none;transition: all 0.1s;">
-  			<div class="only-personal" style="position: absolute;top: .2rem;left: 4%;background-image: url(/jyapp/vipsubscribe/image/entback.png?v=51430);background-size: 100%;background-repeat: no-repeat;border-radius: 8px;width: 92%;display: flex;align-items: center;justify-content: space-between;height: 44px;">
+  			<div class="only-personal" style="position: absolute;top: .35rem;left: 4%;background-image: url(/jyapp/vipsubscribe/image/entback.png?v=51430);background-size: 100%;background-repeat: no-repeat;border-radius: 8px;width: 92%;display: flex;align-items: center;justify-content: space-between;height: 44px;">
   				<img style="width: 20px;height: 20px; margin-left: .3rem;" src="/jyapp/vipsubscribe/image/vip-icon.png?v=1">
-  				<span  data-name="doubleEleven_title" style="color:#fff;font-weight: bold;font-size: 13px;text-align: left;">全国企业随手查,竞争实力尽展示!</span>
-  				<span  data-name="doubleEleven_button" class="switch_ext" id="app-historypush-vipSub-banner" style="border-radius: 32px;display: flex;flex-direction: row;padding: 3px 12px;font-size: 12px;color: #FAE7CA;margin-right: .2rem;background: linear-gradient(to bottom, #F1D090 0%, #FAE7CA 100%);color: #33323A;font-family: PingFang SC;font-size: 12px;line-height: 18px;letter-spacing: 0px;text-align: center;white-space: nowrap;">立即使用</span>
+  				<span  data-name="doubleEleven_title" style="position: absolute;color:#fff;font-weight: bold;font-size: 15px;text-align: left;left: 43px;">直接对接项目联系人</span>
+  				<span  data-name="doubleEleven_button" class="switch_ext" id="app-historypush-vipSub-banner" style="border-radius: 32px;display: flex;flex-direction: row;padding: 3px 12px;font-size: 12px;color: #FAE7CA;margin-right: .2rem;background: linear-gradient(to bottom, #F1D090 0%, #FAE7CA 100%);color: #33323A;font-family: PingFang SC;font-size: 12px;line-height: 18px;letter-spacing: 0px;text-align: center;white-space: nowrap;">免费试用</span>
   			</div>
   		</div>
       {{end}}
@@ -124,7 +130,7 @@
                                 </span>
                             </template>
                             <area-component v-if="screenShow" @cancel="cancel" @confirm="confirm"></area-component>
-                            <root-component v-if="!screenShow"></root-component>
+                            <root-component v-if="!screenShow" @cancel="cancel" @confirm="confirm"></root-component>
                         </van-dropdown-item>
                         <van-dropdown-item ref="industryItem">
                             <template #title>
@@ -135,7 +141,7 @@
                                 </span>
                             </template>
                             <industry-component v-if="screenShow" @cancel="cancel" @confirm="confirm"></industry-component>
-                            <root-component v-if="!screenShow"></root-component>
+                            <root-component v-if="!screenShow" @cancel="cancel" @confirm="confirm"></root-component>
                         </van-dropdown-item>
                         <van-dropdown-item  ref="cateItem">
                             <template #title>
@@ -146,7 +152,7 @@
                                 </span>
                             </template>
                             <cate-component @cancel="cancel" v-if="screenShow" @confirm="confirm"></cate-component>
-                            <root-component v-if="!screenShow"></root-component>
+                            <root-component v-if="!screenShow" @cancel="cancel" @confirm="confirm"></root-component>
                         </van-dropdown-item>
                         <van-dropdown-item title="关键词" ref="keywordItem">
                             <template #title>
@@ -157,7 +163,7 @@
                                 </span>
                             </template>
                             <keyword-component @cancel="cancel" v-if="screenShow" @confirm="confirm"></keyword-component>
-                            <root-component v-if="!screenShow"></root-component>
+                            <root-component v-if="!screenShow" @cancel="cancel" @confirm="confirm"></root-component>
                         </van-dropdown-item>
                         <van-dropdown-item title="公告类型" ref="noticeItem">
                             <template #title>
@@ -168,7 +174,7 @@
                                 </span>
                             </template>
                             <notice-component @cancel="cancel" v-if="screenShow" @confirm="confirm"></notice-component>
-                            <root-component v-if="!screenShow"></root-component>
+                            <root-component v-if="!screenShow" @cancel="cancel" @confirm="confirm"></root-component>
                         </van-dropdown-item>
                     </van-dropdown-menu>
                 </div>
@@ -247,7 +253,6 @@
             </div>
         </div>
     </div>
-</div>
 <div class="vip_report_tip">
     <div class="weui-mask weui-animate-fade-in"></div>
     <div class="weui-dialog weui-animate-fade-in">