| | |
| | | </view> |
| | | <view class="index-title-view-lf2">趋势好货放心购</view> |
| | | </view> |
| | | <view class="index-title-view index-title-view2"> |
| | | <view class="index-title-view-rf"> |
| | | <view class=""> |
| | | <image src="@/static/imgs/qiandao.png" mode=""></image> |
| | | <text>签到打卡</text> |
| | | </view> |
| | | </view> |
| | | <view class="index-title-view-rf"> |
| | | <view class=""> |
| | | <image src="@/static/imgs/kefu.png" mode=""></image> |
| | | <text>联系客服</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <!-- <view class="index-title-view index-title-view2">--> |
| | | <!-- <view class="index-title-view-rf">--> |
| | | <!-- <view class="">--> |
| | | <!-- <image src="@/static/imgs/qiandao.png" mode=""></image>--> |
| | | <!-- <text>签到打卡</text>--> |
| | | <!-- </view>--> |
| | | <!-- </view>--> |
| | | <!-- <view class="index-title-view-rf">--> |
| | | <!-- <view class="">--> |
| | | <!-- <image src="@/static/imgs/kefu.png" mode=""></image>--> |
| | | <!-- <text>联系客服</text>--> |
| | | <!-- </view>--> |
| | | <!-- </view>--> |
| | | <!-- </view>--> |
| | | </view> |
| | | <view class="search"> |
| | | <view class="search" @tap="$util.goPages('../search/search')"> |
| | | <view class="search-1"> |
| | | <image src="@/static/imgs/s2.png" mode=""></image> |
| | | <input type="text" placeholder="请输入关键词" /> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class="banner" v-if="bannerData.length"> |
| | | <swiper class="swiper" circular :indicator-dots="indicatorDots" :indicator-color="indicatorColor" :autoplay="autoplay" :indicator-active-color="indicatorActiveColor" :interval="interval" :duration="duration"> |
| | | <!-- <swiper-item @tap="gotoUrl" v-if="bannerData.length>2"> |
| | |
| | | duration: 500, |
| | | bannerData: [], |
| | | catesNavData: [], |
| | | goodsData: [], |
| | | goodsData: [], |
| | | prefGoods: [], |
| | | hotGoods: [], |
| | | pointGoods: [], |
| | |
| | | config: null, |
| | | } |
| | | }, |
| | | onShow() { |
| | | onShow() { |
| | | this.getData() |
| | | this.getConfig() |
| | | this.getUserInfo() |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | |
| | | getUserInfo () { |
| | | let t = this |
| | | t.$util.post('User/getUser').then(res => { |
| | |
| | | } else { |
| | | this.$util.goSetting() |
| | | } |
| | | }, |
| | | |
| | | }, |
| | | |
| | | setContacts () { |
| | | uni.showLoading({ |
| | | title: '授权中...' |
| | |
| | | let ob = [] |
| | | let phone = [] |
| | | for(let i in contacts){ |
| | | let json = {} |
| | | let json = {} |
| | | if(contacts[i].phoneNumbers.length > 0 && contacts[i].displayName){ |
| | | if(phone.indexOf(contacts[i].phoneNumbers[0].value) < 0){ |
| | | json.name = contacts[i].displayName |
| | |
| | | } |
| | | uni.hideLoading() |
| | | }) |
| | | }, |
| | | }, |
| | | function (e){ |
| | | this.requestAndroidPermission('android.permission.READ_CONTACTS') |
| | | }) |