no message
This commit is contained in:
@@ -279,6 +279,13 @@
|
|||||||
"navigationBarTextStyle": "black"
|
"navigationBarTextStyle": "black"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "shop/sort-shop",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom",
|
||||||
|
"navigationBarTextStyle": "black"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "shop/fen-shop",
|
"path": "shop/fen-shop",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
@@ -0,0 +1,116 @@
|
|||||||
|
<template>
|
||||||
|
<view class="content">
|
||||||
|
<TopSafe></TopSafe>
|
||||||
|
<Header :title="name" >
|
||||||
|
<!-- #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">
|
||||||
|
<view class="name-box">
|
||||||
|
<PingItem @ok="onJumpShop" style="margin-top:24rpx" :obj="item" v-for="(item,index) in dataList" :key="index"></PingItem>
|
||||||
|
</view>
|
||||||
|
</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 { searchList } from '@/api/product.js';
|
||||||
|
import { getCascadeCategory } from '@/api/common.js';
|
||||||
|
|
||||||
|
import PingItem from "@/components/shop/ping-item.vue";
|
||||||
|
import func from '@/utils/func.js';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { Header, TopSafe,MyBtn,PingItem },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
dataList:[
|
||||||
|
],
|
||||||
|
name:null,
|
||||||
|
id:0
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
},
|
||||||
|
onLoad(option) {
|
||||||
|
if(option && option.id){
|
||||||
|
this.id = Number(option.id);
|
||||||
|
this.name = option.name;
|
||||||
|
this.init();
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init() {
|
||||||
|
this.getSearchList();
|
||||||
|
},
|
||||||
|
async getSearchList(){
|
||||||
|
const params = {
|
||||||
|
page: 1,
|
||||||
|
pageSize: 10000,
|
||||||
|
categoryId:this.id
|
||||||
|
}
|
||||||
|
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;
|
||||||
|
height: 100%;
|
||||||
|
overflow-y: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-content: flex-start;
|
||||||
|
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
import Header from '@/components/common/header.vue';
|
import Header from '@/components/common/header.vue';
|
||||||
import TopSafe from '@/components/common/top-safe.nvue'
|
import TopSafe from '@/components/common/top-safe.nvue'
|
||||||
import MyBtn from '@/components/common/my-btn.vue'
|
import MyBtn from '@/components/common/my-btn.vue'
|
||||||
import YouItem from '@/components/shop/you-item.vue'
|
import YouItem from '@/components/shop/fen-item.vue'
|
||||||
import { searchList } from '@/api/product.js';
|
import { searchList } from '@/api/product.js';
|
||||||
import func from '@/utils/func.js';
|
import func from '@/utils/func.js';
|
||||||
|
|
||||||
|
|||||||
+5
-1
@@ -140,8 +140,12 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
jumpInfo(item) {
|
jumpInfo(item) {
|
||||||
|
console.log(item,'item');
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: `/pages/other_package/productInfo/productInfo?id=${item.id}`,
|
||||||
|
// })
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/other_package/productInfo/productInfo?id=${item.id}`,
|
url:`/pages/rwa_package/shop/sort-shop?id=${item.id}&name=${item.name}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 查询分类
|
// 查询分类
|
||||||
|
|||||||
Reference in New Issue
Block a user