Commit b6cea67a authored by Zheng Shang Jun's avatar Zheng Shang Jun
parents bfe339b7 862bfe50
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="back" :style="topHeight==0?'':{'padding-top':resultpx}"> <view class="back" :style="topHeight==0?'':{'padding-top':resultpx}">
<!-- <view class="back"> --> <!-- <view class="back"> -->
<view class="u-flex"> <view class="u-flex">
<u-navbar :is-back="true" :background="{ backgroundColor: '#F5F5F5' }" title="面料详情"> <u-navbar :is-back="true" :custom-back="backPush" :background="{ backgroundColor: '#F5F5F5' }" title="面料详情">
<template v-slot:right> <template v-slot:right>
<view class="nav-nav" @click="edit()">编辑</view> <view class="nav-nav" @click="edit()">编辑</view>
</template> </template>
...@@ -177,6 +177,14 @@ ...@@ -177,6 +177,14 @@
id: this.id id: this.id
} }
}) })
},
backPush(){
this.$Router.push({
path: "/pages/home/fabricList",
// query: {
// id: this.id
// }
})
} }
} }
} }
......
...@@ -76,14 +76,25 @@ ...@@ -76,14 +76,25 @@
data data
} = res; } = res;
if (code === 200) { if (code === 200) {
this.$router.push({ uni.showToast({
path: "/pages/home/detail", title: '操作成功',
query: { // icon: 'none'
id: this.id // duration: 2000
} });
}) setTimeout(() => {
this.$Router.push({
path: "/pages/home/detail",
query: {
id: this.id
}
})
}, 1000)
} else { } else {
uni.showToast({
title: '操作失败',
icon: 'none'
// duration: 2000
});
} }
}); });
} }
......
<template> <template>
<view class=""> <view class="">
<u-navbar :is-back="true" :background="{ backgroundColor: '#F5F5F5' }" title="我的面料"></u-navbar> <u-navbar :is-back="true" :custom-back="backPush" :background="{ backgroundColor: '#F5F5F5' }" title="我的面料"></u-navbar>
<view class="content background_fff u-p-30"> <view class="content background_fff u-p-30">
<!-- 正文内容 --> <!-- 正文内容 -->
<u-sticky offset-top="15"> <u-sticky offset-top="15">
...@@ -47,6 +47,7 @@ export default { ...@@ -47,6 +47,7 @@ export default {
}, },
// 上拉加载更多 // 上拉加载更多
onReachBottom() { onReachBottom() {
// console,log("jiazai")
if (this.total > this.fiabricList.length) { if (this.total > this.fiabricList.length) {
this.size = this.size + 5; this.size = this.size + 5;
this.materialList(); this.materialList();
...@@ -83,7 +84,15 @@ export default { ...@@ -83,7 +84,15 @@ export default {
this.total = data.page.total; this.total = data.page.total;
} }
}); });
} },
backPush(){
this.$Router.push({
path: "/pages/home/index",
// query: {
// id: this.id
// }
})
}
} }
}; };
</script> </script>
......
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