Merge branch 'release/1.1.2发布'
| | |
| | | }); */ |
| | | APPUpdate(); |
| | | // #endif |
| | | this.getAppInfo() |
| | | this.getAppInfo(); |
| | | //this.that.bcInit(); |
| | | let userInfo = uni.getStorageSync('userInfo') |
| | | if (userInfo.id) { |
| | | this.login(userInfo) |
| | |
| | | const plug = uni.requireNativePlugin('xiguazhu-baichuan'); |
| | | console.log(plug) |
| | | plug.init({}, result => { |
| | | //console.log('1111111111111111111'); |
| | | console.log(result); // codeçäº0å°±æ¯åå§åæå |
| | | if(result.code==0) |
| | | { |
| | |
| | | </view> |
| | | |
| | | <!--ååå¾ç--> |
| | | <view class="centerSwiper-container colCenCen borderBox" v-if="singleLineList.length>0"> |
| | | <!-- <view class="centerSwiper-container colCenCen borderBox" v-if="singleLineList.length>0"> |
| | | <swiper class="swiper-box" :autoplay="true" :interval="5000" :duration="300" circular> |
| | | <swiper-item v-for="(items,index) in singleLineList" :key='index'> |
| | | <view class="swiper-item defIcon" @click="goUrl(items)"> |
| | |
| | | </view> |
| | | </swiper-item> |
| | | </swiper> |
| | | </view> --> |
| | | <!--å¿«æ·å
¥å£å¾æ --> |
| | | <view class="c-loading-img rowCenCen"> |
| | | <view class="imgbox defIcon" v-for="(eitem,index) in fastenter" :key="index" @click="goUrl(eitem)"> |
| | | <image :src="eitem.image"></image> |
| | | </view> |
| | | </view> |
| | | <!--左轮æï¼å³ä¸¤è¡--> |
| | | <view class="centerflex f_contant"> |
| | | <view class="f_centerSwiper-container swiper-box swiper-item f_left"> |
| | | <swiper class="swiper-box" :autoplay="true" :interval="3000" :duration="300" :indicator-active-color="'#fff'" :indicator-dots="true" circular> |
| | | <swiper-item v-for="(items,index) in popBannerSList" :key='index'> |
| | | <view class="swiper-item defIcon" @click="goUrl(items)"> |
| | | <image :src="items.image" mode="aspectFit"></image> |
| | | </view> |
| | | </swiper-item> |
| | | </swiper> |
| | | </view> |
| | | <view class="f_right"> |
| | | <view class="f_imgcon" v-if='enterTop.length>0' > |
| | | <image :src="enterTop[0].image" @click="goUrl(enterTop[0])"></image> |
| | | </view> |
| | | <view class="f_imgcon" v-if='enterDown.length>0'> |
| | | <image :src="enterDown[0].image" @click="goUrl(enterDown[0])"></image> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <!--ååå¾ç--> |
| | |
| | | </swiper> |
| | | </view> |
| | | <!--å
¨ç½çé--> |
| | | <view class="van-row"> |
| | | <!-- <view class="van-row"> |
| | | <view class="van-col van-col--12" style="padding-right: 10rpx;"> |
| | | <view class="home-row" @click="gorxb()"> |
| | | <view class="title"><text class="name">å
¨ç½ç鿦</text> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <!-- 大家é½å¨ä¹° --> |
| | | <!-- <view class="everysBuying-container colCen" v-if="zdmList.length>0"> |
| | | <view class="box-bar-content rowCen"> |
| | |
| | | navbarShowList: [], |
| | | navbarList: [], |
| | | sliderH: '', |
| | | |
| | | scrollTop: 0, |
| | | scrollindex: 0, |
| | | |
| | | |
| | | zdmList: [], |
| | | phbList: [], |
| | | dyList: [], |
| | | rqList: [], |
| | | |
| | | typedataList: [ |
| | | { |
| | | mainTitle: '京ä¸', |
| | |
| | | triggeredstate: true, |
| | | swpidx: 0, |
| | | canrefresh: true, |
| | | fastenter:[], |
| | | popBannerSList:[], |
| | | enterTop:[], |
| | | enterDown:[] |
| | | } |
| | | }, |
| | | watch: { |
| | | |
| | | recomendType(nval, oval){ |
| | | if(nval != oval)this.changeRecommend() |
| | | }, |
| | |
| | | onAbort() { |
| | | console.log('refushstop'); |
| | | }, |
| | | |
| | | |
| | | getBannerInfo() { |
| | | // banneræ°æ® |
| | | var that = this; |
| | | this.$u.api.getBanner({ |
| | | type: '1,3,4,5' |
| | | 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; |
| | | this.topBannerList = res.topBannerList; |
| | |
| | | this.singleLineList = res.singleLineList; |
| | | this.doubleLineList = res.doubleLineList; |
| | | this.bottomBannerList = res.bottomBannerList; |
| | | this.fastenter=res.indexbanner; |
| | | this.popBannerSList=res.popBannerSList; |
| | | this.enterTop=res.enterTop; |
| | | this.enterDown=res.enterDown; |
| | | setTimeout(() => { |
| | | this.triggeredstate = false; |
| | | this._freshing = false; |
| | | }, 300) |
| | | }).catch(function(err) { |
| | | |
| | | console.log(err) |
| | | }) |
| | | }, |
| | | |
| | |
| | | }) |
| | | }, |
| | | |
| | | |
| | | godydetails(itm) { |
| | | const info = {} |
| | | info.nowInfo = itm |
| | |
| | | }, |
| | | |
| | | goUrl(info) { |
| | | console.log(info) |
| | | utils.goUrl(info, this) |
| | | }, |
| | | |
| | | goFUrl(info) |
| | | { |
| | | uni.navigateTo({ |
| | | url: info.url |
| | | }); |
| | | }, |
| | | gojgqUrl(info) { |
| | | if (info.urlType == '0') { |
| | | uni.navigateTo({ |
| | |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | .f_contant |
| | | { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | width: 96%; |
| | | height: 500rpx; |
| | | flex-direction: row; |
| | | padding: 20rpx 0; |
| | | margin: auto; |
| | | .f_left{ |
| | | width:49%; |
| | | border-radius: 12rpx; |
| | | background: #fff; |
| | | } |
| | | .f_right{ |
| | | width:49%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | } |
| | | .f_imgcon |
| | | { |
| | | height: 49%; |
| | | border-radius: 12rpx; |
| | | image |
| | | { |
| | | width:100%; |
| | | border-radius: 12rpx; |
| | | height: 100%; |
| | | } |
| | | } |
| | | .f_centerSwiper-container { |
| | | |
| | | |
| | | .swiper-box { |
| | | width: 100%; |
| | | height: 100%; |
| | | |
| | | .swiper-item { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .c-loading-img { |
| | | width: 96%; |
| | | height: 132rpx; |
| | | background: #fff; |
| | | margin: auto; |
| | | margin-top: 20rpx; |
| | | border-radius: 12rpx; |
| | | justify-content:space-between; |
| | | padding:5rpx; |
| | | |
| | | .imgbox { |
| | | width: 158rpx; |
| | | height: 105rpx; |
| | | // max-height: 72rpx; |
| | | } |
| | | } |
| | | .juan { |
| | | height: 28rpx; |
| | | background: linear-gradient(90deg, #ff8873 0, #ff4f4f 100%); |
| | |
| | | .pageBody-container { |
| | | width: 100%; |
| | | //background-color: #FFFFFF; |
| | | margin-bottom: 16rpx; |
| | | //margin-bottom: 16rpx; |
| | | |
| | | .column-container { |
| | | width: 100%; |
| | |
| | | "name" : "大è¿å®", |
| | | "appid" : "__UNI__FC8858A", |
| | | "description" : "大è¿å®app", |
| | | "versionName" : "1.1.1", |
| | | "versionCode" : 111, |
| | | "versionName" : "1.1.3", |
| | | "versionCode" : 113, |
| | | "transformPx" : false, |
| | | /* 5+Appç¹æç¸å
³ */ |
| | | "app-plus" : { |
| | |
| | | }, |
| | | "router" : {} |
| | | }, |
| | | "_spaceID" : "mp-04c7f596-fd3a-4026-80a6-595162d2b5a3" |
| | | "_spaceID" : "mp-04c7f596-fd3a-4026-80a6-595162d2b5a3", |
| | | "locale" : "zh-Hans" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Versions/Current/Headers |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Versions/Current/Resources |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // |
| | | // AidProtocol.h |
| | | // UtdidSDK |
| | | // |
| | | // Created by ALLEN on 14-12-22. |
| | | // Copyright (c) 2014å¹´ Alvin. All rights reserved. |
| | | // |
| | | |
| | | #ifndef AidProtocol_h |
| | | #define AidProtocol_h |
| | | |
| | | #define EVENT_REQUEST_STARTED 1000 |
| | | #define EVENT_REQUEST_SUCCESS 1001 |
| | | #define EVENT_REQUEST_FAILED 1002 |
| | | #define EVENT_NETWORK_ERROR 1003 |
| | | |
| | | @protocol AidProtocolDelegate <NSObject> |
| | | @required |
| | | - (void) onAidEventChanged:(NSInteger)eventId |
| | | aid:(NSString *)aid; |
| | | @end |
| | | |
| | | #endif |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // |
| | | // UTDevice.h |
| | | // |
| | | // |
| | | // Created by Alvin on 4/21/13. |
| | | // |
| | | // 设å¤ä¿¡æ¯çåè£
ç±»ï¼sdkåä½å¼åéè¦ç¨è¿ä¸ªç±»æä¾ç设å¤ä¿¡æ¯æ¥å£ |
| | | |
| | | // Version:utdid4all-1.1.0 |
| | | |
| | | #ifndef UTDIDDevice_h |
| | | #define UTDIDDevice_h |
| | | |
| | | #import "AidProtocol.h" |
| | | |
| | | @interface UTDevice : NSObject |
| | | |
| | | /** |
| | | * @brief è·åSDKçæç设å¤å¯ä¸æ è¯. |
| | | * |
| | | * @warning è°ç¨è¯´æ:è¿ä¸ªè®¾å¤å¯ä¸æ è¯æ¯æä¹
ç,并䏿 ¼å¼å®å
¨,iOS6以å以ä¸,å¤åºç¨äºé. |
| | | * |
| | | * è°ç¨é¡ºåº:utdidä»»ææ¶å»é½å¯ä»¥è°ç¨. |
| | | * |
| | | * @return 24åèç设å¤å¯ä¸æ è¯. |
| | | */ |
| | | +(NSString *) utdid; |
| | | |
| | | /** |
| | | * @brief 忥è·å¾AID. |
| | | * |
| | | * @warning è°ç¨è¯´æ:è¥æ¬å°ç«¯æ²¡æææ°AIDï¼å°èè´¹è¿ç¨éä¿¡æ¶é´å¹¶é»å¡çº¿ç¨ï¼å»ºè®®å°æ¤è°ç¨ç½®äºé主线ç¨ï¼æä½¿ç¨{@link getAidAsync}弿¥è·å¾AIDã |
| | | * |
| | | * è°ç¨é¡ºåº:aidä»»ææ¶å»é½å¯ä»¥è°ç¨. |
| | | * |
| | | * @return AID. |
| | | */ |
| | | +(NSString *) aid:(NSString *)appName |
| | | token:(NSString *)token; |
| | | |
| | | /** |
| | | * @brief 弿¥è¯·æ±AID. |
| | | * |
| | | * @warning è°ç¨è¯´æ:è¥æ¬å°ç«¯æ²¡æææ°AIDï¼å°å»ºç«å¼æ¥è¯·æ±è·å¾AIDï¼ |
| | | * |
| | | * è°ç¨é¡ºåº:aidAsyncä»»ææ¶å»é½å¯ä»¥è°ç¨. |
| | | * |
| | | * @return AID. |
| | | */ |
| | | +(void) aidAsync:(NSString *)appName |
| | | token:(NSString *)token |
| | | aidDelegate:(id<AidProtocolDelegate>)aidDelegate; |
| | | |
| | | @end |
| | | |
| | | #endif |
| | |
| | | { |
| | | "path": "pages/mine/setting/modifyInfo" |
| | | }, |
| | | // ä¿®æ¹é请ç |
| | | { |
| | | "path": "pages/mine/setting/modifyInviteCode" |
| | | }, |
| | | // ä¿®æ¹ä¿¡æ¯ |
| | | { |
| | | "path": "pages/mine/setting/cancellation" |
| | |
| | | } |
| | | } |
| | | }, |
| | | //å
Œ
±åµå¥é¡µé¢ |
| | | { |
| | | "path": "pages/rankinglist/common_act", |
| | | "style": { |
| | | "navigationStyle": "custom", |
| | | "app-plus": { |
| | | "titleNView": false |
| | | } |
| | | } |
| | | }, |
| | | // è¶
级åç±» |
| | | /* { |
| | | "path": "pages/classify/classify", |
| | |
| | | </view> |
| | | </view> |
| | | <view class="rightbackbox btnbox colCenCen" @tap="getCouponUrl()"> |
| | | <view class="priceText"> |
| | | <view v-if="frompage=='freebuy'" class="priceText"> |
| | | ï¿¥{{optionsInfo.actualPrice}} |
| | | </view> |
| | | <view v-else class="priceText"> |
| | | ï¿¥{{optionsInfo.fanli}} |
| | | </view> |
| | | <view class="texttips"> |
| | |
| | | showtar: false, |
| | | platform: '', |
| | | inviteCodeShow: false, |
| | | inviterShow: false |
| | | inviterShow: false, |
| | | frompage:'', |
| | | }; |
| | | }, |
| | | onPageScroll(e) { |
| | |
| | | console.log("åå§å") |
| | | getApp().getAppInfo(); |
| | | } |
| | | //console.log("2222222222222222-"+getApp().globalData.hasbcinit); |
| | | if(!getApp().globalData.hasbcinit) |
| | | { |
| | | getApp().bcInit(); |
| | |
| | | this.showtar = getApp().globalData.ifwt == 1 ? false : true; |
| | | this.platform = plus.os.name |
| | | // #endif |
| | | if(options.frompage) |
| | | { |
| | | this.frompage=options.frompage; |
| | | } |
| | | if (options.id) { |
| | | this.optionsInfo.goodsId = options.id |
| | | this.pageType = this.optionsInfo.sourceType ? this.optionsInfo.sourceType : 'tb'; |
| | |
| | | console.log(this.pageType) |
| | | if (this.pageType == 'tb' || this.pageType == 'tmshop' || this.pageType == 'tm') { |
| | | if (this.user.tb_account) { |
| | | |
| | | this.getTbsrc() |
| | | } else { |
| | | this.empowerModel = true |
| | |
| | | }).then(e => { |
| | | console.log(e) |
| | | if (e.code != 0) return that.$alert(e.msg) |
| | | if(that.frompage=='freebuy') |
| | | {//0å
è´çè®°å½ååid |
| | | console.log(e.data.info.itemId); |
| | | this.$u.api.updateFirstFreeBrowse({ |
| | | goodsid:that.optionsInfo.goodsId, |
| | | new_goodsId:e.data.info.itemId |
| | | }).then(e=>{ |
| | | |
| | | }); |
| | | } |
| | | var res = e.data.info; |
| | | var tburl = res.shortUrl |
| | | // #ifdef APP-PLUS |
| | |
| | | </view> |
| | | </view> |
| | | |
| | | <u-popup v-model="inviteCodeShow" mode="center" border-radius="32" :mask-close-able='true'> |
| | | <!-- <u-popup v-model="inviteCodeShow" mode="center" border-radius="32" :mask-close-able='true'> |
| | | <inviteCodeModel @closeModel='closeinvite' @confirm='nextStep'></inviteCodeModel> |
| | | </u-popup> |
| | | </u-popup> --> |
| | | |
| | | </view> |
| | | </template> |
| | |
| | | getTopDate(){ |
| | | var that = this; |
| | | this.$u.api.getUpgradeInfo({}).then(e => { |
| | | console.log(e); |
| | | if(e.code != 0) return that.$alert(e.msg) |
| | | that.cardInfoOne = e.data.list[0]; |
| | | that.cardInfoTwo = e.data.list[1]; |
| | |
| | | } |
| | | |
| | | .back-box { |
| | | width: 100rpx; |
| | | width: 120rpx; |
| | | height: 30rpx; |
| | | background: linear-gradient(-90deg, #7619EC, #A429F3); |
| | | border-radius: 5rpx; |
| | |
| | | <view>è¾å
¥åååæç²è´´å®è´æ é¢æç´¢</view> |
| | | </view> |
| | | </view> |
| | | <view class="rightgoMsg rowCenCen iconfont searchImg" @click="goPath('turnChain')"> |
| | | <image src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/zhuanlian.png"></image> |
| | | </view> |
| | | <view class="rightgoMsg rowCenCen iconfont" @click="goPath('officialNotice')"> |
| | | <view></view> |
| | | <u-badge v-show="isNewMessage" :is-dot="true" type="success"></u-badge> |
| | |
| | | return; |
| | | } |
| | | var user= uni.getStorageSync('userInfo'); |
| | | console.log(user); |
| | | if(!user.invitation_code) |
| | | { |
| | | setTimeout(function(){ |
| | |
| | | url: './officialNotice' |
| | | }) |
| | | } |
| | | else if(url=='turnChain') |
| | | { |
| | | uni.navigateTo({ |
| | | url: '../mine/tools/turnChain' |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | gobanurl(info) { |
| | |
| | | z-index: 100; |
| | | |
| | | .leftgoSearchbox { |
| | | width: 615rpx; |
| | | width: 575rpx; |
| | | height: 70rpx; |
| | | background-color: #FFFFFF; |
| | | border: 1rpx solid #EDEDED; |
| | |
| | | color: #FFFFFF; |
| | | } |
| | | } |
| | | .searchImg{ |
| | | image{ |
| | | width: 40rpx; |
| | | height: 40rpx; |
| | | font-size: 50rpx; |
| | | color: #FFFFFF; |
| | | } |
| | | } |
| | | |
| | | .categoryNavbar-container { |
| | | width: 100%; |
| | |
| | | <template> |
| | | <view class="officialNotice wrapperLayer"> |
| | | <titleBar :titleText='"宿¹éç¥"' :pageForm='"officialNotice"'></titleBar> |
| | | <view class="pageContent-container colCen"> |
| | | <view class="pageContent-container colCen" v-if='noticeList.length>0'> |
| | | <block v-for="(items,index) in noticeList" :key="index"> |
| | | <view class="notice-items-container rowSta"> |
| | | <view class="leftsettingbox defIcon"> |
| | |
| | | |
| | | <aLoadMore :status="loadstatus" mode="loading3" :showTitle='true' color="#999999" ></aLoadMore> |
| | | </view> |
| | | <view v-else> |
| | | ææ éç¥ |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | 请è¾å
¥é请ç |
| | | </view> |
| | | <view class="grey-input-content rowCen borderBox"> |
| | | <input class="iptclas" type="text" v-model="inviteCode" placeholder="请填åé请ç " placeholder-class="pla-input"/> |
| | | <input class="iptclas" type="text" v-model="inviteCode" placeholder="请填åé请ç ï¼" placeholder-class="pla-input"/> |
| | | </view> |
| | | <view class="model-tips" v-if="appInfo.isOpenOfficialCode==1"> |
| | | <view class="model-tips" v-if="appInfo.isOpenOfficialCode==1"> |
| | | <view>å¡«åéè¯·ç æå©äºæ¨çè´ç©è¿ä½£å¦ï¼</view> |
| | | </view> |
| | | |
| | | <template v-if="isShowCode"> |
| | | <view class="copy-bar rowCenBet borderBox" v-if="appInfo.isOpenOfficialCode==1"> |
| | | <view class="left-code"> |
| | | {{appInfo.officialInvitationCode}} |
| | | </view> |
| | | <view class="copybtn rowCenCen" @tap="useCode()"> |
| | | <view>使ç¨é请ç </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <view @click="setCode" class="login-btn rowCenCen" :class="inviteCode?'colorfulbtn':''" > |
| | | <view class="btn-font" > |
| | | ç¡®å® |
| | | </view> |
| | | </view> |
| | | |
| | | <template v-if="isShowCode"> |
| | | <template v-if='commonInvite!=null&&commonInvite.length>0'> |
| | | <view class="s_inviter" @click="userInviter()"> |
| | | <view class="s_img"> |
| | | <image :src="commonInvite[inviteIndex].avatar"></image> |
| | | <span>{{commonInvite[inviteIndex].nickname}}</span> |
| | | </view> |
| | | <view> |
| | | <view>使ç¨Taçé请ç </view> |
| | | </view> |
| | | </view> |
| | | <view @click="changeInviter()" style="color: #999999; margin-top: 20rpx;"> |
| | | æ¢ä¸ä¸ª |
| | | </view> |
| | | </template> |
| | | <template v-else> |
| | | <view class="copy-bar rowCenBet borderBox" style="margin-top: 70rpx;" v-if="appInfo.isOpenOfficialCode==1"> |
| | | <view class="left-code"> |
| | | {{appInfo.officialInvitationCode}} |
| | | </view> |
| | | <view class="copybtn rowCenCen" @tap="useCode()"> |
| | | <view>使ç¨é请ç </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | |
| | | </template> |
| | | |
| | | <view class="yqmtip rowCenCen"> |
| | | <span @click="showinvite">没æé请ç ï¼</span> |
| | |
| | | inviteCode:'', |
| | | appInfo:'', |
| | | inviterShow:false, |
| | | platform:'' |
| | | platform:'', |
| | | commonInvite:[], |
| | | inviteIndex:0 |
| | | } |
| | | }, |
| | | onLoad() |
| | | { |
| | | this.getInviter(); |
| | | }, |
| | | mounted() { |
| | | this.appInfo = uni.getStorageSync('appInfo'); |
| | | this.platform = uni.getSystemInfoSync().platform |
| | | }, |
| | | methods: { |
| | | //è·åç³»ç»æ¨è人 |
| | | getInviter() |
| | | { |
| | | var that=this; |
| | | this.$u.api.getRecomInviter({}).then(e => { |
| | | console.log(e) |
| | | that.commonInvite=e.data; |
| | | }).catch(function (err) { |
| | | console.log(err) |
| | | }) |
| | | }, |
| | | changeInviter() |
| | | { |
| | | console.log(this.commonInvite.length) |
| | | if(this.inviteIndex==this.commonInvite.length-1) |
| | | { |
| | | this.inviteIndex=0; |
| | | } |
| | | else{ |
| | | this.inviteIndex=this.inviteIndex+1; |
| | | } |
| | | }, |
| | | userInviter() |
| | | { |
| | | this.inviteCode=this.commonInvite[this.inviteIndex].invitation_code; |
| | | }, |
| | | |
| | | useCode() |
| | | { |
| | | this.inviteCode=this.appInfo.officialInvitationCode; |
| | |
| | | }) |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | </script> |
| | |
| | | { |
| | | background: #fff; |
| | | } |
| | | .s_inviter |
| | | { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | margin-top: 70rpx; |
| | | width:100%; |
| | | .s_img |
| | | { |
| | | display: flex; |
| | | align-items: center; |
| | | span{ |
| | | margin-left: 13rpx; |
| | | }; |
| | | } |
| | | image{ |
| | | width:100rpx; |
| | | height: 100rpx; |
| | | } |
| | | } |
| | | |
| | | .yqmtip |
| | | { |
| | |
| | | <template> |
| | | <view class="elm-wrapper wrapperLayer" |
| | | :style="optionsCurrent==3?'background-color:#1088FE;':'background-color:#62BC00;'"> |
| | | :style="optionsCurrent==3?'background-color:#1088FE;':'background-color:#1088FE;'"> |
| | | <view class="flexbox borderBox colCen" |
| | | :style="optionsCurrent==3?'background-color:#1088FE;':'background-color:#62BC00;'"> |
| | | :style="optionsCurrent==3?'background-color:#1088FE;':'background-color:#1088FE;'"> |
| | | <view class="topbarbox"></view> |
| | | <view class="leftimgbox rowCenBet" @tap="back()"> |
| | | <view class="shadow rowCenCen" style="background:rgba(0,0,0,0);"> |
| | |
| | | <view class="center-container rowCenBet"> |
| | | <block v-for="(items,index) in optionsList" :key="index"> |
| | | <view class="items-content rowCenCen" |
| | | :style="optionsCurrent==items.type?items.type==3?'color:#1088FE;':'color:#62BC00;':''" |
| | | :style="optionsCurrent==items.type?items.type==3?'color:#1088FE;':'#1088FE;':''" |
| | | @tap="navTap(items.type,index)"> |
| | | <view>{{items.label}}</view> |
| | | </view> |
| | |
| | | data() { |
| | | return { |
| | | optionsCurrent: 3, |
| | | activeIndex: 0, // å½åéä¸çindex |
| | | activeIndex: 1, // å½åéä¸çindex |
| | | scrollTop: 0, |
| | | optionsList: [{ |
| | | label: "å¤å", |
| | | type: 3 |
| | | optionsList: [ |
| | | { |
| | | label: "ç¾å¢", |
| | | type: 0 |
| | | }, |
| | | { |
| | | label: "饿äºä¹", |
| | | type: 3 |
| | | }, |
| | | |
| | | /* { |
| | | label: "æè¬", |
| | | type: 5 |
| | | } |
| | | } */ |
| | | ], |
| | | pageInfo: null, |
| | | wxQrcodeUrl: '', |
| | |
| | | if (this.optionsCurrent != type) { |
| | | this.optionsCurrent = type |
| | | this.activeIndex = index |
| | | if (this.optionsCurrent == 5) { |
| | | if(this.optionsCurrent == 0) |
| | | { |
| | | uni.redirectTo({ |
| | | url:'./mt' |
| | | }) |
| | | return; |
| | | } |
| | | /* else if (this.optionsCurrent == 5) { |
| | | uni.setNavigationBarColor({ |
| | | frontColor: '#ffffff', |
| | | backgroundColor: '#62BC00' |
| | |
| | | backgroundColor: '#1088FE' |
| | | }) |
| | | } |
| | | this.IntiData() |
| | | this.IntiData() */ |
| | | } |
| | | }, |
| | | jumpMini() { |
| | |
| | | æªæ¥ä»/她æè´ç©è®¢å,æ¨å¯è·å¾ä½£éå¥å±,å¹¶èªå¨è®¡å
¥æ¨ç叿· |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class="invit_cont"> |
| | | <view class="invit_v" @click="checkVideo(0)"><image src='https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/vi_jiaocheng.png'></image></view> |
| | | <view class="invit_v" @click="checkVideo(1)"><image src='https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/vi_yaoqing.png'></image></view> |
| | | </view> |
| | | |
| | | <view class="bottom-options-container rowCenAro"> |
| | | <view class="option-items-container colCen" @tap='copyLink()'> |
| | | <image class="icon-box" src="../../static/images/mine/link.png" mode="aspectFill"></image> |
| | |
| | | this.makeCode() |
| | | }, |
| | | methods: { |
| | | checkVideo(type) |
| | | { |
| | | console.log(type) |
| | | if(type==1) |
| | | { |
| | | uni.navigateTo({ |
| | | url: '/pages/webView/webView?url=http://dfgapp.ushopvip.com/html/fxguid.html' |
| | | }) |
| | | } |
| | | else{ |
| | | uni.navigateTo({ |
| | | url: '/pages/webView/webView?url=http://dfgapp.ushopvip.com/html/newuse.html' |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | showModel() { |
| | | this.$nextTick(()=>{ |
| | | this.getbanner() |
| | |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | .invit_cont |
| | | { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | width: 100%; |
| | | margin-top: 25rpx; |
| | | .invit_v |
| | | { |
| | | width: 49%; |
| | | } |
| | | image |
| | | { |
| | | height: 145rpx; |
| | | } |
| | | } |
| | | .inviteFriends-wrapper { |
| | | width: 100%; |
| | | |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="account-assets-container rowCenCen borderBox" v-if="!showtar || platform!='iOS'"> |
| | | |
| | | <view class="cardBac-container rowStaBet borderBox"> |
| | | <view class="left-content"> |
| | | <view class="balance"> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class="vip-info-container rowCenBet" v-if="!showtar || platform!='iOS'"> |
| | | <view class="left-info" v-if="user.level != 3"> |
| | | å级ççº§å¯æ¿æ´é«æ¶ç |
| | | </view> |
| | | <view class="left-info" v-else> |
| | | æ¨å·²ç»æ¯æé«ç级,å¿«å»é请好åèµä½£éå§! |
| | | </view> |
| | | <view class="rt-btn rowCenCen" @tap="golevelRules()" v-if="user.level != 3"> |
| | | <image class="vipimg" src="../../static/images/goods/vip.png" mode="aspectFill"></image> |
| | | <view class="level-txt"> |
| | | ç«å³å级 |
| | | </view> |
| | | </view> |
| | | <view class="rt-btn rowCenCen" @tap="golevelRules()" v-else> |
| | | <image class="vipimg" src="../../static/images/goods/vip.png" mode="aspectFill"></image> |
| | | <view class="level-txt"> |
| | | ç«å³æ¥ç |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="swiper-container borderBox" v-if="bannerList.length>0"> |
| | | <swiper class="banerContent" :autoplay="true" :interval="3000" :duration="1000" circular> |
| | | <swiper-item v-for="(items,index) in bannerList" :key="index" @tap="goUrl(items)"> |
| | |
| | | }).catch(function (err) { |
| | | }) |
| | | }, |
| | | |
| | | golevelRules() { |
| | | uni.navigateTo({ |
| | | url: '../goods/privilege' |
| | | }) |
| | | }, |
| | | getuserInfo() { |
| | | var that = this; |
| | | this.$u.api.getUserInfo({}).then(e => { |
| | |
| | | }, |
| | | |
| | | centerInfo() { |
| | | this.user = uni.getStorageSync('userInfo'); |
| | | var that = this; |
| | | this.$u.api.userHomemenu({}).then(e => { |
| | | var res = e.data.list; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .vip-info-container { |
| | | width: 100%; |
| | | height: 60rpx; |
| | | background: #FFF2CF; |
| | | border-radius: 16rpx; |
| | | padding: 0 20rpx; |
| | | margin-bottom: 20rpx; |
| | | |
| | | .left-info { |
| | | font-size: 24rpx; |
| | | font-weight: 500; |
| | | color: #593A0F; |
| | | } |
| | | |
| | | .rt-btn { |
| | | width: 152rpx; |
| | | height: 44rpx; |
| | | background-color: rgba(0, 0, 0, 0.6); |
| | | border-radius: 22rpx; |
| | | |
| | | .vipimg { |
| | | width: 27rpx; |
| | | height: 24rpx; |
| | | } |
| | | |
| | | .level-txt { |
| | | font-size: 24rpx; |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | margin-left: 10rpx; |
| | | } |
| | | } |
| | | } |
| | | .mine-under-container { |
| | | width: 100%; |
| | | margin-top: 85rpx; |
| | | margin-top: 95rpx; |
| | | padding: 0 30rpx; |
| | | |
| | | .nav-container { |
| | |
| | | <template> |
| | | <view class="elm-wrapper wrapperLayer" |
| | | :style="optionsCurrent==2?'background-color:#62BC00;':'background-color:#FFD100;'"> |
| | | :style="optionsCurrent==2?'background-color:#FFD100;':'background-color:#FFD100;'"> |
| | | |
| | | <view class="flexbox borderBox colCen" |
| | | :style="optionsCurrent==2?'background-color:#62BC00;':'background-color:#FFD100;'"> |
| | | :style="optionsCurrent==2?'background-color:#FFD100;':'background-color:#FFD100;'"> |
| | | <view class="topbarbox"></view> |
| | | <view class="leftimgbox rowCenBet" @tap="back()"> |
| | | <view class="shadow rowCenCen" style="background:rgba(0,0,0,0);"> |
| | |
| | | </view> |
| | | |
| | | <view class="options-bar-content rowCenCen"> |
| | | <!-- <view class="center-container rowCenBet"> |
| | | <view class="center-container rowCenBet"> |
| | | <block v-for="(items,index) in optionsList" :key="index"> |
| | | <view class="items-content rowCenCen" @tap="navTap(items.type)" :class="{ 'yellow':items.type == optionsCurrent && [1,3].includes(optionsCurrent), 'green': items.type == optionsCurrent && optionsCurrent ==2 }"> |
| | | <view>{{items.label}}</view> |
| | | </view> |
| | | </block> |
| | | <div class="items-active" :style="{'transform':'translateX('+(optionsCurrent-1) * 120 +'rpx)'}"></div> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | |
| | | <image class="pageBac" :src="pageBac" mode="aspectFill"> |
| | |
| | | optionsCurrent: 1, |
| | | scrollTop: 0, |
| | | optionsList: [{ |
| | | label: "å¤å", |
| | | label: "ç¾å¢", |
| | | type: 1 |
| | | } |
| | | }, |
| | | { |
| | | label: "饿äºä¹", |
| | | type: 2 |
| | | } |
| | | /* , |
| | | { |
| | | label: "åè¶
", |
| | |
| | | navTap(type) { |
| | | if (this.optionsCurrent != type) { |
| | | this.optionsCurrent = type |
| | | if (this.optionsCurrent == 2) { |
| | | if(this.optionsCurrent==2) |
| | | {//跳转饿äºä¹ |
| | | uni.redirectTo({ |
| | | url:'./elm' |
| | | }) |
| | | return; |
| | | } |
| | | else if (this.optionsCurrent == 2) { |
| | | uni.setNavigationBarColor({ |
| | | frontColor: '#ffffff', |
| | | backgroundColor: '#62BC00' |
| | |
| | | margin-top: 168rpx; |
| | | .center-container { |
| | | position: relative; |
| | | width: 360rpx; |
| | | width: 240rpx; |
| | | height: 58rpx; |
| | | background: rgba(254, 254, 254, 0.3); |
| | | border-radius: 29rpx; |
| | |
| | | </view> |
| | | |
| | | <view class="goods-container pd20" v-if="goodsinfo"> |
| | | <view class="card-container rowCen"> |
| | | <view class="card-container rowCen" @click="targetTb(goodsinfo.goodsId)"> |
| | | <image class="goods-pic" :src="goodsinfo.mainPic" mode="aspectFill"></image> |
| | | <view class="goods-info colCenBet"> |
| | | <view class="info-top-box"> |
| | |
| | | <view class="discounts-container rowCen borderBox"> |
| | | <view class="coupon-box rowCenCen"> |
| | | <view> |
| | | 3å
å¸ |
| | | {{goodsinfo.couponPrice}}å
å¸ |
| | | </view> |
| | | </view> |
| | | <view class="back-box rowCenCen"> |
| | |
| | | |
| | | }, |
| | | methods:{ |
| | | targetTb(goodsid){ |
| | | uni.navigateTo({ |
| | | url: '/pages/goods/goodsDetail?id=' + goodsid |
| | | }); |
| | | }, |
| | | showColumn(canvasId,chartData){ |
| | | var _self = this |
| | | canvasColumn=new uCharts({ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="modifyPass-container wrapperLayer"> |
| | | <titleBar titleText='' :pageForm='"modifyPass"'></titleBar> |
| | | <view class="pageInfoContent-container colCen borderBox"> |
| | | <view class="titleText"> |
| | | ä¿®æ¹é请ç |
| | | </view> |
| | | <view v-if="user.level >=ablelevel"> |
| | | |
| | | |
| | | <view class="input-container colCen"> |
| | | <view class="outSidebox rowCenBet" data-type='code'> |
| | | <input |
| | | :disabled="!isedit" |
| | | maxlength="8" |
| | | type="text" |
| | | v-model="code" |
| | | :placeholder="c_placeholder" |
| | | placeholder-class="input-placeHolder"/> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="txtTips"> |
| | | é请ç é设置为4~8ä½çæ°åä¸åæ¯çç»åã |
| | | </view> |
| | | </view> |
| | | <view v-if="user.level <ablelevel"> |
| | | |
| | | |
| | | <view class="vip-info-container rowCenBet" v-if="!showtar || platform!='iOS'"> |
| | | <view class="left-info" > |
| | | å½åç级ä¸å¯ä¿®æ¹ï¼åé请{{needIvite}}人å级 |
| | | </view> |
| | | <!-- <view class="left-info" v-else> |
| | | æ¨å·²ç»æ¯æé«ç级,å¿«å»é请好åèµä½£éå§! |
| | | </view> --> |
| | | <view class="rt-btn rowCenCen" @tap="golevelRules()" v-if="user.level <ablelevel"> |
| | | <image class="vipimg" src="../../../static/images/goods/vip.png" mode="aspectFill"></image> |
| | | <view class="level-txt"> |
| | | ç«å³å级 |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <!-- <view class="rt-btn rowCenCen" @tap="golevelRules()" v-else> |
| | | <image class="vipimg" src="../../../static/images/goods/vip.png" mode="aspectFill"></image> |
| | | <view class="level-txt"> |
| | | ç«å³æ¥ç |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | <view v-if="isedit" class="login-btn rowCenCen" :class="true?'colorfulbtn':''" @click="modify()"> |
| | | <view class="btn-font"> |
| | | ç¡®è®¤ä¿®æ¹ |
| | | </view> |
| | | </view> |
| | | <view v-else class="login-btn rowCenCen" :class="true?'colorfulbtn':''" @click="back()"> |
| | | <view class="btn-font"> |
| | | è¿å |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import titleBar from '../../../components/backTitlebar.vue' |
| | | import MD5 from '../../../utils/md5.js' |
| | | import config from '../../../utils/config.js' |
| | | import util from '../../../utils/utils.js' |
| | | export default { |
| | | components: { |
| | | titleBar |
| | | }, |
| | | data(){ |
| | | return{ |
| | | user:'', |
| | | code:'', |
| | | showtar:false, |
| | | platform:'', |
| | | isedit:false, |
| | | needIvite:0, |
| | | ablelevel:2, |
| | | c_placeholder:'请è¾å
¥æ°çé请ç ' |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.getUserInfo(); |
| | | }, |
| | | methods:{ |
| | | getUserInfo() |
| | | { |
| | | // #ifdef APP-PLUS |
| | | this.showtar = getApp().globalData.ifwt == 1 ? false : true; |
| | | this.platform = plus.os.name |
| | | // #endif |
| | | |
| | | var that = this; |
| | | this.$u.api.getUserInfo({}).then(e => { |
| | | that.user = e.data.userinfo; |
| | | that.isedit=that.user.level>=that.ablelevel; |
| | | console.log(that.isedit) |
| | | if(that.user.level<that.ablelevel) |
| | | { |
| | | that.c_placeholder='å½åç级ä¸å¯ä¿®æ¹å¦'; |
| | | this.getTopDate(); |
| | | } |
| | | util.setCache('userInfo', e.data.userinfo) |
| | | }).catch(function (err) { |
| | | console.log(err) |
| | | }) |
| | | }, |
| | | getTopDate(){ |
| | | var that = this; |
| | | this.$u.api.getUpgradeInfo({}).then(e => { |
| | | console.log(e); |
| | | var nextSet=e.data.list[1]; |
| | | var needcount=(nextSet.direct_primary_count+nextSet.direct_intermediate_count)-e.data.info.user_zong_num; |
| | | that.needIvite=needcount<0?0:needcount; |
| | | }).catch(function (err) { |
| | | }) |
| | | }, |
| | | back() |
| | | { |
| | | uni.navigateBack({ |
| | | delta:1 |
| | | }) |
| | | }, |
| | | golevelRules() { |
| | | uni.navigateTo({ |
| | | url: '../../goods/privilege' |
| | | }) |
| | | }, |
| | | modify() { |
| | | var that = this; |
| | | var str = /^[a-zA-Z0-9]{4,8}$/; |
| | | if (str.test(this.code)) { |
| | | this.$u.api.changeCode({ |
| | | invite_code:this.code |
| | | }).then(e => { |
| | | if(e.code == 1)return that.$alert(e.msg); |
| | | that.$alert('ä¿®æ¹æå'); |
| | | setTimeout(function(){ |
| | | uni.navigateBack({ |
| | | delta:1 |
| | | }) |
| | | },1000) |
| | | |
| | | }).catch(function (err) { |
| | | }) |
| | | } else { |
| | | uni.showToast({ |
| | | title: 'é请ç ä¸ç¬¦åè¦æ±ï¼è¯·è¾å
¥4~8ä½çæ°åä¸åæ¯çç»å', |
| | | icon: 'none', |
| | | position: 'bottom', |
| | | duration: 3000 |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | .vip-info-container { |
| | | width: 100%; |
| | | height: 60rpx; |
| | | background: #FFF2CF; |
| | | border-radius: 16rpx; |
| | | padding: 0 20rpx; |
| | | margin-top: 40rpx; |
| | | .left-info { |
| | | font-size: 24rpx; |
| | | font-weight: 500; |
| | | color: #593A0F; |
| | | margin-right: 15rpx; |
| | | } |
| | | |
| | | .rt-btn { |
| | | width: 152rpx; |
| | | height: 44rpx; |
| | | background-color: rgba(0, 0, 0, 0.6); |
| | | border-radius: 22rpx; |
| | | |
| | | .vipimg { |
| | | width: 27rpx; |
| | | height: 24rpx; |
| | | } |
| | | |
| | | .level-txt { |
| | | font-size: 24rpx; |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | margin-left: 10rpx; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .modifyPass-container{ |
| | | width: 100%; |
| | | min-height: 100vh; |
| | | background-color: #FFFFFF; |
| | | .pageInfoContent-container{ |
| | | width: 100%; |
| | | padding: 0 60rpx; |
| | | .titleText{ |
| | | width: 100%; |
| | | font-size: 42rpx; |
| | | font-weight: bold; |
| | | color: #333333; |
| | | margin: 60rpx 0; |
| | | } |
| | | |
| | | .input-container{ |
| | | width: 100%; |
| | | margin-bottom: 20rpx; |
| | | .outSidebox{ |
| | | width: 100%; |
| | | height: 85rpx; |
| | | border-bottom: 2rpx solid #F1F1F1; |
| | | .input-placeHolder{ |
| | | font-size: 34rpx; |
| | | font-weight: 500; |
| | | color: #CACACA; |
| | | } |
| | | input{ |
| | | font-size: 34rpx; |
| | | font-weight: 500; |
| | | color: #222222; |
| | | } |
| | | .hidepass{ |
| | | font-size: 32rpx; |
| | | font-weight: 800; |
| | | color: #CACACA; |
| | | } |
| | | .getcodebox{ |
| | | font-size: 28rpx; |
| | | white-space: nowrap; |
| | | font-weight: 400; |
| | | color: #FF2851; |
| | | pointer-events: none; |
| | | } |
| | | .colorTxt{ |
| | | pointer-events: auto; |
| | | } |
| | | } |
| | | .outSidebox-active{ |
| | | border-bottom: 2rpx solid #FF2851; |
| | | } |
| | | } |
| | | .login-btn{ |
| | | width: 100%; |
| | | height: 86rpx; |
| | | background: #E2E2E2; |
| | | border-radius: 43rpx; |
| | | margin-top: 80rpx; |
| | | pointer-events: none; |
| | | .btn-font{ |
| | | font-size: 30rpx; |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | } |
| | | } |
| | | .txtTips { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #999999; |
| | | line-height: 38rpx; |
| | | } |
| | | .colorfulbtn{ |
| | | background: #FD002F; |
| | | pointer-events: auto; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | openModel(type) { |
| | | this.modelType = type; |
| | | if (this.modelType == 'clean') { |
| | | this.content = 'ç¡®å®è¦æ¸
æ¥ç¼ååï¼'; |
| | | this.content = 'ç¡®å®è¦æ¸
é¤ç¼ååï¼'; |
| | | this.showModel = true; |
| | | } else if (this.modelType == 'logout') { |
| | | this.content = 'ç¡®å®è¦éåºå½åè´¦å·åï¼'; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <web-view :webview-styles="webviewStyles" :src="webviewUrl" @message='received'></web-view> |
| | | |
| | | </view> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | var wv; |
| | | export default { |
| | | data() { |
| | | return { |
| | | empowerModel: false, |
| | | webviewUrl: '', |
| | | user:'', |
| | | webviewStyles: { |
| | | progress: { |
| | | color: '#EE1B14' |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | onLoad(options) { |
| | | if(!this.hasLogin){ |
| | | uni.reLaunch({ |
| | | url:"/pages/login/wxlogin" |
| | | }) |
| | | } |
| | | else{ |
| | | const value = uni.getStorageSync('userInfo'); |
| | | this.user = value; |
| | | if(options.t_url) |
| | | { |
| | | console.log(encodeURI(decodeURIComponent(options.t_url)+"?token="+value.token+"&userid="+value.id)); |
| | | this.webviewUrl = encodeURI(decodeURIComponent(options.t_url)+"?token="+value.token+"&userid="+value.id); |
| | | } |
| | | } |
| | | |
| | | }, |
| | | onReady() { |
| | | this.clearMuiBack(); |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | received(e) { |
| | | var res=e.detail.data[0]; |
| | | if(res.action=='back') |
| | | { |
| | | this.backLast(); |
| | | } |
| | | }, |
| | | backLast() |
| | | { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); |
| | | }, |
| | | // å
³émuiè¿å |
| | | clearMuiBack() { |
| | | // #ifdef APP-PLUS |
| | | var currentWebview = this.$scope.$getAppWebview().children()[0]; |
| | | //ç嬿³¨å
¥çjs |
| | | currentWebview.addEventListener("loaded", function() { |
| | | currentWebview.evalJS("mui.init({keyEventBind: {backbutton: false }});"); |
| | | }); |
| | | // #endif |
| | | }, |
| | | |
| | | }, |
| | | onNavigationBarButtonTap(e) { |
| | | // #ifdef APP-PLUS |
| | | const currentWebview = this.$scope.$getAppWebview(); //æ¤å¯¹è±¡ç¸å½äºhtml5pluséçplus.webview.currentWebview()ãå¨uni-appévue页é¢ç´æ¥ä½¿ç¨plus.webview.currentWebview()æ æï¼év3ç¼è¯æ¨¡å¼ä½¿ç¨this.$mp.page.$getAppWebview() |
| | | var wv = currentWebview.children()[0] |
| | | wv.reload(); |
| | | // #endif |
| | | console.log(JSON.stringify(e)) |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | </style> |
| | |
| | | } |
| | | else{ |
| | | const value = uni.getStorageSync('userInfo'); |
| | | console.log(value); |
| | | this.webviewUrl = encodeURI('http://dfgapp.ushopvip.com/html/fengqiangbang.html?token='+value.token); |
| | | } |
| | | |
| | |
| | | //const httpUrl = ""; // æ¥å£åå |
| | | const httpUrl = "http://dfgapp.ushopvip.com"; // æ¥å£åå |
| | | //const httpUrl = "http://appapitest.ushopvip.com"; // æµè¯ç¯å¢æ¥å£åå |
| | | const httpUrl = "http://dfgapp.ushopvip.com"; // ç产ç¯å¢æ¥å£åå |
| | | const salt = ""; |
| | | export default { |
| | | httpUrl:httpUrl, |
| | |
| | | let getPrivilegeShareLinkUrl = "api/taoke/get_privilege_share_link"; |
| | | let eleStoreListUrl = "api/taoke/ele_store_list"; |
| | | let getHdkCategoryListUrl="/api/taoke/get_hdk_category_list"; |
| | | let changeCodeUrl="/api/user/changecode"; |
| | | let getRecomInviterUrl="/api/user/getRecomInviter"; |
| | | let updateFirstFreeBrowseUrl="/api/user/update_first_free_browse"; |
| | | |
| | | // æ¤å¤ç¬¬äºä¸ªåæ°vmï¼å°±æ¯æä»¬å¨é¡µé¢ä½¿ç¨çthisï¼ä½ å¯ä»¥éè¿vmè·åvuexçæä½ï¼æ´å¤å
容详è§uViewå¯¹æ¦æªå¨çä»ç»é¨åï¼ |
| | | // https://uviewui.com/js/http.html#%E4%BD%95%E8%B0%93%E8%AF%B7%E6%B1%82%E6%8B%A6%E6%88%AA%EF%BC%9F |
| | |
| | | let getPrivilegeShareLink = (params = {}) => vm.$u.post(getPrivilegeShareLinkUrl, params); |
| | | let eleStoreList = (params = {}) => vm.$u.post(eleStoreListUrl, params); |
| | | let getHdkCategoryList= (params = {}) => vm.$u.post(getHdkCategoryListUrl, params); |
| | | let changeCode=(params = {}) => vm.$u.post(changeCodeUrl, params); //ä¿®æ¹é请ç |
| | | let getRecomInviter=(params = {}) => vm.$u.post(getRecomInviterUrl, params); //è·åæ¨èé请人 |
| | | let updateFirstFreeBrowse=(params = {}) => vm.$u.post(updateFirstFreeBrowseUrl, params); //è®°å½0å
è´ |
| | | |
| | | |
| | | // å°å个å®ä¹çæ¥å£åç§°ï¼ç»ä¸æ¾è¿å¯¹è±¡æè½½å°vm.$u.api(å 为vmå°±æ¯thisï¼ä¹å³this.$u.api)ä¸ |
| | | vm.$u.api = {getHdkCategoryList,eleStoreList,getPrivilegeShareLink,getDyGoodsDetail,bindMobileLogin,getTopMessId,changePwd,comminInt,wxapplogin,getTopCalss,getBanner,getHomeMenu,getSuperClass,getMQD,getGoodThing,login,sendSms,mobileLogin,setPwd,getUserInfo,getTalentInfo,getMessageList,getGoodsDetail,getPrivilegeLink,getSimilerGoods,getJdsDetail,getPddDetail,getM,getWphGoodsDetail,addCollect,delCollect,hotKey,suggestion,goodsSearch,activityLink,unionAct,singlePageLink,checkPddAuth,getPddAuth,getPineGoods,jdGoodsList,optimusMaterial,pddGoodsList,brandList,brandInfo,wphGoodsList,meituanAct,eleAct,eleShangjin,userHomemenu,getAppVersion,userBrowse,delBrowse,activitySingle,userCollect,bdHomemenu,getCity,coordinate,cityCate,searchDeals,getCityId,seckillShowinfo,seckillList,identifyGoods,changeMobile,bindInvitation,getInviteInfo,getEstimateAmount,fansList,getFansCount,getHelpType,getHelpList,getHelpDetail,getWpanurl,getChainTurning,superDiscountGoods,getHistory,getTbGoodsList,cateRankList,getUpgradeInfo,getEquityCard,levelApply,orderList,userProfit,bindZfb,withdraw,getBalanceLog,getPublisher,getAlbum,likeAlbum,albumDetail,anchorFollow,myFollowAlbum,feedback,userCancel,profile,bindWechat,unboundWechat}; |
| | | vm.$u.api = {updateFirstFreeBrowse,getRecomInviter,changeCode,getHdkCategoryList,eleStoreList,getPrivilegeShareLink,getDyGoodsDetail,bindMobileLogin,getTopMessId,changePwd,comminInt,wxapplogin,getTopCalss,getBanner,getHomeMenu,getSuperClass,getMQD,getGoodThing,login,sendSms,mobileLogin,setPwd,getUserInfo,getTalentInfo,getMessageList,getGoodsDetail,getPrivilegeLink,getSimilerGoods,getJdsDetail,getPddDetail,getM,getWphGoodsDetail,addCollect,delCollect,hotKey,suggestion,goodsSearch,activityLink,unionAct,singlePageLink,checkPddAuth,getPddAuth,getPineGoods,jdGoodsList,optimusMaterial,pddGoodsList,brandList,brandInfo,wphGoodsList,meituanAct,eleAct,eleShangjin,userHomemenu,getAppVersion,userBrowse,delBrowse,activitySingle,userCollect,bdHomemenu,getCity,coordinate,cityCate,searchDeals,getCityId,seckillShowinfo,seckillList,identifyGoods,changeMobile,bindInvitation,getInviteInfo,getEstimateAmount,fansList,getFansCount,getHelpType,getHelpList,getHelpDetail,getWpanurl,getChainTurning,superDiscountGoods,getHistory,getTbGoodsList,cateRankList,getUpgradeInfo,getEquityCard,levelApply,orderList,userProfit,bindZfb,withdraw,getBalanceLog,getPublisher,getAlbum,likeAlbum,albumDetail,anchorFollow,myFollowAlbum,feedback,userCancel,profile,bindWechat,unboundWechat}; |
| | | } |
| | | |
| | | export default { |
| | |
| | | |
| | | |
| | | common.goUrl = function(info, _this) { |
| | | console.log(info) |
| | | var userinfo = common.getCacheSync('userInfo') |
| | | var that = _this; |
| | | if (userinfo) { |