Commit 21f57116 authored by 肖健's avatar 肖健

Merge branch 'v1.0.0' into v1.0.0_jd

parents 033b8daa 39f9ec23
...@@ -34,12 +34,12 @@ ...@@ -34,12 +34,12 @@
</view> </view>
</view> </view>
<view class="banner-other"> <view class="banner-other">
<view @click="goShopH5(1)">
<image src="../static/index/2.png"></image>
</view>
<view @click="goShopH5(2)"> <view @click="goShopH5(2)">
<image src="../static/index/1.png"></image> <image src="../static/index/1.png"></image>
</view> </view>
<view @click="goShopH5(1)">
<image src="../static/index/2.png"></image>
</view>
</view> </view>
<u-gap bgColor="transparent" height="20"></u-gap> <u-gap bgColor="transparent" height="20"></u-gap>
</view> </view>
...@@ -101,6 +101,7 @@ ...@@ -101,6 +101,7 @@
goShopH5(index){ goShopH5(index){
let token = uni.getStorageSync('userToken'); let token = uni.getStorageSync('userToken');
if (!token) { if (!token) {
uni.setStorageSync('jdNavto',index)
uni.navigateTo({ uni.navigateTo({
url: '/pages/login/index/index' url: '/pages/login/index/index'
}) })
...@@ -302,8 +303,10 @@ ...@@ -302,8 +303,10 @@
// uni.navigateTo({ // uni.navigateTo({
// url: '/pages/webview/webview?url=' + link // url: '/pages/webview/webview?url=' + link
// }) // })
let url;
let token = uni.getStorageSync('userToken'); let token = uni.getStorageSync('userToken');
if (!token) { if (!token) {
uni.setStorageSync('jdNavto',1)
uni.navigateTo({ uni.navigateTo({
url: '/pages/login/index/index' url: '/pages/login/index/index'
}) })
...@@ -478,16 +481,17 @@ ...@@ -478,16 +481,17 @@
.banner-other{ .banner-other{
position: absolute; position: absolute;
right:-22rpx;top:-90rpx; right:-22rpx;top:-80rpx;
z-index:100;
>view{ >view{
&:first-child{ &:first-child{
width: 172rpx;height:140rpx;
}
&:last-child{
margin-top:80rpx;
margin-left:34rpx; margin-left:34rpx;
width: 120rpx;height:112rpx; width: 120rpx;height:112rpx;
} }
&:last-child{
margin-top:70rpx;
width: 172rpx;height:140rpx;
}
image{ image{
width:100%;height:100%; width:100%;height:100%;
} }
......
...@@ -334,7 +334,6 @@ ...@@ -334,7 +334,6 @@
duration: 2000 duration: 2000
}); });
// 判断是否扫码进入 // 判断是否扫码进入
that.scene = uni.getStorageSync('scene') that.scene = uni.getStorageSync('scene')
// console.log(that.scene,"微信扫码进入") // console.log(that.scene,"微信扫码进入")
...@@ -375,6 +374,21 @@ ...@@ -375,6 +374,21 @@
} }
} }
// 判断是否有京东跳转
let jdNavto = uni.setStorageSync('jdNavto',index)
if(jdNavto){
let url;
if(jdNavto == 1){
url = 'https://pro.m.jd.com/mall/active/3L2hs3R3aibYmosCRzA2Rp5z8pTR/index.html?babelChannel=ttt1'
}else{
url = 'https://jarvis.m.jd.com/start?source=2'
}
// uni.setStorageSync('h5url',url)
util.navigateToH5({page:url})
uni.removeStorageSync('jdNavto')
}
}else{ }else{
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.showToast({
......
...@@ -282,6 +282,7 @@ export default { ...@@ -282,6 +282,7 @@ export default {
// }) // })
let token = uni.getStorageSync('userToken'); let token = uni.getStorageSync('userToken');
if (!token) { if (!token) {
uni.setStorageSync('jdNavto',1)
uni.navigateTo({ uni.navigateTo({
url: '/pages/login/index/index' url: '/pages/login/index/index'
}) })
......
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