Browse Source

修复样式

master
zhengshuiqi 3 years ago
parent
commit
399ac9a33a
  1. 4
      pages/account/addAddress.vue
  2. 6
      pages/account/myProfile.vue
  3. 67
      pages/index/index.vue
  4. 2
      pages/login/index.vue
  5. 4
      pages/productDetails/index.vue
  6. 15
      pages/specialTitle/index.vue

4
pages/account/addAddress.vue

@ -574,6 +574,10 @@
input{ input{
font-size: 24rpx; font-size: 24rpx;
padding-left: 10rpx; padding-left: 10rpx;
height: 100%;
z-index: 1;
position: relative;
// padding-bottom: 4px;
} }
} }
} }

6
pages/account/myProfile.vue

@ -9,11 +9,13 @@
<image src="../../static/img/right1.png" alt="" class="right_img"></image> <image src="../../static/img/right1.png" alt="" class="right_img"></image>
</view> </view>
</view> </view>
<view class="profile_item " @click="$refs.inputDialog.open()"> <view class="profile_item ">
<!-- <view class="profile_item " @click="$refs.inputDialog.open()"> -->
<text>Name</text> <text>Name</text>
<view class="profile_item_right"> <view class="profile_item_right">
<text>{{user_info.nickname}}</text> <text>{{user_info.nickname}}</text>
<image src="../../static/img/right1.png" alt="" class="right_img"></image> <image src="" alt="" class="right_img"></image>
<!-- <image v-show="" src="../../static/img/right1.png" alt="" class="right_img"></image> -->
</view> </view>
</view> </view>
<view class="profile_item "> <view class="profile_item ">

67
pages/index/index.vue

@ -188,7 +188,6 @@
title: '网络不佳,请重新打开........', title: '网络不佳,请重新打开........',
duration: 20000 duration: 20000
}); });
} else { } else {
that.typee = 2 that.typee = 2
console.log("有网络", that.typee); console.log("有网络", that.typee);
@ -196,13 +195,11 @@
title: '网络不佳,请重新打开........', title: '网络不佳,请重新打开........',
duration: 2000 duration: 2000
}); });
} }
}, 3000) }, 3000)
} }
}); */ }); */
// }, // },
onLoad() { onLoad() {
let that = this; let that = this;
let s = 0; let s = 0;
@ -384,7 +381,6 @@
// //
let showH = (50 * image.height) / image.width let showH = (50 * image.height) / image.width
// console.log(Swiper_H) // console.log(Swiper_H)
} }
}) })
return this.hotheight return this.hotheight
@ -434,7 +430,6 @@
this.popUrl = item.zone_more_link this.popUrl = item.zone_more_link
this.open() this.open()
// console.log(this.popImg,item.zone_code) // console.log(this.popImg,item.zone_code)
} }
}) })
} }
@ -463,14 +458,10 @@
// if (this.countdownTime < 1) { // if (this.countdownTime < 1) {
// clearInterval(timer) // clearInterval(timer)
// this.countdownTime = 0 // this.countdownTime = 0
// } // }
// }, 1000) // }, 1000)
let timer2 = setInterval(() => { let timer2 = setInterval(() => {
// uni.hideTabBar(); // uni.hideTabBar();
this.countdownTime2--; this.countdownTime2--;
console.log(this.countdownTime2) console.log(this.countdownTime2)
@ -571,13 +562,11 @@
if (item.zone_code == 'HONLIST3') { if (item.zone_code == 'HONLIST3') {
item.blocks.map(item1 => { item.blocks.map(item1 => {
// console.log('HONLIST3',item1) // console.log('HONLIST3',item1)
}) })
} }
if (item.zone_code == 'HONLIST2') { if (item.zone_code == 'HONLIST2') {
item.blocks.map(item1 => { item.blocks.map(item1 => {
// console.log('HONLIST2',item1) // console.log('HONLIST2',item1)
}) })
} }
if (this.info.length > 1) { if (this.info.length > 1) {
@ -691,7 +680,6 @@
// if(item.attr_name){ // if(item.attr_name){
// this.sizenum=item.goods_attrs.length // this.sizenum=item.goods_attrs.length
// } // }
// if(item.attr_name=="Color"){ // if(item.attr_name=="Color"){
// this.colorNum=item.goods_attrs.length // this.colorNum=item.goods_attrs.length
// console.log(this.colorNum) // console.log(this.colorNum)
@ -707,11 +695,9 @@
// } // }
// else if(item.attr_name=="Size"){ // else if(item.attr_name=="Size"){
// Size_list = item.goods_attrs // Size_list = item.goods_attrs
// console.log(this.sizenum) // console.log(this.sizenum)
// Size_list.map( item =>{ // Size_list.map( item =>{
// this.Size_list +=item.attr_value + ' ' // this.Size_list +=item.attr_value + ' '
// }) // })
// this.Size_list= this.Size_list.substring(0, this.Size_list.length-1) // this.Size_list= this.Size_list.substring(0, this.Size_list.length-1)
// } // }
@ -744,7 +730,6 @@
} }
// this.catQuery.cat=res.data.cat_id // this.catQuery.cat=res.data.cat_id
} }
}) })
}, },
@ -916,7 +901,6 @@
// ////console.log(sum) // ////console.log(sum)
}) })
}, },
gotoSearch() { gotoSearch() {
@ -961,9 +945,7 @@
// skillList.push(mm) // skillList.push(mm)
// this.skillList = skillList // this.skillList = skillList
// } // }
} }
}) })
}, },
@ -1100,7 +1082,6 @@
let code = item.zone_code let code = item.zone_code
this.getIndex(code) this.getIndex(code)
// this.getCatList() // this.getCatList()
}, },
start(e) { start(e) {
// console.log(e) // console.log(e)
@ -1135,7 +1116,6 @@
// console.log('',this.hot_index) // console.log('',this.hot_index)
// this.start(this.hot_index) // this.start(this.hot_index)
// this.end(this.hot_index) // this.end(this.hot_index)
}, },
gridSwiper(e) { gridSwiper(e) {
@ -1206,7 +1186,6 @@
<view v-if="typee == 2" class="body" :class="isScrollShow?'body_pad':''"> <view v-if="typee == 2" class="body" :class="isScrollShow?'body_pad':''">
<!-- 进入页面部分 --> <!-- 进入页面部分 -->
<view v-show="!open_img || countdownTime2==0"> <view v-show="!open_img || countdownTime2==0">
<!-- 头部导航栏 --> <!-- 头部导航栏 -->
<view class="navigation "> <view class="navigation ">
<view class="status_bar"></view> <view class="status_bar"></view>
@ -1219,11 +1198,8 @@
<image src="../../static/img/msg_white.png" mode=""></image> <image src="../../static/img/msg_white.png" mode=""></image>
</uni-badge> </uni-badge>
</navigator> </navigator>
<image src="/static/img/dope plus_white.png" mode="" class="index_logo"></image> <image src="/static/img/dope plus_white.png" mode="" class="index_logo"></image>
</template> </template>
<view class="navigation_title_right" :class="isScrollShow?'navigation_title_padding':'' "> <view class="navigation_title_right" :class="isScrollShow?'navigation_title_padding':'' ">
<navigator> <navigator>
<image src="../../static/img/like_white.png" mode="" @click="Iswish()"></image> <image src="../../static/img/like_white.png" mode="" @click="Iswish()"></image>
@ -1233,17 +1209,14 @@
<image src="../../static/img/shop_cart1.png" mode=""></image> <image src="../../static/img/shop_cart1.png" mode=""></image>
</uni-badge> </uni-badge>
</navigator> </navigator>
</view> </view>
</view> </view>
<navigator> <navigator>
<view v-if="isScrollShow " :class="isScrollShow?'isScrollShow3':'' "> <view v-if="isScrollShow " :class="isScrollShow?'isScrollShow3':'' ">
<image src="/static/icon/home_white.png" mode=""></image> <image src="/static/icon/home_white.png" mode=""></image>
</view> </view>
<view class="navigation_seach" :class="isScrollShow?'isScrollShow1':'' " <view class="navigation_seach" :class="isScrollShow?'isScrollShow1':'' "
@click="gotoSearch()"> @click="gotoSearch()">
<image src="../../static/img/seach.png" mode=""></image> <image src="../../static/img/seach.png" mode=""></image>
<text>search</text> <text>search</text>
</view> </view>
@ -1262,9 +1235,7 @@
@click="scrollChange(item,index)" :key="item.zone_name">{{item.zone_name}}</view> @click="scrollChange(item,index)" :key="item.zone_name">{{item.zone_name}}</view>
</scroll-view> </scroll-view>
</view> </view>
<view style="max-width: 100%" v-for="(item,index) in indexDate.zones" :key="item.zone_id"> <view style="max-width: 100%" v-for="(item,index) in indexDate.zones" :key="item.zone_id">
<!-- 轮播图 --> <!-- 轮播图 -->
<view class="uni-margin-wrap page_padding_left1" style="padding-left: 0; padding-right: 0;" <view class="uni-margin-wrap page_padding_left1" style="padding-left: 0; padding-right: 0;"
v-if="item.zone_code=='BANNER' && item.zone_status=='NORMAL'"> v-if="item.zone_code=='BANNER' && item.zone_status=='NORMAL'">
@ -1278,7 +1249,6 @@
</swiper-item> </swiper-item>
</swiper> </swiper>
</view> </view>
<!-- 宫格 --> <!-- 宫格 -->
<uni-swiper-dot :info="info" :current="current" field="content" mode="default" <uni-swiper-dot :info="info" :current="current" field="content" mode="default"
v-if="item.zone_code=='ICON' && item.zone_status=='NORMAL' && item.zone_code!=indexDate.zones[index-1].zone_code"> v-if="item.zone_code=='ICON' && item.zone_status=='NORMAL' && item.zone_code!=indexDate.zones[index-1].zone_code">
@ -1292,13 +1262,11 @@
</view> </view>
<text>{{item2.block_title}}</text> <text>{{item2.block_title}}</text>
</template> </template>
</view> </view>
</view> </view>
</swiper-item> </swiper-item>
</swiper> </swiper>
</uni-swiper-dot> </uni-swiper-dot>
<!-- ONEPIC --> <!-- ONEPIC -->
<view class="ONEPIC" v-if="item.zone_code=='ONEPIC' && item.zone_status=='NORMAL'"> <view class="ONEPIC" v-if="item.zone_code=='ONEPIC' && item.zone_status=='NORMAL'">
<!-- class="discount page_padding" --> <!-- class="discount page_padding" -->
@ -1349,9 +1317,6 @@
mode="" @click="imgTo(item1)" v-for="(item1,index1) in item.blocks" :key="item1.block_id"> mode="" @click="imgTo(item1)" v-for="(item1,index1) in item.blocks" :key="item1.block_id">
</image> </image>
</view> </view>
<!-- 标题 --> <!-- 标题 -->
<navigator url="/pages/index/flashSale" v-if="item.zone_code=='SPIKE1' && item.zone_status=='NORMAL'"> <navigator url="/pages/index/flashSale" v-if="item.zone_code=='SPIKE1' && item.zone_status=='NORMAL'">
<view class="index_title page_padding"> <view class="index_title page_padding">
@ -1363,8 +1328,6 @@
</view> </view>
</view> </view>
</navigator> </navigator>
<!-- SPIKE 1 --> <!-- SPIKE 1 -->
<scroll-view class="spike1 page_padding" scroll-x="true" :show-scrollbar="false" <scroll-view class="spike1 page_padding" scroll-x="true" :show-scrollbar="false"
v-if="item.zone_code=='SPIKE1' && item.zone_status=='NORMAL'"> v-if="item.zone_code=='SPIKE1' && item.zone_status=='NORMAL'">
@ -1378,10 +1341,8 @@
<text>US${{item1.promote_price}}</text> <text>US${{item1.promote_price}}</text>
<view class="spike1_item_text">US${{item1.shop_price}}</view> <view class="spike1_item_text">US${{item1.shop_price}}</view>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
<!-- 标题 --> <!-- 标题 -->
<view class="index_title page_padding" v-if="item.zone_code=='TITLE' && item.zone_status=='NORMAL'"> <view class="index_title page_padding" v-if="item.zone_code=='TITLE' && item.zone_status=='NORMAL'">
<text>{{item.blocks[0].block_title}}</text> <text>{{item.blocks[0].block_title}}</text>
@ -1389,9 +1350,7 @@
<image src="../../static/icon/right_white.png" mode="" @click="Hotgoto(item.blocks)"></image> <image src="../../static/icon/right_white.png" mode="" @click="Hotgoto(item.blocks)"></image>
</view> </view>
</view> </view>
<!-- HOT SELLS 1 --> <!-- HOT SELLS 1 -->
<view class="hotSells1 page_padding" <view class="hotSells1 page_padding"
v-if="item.zone_code=='GOODSTWO1' || item.zone_code=='GOODSTHREE1'"> v-if="item.zone_code=='GOODSTWO1' || item.zone_code=='GOODSTHREE1'">
<template v-if="item.zone_code=='GOODSTWO1' && item.zone_status=='NORMAL'"> <template v-if="item.zone_code=='GOODSTWO1' && item.zone_status=='NORMAL'">
@ -1415,7 +1374,6 @@
</view> </view>
</template> </template>
</view> </view>
<!-- 标题 --> <!-- 标题 -->
<!-- <view class="index_title page_padding"> <!-- <view class="index_title page_padding">
<text>Hot Selle</text> <text>Hot Selle</text>
@ -1423,8 +1381,6 @@
<image src="../../static/img/right.png" mode=""></image> <image src="../../static/img/right.png" mode=""></image>
</view> </view>
</view> --> </view> -->
<!-- HOT SELLS 2 --> <!-- HOT SELLS 2 -->
<scroll-view class="spike1 page_padding" scroll-x="true" @change="handlechange" :show-scrollbar="false" <scroll-view class="spike1 page_padding" scroll-x="true" @change="handlechange" :show-scrollbar="false"
:indicator-dots="true" :circular="true" :interval="3000" :duration="1000" :indicator-dots="true" :circular="true" :interval="3000" :duration="1000"
@ -1464,7 +1420,6 @@
</swiper> </swiper>
</view> --> </view> -->
</scroll-view> </scroll-view>
<!-- 标题 --> <!-- 标题 -->
<!-- <view class="index_title page_padding"> <!-- <view class="index_title page_padding">
<text>Hot Selle</text> <text>Hot Selle</text>
@ -1472,7 +1427,6 @@
<image src="../../static/img/right.png" mode=""></image> <image src="../../static/img/right.png" mode=""></image>
</view> </view>
</view> --> </view> -->
<!-- HOT SELLS 3 --> <!-- HOT SELLS 3 -->
<scroll-view class="spike1 page_padding" scroll-x="true" :show-scrollbar="false" <scroll-view class="spike1 page_padding" scroll-x="true" :show-scrollbar="false"
v-if="item.zone_code=='HONLIST3' && item.zone_status=='NORMAL'" @scroll="scrollhot"> v-if="item.zone_code=='HONLIST3' && item.zone_status=='NORMAL'" @scroll="scrollhot">
@ -1485,7 +1439,6 @@
<text>{{item1.block_title}}</text> <text>{{item1.block_title}}</text>
<view class="spike1_item_text1">{{item1.block_title2}}</view> <view class="spike1_item_text1">{{item1.block_title2}}</view>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
<!-- HOT SELLS 1 --> <!-- HOT SELLS 1 -->
@ -1502,14 +1455,12 @@
<text>{{item1.block_title}}</text> <text>{{item1.block_title}}</text>
<view class="spike1_item_text1">{{item1.block_title2}}</view> <view class="spike1_item_text1">{{item1.block_title2}}</view>
</view> --> </view> -->
</view> </view>
</scroll-view> </scroll-view>
<!-- GOODSTHREE 2 --> <!-- GOODSTHREE 2 -->
<!-- <view class="goodsthree2"> <!-- <view class="goodsthree2">
<view class="goodsthree2_item" v-for="(item,index) in 3" :key="index"></view> <view class="goodsthree2_item" v-for="(item,index) in 3" :key="index"></view>
</view> --> </view> -->
<!-- 轮播图 --> <!-- 轮播图 -->
<!-- <view class="uni-margin-wrap"> <!-- <view class="uni-margin-wrap">
<swiper class="swiper" circular :indicator-dots="true" :autoplay="true" > <swiper class="swiper" circular :indicator-dots="true" :autoplay="true" >
@ -1524,7 +1475,6 @@
</swiper-item> </swiper-item>
</swiper> </swiper>
</view> --> </view> -->
<!-- SPIKE 1 --> <!-- SPIKE 1 -->
<!-- <scroll-view class="spike1 page_padding_left" scroll-x="true" :show-scrollbar="false"> <!-- <scroll-view class="spike1 page_padding_left" scroll-x="true" :show-scrollbar="false">
<view class="spike1_item" v-for="(item,index) in 8" :key="index"> <view class="spike1_item" v-for="(item,index) in 8" :key="index">
@ -1538,7 +1488,6 @@
</view> </view>
<!-- 瀑布流标题 --> <!-- 瀑布流标题 -->
<!-- <view class="index_title1" v-if="bestlist.length>0">PRODUCTS FRO YOU</view> --> <!-- <view class="index_title1" v-if="bestlist.length>0">PRODUCTS FRO YOU</view> -->
<!-- <view class="waterfall" v-if="bestlist.length>0" > <!-- <view class="waterfall" v-if="bestlist.length>0" >
<custom-waterfalls-flow :value="bestlist" imageKey="block_pic"@imageClick="imgTo(bestlist)"> <custom-waterfalls-flow :value="bestlist" imageKey="block_pic"@imageClick="imgTo(bestlist)">
<template v-slot:default="item2"> <template v-slot:default="item2">
@ -1587,7 +1536,6 @@
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<!-- // --> <!-- // -->
@ -1619,13 +1567,11 @@
</view> </view>
</view> </view>
</view> </view>
<view class="quantity"> <view class="quantity">
<text>Quantity</text> <text>Quantity</text>
<uni-number-box background="#FFFFFF" v-model="cartQuery.goods_number" :min="1"></uni-number-box> <uni-number-box background="#FFFFFF" v-model="cartQuery.goods_number" :min="1"></uni-number-box>
</view> </view>
</scroll-view> </scroll-view>
<button @click="addCart">ADD TO CART</button> <button @click="addCart">ADD TO CART</button>
</view> </view>
<view class="mask" @click="isCart=false" v-show="isCart"></view> <view class="mask" @click="isCart=false" v-show="isCart"></view>
@ -1633,7 +1579,6 @@
<view v-show="popImg"> <view v-show="popImg">
<!-- <button @click="open">打开弹窗</button> --> <!-- <button @click="open">打开弹窗</button> -->
<uni-popup ref="popup" :mask-click="false"> <uni-popup ref="popup" :mask-click="false">
<view class="Popup"> <view class="Popup">
<view class="popup_close"> <view class="popup_close">
<image mode=" " @click="close" src="../../static/img/close2.png"></image> <image mode=" " @click="close" src="../../static/img/close2.png"></image>
@ -1647,7 +1592,6 @@
</uni-popup> </uni-popup>
</view> </view>
</view> </view>
<!-- 启动页广告 --> <!-- 启动页广告 -->
<view class="open_bg" ref="imgRef" v-show="countdownTime2>0?true:false"> <view class="open_bg" ref="imgRef" v-show="countdownTime2>0?true:false">
<!-- <view class="open_text"><text @click="countdownTime2 =0">{{ countdownTime2 }}s skip</text></view> --> <!-- <view class="open_text"><text @click="countdownTime2 =0">{{ countdownTime2 }}s skip</text></view> -->
@ -1661,7 +1605,6 @@
<image :src="item.block_pic" mode="" @click="imgTo(item)"></image> <image :src="item.block_pic" mode="" @click="imgTo(item)"></image>
</swiper-item> </swiper-item>
</swiper> </swiper>
</view> </view>
<view class="bootom_last" v-if="bootom == 1">-THE END-</view> <view class="bootom_last" v-if="bootom == 1">-THE END-</view>
<view class="tarbar"> <view class="tarbar">
@ -1873,7 +1816,6 @@
z-index: 99; z-index: 99;
background: rgba(0, 0, 0, 0.7) !important; background: rgba(0, 0, 0, 0.7) !important;
// margin-top: -150rpx; // margin-top: -150rpx;
} }
.isScrollShow3 { .isScrollShow3 {
@ -2016,7 +1958,6 @@
// height: 0; // height: 0;
// background-color: #000; // background-color: #000;
// } // }
view { view {
margin-left: 46.67rpx; margin-left: 46.67rpx;
display: inline-block; display: inline-block;
@ -2085,7 +2026,6 @@
.grid_swiper { .grid_swiper {
// height: 380rpx; // height: 380rpx;
// margin: 0 10rpx 0 10rpx; // margin: 0 10rpx 0 10rpx;
.grid_content { .grid_content {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
@ -2127,7 +2067,6 @@
// .grid_item:nth-child(n+4){ // .grid_item:nth-child(n+4){
// margin-right: 0; // margin-right: 0;
// } // }
} }
} }
@ -2361,7 +2300,6 @@
// margin-top: 24.67rpx; // margin-top: 24.67rpx;
margin-top: 14.67rpx; margin-top: 14.67rpx;
// margin-bottom: 32.67rpx; // margin-bottom: 32.67rpx;
} }
.title1 { .title1 {
@ -2409,7 +2347,6 @@
margin: 0 10rpx 0 10rpx; margin: 0 10rpx 0 10rpx;
// width: 80vw; // width: 80vw;
// height:400rpx ; // height:400rpx ;
.best_one { .best_one {
width: 45vw; width: 45vw;
height: 400rpx; height: 400rpx;
@ -2444,7 +2381,6 @@
background-color: #000; background-color: #000;
color: white; color: white;
// padding-bottom: 50rpx; // padding-bottom: 50rpx;
.uni-view {} .uni-view {}
} }
@ -2464,7 +2400,6 @@
// margin-top: 24.67rpx; // margin-top: 24.67rpx;
color: #fff; color: #fff;
// margin-bottom: 10.67rpx; // margin-bottom: 10.67rpx;
} }
.title1 { .title1 {
@ -2607,7 +2542,6 @@
z-index: 9999999; z-index: 9999999;
position: fixed; position: fixed;
// padding-top: 50rpx; // padding-top: 50rpx;
overflow: hidden; overflow: hidden;
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
@ -2663,7 +2597,6 @@
// width: 100%; // width: 100%;
// height: 100%; // height: 100%;
// margin: -6px 0; // margin: -6px 0;
// image { // image {
// width: 100%; // width: 100%;
// } // }

2
pages/login/index.vue

@ -18,7 +18,7 @@
<image :src="eye" mode ="" class="see login_see" @click="seePwd"></image> <image :src="eye" mode ="" class="see login_see" @click="seePwd"></image>
</view> </view>
<view class="tips" v-show="loginErr"><image src="../../static/img/att.png" mode=""></image>ooo{{errMsg}}</view> <view class="tips" v-show="loginErr"><image src="../../static/img/att.png" mode=""></image>{{errMsg}}</view>
<view class="forgot" @click="forgotPwd">Forgot your Password?</view> <view class="forgot" @click="forgotPwd">Forgot your Password?</view>
<button class="login_submit" :disabled="isLogin" @click="login()" >SIGN IN</button> <button class="login_submit" :disabled="isLogin" @click="login()" >SIGN IN</button>
<!-- <view class="agreement"> <!-- <view class="agreement">

4
pages/productDetails/index.vue

@ -1881,7 +1881,9 @@
.uni-bg-black { .uni-bg-black {
background-color: #000000; background-color: #000000;
background-repeat: no-repeat !important;
height: 100%;
background-size: cover !important;
} }
} }
} }

15
pages/specialTitle/index.vue

@ -8,10 +8,12 @@
color="#fff" :title="title" :fixed="true" :border="false" :top="100 +rpx"/> --> color="#fff" :title="title" :fixed="true" :border="false" :top="100 +rpx"/> -->
<view v-for="(item,index) in list " :key="item.zone_id"> <view v-for="(item,index) in list " :key="item.zone_id">
<view v-for="(item1,index1) in item.blocks " :key="item1.block_pic"> <view v-for="(item1,index1) in item.blocks " :key="item1.block_pic">
<view class="ONEPIC" v-if="item.zone_code=='ONEPIC' && item.zone_status=='NORMAL'" <view style="position: relative;" class="ONEPIC" v-if="item.zone_code=='ONEPIC' && item.zone_status=='NORMAL'"
:style="{height:(item.zone_code=='ONEPIC')?item.zone_column+'rpx':''}"> :style="{height:(item.zone_code=='ONEPIC')?item.zone_column+'rpx':''}">
<!-- class="discount page_padding" --> <!-- class="discount page_padding" -->
<image :src="item1.block_pic" mode="" @click="imgTo(item1)"></image> <image :src="item1.block_pic" mode="" @click="imgTo(item1)">
<a style="display: block;width: 100%;height: 100%;top: 0;position: absolute;" :href="item1.block_link"></a>
</image>
</view> </view>
</view> </view>
<!-- TWOPIC --> <!-- TWOPIC -->
@ -77,7 +79,6 @@
}, },
methods: { methods: {
getpage() { getpage() {
let imglist let imglist
defaultRequest(this.data).then(res => { defaultRequest(this.data).then(res => {
if (res.error == 0) { if (res.error == 0) {
@ -97,14 +98,14 @@
}) })
}, },
imgTo(item) { imgTo(item) {
console.log(item, 'item') console.log(item, 'item数据?')
// console.log(item.block_link)
// console.log(item.block_link.includes('dope.youhui')) // console.log(item.block_link.includes('dope.youhui'))
let goodid let goodid
if (item.goodid) { if (item.goodid) {
uni.navigateTo({ uni.navigateTo({
url: '../productDetails/index?goodid=' + item.goodid // url: '../productDetails/index?goodid=' + item.goodid
url: './paypalWebview?src' + item.goodid
}) })
} else if (item.block_link) { } else if (item.block_link) {
const i = item.block_link.indexOf('?') const i = item.block_link.indexOf('?')

Loading…
Cancel
Save