瀏覽代碼

联调修改

wangfei 6 年之前
父節點
當前提交
4559a9b8a7
共有 3 個檔案被更改,包括 5 行新增103 行删除
  1. 1
    2
      src/components/orderItem/index.vue
  2. 1
    1
      src/pages/user/mainPage/coffeeIndex/index.vue
  3. 3
    100
      src/pages/user/placeOrder/index.vue

+ 1
- 2
src/components/orderItem/index.vue 查看文件

@@ -2,7 +2,7 @@
2 2
   <div class="orderItem flex-h">
3 3
     <div class="img">
4 4
       <a>
5
-        <img src="" class="centerLabel cover" alt="">
5
+        <img :src="(data.img || [{}])[0].ImgUrl" class="centerLabel cover" alt="">
6 6
       </a>
7 7
     </div>
8 8
     <div class="content flex-item flex-v">
@@ -44,7 +44,6 @@ export default {
44 44
 
45 45
   },
46 46
   created () {
47
-
48 47
   },
49 48
   methods: {
50 49
     add () { // 增加

+ 1
- 1
src/pages/user/mainPage/coffeeIndex/index.vue 查看文件

@@ -17,7 +17,7 @@
17 17
                   <router-link tag="li" class="flex-item flex-h" v-for="(subItem,subIndex) in item.Tables" :key="subIndex" :to="{name: 'placeOrder', query: { tableid: encodeURI(subItem.TableId), tableno: encodeURI(subItem.TableNo), caseid: encodeURI(subItem.CaseId), casename: encodeURI(topCaseInfoData.CaseName), areaid: encodeURI(subItem.AreaId), areaname: encodeURI(item.AreaName)}}">
18 18
                     <caseTableItem :item="subItem" :index="subIndex"></caseTableItem>
19 19
                   </router-link>
20
-                  <li class="flex-item noData" v-if="item.Tables.length % 2 != 0"></li>
20
+                  <li class="flex-item noData" v-if="(item.Tables || []).length % 2 != 0"></li>
21 21
                 </ul>
22 22
               </li>
23 23
             </ul>

+ 3
- 100
src/pages/user/placeOrder/index.vue 查看文件

@@ -2,7 +2,7 @@
2 2
   <div class="mainPage flex-v">
3 3
     <div class="flex-item flex-v">
4 4
       <div class="banner">
5
-        <img src="" class="centerLabel cover" alt="">
5
+        <img :src="banner" class="centerLabel cover" alt="">
6 6
         <div class="bannerInfo flex-h">
7 7
           <div class="flex-item">
8 8
             <div>
@@ -102,105 +102,8 @@ export default {
102 102
       totalPrice: 0, // 总价格
103 103
       settlementList: [], // 商品选择清单
104 104
       slideMenusActive: 0, // 左侧菜单选中索引值
105
-      menuList: [ // 商品数据
106
-      //   {
107
-      //   value: '咖啡',
108
-      //   eValue: 'Coffee',
109
-      //   id: '1',
110
-      //   status: 1,
111
-      //   list: [{
112
-      //     img: '',
113
-      //     name: '商品名称',
114
-      //     id: '1-1',
115
-      //     status: 1,
116
-      //     spec: [{
117
-      //       value: '去冰',
118
-      //       id: '1-1-1',
119
-      //       num: 0,
120
-      //       status: 0,
121
-      //       price: '10',
122
-      //     }, {
123
-      //       value: '少冰',
124
-      //       id: '1-1-2',
125
-      //       num: 0,
126
-      //       status: 1,
127
-      //       price: '15',
128
-      //     }, {
129
-      //       value: '正常',
130
-      //       id: '1-1-3',
131
-      //       num: 0,
132
-      //       status: 1,
133
-      //       price: '20',
134
-      //     }, {
135
-      //       value: '多冰',
136
-      //       id: '1-1-4',
137
-      //       num: 0,
138
-      //       status: 1,
139
-      //       price: '25',
140
-      //     }],
141
-      //     price: '100',
142
-      //   }, {
143
-      //     img: '',
144
-      //     name: '商品名称',
145
-      //     id: '1-2',
146
-      //     spec: [],
147
-      //     status: 0,
148
-      //     price: '100',
149
-      //   }, {
150
-      //     img: '',
151
-      //     name: '商品名称',
152
-      //     id: '1-3',
153
-      //     spec: [],
154
-      //     status: 1,
155
-      //     price: '100',
156
-      //   }, {
157
-      //     img: '',
158
-      //     name: '商品名称',
159
-      //     id: '1-4',
160
-      //     spec: [],
161
-      //     status: 1,
162
-      //     price: '100',
163
-      //   }, {
164
-      //     img: '',
165
-      //     name: '商品名称',
166
-      //     id: '1-5',
167
-      //     spec: [],
168
-      //     status: 1,
169
-      //     price: '100',
170
-      //   }, {
171
-      //     img: '',
172
-      //     name: '商品名称',
173
-      //     id: '1-6',
174
-      //     spec: [],
175
-      //     status: 1,
176
-      //     price: '100',
177
-      //   }],
178
-      // }, {
179
-      //   value: '咖啡一',
180
-      //   eValue: 'Coffee',
181
-      //   id: '2',
182
-      //   status: 1,
183
-      //   list: [],
184
-      // }, {
185
-      //   value: '咖啡二',
186
-      //   eValue: 'Coffee',
187
-      //   id: '3',
188
-      //   status: 1,
189
-      //   list: [],
190
-      // }, {
191
-      //   value: '咖啡三',
192
-      //   eValue: 'Coffee',
193
-      //   id: '4',
194
-      //   status: 1,
195
-      //   list: [],
196
-      // }, {
197
-      //   value: '咖啡四',
198
-      //   eValue: 'Coffee',
199
-      //   id: '5',
200
-      //   status: 1,
201
-      //   list: [],
202
-      // }
203
-      ],
105
+      menuList: [],
106
+      banner: 'https://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/spaceofchengGoodsbanner.png',
204 107
       swiperOption: {
205 108
         observer: true,
206 109
         direction: 'vertical',