Commit b0360267 authored by caimeng's avatar caimeng

专门针对华为打了一个V1.0.8的包

parent 7afd638c
...@@ -41,11 +41,19 @@ ...@@ -41,11 +41,19 @@
<!-- 金刚位 --> <!-- 金刚位 -->
<view v-if="index['shortcutList']" class="i-list"> <view v-if="index['shortcutList']" class="i-list">
<view class='mian-item' v-for="(item, index) in JSON.parse(index['shortcutList'])" :key="item.id"
@click="jump(item, index, 'diamond')"> <template v-for="(item, index) in JSON.parse(index['shortcutList'])">
<image class='item-img' :src='item.url'></image>
<view class='item-text'>{{ item.name }}</view> <view class='mian-item'
</view> v-if="item.tager !== 'uni:/subPackage/indexfinance/index,tab'"
:key="item.id" @click="jump(item, index, 'diamond')">
<image class='item-img' :src='item.url'></image>
<view class='item-text'>{{ item.name }}</view>
</view>
</template>
</view> </view>
...@@ -114,6 +122,7 @@ export default { ...@@ -114,6 +122,7 @@ export default {
IndexList: indexGoods, IndexList: indexGoods,
index: cacheIndexData, index: cacheIndexData,
isFixed: false, isFixed: false,
deviceBrand: uni.getSystemInfoSync().deviceBrand,
// 商品过滤 // 商品过滤
......
...@@ -58,15 +58,16 @@ export const switchShowTabbar = async () => { ...@@ -58,15 +58,16 @@ export const switchShowTabbar = async () => {
try { try {
const res = await API.initTabBar() const res = await API.initTabBar()
const { data } = res.result const { data } = res.result
if (data) { // V1.0.8 版本华为贷款口子不放出来
uni.setStorageSync('loanSwitch',true) if (data && uni.getSystemInfoSync().deviceBrand !== 'huawei') {
uni.setStorageSync('loanSwitch', true)
uni.setTabBarItem({ uni.setTabBarItem({
index: 1, index: 1,
text: '贷款', text: '贷款',
visible: true, visible: true,
}) })
} else { } else {
uni.setStorageSync('loanSwitch',false) uni.setStorageSync('loanSwitch', false)
uni.setTabBarItem({ uni.setTabBarItem({
index: 1, index: 1,
visible: false visible: false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment