将产品信息、操作说明、操作视频封装成组件
This commit is contained in:
@ -144,23 +144,7 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="proinfo lamp">
|
||||
<text class="title">产品信息</text>
|
||||
<view class="itemcontent">
|
||||
<view class="item" @click="proParam()">
|
||||
<image class="img" src="/static/images/6155/DeviceDetail/param.png" mode="aspectFit"></image>
|
||||
<text class="txt">产品参数</text>
|
||||
</view>
|
||||
<view class="item" @click="handRemark()">
|
||||
<image class="img" src="/static/images/6155/DeviceDetail/remark.png" mode="aspectFit"></image>
|
||||
<text class="txt">操作说明</text>
|
||||
</view>
|
||||
<view class="item" @click="handVideo()">
|
||||
<image class="img" src="/static/images/6155/DeviceDetail/video.png" mode="aspectFit"></image>
|
||||
<text class="txt">操作视频</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<ProParams :id="device.id"></ProParams>
|
||||
|
||||
|
||||
|
||||
@ -716,31 +700,7 @@
|
||||
}
|
||||
},
|
||||
|
||||
proParam: function() {
|
||||
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/productDes/index?id=' + this.device.id,
|
||||
success(ev) {
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
handRemark: function() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/operatingInstruct/index?id=' + this.device.id,
|
||||
success(ev) {
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
handVideo: function() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/operationVideo/index?id=' + this.device.id,
|
||||
success(ev) {
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
showBleUnConnect() {
|
||||
this.showPop({
|
||||
message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备",
|
||||
@ -2226,47 +2186,7 @@ console.log("1111111111")
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.proinfo .itemcontent {
|
||||
display: flex;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
align-content: center;
|
||||
justify-content: space-evenly;
|
||||
}
|
||||
|
||||
.proinfo .item {
|
||||
width: 180rpx;
|
||||
height: 180rpx;
|
||||
box-sizing: border-box;
|
||||
padding: 40rpx;
|
||||
border-radius: 16rpx;
|
||||
background: rgba(26, 26, 26, 1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.proinfo .item .img {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.proinfo .item .txt {
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
font-family: "PingFang SC";
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
margin-top: 20rpx;
|
||||
letter-spacing: 0.07px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.slider-container {
|
||||
padding: 0px;
|
||||
|
||||
@ -145,23 +145,7 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="proinfo lamp">
|
||||
<text class="title">产品信息</text>
|
||||
<view class="itemcontent">
|
||||
<view class="item" @click="proParam()">
|
||||
<image class="img" src="/static/images/6155/DeviceDetail/param.png" mode="aspectFit"></image>
|
||||
<text class="txt">产品参数</text>
|
||||
</view>
|
||||
<view class="item" @click="handRemark()">
|
||||
<image class="img" src="/static/images/6155/DeviceDetail/remark.png" mode="aspectFit"></image>
|
||||
<text class="txt">操作说明</text>
|
||||
</view>
|
||||
<view class="item" @click="handVideo()">
|
||||
<image class="img" src="/static/images/6155/DeviceDetail/video.png" mode="aspectFit"></image>
|
||||
<text class="txt">操作视频</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<ProParams :id="device.id"></ProParams>
|
||||
|
||||
|
||||
|
||||
@ -696,31 +680,7 @@
|
||||
}
|
||||
},
|
||||
|
||||
proParam: function() {
|
||||
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/productDes/index?id=' + this.device.id,
|
||||
success(ev) {
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
handRemark: function() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/operatingInstruct/index?id=' + this.device.id,
|
||||
success(ev) {
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
handVideo: function() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/operationVideo/index?id=' + this.device.id,
|
||||
success(ev) {
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
showBleUnConnect() {
|
||||
this.showPop({
|
||||
message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备",
|
||||
@ -2204,46 +2164,7 @@
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.proinfo .itemcontent {
|
||||
display: flex;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
align-content: center;
|
||||
justify-content: space-evenly;
|
||||
}
|
||||
|
||||
.proinfo .item {
|
||||
width: 180rpx;
|
||||
height: 180rpx;
|
||||
box-sizing: border-box;
|
||||
padding: 40rpx;
|
||||
border-radius: 16rpx;
|
||||
background: rgba(26, 26, 26, 1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.proinfo .item .img {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.proinfo .item .txt {
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
font-family: "PingFang SC";
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
margin-top: 20rpx;
|
||||
letter-spacing: 0.07px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.slider-container {
|
||||
|
||||
Reference in New Issue
Block a user