131 lines
2.6 KiB
Vue
131 lines
2.6 KiB
Vue
<template>
|
|
<view class="content">
|
|
<TopSafe></TopSafe>
|
|
<Header title="信任桥优选专区" >
|
|
<!-- #ifndef MP-WEIXIN -->
|
|
<template v-slot:right>
|
|
<u-icon name="share-fill" @click="onShare" color="#333" size="24"></u-icon>
|
|
</template>
|
|
<!-- #endif -->
|
|
</Header>
|
|
<view class="setting-view">
|
|
<YouItem @ok="onJumpShop" style="margin-top:24rpx" :obj="item" v-for="(item,index) in dataList" :key="index"></YouItem>
|
|
</view>
|
|
<up-toast ref="uToastRef"></up-toast>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import Header from '@/components/common/header.vue';
|
|
import TopSafe from '@/components/common/top-safe.nvue'
|
|
import MyBtn from '@/components/common/my-btn.vue'
|
|
import YouItem from '@/components/shop/you-item.vue'
|
|
import { searchList } from '@/api/product.js';
|
|
|
|
export default {
|
|
components: { Header, TopSafe,MyBtn,YouItem },
|
|
data() {
|
|
return {
|
|
dataList:[
|
|
]
|
|
};
|
|
},
|
|
onShow() {
|
|
},
|
|
onLoad() {
|
|
this.init();
|
|
},
|
|
methods: {
|
|
init() {
|
|
this.getSearchList();
|
|
},
|
|
async getSearchList(){
|
|
const params = {
|
|
type:1,
|
|
page:1,
|
|
pageSize:99,
|
|
}
|
|
const resp = await searchList(params);
|
|
if(resp && resp.bizcode === 100){
|
|
this.dataList = resp.data || [];
|
|
}
|
|
},
|
|
onJumpShop(id){
|
|
uni.navigateTo({
|
|
url: '/pages/other_package/productInfo/productInfo?id='+id,
|
|
})
|
|
},
|
|
onShare(){
|
|
uni.navigateTo({
|
|
url: '/pages/other_package/invite_friends/invite_friends',
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.bottom-btn{
|
|
width: 100%;
|
|
margin-bottom:92rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 0 32rpx;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
|
|
}
|
|
.setting-view {
|
|
width: 100%;
|
|
height: calc(100% - 88rpx - var(--status-bar-height));
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
overflow-y: auto;
|
|
padding: 0 32rpx;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
.name-box{
|
|
width:100%;
|
|
border-radius: 16rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: #fff;
|
|
padding: 64rpx 32rpx;
|
|
box-sizing: border-box;
|
|
margin-top:24rpx;
|
|
.mid-view{
|
|
width:100%;
|
|
padding: 40rpx 32rpx;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border:2rpx solid #eaeaea;
|
|
border-radius: 16rpx;
|
|
margin-top:48rpx;
|
|
}
|
|
.top-view{
|
|
width:100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
.input-view{
|
|
border-radius: 20rpx;
|
|
margin-top:52rpx;
|
|
width:100%;
|
|
padding: 0 32rpx;
|
|
min-height:104rpx;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
background-color: #f5f5f5;
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
}
|
|
|
|
}
|
|
</style>
|