Merge branch 'refs/heads/master' into develop
Showing
8 changed files
with
29 additions
and
20 deletions
@@ -33,7 +33,9 @@ const xianyu = { | @@ -33,7 +33,9 @@ const xianyu = { | ||
33 | closeNavRightItem() { | 33 | closeNavRightItem() { |
34 | 34 | ||
35 | if (this.isAliApp && window.WindVane) { | 35 | if (this.isAliApp && window.WindVane) { |
36 | - window.WindVane.call('WVIdleFishApi', 'setHideNavigatorRightItem', {},()=>{},()=>{}) | 36 | + window.WindVane.call('WVIdleFishApi', 'setHideNavigatorRightItem', {},()=>{ |
37 | + },()=>{ | ||
38 | + }) | ||
37 | } | 39 | } |
38 | }, | 40 | }, |
39 | 41 | ||
@@ -47,12 +49,16 @@ const xianyu = { | @@ -47,12 +49,16 @@ const xianyu = { | ||
47 | window._xianyuShare = () => { | 49 | window._xianyuShare = () => { |
48 | this.setXianyuShare(shareParam, handler); | 50 | this.setXianyuShare(shareParam, handler); |
49 | } | 51 | } |
52 | + // xianyu android bug: title必传切不能为空字符串,icon才能展示 | ||
53 | + // xianyu ios bug: 图片按钮无法隐藏 TOTO ali修复 | ||
54 | + const param = { | ||
55 | + title: '∙∙∙', // 按钮名称 | ||
56 | + icon: this.isAndroid ? ' http://cdn.yoho.cn/xianyu/share-btn.png': '', | ||
57 | + func: '_xianyuShare' // func: 'test' //点击调用函数 注意调用的函数必须挂载在window上 | ||
58 | + } | ||
50 | // console.log('this.isAliApp && window.WindVane', this.isAliApp , window.WindVane); | 59 | // console.log('this.isAliApp && window.WindVane', this.isAliApp , window.WindVane); |
51 | if (this.isAliApp && window.WindVane) { | 60 | if (this.isAliApp && window.WindVane) { |
52 | - window.WindVane.call('WVIdleFishApi', 'setNavigatorRightItem', { | ||
53 | - title: '∙∙∙', // 按钮名称 | ||
54 | - func: '_xianyuShare' // func: 'test' //点击调用函数 注意调用的函数必须挂载在window上 | ||
55 | - }, function(data) { | 61 | + window.WindVane.call('WVIdleFishApi', 'setNavigatorRightItem',param, function(data) { |
56 | console.log('setNavigatorRightItem success:',data); | 62 | console.log('setNavigatorRightItem success:',data); |
57 | }, function(e) { | 63 | }, function(e) { |
58 | console.log('setNavigatorRightItem error:',e); | 64 | console.log('setNavigatorRightItem error:',e); |
@@ -18,7 +18,7 @@ | @@ -18,7 +18,7 @@ | ||
18 | <div class="price-status"> | 18 | <div class="price-status"> |
19 | <span class="price">¥{{ goodsInfo.goodPrice }}</span> | 19 | <span class="price">¥{{ goodsInfo.goodPrice }}</span> |
20 | </div> | 20 | </div> |
21 | - <p class="item-name"><span>【{{ goodsInfo.typeTag }}】</span> | 21 | + <p class="item-name"><span v-if="goodsInfo.typeTag">【{{ goodsInfo.typeTag }}】</span> |
22 | {{ goodsInfo.productName }} | 22 | {{ goodsInfo.productName }} |
23 | </p> | 23 | </p> |
24 | </div> | 24 | </div> |
@@ -95,7 +95,7 @@ | @@ -95,7 +95,7 @@ | ||
95 | @hide="onSizeSelectSheetHide" | 95 | @hide="onSizeSelectSheetHide" |
96 | @select="onSelectTradeProduct" | 96 | @select="onSelectTradeProduct" |
97 | @add="onRequestSize"/> | 97 | @add="onRequestSize"/> |
98 | - <detail-useage-tips></detail-useage-tips> | 98 | + <!-- <detail-useage-tips></detail-useage-tips> --> |
99 | </div> | 99 | </div> |
100 | </template> | 100 | </template> |
101 | 101 | ||
@@ -118,7 +118,7 @@ import TopList from './components/top-list'; | @@ -118,7 +118,7 @@ import TopList from './components/top-list'; | ||
118 | import SquareImg from './components/square-img'; | 118 | import SquareImg from './components/square-img'; |
119 | import stateShortCutsMixins from './mixins'; | 119 | import stateShortCutsMixins from './mixins'; |
120 | import trackingMixins from './tracking-mixins'; | 120 | import trackingMixins from './tracking-mixins'; |
121 | -import DetailUseageTips from './components/detail-useage-tips'; | 121 | +// import DetailUseageTips from './components/detail-useage-tips'; |
122 | 122 | ||
123 | import VideoPlayer from '@/components/video-player'; | 123 | import VideoPlayer from '@/components/video-player'; |
124 | 124 | ||
@@ -129,7 +129,7 @@ export default { | @@ -129,7 +129,7 @@ export default { | ||
129 | name: 'ProductDetail', | 129 | name: 'ProductDetail', |
130 | mixins: [stateShortCutsMixins, trackingMixins], | 130 | mixins: [stateShortCutsMixins, trackingMixins], |
131 | components: { | 131 | components: { |
132 | - DetailUseageTips, | 132 | + // DetailUseageTips, |
133 | SizeSelectSheet, | 133 | SizeSelectSheet, |
134 | ActivityListSheet, | 134 | ActivityListSheet, |
135 | SizeRequestSheet, | 135 | SizeRequestSheet, |
@@ -7,8 +7,8 @@ | @@ -7,8 +7,8 @@ | ||
7 | <image-format | 7 | <image-format |
8 | :class="product.status === 100 ? 'dim-imge' : 'second-image'" | 8 | :class="product.status === 100 ? 'dim-imge' : 'second-image'" |
9 | :src="product.secondhand_image" | 9 | :src="product.secondhand_image" |
10 | - :width="180" | ||
11 | - :height="180"/> | 10 | + :width="360" |
11 | + :height="360"/> | ||
12 | <div v-if="product.status === 100" class="dim-out"></div> | 12 | <div v-if="product.status === 100" class="dim-out"></div> |
13 | </div> | 13 | </div> |
14 | 14 |
@@ -19,8 +19,8 @@ | @@ -19,8 +19,8 @@ | ||
19 | :lazy="false" | 19 | :lazy="false" |
20 | alt="图片加载失败" | 20 | alt="图片加载失败" |
21 | :src="item" | 21 | :src="item" |
22 | - :width="375" | ||
23 | - :height="375" | 22 | + :width="750" |
23 | + :height="750" | ||
24 | /> | 24 | /> |
25 | <div class="pole-dot-area"></div> | 25 | <div class="pole-dot-area"></div> |
26 | </cube-slide-item> | 26 | </cube-slide-item> |
@@ -51,8 +51,8 @@ | @@ -51,8 +51,8 @@ | ||
51 | class="image" | 51 | class="image" |
52 | :alt="info.image" | 52 | :alt="info.image" |
53 | :src="info.image" | 53 | :src="info.image" |
54 | - :width="70" | ||
55 | - :height="70" | 54 | + :width="140" |
55 | + :height="140" | ||
56 | /> | 56 | /> |
57 | <div class="middle" @click="'productId'"> | 57 | <div class="middle" @click="'productId'"> |
58 | <p class="name ellipsis">{{ info.productName }}</p> | 58 | <p class="name ellipsis">{{ info.productName }}</p> |
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | <SecondList ref="second" :list="skupList.list" :yasParams="yasParams"></SecondList> | 11 | <SecondList ref="second" :list="skupList.list" :yasParams="yasParams"></SecondList> |
12 | </LayoutScroll> | 12 | </LayoutScroll> |
13 | 13 | ||
14 | - <UfoNoItem class="empty" :tip="`暂无数据`" v-else></UfoNoItem> | 14 | + <UfoNoItem v-if="isShowEmpty" class="empty" :tip="`暂无数据`"></UfoNoItem> |
15 | </LayoutApp> | 15 | </LayoutApp> |
16 | </template> | 16 | </template> |
17 | 17 | ||
@@ -43,7 +43,7 @@ export default { | @@ -43,7 +43,7 @@ export default { | ||
43 | }; | 43 | }; |
44 | }, | 44 | }, |
45 | computed: { | 45 | computed: { |
46 | - ...mapState(['skupList', 'isMore']) | 46 | + ...mapState(['skupList', 'isMore', 'isShowEmpty']) |
47 | }, | 47 | }, |
48 | methods: { | 48 | methods: { |
49 | ...mapActions(['fetchSecondSkupList']), | 49 | ...mapActions(['fetchSecondSkupList']), |
@@ -34,7 +34,7 @@ export default function() { | @@ -34,7 +34,7 @@ export default function() { | ||
34 | } | 34 | } |
35 | } | 35 | } |
36 | }, | 36 | }, |
37 | - errorData(state) { | 37 | + showEmpty(state) { |
38 | state.isShowEmpty = true; | 38 | state.isShowEmpty = true; |
39 | } | 39 | } |
40 | }, | 40 | }, |
@@ -55,8 +55,11 @@ export default function() { | @@ -55,8 +55,11 @@ export default function() { | ||
55 | let data = result.data; | 55 | let data = result.data; |
56 | 56 | ||
57 | commit('addList', { data, isReset }); | 57 | commit('addList', { data, isReset }); |
58 | + if (data && !data.total) { | ||
59 | + commit('showEmpty'); | ||
60 | + } | ||
58 | } else { | 61 | } else { |
59 | - commit('errorData'); | 62 | + commit('showEmpty'); |
60 | } | 63 | } |
61 | return result.data || []; | 64 | return result.data || []; |
62 | }, | 65 | }, |
-
Please register or login to post a comment