Commit 77364ced authored by Zheng Shang Jun's avatar Zheng Shang Jun

修改样式bug3

parent 5f571ba7
......@@ -2,6 +2,10 @@
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
"version": "0.0",
"configurations": [{
"app-plus" :
{
"launchtype" : "local"
},
"default" :
{
"launchtype" : "local"
......
......@@ -518,5 +518,15 @@
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
"condition" : { //模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项)
"list": [
{
"name": "", //模式名称
"path": "", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
}
]
}
}
......@@ -28,7 +28,7 @@
<image
v-for="(item, index) in dailyNewStyleList"
:key="index"
:src="`${imgUrl}${item.originalImageCode}`"
:src="`${imgUrl}${item.effectPictureCode}`"
mode="aspectFit"
></image>
</view>
......@@ -74,7 +74,7 @@ export default {
return {
fabricObj: "",
dailyNewStyleList: [], //每日上新的数据
hotStylePage: [{ id: 1 }], //款式的数据
hotStylePage: [], //款式的数据
imgUrl: this.$IMG_URL, // 图片前面的url
background: {
backgroundColor: "rgba(245,245,245,0)",
......
......@@ -120,11 +120,11 @@ export default {
// 底部占位符
.mask-template1 {
width: 100%;
height: 100rpx;
height: 150rpx;
}
.mask-template2 {
width: 100%;
height: 200rpx;
height: 250rpx;
}
.collect {
height: 100%;
......
......@@ -185,7 +185,7 @@ export default {
let idItem = this.selected.map((el) => {
return el.id;
});
this.unCollectionFn(...idItem);
this.unCollectionFn(idItem);
},
// 外部全选按钮
outsideChecked() {
......@@ -207,8 +207,8 @@ export default {
});
},
//取消款式接口
unCollectionFn(item) {
let param = [item];
unCollectionFn(param) {
// let param = [item];
this.$http("mobileBrand.cancelCollect", param).then((res) => {
if (res.code == 200) {
this.$emit("update");
......@@ -219,7 +219,7 @@ export default {
browerClick(item) {
if (item.isFavorite == true) {
this.$u.toast(`已取消收藏`);
this.unCollectionFn(item.id);
this.unCollectionFn([item.id]);
} else {
this.$u.toast(`已收藏款式`);
this.collectionFn(item.id);
......@@ -228,7 +228,7 @@ export default {
//滑动删除的东西
sliderClick(indexs, item) {
let itemId = item[indexs].id;
this.unCollectionFn(itemId);
this.unCollectionFn([itemId]);
},
// 如果打开一个的时候,不需要关闭其他,则无需实现本方法
// 没做目前没用
......
......@@ -3,7 +3,7 @@
<view class="hots" v-for="(item, index) in recordsList" :key="index">
<image
class="indexhot"
:src="`${imgUrl}${item.originalImageCode}`"
:src="`${imgUrl}${item.effectPictureCode}`"
@click="tabdetail(item)"
mode="aspectFill"
></image>
......@@ -13,8 +13,8 @@
<view class="hotText2">
<image
class="iconhot"
:src="`${imgUrl}${item.originalImageCode}`"
mode="aspectFill"
:src="`${imgUrl}${item.effectPictureCode}`"
mode=""
></image>
<text class="wen">{{ item.materialName }}</text>
<image
......@@ -67,6 +67,7 @@ export default {
},
// 跳转到详情
tabdetail(item) {
console.log(1);
this.$Router.push("/pages/brands/detail?id=" + item.id);
},
//收藏款式接口
......@@ -101,6 +102,7 @@ export default {
width: 330rpx;
margin-bottom: 20rpx;
// margin-right: 16rpx;
border: 2rpx solid #e3e1e0;
.indexhot {
display: block;
......@@ -112,7 +114,7 @@ export default {
.hotborder {
height: 144rpx;
// width: 193rpx;
border: 2rpx solid #e3e1e0;
// border: 2rpx solid #e3e1e0;
// border-top: 0rpx !important;
border-radius: 0 0 10rpx 10rpx;
}
......@@ -122,7 +124,8 @@ export default {
font-family: PingFangSC, PingFangSC-Regular;
font-weight: 400;
color: rgba(0, 0, 0, 0.8);
margin: 24rpx 28rpx 0 20rpx;
margin: 24rpx 0rpx 0 0rpx;
padding: 0 28rpx 0rpx 28rpx;
width: 100%;
overflow: hidden;
......
......@@ -10,7 +10,7 @@
<view>
<u-image
height="750rpx"
:src="`${imgUrl}${tabledata.originalImageCode}`"
:src="`${imgUrl}${tabledata.effectPictureCode}`"
></u-image>
</view>
<view class="u-p-r-30 u-p-l-30">
......@@ -93,13 +93,13 @@ export default {
smapTelePhone: "", //联系人电话
};
},
watch: {
id: {
handler() {
this.detail();
},
},
},
// watch: {
// id: {
// handler() {
// this.detail();
// },
// },
// },
created() {
this.detail();
......
This diff is collapsed.
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