12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <template>
- <view class="content">
- <view class="uni-margin-wrap">
- <swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="3000"
- :duration="duration">
- <swiper-item v-for="(item,index) in info.imgList">
- <view class="swiper-item">
- <image :src="item.imgPath" mode="aspectFit" class="swiper-itemImg"></image>
- </view>
- </swiper-item>
-
- </swiper>
- </view>
- <view style="height: 30rpx;background: #F4F5F7;"></view>
- <view class="detail">
- <view class="datailTitle">商品详情</view>
- <view v-html="info.ozContent"></view>
- </view>
-
- </view>
- </template>
- <script>
- export default {
- components: {
-
- },
- data() {
- return {
- id:'',
- info:'',
- }
- },
- onLoad(opt) {
- this.id=opt.id;
- this.queryPartDetail()
- },
- methods: {
- queryPartDetail(){
- uni.showLoading({ title: '加载中'});
- this.$http('partsByOpen/queryPartDetail', {
- id:this.id,
-
-
- },'POST').then(res => {
- uni.hideLoading();
- this.info=res.data
- })
- }
- }
- }
- </script>
- <style scoped>
- .swiper-itemImg{
- width: 750rpx;
- height: 750rpx;
- }
- .uni-margin-wrap{
- height: 750rpx;
- }
- .swiper{
- height: 750rpx;
- }
- .datailTitle{
- font-weight: 500;
- color: #1A1A1A;
- line-height: 40rpx;
- padding: 32rpx 24rpx;
- font-size: 28rpx;
- }
- </style>
|