|
@@ -4,44 +4,42 @@ |
|
@@ -4,44 +4,42 @@ |
4
|
</div>
|
4
|
</div>
|
5
|
<div v-else>
|
5
|
<div v-else>
|
6
|
<LayoutApp title="选择地址" :show-back="true" :back-action="goBack">
|
6
|
<LayoutApp title="选择地址" :show-back="true" :back-action="goBack">
|
7
|
- <CubeScroll class="main-container" ref="scroll" :options="scrollOpts">
|
|
|
8
|
- <div class="user-list">
|
|
|
9
|
- <div
|
|
|
10
|
- v-for="(item, index) in addressList"
|
|
|
11
|
- :key="index"
|
|
|
12
|
- class="item"
|
|
|
13
|
- @click="toOrderPage(item)"
|
|
|
14
|
- >
|
|
|
15
|
- <slot name="item" :data="item">
|
|
|
16
|
- <div class="user-item">
|
7
|
+ <div class="user-list">
|
|
|
8
|
+ <div
|
|
|
9
|
+ v-for="(item, index) in addressList"
|
|
|
10
|
+ :key="index"
|
|
|
11
|
+ class="item"
|
|
|
12
|
+ @click="toOrderPage(item)"
|
|
|
13
|
+ >
|
|
|
14
|
+ <slot name="item" :data="item">
|
|
|
15
|
+ <div class="user-item">
|
|
|
16
|
+ <div
|
|
|
17
|
+ :class="{
|
|
|
18
|
+ 'uncheck-item': item.address_id !== selectedAddressId,
|
|
|
19
|
+ 'check-item': item.address_id === selectedAddressId
|
|
|
20
|
+ }"
|
|
|
21
|
+ ></div>
|
|
|
22
|
+ <div class="user-info">
|
|
|
23
|
+ <div class="extra">
|
|
|
24
|
+ <p class="name">{{ item.consignee }}</p>
|
|
|
25
|
+ <p class="mobile">{{ item.mobile }}</p>
|
|
|
26
|
+ <div v-if="item.is_default === 'Y'" class="tag-btn">默认</div>
|
|
|
27
|
+ <div v-if="item.tag_code && item.tag" class="tag-btn">{{ item.tag }}</div>
|
17
|
<div
|
28
|
<div
|
18
|
- :class="{
|
|
|
19
|
- 'uncheck-item': item.address_id !== selectedAddressId,
|
|
|
20
|
- 'check-item': item.address_id === selectedAddressId
|
|
|
21
|
- }"
|
|
|
22
|
- ></div>
|
|
|
23
|
- <div class="user-info">
|
|
|
24
|
- <div class="extra">
|
|
|
25
|
- <p class="name">{{ item.consignee }}</p>
|
|
|
26
|
- <p class="mobile">{{ item.mobile }}</p>
|
|
|
27
|
- <div v-if="item.is_default === 'Y'" class="tag-btn">默认</div>
|
|
|
28
|
- <div v-if="item.tag_code && item.tag" class="tag-btn">{{ item.tag }}</div>
|
|
|
29
|
- <div
|
|
|
30
|
- class="option-btn"
|
|
|
31
|
- :data-item="JSON.stringify(item)"
|
|
|
32
|
- :data-add="0"
|
|
|
33
|
- @click="toEditorPage"
|
|
|
34
|
- >编辑</div>
|
|
|
35
|
- </div>
|
|
|
36
|
- <p class="address">{{ item.area }}{{ item.address }}</p>
|
|
|
37
|
- </div>
|
29
|
+ class="option-btn"
|
|
|
30
|
+ :data-item="JSON.stringify(item)"
|
|
|
31
|
+ :data-add="0"
|
|
|
32
|
+ @click="toEditorPage"
|
|
|
33
|
+ >编辑</div>
|
38
|
</div>
|
34
|
</div>
|
39
|
- </slot>
|
|
|
40
|
- <div class="border-line"></div>
|
35
|
+ <p class="address">{{ item.area }}{{ item.address }}</p>
|
|
|
36
|
+ </div>
|
41
|
</div>
|
37
|
</div>
|
42
|
- </div>
|
|
|
43
|
- <div class="add-btn" :data-add="1" @click="toEditorPage">新增地址</div>
|
|
|
44
|
- </CubeScroll>
|
38
|
+ </slot>
|
|
|
39
|
+ <div class="border-line"></div>
|
|
|
40
|
+ </div>
|
|
|
41
|
+ </div>
|
|
|
42
|
+ <div class="add-btn" :data-add="1" @click="toEditorPage">新增地址</div>
|
45
|
</LayoutApp>
|
43
|
</LayoutApp>
|
46
|
</div>
|
44
|
</div>
|
47
|
</template>
|
45
|
</template>
|
|
@@ -156,19 +154,6 @@ export default { |
|
@@ -156,19 +154,6 @@ export default { |
156
|
</script>
|
154
|
</script>
|
157
|
|
155
|
|
158
|
<style lang="scss" scoped>
|
156
|
<style lang="scss" scoped>
|
159
|
-/deep/ {
|
|
|
160
|
- .cube-scroll-content {
|
|
|
161
|
- min-height: 100%;
|
|
|
162
|
- }
|
|
|
163
|
-
|
|
|
164
|
- .cube-scroll-list-wrapper {
|
|
|
165
|
- overflow: auto;
|
|
|
166
|
- }
|
|
|
167
|
-
|
|
|
168
|
- .cube-loading-spinners {
|
|
|
169
|
- margin: auto;
|
|
|
170
|
- }
|
|
|
171
|
-}
|
|
|
172
|
|
157
|
|
173
|
.father-img {
|
158
|
.father-img {
|
174
|
position: absolute;
|
159
|
position: absolute;
|
|
@@ -186,6 +171,7 @@ export default { |
|
@@ -186,6 +171,7 @@ export default { |
186
|
}
|
171
|
}
|
187
|
|
172
|
|
188
|
.user-list {
|
173
|
.user-list {
|
|
|
174
|
+ display: block;
|
189
|
background-color: white;
|
175
|
background-color: white;
|
190
|
|
176
|
|
191
|
.border-line {
|
177
|
.border-line {
|
|
@@ -255,14 +241,14 @@ export default { |
|
@@ -255,14 +241,14 @@ export default { |
255
|
|
241
|
|
256
|
.option-btn {
|
242
|
.option-btn {
|
257
|
display: block;
|
243
|
display: block;
|
258
|
- width: 65px;
|
|
|
259
|
- line-height: 44px;
|
244
|
+ width: 80px;
|
|
|
245
|
+ line-height: 50px;
|
260
|
letter-spacing: -0.29px;
|
246
|
letter-spacing: -0.29px;
|
261
|
color: black;
|
247
|
color: black;
|
262
|
font-size: 24px;
|
248
|
font-size: 24px;
|
263
|
position: absolute;
|
249
|
position: absolute;
|
264
|
- right: 40px;
|
|
|
265
|
- text-align: right;
|
250
|
+ right: 30px;
|
|
|
251
|
+ text-align: center;
|
266
|
}
|
252
|
}
|
267
|
}
|
253
|
}
|
268
|
|
254
|
|