jufubao-takeorder 1.0.2-beta2 → 1.0.2-beta4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/package.json +1 -1
  2. package/src/components/{JfbTakeorderQuotedDetail → JfbTakeorderFilterOrderList}/Api.js +9 -9
  3. package/src/components/JfbTakeorderFilterOrderList/Attr.js +12 -0
  4. package/src/components/JfbTakeorderFilterOrderList/JfbTakeorderFilterOrderList.vue +210 -0
  5. package/src/components/{JfbTakeorderUnquotedDetail/JfbTakeorderUnquotedDetailLess.less → JfbTakeorderFilterOrderList/JfbTakeorderFilterOrderListLess.less} +2 -2
  6. package/src/components/{JfbTakeorderUnquotedDetail/JfbTakeorderUnquotedDetailMixin.js → JfbTakeorderFilterOrderList/JfbTakeorderFilterOrderListMixin.js} +1 -1
  7. package/src/components/JfbTakeorderFilterOrderList/Mock.js +13 -0
  8. package/src/components/JfbTakeorderFilterOrderList/components/order.vue +277 -0
  9. package/src/components/JfbTakeorderIndex/Api.js +9 -41
  10. package/src/components/JfbTakeorderIndex/Attr.js +9 -41
  11. package/src/components/JfbTakeorderIndex/JfbTakeorderIndex.vue +681 -85
  12. package/src/components/JfbTakeorderIndex/components/cityPicker.vue +299 -0
  13. package/src/components/JfbTakeorderIndex/components/order.vue +273 -0
  14. package/src/components/JfbTakeorderIndex/cusAttr/advanced.js +26 -0
  15. package/src/components/JfbTakeorderIndex/cusAttr/content.js +9 -0
  16. package/src/components/JfbTakeorderIndex/cusAttr/style.js +11 -0
  17. package/src/components/JfbTakeorderOrderDetail/Api.js +23 -0
  18. package/src/components/JfbTakeorderOrderDetail/Attr.js +16 -0
  19. package/src/components/JfbTakeorderOrderDetail/JfbTakeorderOrderDetail.vue +845 -0
  20. package/src/components/{JfbTakeorderUnquotedList/JfbTakeorderUnquotedListLess.less → JfbTakeorderOrderDetail/JfbTakeorderOrderDetailLess.less} +2 -2
  21. package/src/components/{JfbTakeorderQuotedDetail/JfbTakeorderQuotedDetailMixin.js → JfbTakeorderOrderDetail/JfbTakeorderOrderDetailMixin.js} +1 -1
  22. package/src/components/JfbTakeorderOrderDetail/Mock.js +13 -0
  23. package/src/components/JfbTakeorderOrderDetail/components/CusEditQuote.vue +161 -0
  24. package/src/components/JfbTakeorderOrderDetail/components/products.vue +138 -0
  25. package/src/components/JfbTakeorderOrderDetail/cusAttr/advanced.js +12 -0
  26. package/src/components/JfbTakeorderOrderDetail/cusAttr/content.js +233 -0
  27. package/src/components/JfbTakeorderOrderDetail/cusAttr/style.js +11 -0
  28. package/src/components/{JfbTakeorderQuotedList → JfbTakeorderOrderList}/Api.js +9 -9
  29. package/src/components/JfbTakeorderOrderList/Attr.js +16 -0
  30. package/src/components/JfbTakeorderOrderList/JfbTakeorderOrderList.vue +169 -0
  31. package/src/components/{JfbTakeorderQuotedList/JfbTakeorderQuotedListLess.less → JfbTakeorderOrderList/JfbTakeorderOrderListLess.less} +2 -2
  32. package/src/components/{JfbTakeorderQuotedList/JfbTakeorderQuotedListMixin.js → JfbTakeorderOrderList/JfbTakeorderOrderListMixin.js} +1 -1
  33. package/src/components/JfbTakeorderOrderList/Mock.js +13 -0
  34. package/src/components/JfbTakeorderOrderList/components/order.vue +273 -0
  35. package/src/components/JfbTakeorderOrderList/cusAttr/advanced.js +26 -0
  36. package/src/components/JfbTakeorderOrderList/cusAttr/content.js +23 -0
  37. package/src/components/JfbTakeorderOrderList/cusAttr/style.js +11 -0
  38. package/src/components/{JfbTakeorderUnquotedDetail → JfbTakeorderVoiceSwitch}/Api.js +9 -9
  39. package/src/components/JfbTakeorderVoiceSwitch/Attr.js +12 -0
  40. package/src/components/{JfbTakeorderQuotedList/JfbTakeorderQuotedList.vue → JfbTakeorderVoiceSwitch/JfbTakeorderVoiceSwitch.vue} +42 -13
  41. package/src/components/{JfbTakeorderQuotedDetail/JfbTakeorderQuotedDetailLess.less → JfbTakeorderVoiceSwitch/JfbTakeorderVoiceSwitchLess.less} +2 -2
  42. package/src/components/{JfbTakeorderUnquotedList/JfbTakeorderUnquotedListMixin.js → JfbTakeorderVoiceSwitch/JfbTakeorderVoiceSwitchMixin.js} +1 -1
  43. package/src/components/JfbTakeorderVoiceSwitch/Mock.js +13 -0
  44. package/src/components/JfbTakeorderQuotedDetail/Attr.js +0 -48
  45. package/src/components/JfbTakeorderQuotedDetail/JfbTakeorderQuotedDetail.vue +0 -113
  46. package/src/components/JfbTakeorderQuotedDetail/Mock.js +0 -13
  47. package/src/components/JfbTakeorderQuotedList/Attr.js +0 -48
  48. package/src/components/JfbTakeorderQuotedList/Mock.js +0 -13
  49. package/src/components/JfbTakeorderUnquotedDetail/Attr.js +0 -48
  50. package/src/components/JfbTakeorderUnquotedDetail/JfbTakeorderUnquotedDetail.vue +0 -113
  51. package/src/components/JfbTakeorderUnquotedDetail/Mock.js +0 -13
  52. package/src/components/JfbTakeorderUnquotedList/Api.js +0 -58
  53. package/src/components/JfbTakeorderUnquotedList/Attr.js +0 -48
  54. package/src/components/JfbTakeorderUnquotedList/JfbTakeorderUnquotedList.vue +0 -113
  55. package/src/components/JfbTakeorderUnquotedList/Mock.js +0 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-takeorder",
3
- "version": "1.0.2-beta2",
3
+ "version": "1.0.2-beta4",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
  /**
3
3
  * @description 接口配置,
4
- * 在设置方法名字当时候,别忘记加上【模块名字】:Quoted
4
+ * 在设置方法名字当时候,别忘记加上【模块名字】:Filter
5
5
  * @type {*[]}
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- //设置方法名字当别忘记加上【模块名字】:Quoted
10
- mapFnName: 'getQuotedByIdFilmSquate',
9
+ //设置方法名字当别忘记加上【模块名字】:Filter
10
+ mapFnName: 'getFilterByIdFilmSquate',
11
11
  title: '获取电影广场列表',
12
12
  path: '/api/account/film/list-film-square',
13
13
  isRule: false,
@@ -19,8 +19,8 @@ module.exports = [
19
19
  disabled: true,
20
20
  },
21
21
  {
22
- //设置方法名字当别忘记加上【模块名字】:Quoted
23
- mapFnName: 'updateQuotedFilmPaiqiDate',
22
+ //设置方法名字当别忘记加上【模块名字】:Filter
23
+ mapFnName: 'updateFilterFilmPaiqiDate',
24
24
  title: '更新排期',
25
25
  path: '/api/account/film/paiqi-date',
26
26
  isRule: false,
@@ -32,8 +32,8 @@ module.exports = [
32
32
  disabled: true,
33
33
  },
34
34
  {
35
- //设置方法名字当别忘记加上【模块名字】:Quoted
36
- mapFnName: 'removeQuotedFilmAddress',
35
+ //设置方法名字当别忘记加上【模块名字】:Filter
36
+ mapFnName: 'removeFilterFilmAddress',
37
37
  title: '删除我的配送地址',
38
38
  path: '/api/account/film/paiqi-date',
39
39
  isRule: false,
@@ -44,8 +44,8 @@ module.exports = [
44
44
  disabled: true,
45
45
  },
46
46
  {
47
- //设置方法名字当别忘记加上【模块名字】:Quoted
48
- mapFnName: 'addQuotedFilmcart',
47
+ //设置方法名字当别忘记加上【模块名字】:Filter
48
+ mapFnName: 'addFilterFilmcart',
49
49
  title: '添加购物车',
50
50
  path: '/api/account/film/paiqi-date',
51
51
  isRule: false,
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [].filter(i=>i)
10
+ },
11
+ advanced: [],
12
+ };
@@ -0,0 +1,210 @@
1
+ <template>
2
+ <view
3
+ class="jfb-takeorder-filter-order-list"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-takeorder-filter-order-list__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-takeorder-filter-order-list__edit-icon" @click.stop="delEdit">
14
+ <xd-font-icon icon="iconshanchu-01" color="#fff" size="30"></xd-font-icon>
15
+ </view>
16
+ </view>
17
+ <!-- #endif -->
18
+ <view class="jfb-takeorder-filter-order-list__body">
19
+ <view class="fixed_top" :style="{top: (layoutInfo.top - 2)+'rpx'}">
20
+ <xd-tab
21
+ v-if="initStatus"
22
+ :tabIndex="tabIndex"
23
+ :list="tabList"
24
+ show-footer-line
25
+ fontSize="28"
26
+ actFontSize="28"
27
+ @onTab="handleChange"
28
+ ></xd-tab>
29
+ </view>
30
+ <view style="height: 100rpx;"></view>
31
+ <view v-for="(item, index) in orderList" :key="index">
32
+ <Order
33
+ :item="item"
34
+ :mainColor="mainColor"
35
+ :isNeedCutDown="false"
36
+ @expire="handleOrderExpire"
37
+ @btnEvent="handleBtnEvent"
38
+ ></Order>
39
+ </view>
40
+ </view>
41
+ </view>
42
+ </template>
43
+
44
+ <script>
45
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
46
+ import { jfbRootExec } from "@/utils/xd.event";
47
+ import JfbTakeorderFilterOrderListMixin from "./JfbTakeorderFilterOrderListMixin";
48
+ import { getContainerPropsValue } from "@/utils/xd.base";
49
+ import componentsMixins from "@/mixins/componentsMixins";
50
+ import XdTab from "@/components/XdTab/XdTab";
51
+ import extsMixins from "@/mixins/extsMixins";
52
+ import Order from "./components/order.vue";
53
+ export default {
54
+ name: "JfbTakeorderFilterOrderList",
55
+ components: {
56
+ XdFontIcon,
57
+ XdTab,
58
+ Order
59
+ },
60
+ mixins: [
61
+ componentsMixins, extsMixins, JfbTakeorderFilterOrderListMixin
62
+ ],
63
+ data() {
64
+ return {
65
+ initStatus: false,
66
+ tabIndex: 0,
67
+ tabList: [
68
+ {"name": "全部", "value": 'all'},
69
+ { "name": "待上报", "value": 'wait_report' },
70
+ { "name": "待结算", "value": 'wait_settle' },
71
+ {"name": "已完成", "value": 'com'},
72
+ { "name": "纠纷中", "value": 'dispute' },
73
+ ],
74
+ page_size: 10,
75
+ page_token: 1,
76
+ hasNext: true,
77
+ orderList: [
78
+ {
79
+ id: 1,
80
+ num: 15,
81
+ people: 30,
82
+ remainingTime: 10,
83
+ shop_name: "味多美(北京西单大悦城店)",
84
+ brand_name: "味多美",
85
+ city: "北京市",
86
+ products: [
87
+ {
88
+ product_thumb:
89
+ "https://img.js.design/assets/img/68b554c9c3a1ea02642d7d2f.png#afa2b9b9d50bcd2f1394619ecc488a99",
90
+ product_name:
91
+ "贝欧宝 BIOBOR贝欧宝维生素C+叶黄素酯软糖118g多重营养3D小熊造型糖果Q弹维生素C+叶黄素酯软糖",
92
+ product_sku: "118g",
93
+ minPrice: 132,
94
+ maxPrice: 1232,
95
+ num: 15,
96
+ },
97
+ {
98
+ product_thumb:
99
+ "https://img.js.design/assets/img/68b554c9c3a1ea02642d7d2f.png#afa2b9b9d50bcd2f1394619ecc488a99",
100
+ product_name:
101
+ "贝欧宝 BIOBOR贝欧宝维生素C+叶黄素酯软糖118g多重营养3D小熊造型糖果Q弹维生素C+叶黄素酯软糖",
102
+ product_sku: "450g",
103
+ minPrice: 456,
104
+ maxPrice: 1546,
105
+ num: 16,
106
+ },
107
+ ],
108
+ market_price: 4000,
109
+ minPrice: 456,
110
+ maxPrice: 1546,
111
+ order_status: 1,
112
+ },
113
+ ],
114
+ //todo
115
+ }
116
+ },
117
+ watch: {
118
+ container(value, oldValue) {
119
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
120
+ if (this.$configProject['isPreview']) this.init(value)
121
+ },
122
+ },
123
+ created() {
124
+ this.init(this.container);
125
+
126
+ //todo
127
+ },
128
+ methods: {
129
+ onJfbLoad(options) {
130
+ let status = options.status || options.type;
131
+ //地址栏设置值
132
+ if (status) {
133
+ this.tabIndex = this.tabList.findIndex((item) => {
134
+ return item.status === status;
135
+ });
136
+ }
137
+ this.initStatus = true;
138
+ this.getList(status);
139
+ },
140
+ /**
141
+ * @description 监听事件变化
142
+ * @param container {object} 业务组件对象自己
143
+ */
144
+ init(container) {
145
+
146
+ //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
147
+
148
+ //this.height = getContainerPropsValue(container, 'content.height', 10);
149
+ },
150
+ getList(status) {
151
+
152
+ },
153
+ handleChange(item, index) {
154
+ if (index === this.tabIndex) return;
155
+ this.tabIndex = index;
156
+ this.page_token = 1;
157
+ this.hasNext = true;
158
+ this.getList(item);
159
+ // #ifdef H5
160
+ let params = this.$xdUniHelper.parseURL().params;
161
+ params["type"] = item.status;
162
+ history.replaceState(
163
+ null,
164
+ null,
165
+ `?${this.$xdUniHelper.jsonToParams(params)}`
166
+ );
167
+ // #endif
168
+ },
169
+ onJfbScroll(options) {
170
+ console.log('event.onJfbScroll', options)
171
+ },
172
+ onJfbReachBottom(options) {
173
+ console.log('event.onJfbReachBottom', options)
174
+ },
175
+ onJfbShow(options) {
176
+ console.log('event.onJfbShow', options)
177
+ },
178
+ onJfbHide(options) {
179
+ console.log('event.onJfbHide', options)
180
+ },
181
+ onJfbBack(options) {
182
+ console.log('event.onJfbBack', options)
183
+ },
184
+ onJfbUpdate(...data) {
185
+ console.log('event.onJfbUpdate', data)
186
+ },
187
+ onJfbCustomEvent(options) {
188
+ console.log('event.onJfbReachBottom', options)
189
+ },
190
+ }
191
+ }
192
+
193
+ </script>
194
+
195
+ <style scoped lang="less">
196
+ @import "./JfbTakeorderFilterOrderListLess.less";
197
+
198
+ .jfb-takeorder-filter-order-list {
199
+ &__body{
200
+ .fixed_top{
201
+ position: fixed;
202
+ top: 0;
203
+ left: 0;
204
+ width: 100%;
205
+ background: #FFFFFF;
206
+ z-index: 999;
207
+ }
208
+ }
209
+ }
210
+ </style>
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  //start
15
- .jfb-takeorder-unquoted-detail {
15
+ .jfb-takeorder-filter-order-list {
16
16
  box-sizing: border-box;
17
17
 
18
18
  &__body{
@@ -71,7 +71,7 @@
71
71
 
72
72
 
73
73
  /**notPreview**/
74
- .jfb-takeorder-unquoted-detail {
74
+ .jfb-takeorder-filter-order-list {
75
75
  //&:before {
76
76
  //content: " ";
77
77
  //display: table;
@@ -16,7 +16,7 @@ export default {
16
16
  //@EndAttrData
17
17
 
18
18
  // #endif
19
- cssRoot: 'jfb-takeorder-unquoted-detail'
19
+ cssRoot: 'jfb-takeorder-filter-order-list'
20
20
  }
21
21
  },
22
22
  created() {
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+
5
+ getFilterByIdFilmSquate:{},
6
+
7
+ updateFilterFilmPaiqiDate:{},
8
+
9
+ removeFilterFilmAddress:{},
10
+
11
+ addFilterFilmcart:{},
12
+
13
+ }
@@ -0,0 +1,277 @@
1
+ <template>
2
+ <view class="order-wrap">
3
+ <view v-if="isNeedCutDown" :style="{ background: mainColor }" class="order-time">
4
+ <XdFontIcon
5
+ style="margin: 0 24rpx 0 36rpx"
6
+ icon="iconshijian-01"
7
+ size="30"
8
+ ></XdFontIcon>
9
+ 剩余报价时间:<text v-if="item.remainingTime > 0">{{
10
+ formatCountdown(item.remainingTime)
11
+ }}</text
12
+ >,参与报价<text style="color: #ffeb3b">{{ item.people }}</text
13
+ >人</view
14
+ >
15
+ <view class="order-title">
16
+ <view class="order-title-left">
17
+ <view>{{ item.shop_name }}</view>
18
+ <text>|</text>
19
+ <view>{{ item.brand_name }}</view>
20
+ </view>
21
+ <view class="order-title-right">{{ item.city }}</view>
22
+ </view>
23
+ <view
24
+ v-for="(Pitem, Pindex) in item.products"
25
+ :key="Pindex"
26
+ class="order-product"
27
+ >
28
+ <image :src="Pitem.product_thumb"></image>
29
+ <view class="order-product-info">
30
+ <view class="order-product-info-name">{{ Pitem.product_name }}</view>
31
+ <view class="order-product-info-sku"
32
+ >规格:{{ Pitem.product_sku }}</view
33
+ >
34
+ <view class="order-product-info-price">
35
+ <view class="order-product-info-price-left"
36
+ ><text>¥ </text>{{ Pitem.minPrice }}<text class="range">~</text
37
+ ><text>¥ </text>{{ Pitem.maxPrice }}</view
38
+ >
39
+ <view class="order-product-info-price-right"
40
+ ><XdFontIcon
41
+ icon="icondanchuangguanbi_xian"
42
+ color="#999"
43
+ size="14"
44
+ ></XdFontIcon
45
+ ><view>{{ Pitem.num }}</view></view
46
+ >
47
+ </view>
48
+ </view>
49
+ </view>
50
+ <view class="order-price">
51
+ <view class="order-price-left">
52
+ <view class="order-price-left-market"
53
+ >市场原价:¥{{ item.market_price }}(仅供参考)</view
54
+ >
55
+ <view class="order-price-left-settle"
56
+ >结算价格:<view
57
+ ><text>¥ </text>{{ item.minPrice }}<text class="range">~</text
58
+ ><text>¥ </text>{{ item.maxPrice }}</view
59
+ ></view
60
+ >
61
+ </view>
62
+ <view>
63
+ <XdButton @click="handleClick" type="primary" size="small"
64
+ >报价</XdButton
65
+ >
66
+ </view>
67
+ </view>
68
+ </view>
69
+ </template>
70
+
71
+ <script>
72
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
73
+ import XdButton from "@/components/XdButton/XdButton";
74
+
75
+ export default {
76
+ name: "order",
77
+ components: {
78
+ XdFontIcon,
79
+ XdButton,
80
+ },
81
+ data() {
82
+ return {
83
+ isUpdating: false,
84
+ countdownTimer: null,
85
+ };
86
+ },
87
+ props: {
88
+ mainColor: {
89
+ type: String,
90
+ default: "",
91
+ },
92
+ item: {
93
+ type: Object,
94
+ default: () => {},
95
+ },
96
+ isNeedCutDown: {
97
+ type: Boolean,
98
+ default: true,
99
+ }
100
+ },
101
+ computed: {},
102
+ watch: {
103
+ // 当父组件更新了 order.status 时,停止倒计时
104
+ 'item.status'(newVal) {
105
+ if (newVal !== 'pending') {
106
+ this.clearCountdownTimer();
107
+ this.isUpdating = false; // 重置更新状态
108
+ }
109
+ },
110
+ // 当父组件更新了 order.remainingTime 时(例如页面重新显示时的校准),重启倒计时
111
+ 'item.remainingTime'(newVal) {
112
+ if (this.item.status === 'pending' && newVal > 0) {
113
+ this.startCountdown();
114
+ }
115
+ }
116
+ },
117
+ created() {
118
+ // 组件创建时,如果是待支付状态,就启动倒计时
119
+ if (this.item.remainingTime > 0&&this.isNeedCutDown) {
120
+ this.startCountdown();
121
+ }
122
+ },
123
+ destroyed() {
124
+ // 组件销毁时,清理定时器
125
+ this.clearCountdownTimer();
126
+ },
127
+ methods: {
128
+ formatCountdown(seconds) {
129
+ const mins = Math.floor(seconds / 60);
130
+ const secs = seconds % 60;
131
+ return `${mins.toString().padStart(2, "0")}:${secs
132
+ .toString()
133
+ .padStart(2, "0")}`;
134
+ },
135
+ // 数字补零(小于10补前导零)
136
+ padZero(num) {
137
+ return num < 10 ? `0${num}` : num;
138
+ },
139
+ startCountdown() {
140
+ this.clearCountdownTimer();
141
+ this.countdownTimer = setInterval(() => {
142
+ // 这里我们不直接修改 props,而是在倒计时结束时通知父组件
143
+ if (this.item.remainingTime <= 1) {
144
+ // 当倒计时即将结束时
145
+ this.clearCountdownTimer();
146
+ this.isUpdating = true; // 显示“更新中”状态
147
+ this.$emit("expire", this.item.id); // 通知父组件:我过期了!
148
+ } else {
149
+ // 为了UI流畅,可以在这里更新本地倒计时显示,但最终数据以父组件为准
150
+ // 注意:这是一个小技巧,避免每秒都向父组件发送事件
151
+ this.$set(this.item, "remainingTime", this.item.remainingTime - 1);
152
+ }
153
+ }, 1000);
154
+ },
155
+ clearCountdownTimer() {
156
+ if (this.countdownTimer) {
157
+ clearInterval(this.countdownTimer);
158
+ this.countdownTimer = null;
159
+ }
160
+ },
161
+ handleClick() {
162
+ this.$emit("btnEvent", this.item);
163
+ },
164
+ },
165
+ };
166
+ </script>
167
+
168
+ <style lang="less" scoped>
169
+ .order {
170
+ &-wrap {
171
+ background: #fff;
172
+ color: #333;
173
+ margin: 16rpx;
174
+ border-radius: 20rpx;
175
+ }
176
+ &-time {
177
+ color: #fff;
178
+ font-size: 24rpx;
179
+ padding: 20rpx 0;
180
+ border-radius: 20rpx 20rpx 0 0;
181
+ display: flex;
182
+ align-items: center;
183
+ }
184
+ &-title {
185
+ display: flex;
186
+ justify-content: space-between;
187
+ padding: 24rpx 32rpx;
188
+ border-bottom: 1px solid #f4f4f4;
189
+ &-left {
190
+ display: flex;
191
+ align-items: center;
192
+ }
193
+ &-right {
194
+ font-weight: 500;
195
+ }
196
+ }
197
+ &-product {
198
+ display: flex;
199
+ padding: 16rpx 32rpx;
200
+ border-bottom: 1px solid #f4f4f4;
201
+ & > image {
202
+ width: 180rpx;
203
+ height: 180rpx;
204
+ flex-shrink: 0;
205
+ border: 10rpx;
206
+ }
207
+ &-info {
208
+ margin-left: 24rpx;
209
+ &-name {
210
+ .uni-max-cut(2,80);
211
+ margin-bottom: 10rpx;
212
+ }
213
+ &-sku {
214
+ font-size: 24rpx;
215
+ color: #999;
216
+ }
217
+ &-price {
218
+ margin-top: 10rpx;
219
+ display: flex;
220
+ justify-content: space-between;
221
+ align-items: center;
222
+ &-left {
223
+ color: #ff2c18;
224
+ font-size: 32rpx;
225
+ font-weight: 500;
226
+ & > text {
227
+ font-size: 24rpx;
228
+ margin-right: 10rpx;
229
+ }
230
+ .range {
231
+ margin: 0 10rpx;
232
+ }
233
+ }
234
+ &-right {
235
+ color: #999;
236
+ display: flex;
237
+ align-items: baseline;
238
+ & > view {
239
+ margin-left: 10rpx;
240
+ }
241
+ }
242
+ }
243
+ }
244
+ }
245
+ &-price {
246
+ display: flex;
247
+ justify-content: space-between;
248
+ align-items: center;
249
+ padding: 24rpx 32rpx;
250
+ border-radius: 0 0 20rpx 20rpx;
251
+ &-left {
252
+ &-market {
253
+ font-size: 24rpx;
254
+ color: #999;
255
+ margin-bottom: 10rpx;
256
+ }
257
+ &-settle {
258
+ font-size: 24rpx;
259
+ display: flex;
260
+ align-items: center;
261
+ & > view {
262
+ color: #ff2c18;
263
+ font-size: 32rpx;
264
+ font-weight: 500;
265
+ & > text {
266
+ font-size: 24rpx;
267
+ margin-right: 10rpx;
268
+ }
269
+ .range {
270
+ margin: 0 10rpx;
271
+ }
272
+ }
273
+ }
274
+ }
275
+ }
276
+ }
277
+ </style>
@@ -6,53 +6,21 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- //设置方法名字当别忘记加上【模块名字】:Index
10
- mapFnName: 'getIndexByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
9
+ mapFnName: 'getIndexAllMapCity',
10
+ title: '获取城市列表',
11
+ path: '/common/v1/region/city/all-map-city',
13
12
  isRule: false,
14
- params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
17
- },
13
+ params: {},
18
14
  isConsole: true,
19
15
  disabled: true,
20
16
  },
21
17
  {
22
- //设置方法名字当别忘记加上【模块名字】:Index
23
- mapFnName: 'updateIndexFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
18
+ mapFnName: 'getIndexProvince',
19
+ title: '获取省份列表',
20
+ path: '/common/v1/region/city/tree',
26
21
  isRule: false,
27
- params: {
28
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
30
- },
22
+ params: {},
31
23
  isConsole: true,
32
24
  disabled: true,
33
- },
34
- {
35
- //设置方法名字当别忘记加上【模块名字】:Index
36
- mapFnName: 'removeIndexFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
39
- isRule: false,
40
- params: {
41
- film_id: ['电影id', 'Number', '必选'],
42
- },
43
- isConsole: true,
44
- disabled: true,
45
- },
46
- {
47
- //设置方法名字当别忘记加上【模块名字】:Index
48
- mapFnName: 'addIndexFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
51
- isRule: false,
52
- params: {
53
- film_id: ['电影id', 'Number', '必选'],
54
- },
55
- isConsole: true,
56
- disabled: true,
57
- },
25
+ }
58
26
  ];