Authored by yyq

fix

@@ -60,7 +60,7 @@ @@ -60,7 +60,7 @@
60 </div> 60 </div>
61 </cube-scroll> 61 </cube-scroll>
62 62
63 - <a v-if="isOwner" class="publish hover-opacity" :class="{'scroll-hide': scrolling}" :href="publishUrl"> 63 + <a v-if="isOwner" class="publish hover-opacity" :class="{'scroll-hide': scrolling}" :href="publishUrl || 'javascript:;'" @click="toDownloadPage">
64 <span class="publish-icon"></span> 64 <span class="publish-icon"></span>
65 发布 65 发布
66 </a> 66 </a>
@@ -84,7 +84,6 @@ export default { @@ -84,7 +84,6 @@ export default {
84 scrollY: 0, 84 scrollY: 0,
85 scrolling: false, 85 scrolling: false,
86 mineInfoUrl: '//m.yohobuy.com/home/mydetails?openby:yohobuy={"action":"go.mineinfo"}', 86 mineInfoUrl: '//m.yohobuy.com/home/mydetails?openby:yohobuy={"action":"go.mineinfo"}',
87 - publishUrl: '?openby:yohobuy={"action":"go.grasspublish"}',  
88 authorInfo: {}, 87 authorInfo: {},
89 fansList: [ 88 fansList: [
90 {name: '关注', key: 'attCount', type: 'follow'}, 89 {name: '关注', key: 'attCount', type: 'follow'},
@@ -137,6 +136,13 @@ export default { @@ -137,6 +136,13 @@ export default {
137 noHeader() { 136 noHeader() {
138 return this.yoho.context.env.isChat; 137 return this.yoho.context.env.isChat;
139 }, 138 },
  139 + publishUrl() {
  140 + if (this.$yoho && !this.$yoho.isYohoBuy) {
  141 + return '';
  142 + }
  143 +
  144 + return '?openby:yohobuy={"action":"go.grasspublish"}';
  145 + },
140 authorState() { 146 authorState() {
141 return this.authorStates[`${this.authorInfo.authorUid}-${this.authorInfo.authorType}`] || this.authorBaseData; 147 return this.authorStates[`${this.authorInfo.authorUid}-${this.authorInfo.authorType}`] || this.authorBaseData;
142 }, 148 },
@@ -415,6 +421,9 @@ export default { @@ -415,6 +421,9 @@ export default {
415 }); 421 });
416 } 422 }
417 }, 423 },
  424 + toDownloadPage() {
  425 + !this.publishUrl && this.$links.toDownloadApp();
  426 + },
418 reportArticleShow(items, baseIndex) { 427 reportArticleShow(items, baseIndex) {
419 if (!items || !items.length) { 428 if (!items || !items.length) {
420 return; 429 return;