| | |
| | | that.globalData.ifwt = 0 |
| | | } |
| | | } |
| | | console.log(that.globalData.ifwt); |
| | | } else { |
| | | if (plus.runtime.isApplicationExist({pname:'com.tencent.mm', |
| | | action: 'weixin://' |
| | |
| | | } |
| | | } |
| | | // #endif |
| | | |
| | | }).catch(function(err) {}) |
| | | |
| | | }, |
| | |
| | | }, |
| | | onRestore() { |
| | | this.swpidx = 0 |
| | | console.log('下拉被终止'); |
| | | }, |
| | | pagescroll(e) { |
| | | this.$emit('scrollNum', e.detail.scrollTop) |
| | |
| | | this.$u.api.getBanner({ |
| | | type: '1,3,4,5,11,12,13,14' |
| | | }).then(e => { |
| | | console.log(e) |
| | | if (e.code == 1) return that.$alert(e.msg); |
| | | var res = e.data.info; |
| | | if(res.topBannerList&&res.topBannerList.length>0) |
| | |
| | | that.doubleLineList = res.doubleLineList; |
| | | that.bottomBannerList = res.bottomBannerList; |
| | | that.fastenter=res.indexbanner; |
| | | console.log(that.fastenter); |
| | | that.popBannerSList=res.popBannerSList; |
| | | that.enterTop=res.enterTop; |
| | | that.enterDown=res.enterDown; |
| | |
| | | pageSize: 10, |
| | | type: type |
| | | }).then(e => { |
| | | console.log(e) |
| | | if (e.code != 0) return that.$alert(e.msg) |
| | | var res = e.data.list; |
| | | if (res.length < 10) { |
| | |
| | | }).then(e => { |
| | | if (e.code == 1) return that.$alert(e.msg); |
| | | var res = e.data.info; |
| | | console.log(res) |
| | | if(res.length > 0){ |
| | | this.showBulletFrame = true; |
| | | this.BulletFrameData = res[0] |
| | |
| | | "splashscreen" : { |
| | | "androidStyle" : "default", |
| | | "android" : { |
| | | "hdpi" : "E:/OPProject/发版用_勿删/开屏/开屏小.png", |
| | | "xhdpi" : "E:/OPProject/图片/开屏/开屏中.png", |
| | | "xxhdpi" : "E:/OPProject/图片/开屏/开屏大.png" |
| | | "hdpi" : "E:/OPProject/发版用_勿删/android/480X762.9.png", |
| | | "xhdpi" : "E:/OPProject/发版用_勿删/android/720X1242.9.png", |
| | | "xxhdpi" : "E:/OPProject/发版用_勿删/android/1080x1882.9.png" |
| | | }, |
| | | "iosStyle" : "common" |
| | | "iosStyle" : "storyboard", |
| | | "ios" : { |
| | | "storyboard" : "E:/OPProject/发版用_勿删/ios/CustomStoryboard.zip" |
| | | } |
| | | }, |
| | | "icons" : { |
| | | "android" : { |
| | |
| | | <template> |
| | | <view v-if="!isshowtype"> |
| | | <view v-if="isshowtype"> |
| | | <indexnewPage></indexnewPage> |
| | | </view> |
| | | |
| | | </view> |
| | | <view v-else class="index-wrapper wrapperLayer borderBox"> |
| | | <view class="fixed-container colCen borderBox" :style="'background:'+ (categoryCurrent>0?'#EE1B14':(scrollTop>30?'#EE1B14;':bannerColor) +';')"> |
| | | <view class="topbarbox"></view> |
| | |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.shShow(); |
| | | this.getCategoryList(); |
| | | this.getPopBannerInfo(); |
| | | }, |
| | |
| | | },1000); |
| | | return; |
| | | } |
| | | // #ifdef APP-PLUS |
| | | |
| | | var showtar = getApp().globalData.ifwt == 1 ? false : true; |
| | | var platform = plus.os.name; |
| | | console.log(showtar); |
| | | console.log(platform); |
| | | if(showtar&&platform=='iOS') |
| | | {//跳转new |
| | | this.isshowtype=true; |
| | | |
| | | return; |
| | | } |
| | | // #endif |
| | | var user= uni.getStorageSync('userInfo'); |
| | | console.log(user); |
| | | if(!user.invitation_code) |
| | |
| | | }, |
| | | watch: {}, |
| | | methods: { |
| | | shShow() |
| | | { |
| | | var that=this; |
| | | console.log('开始请求······'); |
| | | this.$u.api.comminInt({}).then(e => { |
| | | // #ifdef APP-PLUS |
| | | if (plus.os.name == 'iOS') { |
| | | if (e.data.basic.iosExamine && plus.runtime.version == e.data.basic.IosExamineV) { |
| | | that.isshowtype=true; |
| | | } else { |
| | | that.isshowtype=false; |
| | | } |
| | | console.log(that.isshowtype); |
| | | } |
| | | // #endif |
| | | }).catch(function(err) { |
| | | console.log(err); |
| | | }) |
| | | }, |
| | | goToShowBulletFrame(info){ |
| | | this.showBulletFrame = false |
| | | utils.goUrl(info, this) |
| | |
| | | <view class="pageContent borderBox colCen"> |
| | | <image class="applogo" :src="appInfo.logo" mode="aspectFill"></image> |
| | | |
| | | <view class="wxlogoBtn rowCenCen" @tap="wxlogin()" v-if="haswxlogin"> |
| | | <view class="wxlogoBtn rowCenCen" @tap="wxlogin()" v-if="supportWx"> |
| | | <image class="logoIcon" src="../../static/images/mine/wxwhite.png" mode=""></image> |
| | | <view>微信一键登录</view> |
| | | </view> |
| | |
| | | isread: false, |
| | | haswxlogin: false, |
| | | isSupportMob:false, |
| | | isother:false |
| | | isother:false, |
| | | supportWx:true |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.appInfo = uni.getStorageSync('appInfo') |
| | | console.log(this.appInfo.iosExamine) |
| | | console.log(getApp().globalData.ifwt) |
| | | //this.haswxlogin = this.appInfo.iosExamine ? false : (getApp().globalData.ifwt == 1 ? true : false) |
| | | this.haswxlogin = getApp().globalData.ifwt == 1 ? true :false; |
| | | this.checkSupportWx(); |
| | | this.isSupportMoblie(); |
| | | }, |
| | | methods: { |
| | | ...mapMutations(['login']), |
| | | checkSupportWx() |
| | | { |
| | | // #ifdef APP-PLUS |
| | | if (plus.os.name == 'iOS') { |
| | | if (plus.runtime.isApplicationExist({ |
| | | action: 'weixin://' |
| | | }) && plus.runtime.isApplicationExist({ |
| | | action: 'taobao://' |
| | | })) { |
| | | this.supportWx = true //是否安装微信和淘宝 1代表安装 |
| | | } else { |
| | | this.supportWx = false |
| | | } |
| | | } else { |
| | | if (plus.runtime.isApplicationExist({pname:'com.tencent.mm', |
| | | action: 'weixin://' |
| | | })) { |
| | | this.supportWx = true //是否安装微信 1代表安装 |
| | | } else { |
| | | this.supportWx = false |
| | | } |
| | | } |
| | | // #endif |
| | | }, |
| | | backHome() { |
| | | var pages = getCurrentPages(); |
| | | console.log(pages.length); |
| | |
| | | methods: { |
| | | getInit() |
| | | { |
| | | console.log(getApp().globalData) |
| | | if(!getApp().globalData.hasinit) |
| | | { |
| | | console.log('初始化1111') |
| | | getApp().getAppInfo(); |
| | | setTimeout(()=>{ |
| | | this.getInit(); |
| | |
| | | var that = this; |
| | | this.$u.api.getBanner({type:'2'}).then(e => { |
| | | if(e.code == 1)return that.$alert(e.msg); |
| | | console.log(e.data.info) |
| | | that.bannerList = e.data.info; |
| | | }).catch(function (err) { |
| | | }) |
| | |
| | | <template> |
| | | <view v-if="!isshowtype"> |
| | | <view v-if="isshowtype"> |
| | | <matherPage></matherPage> |
| | | </view> |
| | | <view v-else> |
| | |
| | | <template> |
| | | <view v-if="!isshowtype"> |
| | | <view v-if="isshowtype"> |
| | | <findPage></findPage> |
| | | </view> |
| | | <view v-else> |