Blame view

pages/details/details.vue 4.63 KB
4dfe89e4   monkeyhouyi   初始化
1
2
  <template>
    <view>
c213ec83   monkeyhouyi   商铺详情,新增
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  	<view class="banner-img">
  		<u-image :showLoading="true" :src="tableData.displayMainImage" width="100%" height="100%"></u-image>
  	</view>
  	<view class="banner">
  		<view class="banner-item info">
  			<view class="info-title">
  				{{tableData.shopName}}{{tableData.venueNumber}},
  				{{tableData.detailedLocation}}
  				<!-- {{tableData.houseNumber}} -->
  				<!-- <span>|</span> -->
  			</view>
  			<view class="info-text">{{tableData.shopDescription}}</view>
  			<view class="info-racord">
  				<view class="info-price"><span>1000</span>元/月</view>
  				<view class="info-intention">2456人有意向</view>
  			</view>
4dfe89e4   monkeyhouyi   初始化
19
  		</view>
c213ec83   monkeyhouyi   商铺详情,新增
20
21
22
  		<view class="banner-item field">
  			<view class="banner-item-title">场地信息</view>
  			<view class="banner-item-form">
1b38b4ce   monkeyhouyi   商铺、广告-列表、详情
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
  				<u-row gutter="10">
  					<u-col span="6">
  						<view class="form-item">
  							<view class="label">场地类型:</view>
  							<text>{{tableData.architecturalForm}}</text>
  						</view>
  					</u-col>
  					<u-col span="6">
  						<view class="form-item">
  							<view class="label">实际使用面积:</view>
  							<text>{{tableData.actualUsableArea}}m²</text>
  						</view>
  					</u-col>
  					<u-col span="6">
  						<view class="form-item">
  							<view class="label">所属区域:</view>
  							<text>{{tableData.belongingRegion}}</text>
  						</view>
  					</u-col>
  					<u-col span="12">
  						<view class="form-item">
  							<view class="label">规划图纸:</view>
  							<view>
  								<u-image v-if="tableData.architecturalDrawings" :showLoading="true" :src="tableData.architecturalDrawings" width="calc(90vw - 140rpx)" height="300rpx"></u-image>
  								<text v-else>暂无</text>
  							</view>
  						</view>
  					</u-col>
  					<u-col span="12">
  						<view class="form-item">
  							<view class="label" style="width: 142rpx;">位置描述:</view>
  							<text style='flex: 1;'>{{tableData.detailedLocation}}</text>
  						</view>
  					</u-col>
  				</u-row>
c213ec83   monkeyhouyi   商铺详情,新增
58
  			</view>
4dfe89e4   monkeyhouyi   初始化
59
  		</view>
c213ec83   monkeyhouyi   商铺详情,新增
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
  		<view class="banner-item position">
  			<view class="banner-item-title">位置信息</view>
  			<view style="margin-top: 16rpx;">
  				<map style="width: 100%; height: 150rpx;">
  					<view class="position-info">
  						<u-image :showLoading="true" src="/static/images/location-icon.png" width="20rpx" height="20rpx"></u-image>
  						<text>{{tableData.shopName}}{{tableData.venueNumber}}</text>
  					</view>
  				</map>
  			</view>
  		</view>
  		<view class="banner-item other-business">
  			<view class="banner-item-title">周边商铺</view>
  			<view style="margin-top: 16rpx;">
  				<scroll-view class="scroll-view_H" scroll-x="true" scroll-left="120">
  					<view v-for="(item, index) in 10" :key="index" class="scroll-view-item_H">
  						<view class="business-card">
  							<u-image :showLoading="true" src="https://cdn.uviewui.com/uview/album/1.jpg" width="100%" height="210rpx"></u-image>
  							<view class="business-card-title">
  								这里是标题这里是标题这里是标题这里是标题这里是标题
  							</view>
  							<view class="business-card-item">租金:¥<span>1067</span>/月</view>
  							<view class="business-card-item">面积:<span>81</span>/m2</view>
  						</view>
  					</view>
  				</scroll-view>
  			</view>
  		</view>
  	</view>
4dfe89e4   monkeyhouyi   初始化
89
90
      <!-- 底部 -->
      <view class="page-footer">
c213ec83   monkeyhouyi   商铺详情,新增
91
92
93
94
95
  		<view class="footer-service">
  			<u-image :showLoading="true" src="/static/images/sevice-icon.png" width="30rpx" height="30rpx"></u-image>
  			<text>客服</text>
  		</view>
  		<view class="footer-btn">
abd11604   monkeyhouyi   物业缴费
96
97
  			<u-button type="primary" @click="leaseAdd('/pages/intentionApply/intentionApply')">意向申请</u-button>
  			<u-button type="success" style="margin-left: unset;" @click="leaseAdd('/pages/leaseAdd/leaseAdd')">租赁申请</u-button>
1b38b4ce   monkeyhouyi   商铺、广告-列表、详情
98
  			<!-- <u-button type="success" style="margin-left: unset;" @click="leaseAdd">广告申请</u-button> -->
c213ec83   monkeyhouyi   商铺详情,新增
99
100
101
102
103
  		</view>
  		<view class="footer-service">
  			<u-image :showLoading="true" src="/static/images/share-icon.png" width="30rpx" height="30rpx"></u-image>
  			<text>分享</text>
  		</view>
4dfe89e4   monkeyhouyi   初始化
104
105
106
107
108
109
110
111
112
      </view>
    </view>
  </template>
  
  <script>
  
  export default {
    data() {
      return {
c213ec83   monkeyhouyi   商铺详情,新增
113
114
115
116
117
118
119
120
121
122
  		tableData:{},
  		swiperList: [
  			{
  				id: 0,
  				type: 'image',
  				url: this.$imgUrl('/img/1.jpg')
  			}
  		],
  		latitude: 39.909,
  		longitude: 116.39742,
4dfe89e4   monkeyhouyi   初始化
123
124
125
      };
    },
    onLoad(option){
c213ec83   monkeyhouyi   商铺详情,新增
126
127
128
129
130
131
132
  	let data = JSON.parse(option.item)
  	this.swiperList[0].url =  data.displayMainImage || data.locationDiagram
  	this.tableData = data;
  	let location = JSON.parse(data.mapPunctuation)
  	this.latitude = location.latitude;
  	this.longitude = location.longitude;
  	console.log(this.swiperList, this.tableData);
4dfe89e4   monkeyhouyi   初始化
133
134
    },
    methods: {
abd11604   monkeyhouyi   物业缴费
135
  		leaseAdd(url){
4dfe89e4   monkeyhouyi   初始化
136
  			uni.navigateTo({
abd11604   monkeyhouyi   物业缴费
137
  				url
4dfe89e4   monkeyhouyi   初始化
138
139
140
141
142
143
144
145
146
  			})
  		}
    }
  };
  </script>
  
  <style scoped lang="scss">
  @import 'details.scss';
  </style>