uniapp/App.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
uniapp/components/indexPage.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
uniapp/pages.json | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
uniapp/pages/goods/goodsDetail.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
uniapp/pages/index/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
uniapp/pages/login/setInviteCode.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
uniapp/pages/rankinglist/compareprice.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
uniapp/static/images/tabBar/compareprice.png | 补丁 | 查看 | 原始文档 | blame | 历史 | |
uniapp/static/images/tabBar/compareprice_activity.png | 补丁 | 查看 | 原始文档 | blame | 历史 |
uniapp/App.vue
@@ -11,6 +11,7 @@ // #endif export default { onLaunch: function() { // #ifdef APP-PLUS //推送开始 /* var info = plus.push.getClientInfo() uniapp/components/indexPage.vue
@@ -580,6 +580,7 @@ } this.$u.api.checkPreferenceGoods({ }).then(e => { console.log(e); if(e.code != 0) { that.currentPage = 1; @@ -845,7 +846,7 @@ this.loadingState = false var that = this; if(that.currentPage==7&&that.preferData) if(that.bottomType==7&&that.preferData) {//猜你喜欢 this.$u.api.gussessLikeGoods({ platefrom:that.preferData.p_platefrom, @@ -853,7 +854,18 @@ pageId:this.currentPage, pageSize:10 }).then(e=>{ console.log(e) console.log(e); if (e.code != 0) return that.$alert(e.msg) var res = e.data.list; if (res.length < 10) { that.loadingState = false that.loadstatus = 'normal' } else { that.currentPage++ that.loadstatus = 'loading' that.loadingState = true } that.bottomGoodsList = that.bottomGoodsList.concat(res); }) } else{ uniapp/pages.json
@@ -915,9 +915,9 @@ }, { "pagePath": "pages/rankinglist/compareprice", "iconPath": "static/images/tabBar/ne_bend.png", "selectedIconPath": "static/images/tabBar/ne_bend_act.png", "text": "比价" "iconPath": "static/images/tabBar/compareprice.png", "selectedIconPath": "static/images/tabBar/compareprice_activity.png", "text": "搜低价" }, { "pagePath": "pages/rankinglist/xianbao", uniapp/pages/goods/goodsDetail.vue
@@ -329,7 +329,8 @@ inviteCodeShow: false, inviterShow: false, frompage:'', isshowpdd:false isshowpdd:false, beforePddAuth:false, }; }, onPageScroll(e) { @@ -406,6 +407,12 @@ } else { this.memberId = '' } console.log(this.user); if(this.user.pdd_authority_ios==1||this.user.pdd_authority_android==1) { this.beforePddAuth=true; } console.log(this.beforePddAuth); } catch (e) { this.memberId = '' } @@ -419,10 +426,10 @@ this.pageInfo.showImgs.push(a) this.getrecommend() } else if (this.pageType == 'pdd') { if(this.optionsInfo.predictPromotionRate==0) /* if(this.optionsInfo.predictPromotionRate==0) {//比价订单 this.remindModel=true; } } */ } else if (this.pageType == 'jd') { @@ -445,6 +452,7 @@ }, getPageInfo(e) { var that = this; console.log(this.faction) if (this.faction == 'j') { this.$u.api.getJdsDetail({ goodsId: this.optionsInfo.goodsId, @@ -472,14 +480,7 @@ this.optionsInfo = res }).catch(function(err) {}) } else if (this.faction == 'p') { var that = this; this.$u.api.getPddDetail({ goods_sign: this.optionsInfo.goods_sign }).then(e => { var res = e.data; that.pageInfo = res; that.optionsInfo.imgs = that.pageInfo.imgs; }) this.getPddGoodsDetail(this.optionsInfo.goods_sign); } else if (this.faction == 'w') { var that = this; this.$u.api.getWphGoodsDetail({ @@ -508,17 +509,28 @@ }) } }, getPddGoodsDetail(goods_sign) { var that = this; this.$u.api.getPddDetail({ goods_sign: goods_sign }).then(e => { var res = e.data; that.pageInfo = res; console.log(res); that.optionsInfo.imgs = that.pageInfo.imgs; if(res.predictPromotionRate==0) {//比价订单 this.remindModel=true; } }) }, goDetails(info) { info.searchSource = 1 uni.navigateTo({ url: './goodsDetail?info=' + encodeURIComponent(JSON.stringify(info)) }) }, getrecommend() { var that = this; this.$u.api.getSimilerGoods({ @@ -618,8 +630,14 @@ updataUser() { var that = this; this.$u.api.getUserInfo({}).then(e => { console.log(e) utils.setCache('userInfo', e.data.userinfo) that.user = e.data.userinfo; if(that.pageType == 'pdd'&&!that.beforePddAuth&&(e.data.userinfo.pdd_authority_ios == 1||e.data.userinfo.pdd_authority_android == 1)) {//重新查询商品详情 console.log('重新查询pdd商品'); that.getPddGoodsDetail(that.optionsInfo.goods_sign);0 } }).catch(function(err) {}) }, uniapp/pages/index/index.vue
@@ -369,6 +369,11 @@ </script> <style lang="scss"> uni-image { width:30rem; height:25rem } .index-wrapper { height: 100vh; overflow: hidden; @@ -585,9 +590,10 @@ // height: 100vw; } } .clone { position:absolute; bottom: -150rpx; bottom: -30rpx; transform: translate(calc(50% - 32rpx)); .image { width: 64rpx; uniapp/pages/login/setInviteCode.vue
@@ -186,8 +186,11 @@ }, setinvite() { var that = this; let deviceInfo = uni.getDeviceInfo(); console.log(deviceInfo.deviceId); this.$u.api.bindInvitation({ invite_code:this.inviteCode invite_code:this.inviteCode, deviceid:deviceInfo.deviceId }).then(e => { if(e.code != 0) return that.$alert(e.msg) uni.showToast({ uniapp/pages/rankinglist/compareprice.vue
@@ -38,7 +38,7 @@ else{ const value = uni.getStorageSync('userInfo'); console.log(value) this.webviewUrl = encodeURI('https://appapitest.ushopvip.com/html/compareprice.html?token='+value.token); this.webviewUrl = encodeURI('http://appapitest.ushopvip.com/html/compareprice.html?token='+value.token); } }, uniapp/static/images/tabBar/compareprice.png
uniapp/static/images/tabBar/compareprice_activity.png