Blame view

src/pages/detailStandard/detailStandard_sun.vue 37.9 KB
7d9acd27a   尹聃   选购页
1
  <template>
56465b994   尹聃   合并选购页
2
3
  <view>
      <view class="container" v-if="type===2">
7d9acd27a   尹聃   选购页
4
          <view class="detail">
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
5
              <view class="detail1"><image v-bind:src="details.data.img_index_url"></image></view>
7d9acd27a   尹聃   选购页
6
              <view class="detail2">
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
7
8
9
10
11
12
13
14
15
16
                  <view class="detail2_name">{{details.data.p_name}}</view>
                  <view class="detail2_tui"><text>支持7天无条件退货</text><text>顺丰发货</text></view>
                  <view class="detail2_price">
                      <text>¥{{details.data.p_sale_price*count}}</text>
                      <view class="counter">
                              <view class="btn" disabled="this.disabled" @click="counter(false)">-</view>
                              <text>{{count}}</text>
                              <view class="btn" @click="counter(true)">+</view>
                      </view>                    
                  </view>
7d9acd27a   尹聃   选购页
17
18
19
20
              </view>
          </view>
          <view class="choose">
              <view class="colour">
0c6c0f3c4   尹聃   选购页折叠
21
22
23
24
                  <view class="colour1" @click="xialachange(0)">
                      <text>框架颜色</text>
                      <image v-bind:src="isNone[0].img"></image>
                  </view>
29f4d5fe5   尹聃   选购页传递参数
25
                  <view class="colour_exp">*{{navData.colour}}</view>
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
26
                  <view>
0c6c0f3c4   尹聃   选购页折叠
27
                  <view class="colour2" v-bind:class="{'colour2_none' : isNone[0].state}">
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
28
29
30
31
32
33
34
35
36
37
                      <view 
                      v-for="(items,index) in details.data.skuList" 
                      :key="index" 
                      @click="viewChoose(index)"
                      class="colour2_view"
                      v-bind:class="{'colour2_viewed': chooseNum == index}"
                      >
                          <image v-bind:src="items.pic" @click="colourChange(index,items.sku_name)"></image>    
                      </view>
                  </view>
7d9acd27a   尹聃   选购页
38
39
40
41
                  </view>
                  <hr/>
              </view>
              <view class="colour">
0c6c0f3c4   尹聃   选购页折叠
42
43
44
45
                  <view class="colour1"  @click="xialachange(1)">
                      <text>镜片颜色</text>
                      <image v-bind:src="isNone[1].img"></image>
                  </view>
7d9acd27a   尹聃   选购页
46
                  <view class="colour_exp">*BL192345 粉紫色【限时打折】</view>
0c6c0f3c4   尹聃   选购页折叠
47
                  <view  v-bind:class="{'colour2_none' : isNone[1].state}">
7d9acd27a   尹聃   选购页
48
                  <view class="jp_colour2">
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
49
50
51
52
53
54
55
56
                      <view 
                      v-for="(items,index) in jp_colour" 
                      :key="index" 
                      class="jp_colour2_view"
                      >
                          <image v-bind:src="items.img"></image>    
                      </view>
                  </view>
7d9acd27a   尹聃   选购页
57
58
59
                  </view>
                  <hr/>
              </view>
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
60
              <view class="colour">
0c6c0f3c4   尹聃   选购页折叠
61
                  <view class="colour1"  @click="xialachange(2)">
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
62
63
                      <text>{{details.data.attrList[0].meta_name}}</text>
                      <text class="colour_exp colour1_span2">注:折射率越高,镜片越薄</text>
0c6c0f3c4   尹聃   选购页折叠
64
                      <image  v-bind:src="isNone[2].img"></image>
7d9acd27a   尹聃   选购页
65
                  </view>
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
66
                  <view>
0c6c0f3c4   尹聃   选购页折叠
67
68
                  <view  class="colour_exp">*{{navData.split}}</view>
                  <view class="split" v-bind:class="{'colour2_none' : isNone[2].state}">
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
69
70
71
72
73
74
                      <view 
                      v-for="(items,index) in details.data.attrList[0].attr" 
                      :key="index" 
                      >
                      <view 
                      class="split_colour2"
29f4d5fe5   尹聃   选购页传递参数
75
                      @click="splitChoose(index,items.name)"
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
76
77
78
                      v-bind:class="{'split_colour2 split_colour2_actived' : isSplit == index}"
                      >{{items.name}}</view>
                      </view>
7d9acd27a   尹聃   选购页
79
                  </view>
7d9acd27a   尹聃   选购页
80
81
82
83
                  </view>
                  <hr/>
              </view>
              <view class="size">
0c6c0f3c4   尹聃   选购页折叠
84
                  <view class="size1" @click="xialachange(3)">
7d9acd27a   尹聃   选购页
85
                      <view class="size1_1">框架尺寸</view>
0c6c0f3c4   尹聃   选购页折叠
86
                      <view><image  v-bind:src="isNone[3].img"></image></view>
7d9acd27a   尹聃   选购页
87
                  </view>
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
88
                  <view class="colour"> 
29f4d5fe5   尹聃   选购页传递参数
89
                      <view class="colour_exp">*{{navData.colour}}</view>
7d9acd27a   尹聃   选购页
90
                  </view>
0c6c0f3c4   尹聃   选购页折叠
91
                  <view class="D3_list"  v-bind:class="{'colour2_none' : isNone[3].state}">
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
                      <view>
                          <view><image class="D3_image"  v-bind:src ="parameter[0].img"></image></view>
                          <view class="D3_list_jDu">
                              <view class="D3_list1">
                                  <c-progress class="c-progress"  :inner_widthProp="300"/>
                                  <text>{{details.data.frame_width}}mm</text>
                             </view>
                              <view>{{parameter[0].standard}}</view>
                          </view> 
                      </view>
                      <view>
                          <view><image class="D3_image"  v-bind:src ="parameter[1].img"></image></view>
                          <view class="D3_list_jDu">
                              <view class="D3_list1">
                                  <c-progress class="c-progress"  :inner_widthProp="190"/>
                                  <view>{{details.data.glass_width}}mm</view>
                              </view>
                              <view>{{parameter[1].standard}}</view>
                          </view> 
                      </view>
                      <view>
                          <view><image class="D3_image"  v-bind:src ="parameter[2].img"></image></view>
7d9acd27a   尹聃   选购页
114
                          <view class="D3_list_jDu">
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
                              <view class="D3_list1">
                              <c-progress class="c-progress"  :inner_widthProp="210"/>
                              <view>{{details.data.glass_height}}mm</view>
                              </view>
                              <view>{{parameter[2].standard}}</view>
                          </view> 
                      </view>
                      <view>
                          <view><image class="D3_image"  v-bind:src ="parameter[3].img"></image></view>
                          <view class="D3_list_jDu">
                              
                              <view class="D3_list1">
                                  <c-progress class="c-progress"  :inner_widthProp="160"/>
                                  <view>{{details.data.nose_width}}mm</view>
                              </view>
                              <view>{{parameter[3].standard}}</view>
                          </view> 
                      </view>
                      <view>
                          <view><image class="D3_image"  v-bind:src ="parameter[4].img"></image></view>
                          <view class="D3_list_jDu">
                              <view class="D3_list1">
                                  <c-progress class="c-progress"  :inner_widthProp="260"/>
                                  <view>{{details.data.leg_long}}mm</view>
                              </view>
                             <view>{{parameter[4].standard}}</view>
7d9acd27a   尹聃   选购页
141
142
                          </view> 
                      </view>
7d9acd27a   尹聃   选购页
143
                  </view>
0c6c0f3c4   尹聃   选购页折叠
144
                  <hr/>
7d9acd27a   尹聃   选购页
145
146
              </view>
              <view class="part">
0c6c0f3c4   尹聃   选购页折叠
147
                  <view class="size1" @click="xialachange(4)">
7d9acd27a   尹聃   选购页
148
                      <view class="size1_1">配件</view>
0c6c0f3c4   尹聃   选购页折叠
149
                      <view><span>+¥0.00</span><image v-bind:src="isNone[4].img"></image></view>
7d9acd27a   尹聃   选购页
150
151
                  </view>
                  <view class="colour_exp">*0290</view>
0c6c0f3c4   尹聃   选购页折叠
152
                  <view class="part_som"  v-bind:class="{'colour2_none' : isNone[4].state}">
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
153
154
155
156
157
158
159
                      <view 
                      v-for="(part) in part" 
                      :key="part.key"
                      v-bind:class="{'size_viewed': part.is_actived}"
                      >
                      <image v-bind:src="part.img"></image>
                  </view>
7d9acd27a   尹聃   选购页
160
161
162
163
164
165
166
167
                  </view>
              </view>
          </view>
          <view class="buy">
              <view class="buy1">选了镜框,想选镜片?</view>
              <view class="buy2">系统已为你保存好已选镜框,放心去选镜片吧!</view>
              <view class="buy3">
                  <view class="buy3_1">暂时不选</view>
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
168
                  <view class="buy3_2" @click="popArgs">立即去选</view>
7d9acd27a   尹聃   选购页
169
170
              </view>
          </view>
29f4d5fe5   尹聃   选购页传递参数
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
  					<template >
      					<view class="goods-form">
  						    <text class="p1">填写验光数据</text>
  						    <text class="p2">没有验光数据?请到线下眼镜店验光哦~</text>
  						    <view class="picker" >
  						        <view class="picker-choice">
  						                    <view class="choice-left">
  						                        <text class="p11">{{pickerInfoList[0].nameC}}</text>
  						                        <text class="p12">{{pickerInfoList[0].nameE}}</text>
  						                    </view>
  						                    <text class="p13">左&nbsp;&nbsp;&nbsp;(OD)</text>
  						                    <text class="p14">{{pickerInfoList[0].nameArray1[pickerInfoList[0].nameIndex1]}}</text>
  						                    <picker @change="bindPickerChange01" :value="pickerInfoList[0].nameIndex1" :range="pickerInfoList[0].nameArray1">
  						                        <image src="../../static/detail-tabicon.png" ></image>
  						                    </picker>
  						                    <text class="p13">右&nbsp;&nbsp;&nbsp;(OS)</text>
  						                    <text class="p14">{{pickerInfoList[0].nameArray2[pickerInfoList[0].nameIndex2]}}</text>
  						                    <picker @change="bindPickerChange02" :value="pickerInfoList[0].nameIndex2" :range="pickerInfoList[0].nameArray2">
  						                        <image src="../../static/detail-tabicon.png" ></image>
  						                    </picker>
  						        </view>
  						    </view>
  						    <view class="picker" >
  						        <view class="picker-choice">
  						                    <view class="choice-left">
  						                        <text class="p11">{{pickerInfoList[1].nameC}}</text>
  						                        <text class="p12">{{pickerInfoList[1].nameE}}</text>
  						                    </view>
  						                    <text class="p13">左&nbsp;&nbsp;&nbsp;(OD)</text>
  						                    <text class="p14">{{pickerInfoList[1].nameArray1[pickerInfoList[1].nameIndex1]}}</text>
  						                    <picker @change="bindPickerChange11" :value="pickerInfoList[1].nameIndex1" :range="pickerInfoList[1].nameArray1">
  						                        <image src="../../static/detail-tabicon.png" ></image>
  						                    </picker>
  						                    <text class="p13">右&nbsp;&nbsp;&nbsp;(OS)</text>
  						                    <text class="p14">{{pickerInfoList[1].nameArray2[pickerInfoList[1].nameIndex2]}}</text>
  						                    <picker @change="bindPickerChange12" :value="pickerInfoList[1].nameIndex2" :range="pickerInfoList[1].nameArray2">
  						                        <image src="../../static/detail-tabicon.png" ></image>
  						                    </picker>
  						        </view>
  						    </view>
  						    <view class="picker" >
  						        <view class="picker-choice">
  						                    <view class="choice-left">
  						                        <text class="p11">{{pickerInfoList[2].nameC}}</text>
  						                        <text class="p12">{{pickerInfoList[2].nameE}}</text>
  						                    </view>
  						                    <text class="p13">左&nbsp;&nbsp;&nbsp;(OD)</text>
  						                    <text class="p14">{{pickerInfoList[2].nameArray1[pickerInfoList[2].nameIndex1]}}</text>
  						                    <picker @change="bindPickerChange21" :value="pickerInfoList[2].nameIndex1" :range="pickerInfoList[2].nameArray1">
  						                        <image src="../../static/detail-tabicon.png" ></image>
  						                    </picker>
  						                    <text class="p13">右&nbsp;&nbsp;&nbsp;(OS)</text>
  						                    <text class="p14">{{pickerInfoList[2].nameArray2[pickerInfoList[2].nameIndex2]}}</text>
  						                    <picker @change="bindPickerChange22" :value="pickerInfoList[2].nameIndex2" :range="pickerInfoList[2].nameArray2">
  						                        <image src="../../static/detail-tabicon.png" ></image>
  						                    </picker>
  						        </view>
  						    </view>
  						    <view class="picker" >
  						        <view class="picker-choice">
  						                    <view class="choice-left">
  						                        <text class="p11">{{pickerInfoList[3].nameC}}</text>
  						                        <text class="p12">{{pickerInfoList[3].nameE}}</text>
  						                    </view>
  						                    <text class="p13">左&nbsp;&nbsp;&nbsp;(OD)</text>
  						                    <text class="p14">{{pickerInfoList[3].nameArray1[pickerInfoList[3].nameIndex1]}}</text>
  						                    <picker @change="bindPickerChange31" :value="pickerInfoList[3].nameIndex1" :range="pickerInfoList[3].nameArray1">
  						                        <image src="../../static/detail-tabicon.png" ></image>
  						                    </picker>
  						                    <text class="p13">右&nbsp;&nbsp;&nbsp;(OS)</text>
  						                    <text class="p14">{{pickerInfoList[3].nameArray2[pickerInfoList[3].nameIndex2]}}</text>
  						                    <picker @change="bindPickerChange32" :value="pickerInfoList[3].nameIndex2" :range="pickerInfoList[3].nameArray2">
  						                        <image src="../../static/detail-tabicon.png" ></image>
  						                    </picker>
  						        </view>
  						    </view>
  						    <view class="picker" >
  						        <view class="picker-choice">
  						                    <view class="choice-left">
  						                        <text class="p11">{{pickerInfoList[4].nameC}}</text>
  						                    </view>
  						                    <text class="p13-date">年&nbsp;&nbsp;&nbsp;(Y)</text>
  						                    <text class="p14" style="width: 34px;">{{pickerInfoList[4].nameArray1[pickerInfoList[4].nameIndex1]}}</text>
  						                    <picker @change="bindPickerChange41" :value="pickerInfoList[4].nameIndex1" :range="pickerInfoList[4].nameArray1">
  						                        <image src="../../static/detail-tabicon.png" ></image>
  						                    </picker>
  						                    <text class="p13-date">月&nbsp;&nbsp;&nbsp;(M)</text>
  						                    <text class="p14" style="width: 30px;">{{pickerInfoList[4].nameArray2[pickerInfoList[4].nameIndex2]}}</text>
  						                    <picker @change="bindPickerChange42" :value="pickerInfoList[4].nameIndex2" :range="pickerInfoList[4].nameArray2">
  						                        <image src="../../static/detail-tabicon.png" ></image>
  						                    </picker>
  						                    <text class="p13-date">日&nbsp;&nbsp;&nbsp;(D)</text>
  						                    <text class="p14" style="width: 30px;">{{pickerInfoList[4].nameArray3[pickerInfoList[4].nameIndex3]}}</text>
  						                    <picker @change="bindPickerChange43" :value="pickerInfoList[4].nameIndex3" :range="pickerInfoList[4].nameArray3">
  						                        <image src="../../static/detail-tabicon.png" ></image>
  						                    </picker>
  						        </view>
  						    </view>
  						    <view class="confirm">
  						        <image :src="tablist.confirm ? tabicon[0] : tabicon[1]" @click="changeConfirm"></image>
  						        <text>确认以上输入信息来源于我的验光数据!</text>
  						    </view>
  						</view>
  					
  					</template> 
7d9acd27a   尹聃   选购页
276
          <view class="zhanwei"></view>
29f4d5fe5   尹聃   选购页传递参数
277
          <view class="button" @click="popSure(details.data.p_name,details.data.p_sale_price)" ><view>立即结算</view></view>
7d9acd27a   尹聃   选购页
278
      </view>
56465b994   尹聃   合并选购页
279
280
281
282
283
284
285
286
287
      <view class="container"  v-if="type===4">
          <view class="detail">
              <view class="detail1"><image v-bind:src="details.data.img_index_url"></image></view>
              <view class="detail2">
                  <view class="detail2_name">{{details.data.p_name}}</view>
                  <view class="detail2_tui"><span>支持7天无条件退货</span><span>顺丰发货</span></view>
                  <view class="detail2_price">
                      <span>¥{{details.data.p_sale_price*count}}</span>
                      <view class="counter">
54d61dc1c   尹聃   详情页
288
289
290
                          <view class="btn" disabled="this.disabled" @click="counter(false)">-</view>
                          <text>{{count}}</text>
                          <view class="btn" @click="counter(true)">+</view>
56465b994   尹聃   合并选购页
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
                      </view>                    
                  </view>
              </view>
          </view>
          <view class="choose">
              <view class="colour">
                  <view class="colour1"  @click="xialachange(0)">
                      <text>框架颜色</text>
                      <image  v-bind:src="isNone[0].img"></image>
                  </view>
                  <view class="colour_exp">*{{navData.colour}}</view>
                  <view>
                  <view class="colour2"  v-bind:class="{'colour2_none' : isNone[0].state}">
                      <view 
                      v-for="(items,index) in details.data.skuList" 
                      :key="index" 
                      @click="viewChoose(index)"
                      class="colour2_view"
                      v-bind:class="{'colour2_viewed': chooseNum == index}"
                      >
                          <image v-bind:src="items.pic" @click="colourChange(index,items.sku_name)"></image>    
                      </view>
                  </view>
                  </view>
                  <hr/>
              </view>
              <view class="size">
                  <view class="size1" @click="xialachange(1)">
                      <view class="size1_1">框架尺寸</view>
                      <view><image v-bind:src="isNone[1].img"></image></view>
                  </view>
                  <view class="colour"> 
                      <view class="colour_exp">*{{navData.colour}}</view>
                  </view>
                  <view class="D3_list"  v-bind:class="{'colour2_none' : isNone[1].state}">
                      <view>
                          <view><image class="D3_image"  v-bind:src ="parameter[0].img"></image></view>
                          <view class="D3_list_jDu">
                              <view class="D3_list1">
                                  <c-progress class="c-progress"  :inner_widthProp="300"/>
                                  <text>{{details.data.frame_width}}mm</text>
                             </view>
                              <view>{{parameter[0].standard}}</view>
                          </view> 
                      </view>
                      <view>
                          <view><image class="D3_image"  v-bind:src ="parameter[1].img"></image></view>
                          <view class="D3_list_jDu">
                              <view class="D3_list1">
                                  <c-progress class="c-progress"  :inner_widthProp="190"/>
                                  <view>{{details.data.glass_width}}mm</view>
                              </view>
                              <view>{{parameter[1].standard}}</view>
                          </view> 
                      </view>
                      <view>
                          <view><image class="D3_image"  v-bind:src ="parameter[2].img"></image></view>
                          <view class="D3_list_jDu">
                              <view class="D3_list1">
                              <c-progress class="c-progress"  :inner_widthProp="210"/>
                              <view>{{details.data.glass_height}}mm</view>
                              </view>
                              <view>{{parameter[2].standard}}</view>
                          </view> 
                      </view>
                      <view>
                          <view><image class="D3_image"  v-bind:src ="parameter[3].img"></image></view>
                          <view class="D3_list_jDu">
                              
                              <view class="D3_list1">
                                  <c-progress class="c-progress"  :inner_widthProp="160"/>
                                  <view>{{details.data.nose_width}}mm</view>
                              </view>
                              <view>{{parameter[3].standard}}</view>
                          </view> 
                      </view>
                      <view>
                          <view><image class="D3_image"  v-bind:src ="parameter[4].img"></image></view>
                          <view class="D3_list_jDu">
                              <view class="D3_list1">
                                  <c-progress class="c-progress"  :inner_widthProp="260"/>
                                  <view>{{details.data.leg_long}}mm</view>
                              </view>
                             <view>{{parameter[4].standard}}</view>
                          </view> 
                      </view>
                      <hr/>
                  </view>
              </view>
              <view class="part">
                  <view class="size1" @click="xialachange(2)">
                      <view class="size1_1" >配件</view>
                      <view>
                          <span>+¥0.00</span>
                          <image  v-bind:src="isNone[2].img"></image>
                      </view>
                  </view>
                  <view class="colour_exp">*0290</view>
                  <view class="part_som"  v-bind:class="{'colour2_none' : isNone[2].state}">
                      <view 
                      v-for="(part) in part" 
                      :key="part.key"
                      v-bind:class="{'size_viewed': part.is_actived}"
                      >
                      <image v-bind:src="part.img"></image>
                  </view>
                  </view>
              </view>
          </view>
          <view class="buy">
              <view class="buy1">选了镜框,想选镜片?</view>
              <view class="buy2">系统已为你保存好已选镜框,放心去选镜片吧!</view>
              <view class="buy3">
                  <view class="buy3_1">暂时不选</view>
                  <view class="buy3_2" @click="popArgs">立即去选</view>
              </view>
          </view>
          <view class="zhanwei"></view>
          <view class="button"><view  @click="popSure(details.data.p_name,details.data.p_sale_price)" >立即结算</view></view>
      </view>
  </view>
7d9acd27a   尹聃   选购页
412
413
414
  </template>
  <script>
  import CProgress from '../../components/UniSliper/UniSliper'
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
415
  import store from '@/store'
7d9acd27a   尹聃   选购页
416
417
418
419
420
421
422
  
  export default {
      components: {
          CProgress
      },
      data(){
          return{
56465b994   尹聃   合并选购页
423
              type: 2,
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
424
              count: 1,
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
425
426
              chooseNum : '',
              isSplit: '' ,
0c6c0f3c4   尹聃   选购页折叠
427
428
429
430
431
432
433
              isNone:[
                  {state: false ,img: '/static/img/detail/xiala.png'},
                  {state: false ,img: '/static/img/detail/xiala.png'},
                  {state: false ,img: '/static/img/detail/xiala.png'},
                  {state: false ,img: '/static/img/detail/xiala.png'},
                  {state: false ,img: '/static/img/detail/xiala.png'},
              ],
29f4d5fe5   尹聃   选购页传递参数
434
435
436
437
438
439
440
  
              //传参
              navData:{
                  pid: "26",
                  p_root_index: "4",
                  name:'',
                  price:'',
56465b994   尹聃   合并选购页
441
                  type:'',
29f4d5fe5   尹聃   选购页传递参数
442
443
444
445
446
                  split: '1.56非球面防蓝光',
                  colour: '1.56非球面防蓝光_亚黑色',
              },
  
              //尺寸
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
447
448
449
450
451
452
              parameter:[
                  {key: 0,img:'/static/img/detail/d2.png', standard:'框架宽', slength:139},
                  {key: 1,img:'/static/img/detail/d3.png', standard:'镜片宽', slength:51},
                  {key: 2,img:'/static/img/detail/d4.png', standard:'镜片高', slength:45},
                  {key: 3,img:'/static/img/detail/d5.png', standard:'鼻架宽', slength:19},
                  {key: 4,img:'/static/img/detail/d6.png', standard:'框架耳长', slength:138},
7d9acd27a   尹聃   选购页
453
454
              ],
              //镜片颜色
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
455
456
457
458
459
460
461
              jp_colour:[
                  {img:'/static/img/detail/Kuang/sun_jp.png'},
                  {img:'/static/img/detail/Kuang/sun_jp.png'},
                  {img:'/static/img/detail/Kuang/sun_jp.png'},
                  {img:'/static/img/detail/Kuang/sun_jp.png'},
                  {img:'/static/img/detail/Kuang/sun_jp.png'},
                  {img:'/static/img/detail/Kuang/sun_jp.png'}
7d9acd27a   尹聃   选购页
462
463
464
              ],
              //配饰
              part:[
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
465
466
467
468
469
470
471
472
                  {key: 0,img:'/static/img/detail/Kuang/g1.png',is_actived:true},
                  {key: 1,img:'/static/img/detail/Kuang/g1.png',is_actived:false},
                  {key: 2,img:'/static/img/detail/Kuang/g2.png',is_actived:false},
                  {key: 3,img:'/static/img/detail/Kuang/g1.png',is_actived:false},
                  {key: 4,img:'/static/img/detail/Kuang/g1.png',is_actived:false},
                  {key: 5,img:'/static/img/detail/Kuang/g3.png',is_actived:false},
                  {key: 6,img:'/static/img/detail/Kuang/g3.png',is_actived:false},
                  {key: 7,img:'/static/img/detail/Kuang/g2.png',is_actived:false},
7d9acd27a   尹聃   选购页
473
              ],
29f4d5fe5   尹聃   选购页传递参数
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
              opIsOpen:true,
              tablist: {
  				// read: true,
  				// seeLong: false,
  				confirm: false
  				},
  			tabicon:['/static/detail-button.png','/static/detail-button-unselected.png'],
              // 度数相关数据                
  			pickerInfoList:[
  				{nameC:"度数",nameE:"(SPH)",nameArray1:[1.5,2.5,3.5,4.5],nameIndex1:0,nameArray2:[1.5,2.5,3.5,4.5],nameIndex2:0,key:0},
  				{nameC:"散光",nameE:"(CYL)",nameArray1:[1.5,2.5,3.5,4.5],nameIndex1:0,nameArray2:[1.5,2.5,3.5,4.5],nameIndex2:0,key:1},
  				{nameC:"散光轴位",nameE:"(AXI)",nameArray1:[1.5,2.5,3.5,4.5],nameIndex1:0,nameArray2:[1.5,2.5,3.5,4.5],nameIndex2:0,key:2},
  				{nameC:"双眼瞳距",nameE:"(PD)",nameArray1:[1.5,2.5,3.5,4.5],nameIndex1:0,nameArray2:[1.5,2.5,3.5,4.5],nameIndex2:0,key:3},
  				{nameC:"验光日期",nameE:'',nameArray1:[2017,2018,2019,2020,2021],nameIndex1:0,nameArray2:[1,2,3,4,5,6,7],nameIndex2:0,nameArray3:[1,2,3,4,5,6],nameIndex3:0}
  			],
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
489
490
491
492
493
494
495
496
497
498
499
          }
      },
  
      computed: {
          details(){
              return this.$store.state.detailStandard_k.list
          },
      },
      onLoad:function(){
          store.dispatch('detailStandard_k/fetch', {
  			uid: "1",
29f4d5fe5   尹聃   选购页传递参数
500
501
502
              pid: "26",
              p_root_index: "4"
          });
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
503
504
505
506
507
508
509
510
511
      },
      methods: {
          counter(isadd){
  		    if(isadd){
  				this.count++
  			}else{
  				this.count <= 1? this.disabled = true:this.count--
              }
          },
0c6c0f3c4   尹聃   选购页折叠
512
513
514
515
516
517
518
519
          xialachange(index){
              this.isNone[index].state = !this.isNone[index].state;
              if(this.isNone[index].state){
                  this.isNone[index].img = '/static/img/detail/right.png'
              }else{
                  this.isNone[index].img = '/static/img/detail/xiala.png'
              }
          },
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
520
          colourChange(index,e){
29f4d5fe5   尹聃   选购页传递参数
521
              this.navData.colour = e ; //颜色选择
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
522
523
524
525
526
  
          },
          viewChoose(index){
              this.chooseNum = index
          },
29f4d5fe5   尹聃   选购页传递参数
527
528
          //折射率选择
          splitChoose(index,e){
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
529
              this.isSplit = index
29f4d5fe5   尹聃   选购页传递参数
530
              this.navData.split = e 
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
531
          },
29f4d5fe5   尹聃   选购页传递参数
532
          //跳转镜片选购页
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
533
534
535
536
537
538
539
          popArgs(){
              uni.navigateTo({
  				url: '../detailsChoiceArgs/detailsChoiceArgs',
  				success: res => {},
  				fail: () => {},
  				complete: () => {}
  			});
29f4d5fe5   尹聃   选购页传递参数
540
541
542
543
544
          },
          //跳转确认订单页及传参
          popSure(name,price){
              this.navData.name = name;
              this.navData.price = price;
56465b994   尹聃   合并选购页
545
              this.navData.type = this.type;
29f4d5fe5   尹聃   选购页传递参数
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
              var navData = JSON.stringify(this.navData); 
              uni.navigateTo({
  				url: '../confirmOrder/confirmOrder?index='+navData,
              });
              console.log(this.navData)
          },
          //验光表
          changeConfirm() {
  	        this.tablist.confirm = !this.tablist.confirm
  		},
  		bindPickerChange01: function(e) {
  		    this.pickerInfoList[0].nameIndex1 = e.target.value 
  		},
  		bindPickerChange02: function(e) {
  		    this.pickerInfoList[0].nameIndex2 = e.target.value 
  		},
  		
  		bindPickerChange11: function(e) {
  		    this.pickerInfoList[1].nameIndex1 = e.target.value 
  		},
  		bindPickerChange12: function(e) {
  		    this.pickerInfoList[1].nameIndex2 = e.target.value 
  		},
  		
  		bindPickerChange21: function(e) {
  		    this.pickerInfoList[2].nameIndex1 = e.target.value 
  		},
  		bindPickerChange22: function(e) {
  		    this.pickerInfoList[2].nameIndex2 = e.target.value 
  		},
  		
  		bindPickerChange31: function(e) {
  		    this.pickerInfoList[3].nameIndex1 = e.target.value 
  		},
  		bindPickerChange32: function(e) {
  		    this.pickerInfoList[3].nameIndex2 = e.target.value 
  		},   
  			
  		bindPickerChange41: function(e) {
  		    this.pickerInfoList[4].nameIndex1 = e.target.value 
  		},
  		bindPickerChange42: function(e) {
  		    this.pickerInfoList[4].nameIndex2 = e.target.value 
  			},         
  	    bindPickerChange43: function(e) {
  		    this.pickerInfoList[4].nameIndex3 = e.target.value 
  	    },
7d9acd27a   尹聃   选购页
593
      }
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
594

7d9acd27a   尹聃   选购页
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
  }
  </script>
  
  <style lang="scss">
  .container{
      min-height: 100vh;
      background: #F2F2F2;
      padding-top: 10px;
      box-sizing: border-box;
  }
  hr{
      border: none;
      height: 1px;
      background: #F2F2F2;
      margin-top: 18px;
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
610
      margin-bottom: 10px;
7d9acd27a   尹聃   选购页
611
612
613
614
615
616
617
618
619
620
621
622
  }
  .detail{
      height: 272rpx;
      background: #FFFFFF;
      border-radius: 8px;
      padding: 16px;
      box-sizing: border-box;
      display: flex;
      justify-content: space-between;
      align-items: center;
  }
  .detail1{
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
623
      height: 178rpx;
7d9acd27a   尹聃   选购页
624
625
626
627
628
629
630
631
632
633
      width: 188rpx;
      image{
          width: 100%;
          height: 100%;
          border-radius: 8px;
      }
  }
  .detail2{
      width: 68%;
      view{
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
634
          margin-bottom: 6px;
7d9acd27a   尹聃   选购页
635
636
637
638
639
640
641
          font-family: PingFangSC-Regular;
      }
      .detail2_name{
          font-size: 14px;
          color: #333333;
          letter-spacing: -0.26px;
          line-height: 18px;
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
642
643
644
645
646
          overflow:hidden; 
          text-overflow:ellipsis;
          display:-webkit-box; 
          -webkit-box-orient:vertical;
          -webkit-line-clamp:2; 
7d9acd27a   尹聃   选购页
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
      }
      .detail2_tui{
          font-size: 10px;
          color: #999999;
          letter-spacing: -0.19px;
          span{
              margin-right: 10px;
          }
      }
      .detail2_price{
          font-size: 14px;
          color: #FF6B4A;
          letter-spacing: -0.26px;
      }
  }
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
  .counter{
  	display: flex;
  	flex-direction: row;
  	justify-content: space-between;
  	font-size: 28rpx;
  	color: #333333;
  	width: 122rpx;
      float: right;
  	.btn{
  		display: flex;
  		justify-content: center;
  		line-height: 32rpx;
          height: 32rpx;
  		width: 32rpx;
  		background-color: #F2F2F2;
  		color: #CFCFCF;
  		}
  }
7d9acd27a   尹聃   选购页
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
  .choose{
      background: #FFFFFF;
      padding: 16px;
      box-sizing: border-box;
      margin-top: 10px;
      border-radius: 8px;
      .colour1{
          span{
              font-family: PingFangSC-Medium;
              font-size: 16px;
              color: #333333;
              letter-spacing: -0.3px;
              text-align: justify;
              line-height: 24px;
              font-weight: bold;
          }
          image{
              float: right;
              width: 40rpx;
              height: 36rpx;
          }
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
701
702
703
704
705
706
707
          .colour1_span2{
              font-family: PingFangSC-Regular;
              font-size: 12px;
              color: #666666;
              margin-left: 10px;
              font-weight: normal
          }
7d9acd27a   尹聃   选购页
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
      }
      .colour_exp{
          font-family: PingFangSC-Regular;
          font-size: 12px;
          color: #666666;
          letter-spacing: 0;
          margin-top: 10px;
          margin-bottom: 10px;
      }
      .colour2{
          display: grid;
          grid-template-columns: repeat(5, 17%);
          justify-content: space-between ;
          grid-row-gap: 10px;
          margin-bottom: 14px;
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
723
          .colour2_view{
7d9acd27a   尹聃   选购页
724
725
              border: 1px solid #F2F2F2;
              image{
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
726
727
                  width: 100rpx;
                  height: 60rpx;
7d9acd27a   尹聃   选购页
728
729
              }
          }
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
730
          .colour2_viewed{
7d9acd27a   尹聃   选购页
731
              border: 1px solid #FF6B4A;
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
732
733
734
735
              image{
                  width: 100rpx;
                  height: 60rpx;
              }
7d9acd27a   尹聃   选购页
736
737
          }
      }
0c6c0f3c4   尹聃   选购页折叠
738
739
740
      .colour2_none{
          display: none;
      }
7d9acd27a   尹聃   选购页
741
742
  }
  .jp_colour2{
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
743
744
745
746
747
748
749
          display: grid;
          grid-template-columns: repeat(5, 13%);
          justify-content: start  ;
          grid-column-gap: 10px;
          grid-row-gap: 10px;
          margin-bottom: 14px;          
      .jp_colour2_view{
7d9acd27a   尹聃   选购页
750
          border: 1px solid #F2F2F2;
7d9acd27a   尹聃   选购页
751
          image{
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
752
753
              width: 80rpx;
              height: 80rpx;
7d9acd27a   尹聃   选购页
754
755
          }
      }
7d9acd27a   尹聃   选购页
756
  }
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
757
758
759
760
761
762
763
764
765
766
767
768
769
770
  .split{
      display: grid;
      grid-template-columns: repeat(2, 45%);
      grid-column-gap: 10px;
      grid-row-gap: 10px;
      margin-top: 10px ;
      .split_colour2{
          display: flex;
          justify-content: center;
          align-items: center;
          width: 300rpx;
          height: 60rpx;
          background: #F2F2F2;
          border-radius: 2px;
7d9acd27a   尹聃   选购页
771
          font-family: PingFangSC-Regular;
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
772
773
774
775
          font-size: 12px;
          color: #666666;
          letter-spacing: 0;
          text-align: center;
7d9acd27a   尹聃   选购页
776
      }
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
777
778
779
      .split_colour2_actived{
          background: rgba(255,107,74,0.15);
          color: #FF6B4A;
7d9acd27a   尹聃   选购页
780
      }
7d9acd27a   尹聃   选购页
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
  }
  .size,.part{
      margin-top:14px;
      .size1{
          display: flex;
          justify-content: space-between;
          margin-bottom: 10px;
          .size1_1{
              font-weight: bold;
              font-family: PingFangSC-Medium;
              font-size: 16px;
              color: #333333;
              letter-spacing: -0.3px;
              line-height: 24px;
          }
          view{
              span{
                  font-family: PingFangSC-Regular;
                  font-size: 14px;
                  color: #FF6B4A;
                  letter-spacing: -0.26px;
                  margin-right: 12px;
              }
              image{
                  width: 40rpx;
                  height: 36rpx;
              }
          }
      }
      .size2{
          view{
              display: inline-flex;
              align-items: center;
              justify-content: center; //字体居中
              margin-right: 12px;
              margin-bottom: 20px;
              width: 136rpx;
              height: 60rpx;
              background: #F2F2F2;
              border-radius: 2px;
              font-family: PingFangSC-Regular;
              font-size: 12px;
              color: #666666;
          }
          view:hover{
              color: #FF6B4A;
              background: rgba(255,107,74,0.15);
          }
      }
      .D3_list{
          margin-bottom: 4px;
      }
      .D3_list>view{
          display: flex;
          align-content: center;
          margin-bottom: 10px;
          view{
              margin-right: 10px;
          }
      }
      .D3_list image{
          width: 50px;
          height: 25px;
          margin-right: 6px;
      }
      .D3_list span{
          margin-left: 6px;
          margin-right: 5px;
          font-family: 'PingFangSC-Regular';
      }
      .D3_list_jDu{
          view{
              font-family: PingFangSC-Regular;
              font-size: 10px;
              color: #999999;
              letter-spacing: -0.19px;
          }
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
858
859
860
          .D3_list1{
              display: flex;
          }
7d9acd27a   尹聃   选购页
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
      }
  }
  .part{
      .part_som{
          display: grid;
          justify-content: space-between;
          grid-template-columns: repeat(4, 22%);
          grid-row-gap: 12px;
          margin-bottom: 14px;
          view{
              border: 1px solid #F2F2F2;
              height: 72rpx;
              image{
                  width: 100%;
                  height: 100%;
              }
          }
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
878
          .size_viewed{
7d9acd27a   尹聃   选购页
879
              border: 1px solid #FF6B4A;
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
880
881
882
883
884
              height: 72rpx;
              image{
                  width: 100%;
                  height: 100%;
              }
7d9acd27a   尹聃   选购页
885
886
          }
      }
0c6c0f3c4   尹聃   选购页折叠
887
888
889
      .colour2_none{
          display: none;
      }
7d9acd27a   尹聃   选购页
890
  }
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
891

7d9acd27a   尹聃   选购页
892
  .buy{
8fdae7108   尹聃   完成镜框和太阳镜的选购页功能
893
      height: 300rpx;
7d9acd27a   尹聃   选购页
894
895
896
897
898
      background: #FFFFFF ;
      margin-top: 10px;
      border-radius: 8px;
      padding-top: 20px;
      box-sizing: border-box;
29f4d5fe5   尹聃   选购页传递参数
899
      margin-bottom: 10px;
7d9acd27a   尹聃   选购页
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
  }
  .buy1{
      font-family: PingFangSC-Medium;
      font-size: 16px;
      font-weight: bold;
      color: #333333;
      text-align: center;
  }
  .buy2{
      font-family: PingFangSC-Regular;
      font-size: 12px;
      color: #999999;
      text-align: center;
      margin: 10px;
  }
  .buy3{
      font-family: PingFangSC-Regular;
      font-size: 16px;
      display: flex;
      justify-content: center;
      margin-top: 14px;
      view{
          border-radius: 20px;
          width: 240rpx;
          height: 80rpx;
          display: flex;
          justify-content: center;
          align-items: center;
      }
      .buy3_1{
          margin-right: 20px;
          background: rgba(255,107,74,0.15);
          color: #FF6B4A ;
      }
      .buy3_2{
          background: #FF6B4A;
          color: #FFFFFF ;
      }
  }
  .zhanwei{
      background: #F2F2F2;
29f4d5fe5   尹聃   选购页传递参数
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
      height: 200rpx;
  }
  .goods-form {
  	display: flex;
  	flex-direction: column;
  	align-items: center;
  	justify-content: center;
  	background-color: #fff;
      width: 100%;
      padding-top:20px;
      padding-bottom:20px;
      box-sizing: border-box;
  	    
  	.p1 {
          font-size: 16px;
          color: #333333;
          letter-spacing: -0.3px;
          text-align: justify;
          line-height: 24px;
          margin: 4px 0;
  	    }
      .p2 {
          font-size: 12px;
          color: #999999;
          letter-spacing: -0.23px;
          margin-bottom: 18rpx;
      }
      image{
          width: 28rpx;
          height: 26rpx;
      }
      .confirm {
          display: flex;
          align-items: center;
          font-size: 12px;
          color: #666666;
          letter-spacing: -0.23px;
  	    width: 684rpx;
          image{
              margin-right:25rpx;
          }
      }
      .picker{
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
  		width: 100%;
  		image{
  			width: 10px;
  			height: 10px;
  			margin-right: 5px;
  		}
  		.picker-choice{
  			display: flex;
  			width: 684rpx;
  			align-items: center;
  	        margin-bottom: 40rpx;
  			.choice-left{
  				width: 210rpx;
  				.p11 {
  					font-size: 14px;
  					color: #333333;
  					letter-spacing: -0.26px;
  					text-align: justify;
  					line-height: 24px;
  					// margin-right: 10px;
  				}
  				.p12 {
  					font-size: 10px;
  					color: #3F3F3F;
  					letter-spacing: -0.19px;
  					text-align: justify;
  					line-height: 24px;
  				}
  	            
  	            
  			}
  			.p13 {
  				font-size: 10px;
  				color: #999999;
  				letter-spacing: -0.19px;
  				margin-right: 10px;
  			}
  	        .p13-date {
  	            font-size: 10px;
  				color: #999999;
  				letter-spacing: -0.19px;
  				margin-right: 5px;
  	        }
  			.p14 {
  				font-size: 14px;
  				color: #666666;
  				letter-spacing: -0.26px;
  				text-align: center;
  				width: 124rpx;
  				border-bottom: 1px solid #CFCFCF;
  			}
  	        
  		}
  	}
7d9acd27a   尹聃   选购页
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
  }
  .button{
      position: fixed;
      bottom: 0;
      width:100%;
      height: 112rpx;
      background: #FF6B4A 100%;
      view{
          color: #FFFFFF;
          height: 100%;
          display: flex;
          justify-content: center;
          align-items: center;
          font-family: PingFangSC-Regular;
          font-size: 16px;
      }
  }
7d9acd27a   尹聃   选购页
1059
  </style>