jufubao-base 1.0.169-beta1 → 1.0.169-beta10

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 (39) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseLogin/Attr.js +54 -16
  3. package/src/components/JfbBaseMapSearch/MapSearchMp.vue +1 -1
  4. package/src/components/JfbBaseOrderDetail/Api.js +12 -7
  5. package/src/components/JfbBaseOrderDetail/Attr.js +28 -14
  6. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +68 -18
  7. package/src/components/JfbBaseOrderDetail/Mock.js +3 -1
  8. package/src/components/JfbBaseTfkCardBind/Api.js +49 -30
  9. package/src/components/JfbBaseTfkCardBind/Attr.js +61 -10
  10. package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +169 -9
  11. package/src/components/JfbBaseTfkCardBind/Mock.js +19 -9
  12. package/src/components/JfbBaseTfkCardDetail/Api.js +26 -0
  13. package/src/components/JfbBaseTfkCardDetail/Attr.js +336 -9
  14. package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +236 -30
  15. package/src/components/JfbBaseTfkCardDetail/Mock.js +2 -2
  16. package/src/components/JfbBaseTfkCardLogin/Attr.js +301 -5
  17. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +317 -158
  18. package/src/components/JfbBaseTfkCardLogin/Mock.js +2 -46
  19. package/src/components/JfbBaseTfkCardLogin/XdCouponItem.vue +271 -0
  20. package/src/components/JfbBaseTfkSearch/AllList.vue +232 -0
  21. package/src/components/JfbBaseTfkSearch/Api.js +11 -42
  22. package/src/components/JfbBaseTfkSearch/Attr.js +225 -33
  23. package/src/components/JfbBaseTfkSearch/ContentCinema.vue +157 -0
  24. package/src/components/JfbBaseTfkSearch/ContentFilm.vue +179 -0
  25. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +308 -0
  26. package/src/components/JfbBaseTfkSearch/ContentShop.vue +184 -0
  27. package/src/components/JfbBaseTfkSearch/CusAttr.js +213 -0
  28. package/src/components/JfbBaseTfkSearch/CustomList.vue +402 -0
  29. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +230 -26
  30. package/src/components/JfbBaseTfkSearch/Mock.js +90 -11
  31. package/src/components/JfbBaseTfkSearch/SkeletonCinema.vue +45 -0
  32. package/src/components/JfbBaseTfkSearch/SkeletonFilm.vue +109 -0
  33. package/src/components/JfbBaseTfkSearch/SkeletonProduct.vue +246 -0
  34. package/src/components/JfbBaseTfkSearch/SkeletonShop.vue +81 -0
  35. package/src/components/JfbBaseTfkSearch/handleKeyword.js +24 -0
  36. package/src/components/JfbBaseTfkSearch/listMixins.js +153 -0
  37. package/src/components/JfbBaseTfkSearch/search.js +293 -0
  38. package/src/mixins/colorCardMixins.js +71 -9
  39. package/src/mixins/componentsMixins.js +346 -23
@@ -7,7 +7,7 @@ module.exports = {
7
7
  card_number: "171003500000707",
8
8
  card_point: 1000,
9
9
  card_type: "2146",
10
- card_type_name: "一对一次卡(2d抵扣45,3d2张兑换一张)",
10
+ card_type_name: "一对一次卡",
11
11
  unit: "次",
12
12
  end_time: "2025-12-31",
13
13
  is_valid: "Y",
@@ -28,7 +28,7 @@ module.exports = {
28
28
  "supermarket",
29
29
  "food"
30
30
  ],
31
- is_login: "N",
31
+ is_login: "Y",
32
32
  consume_type: "1",
33
33
  card_use_rule: "",
34
34
  is_transfering: "Y"
@@ -673,50 +673,6 @@ module.exports = {
673
673
  card_use_rule: "",
674
674
  is_transfering: "N"
675
675
  },
676
- {
677
- id: 54,
678
- business_code: "health",
679
- entry_name: "体检",
680
- image_url: "/uploads/20230927/e06b058a2104025ffecee960b3b9321d.png",
681
- redirect_data:
682
- '{"dir":"apply","host":"sandbox-website-05.jufubao.cn","path":"\\/main\\/health\\/index","site_id":"17928cc37788be02","site_url":"https:\\/\\/sandbox-website-05.jufubao.cn\\/apply\\/main\\/health\\/index","frontPath":"\\/apply\\/main\\/health\\/index","fixed_business_code":""}',
683
- custom_redirect_data: '""',
684
- redirect_type: "INN",
685
- group_id: "default"
686
- },
687
- {
688
- id: 30,
689
- business_code: "travel",
690
- entry_name: "旅游",
691
- image_url: "/uploads/20230927/09ceefe2d1776a399b567c7acdf2c9db.png",
692
- redirect_data:
693
- '{"dir":"apply","host":"sandbox-website-05.jufubao.cn","path":"\\/main\\/travel\\/index","site_id":"17928cc37788be02","site_url":"https:\\/\\/sandbox-website-05.jufubao.cn\\/apply\\/main\\/travel\\/index","frontPath":"\\/apply\\/main\\/travel\\/index","fixed_business_code":""}',
694
- custom_redirect_data: '""',
695
- redirect_type: "INN",
696
- group_id: "default"
697
- },
698
- {
699
- id: 16,
700
- business_code: "play",
701
- entry_name: "演出",
702
- image_url: "/uploads/20230927/07e1d76f1850fbadc9a12d7ff2d7689c.png",
703
- redirect_data:
704
- '{"dir":"apply","host":"sandbox-website-05.jufubao.cn","path":"\\/main\\/play\\/index","site_id":"17928cc37788be02","site_url":"https:\\/\\/sandbox-website-05.jufubao.cn\\/apply\\/main\\/play\\/index","frontPath":"\\/apply\\/main\\/play\\/index","fixed_business_code":""}',
705
- custom_redirect_data: '""',
706
- redirect_type: "INN",
707
- group_id: "default"
708
- },
709
- {
710
- id: 61,
711
- business_code: "v-RcA8Mv-Gpd96_Y_mjIf",
712
- entry_name: "saas",
713
- image_url: "/uploads/20240222/8fc21a6e38d32355ab77f5f7824d36e5.png",
714
- redirect_data:
715
- '{"dir":"apply","host":"sandbox-website-05.jufubao.cn","path":"\\/main\\/saas\\/login","site_id":"17928cc37788be02","site_url":"https:\\/\\/sandbox-website-05.jufubao.cn\\/apply\\/main\\/saas\\/login","frontPath":"\\/apply\\/main\\/saas\\/login","fixed_business_code":"cake"}',
716
- custom_redirect_data: '""',
717
- redirect_type: "INN",
718
- group_id: "default"
719
- }
720
676
  ],
721
677
  request_id: "413e08844fe1d1af"
722
678
  }
@@ -0,0 +1,271 @@
1
+ <template>
2
+ <view class="xd-coupon_item" :style="couponItemBoxStyle">
3
+ <view class="coupon_left" :style="{
4
+ background: couponLeftBgColor
5
+ }">
6
+ <view class="_point">
7
+ <xd-unit
8
+ :unitFontSize="24"
9
+ :fontSize="48"
10
+ :price="item.card_point"
11
+ :isOld="false"
12
+ :unit="item.unit || ''"
13
+ :colorNew="'#ffffff'"
14
+ ></xd-unit>
15
+ <!-- <text style="font-size: 24rpx;">{{ item.unit }}</text> -->
16
+ </view>
17
+ <view class="_rule">{{ item.card_use_rule }}</view>
18
+ </view>
19
+ <view class="coupon_right" :style="couponRightItemBoxStyle">
20
+ <view class="cont_top" :style="{
21
+ background: couponTitleBgColor
22
+ }">{{ item.card_type_name }}</view>
23
+ <view class="cont_main">
24
+ <view class="cou_number">券号:{{ item.card_number }}</view>
25
+ <view class="cou_time">有效期:{{ item.end_time }}</view>
26
+ <view class="cou_point">
27
+ 余额:
28
+ <xd-unit
29
+ :unitFontSize="24"
30
+ :fontSize="28"
31
+ :price="item.card_point"
32
+ :isOld="false"
33
+ :unit="item.unit || ''"
34
+ :colorNew="'#333333'"
35
+ ></xd-unit>
36
+ </view>
37
+ <view class="cou_btn"
38
+ :style="[
39
+ item.is_login === 'Y' ? couponBtnActiveStyle : couponBtnStyle,
40
+ {
41
+ padding: couponBtnPadding,
42
+ borderRadius: couponBtnRadius + 'rpx'
43
+ }
44
+ ]"
45
+ @click="goToUseCoupon"
46
+ >{{item.is_login === 'Y' ? '已登录' : '去使用'}}</view>
47
+ </view>
48
+ <view class="cont_bottom">
49
+ <view class="switch_rule" @click="switchRule">
50
+ <view>使用规则</view>
51
+ <view>
52
+ <xd-font-icon v-if="!expand" icon="iconxia_down" size="24"></xd-font-icon>
53
+ <xd-font-icon v-else icon="iconshang_up" size="24"></xd-font-icon>
54
+ </view>
55
+ </view>
56
+ <view v-if="expand" class="expand_rule">
57
+ {{ item.card_use_rule }}
58
+ </view>
59
+ </view>
60
+ </view>
61
+ </view>
62
+ </template>
63
+ <script>
64
+ import getServiceUrl from '@/common/getServiceUrl'
65
+ import XdUnit from "@/components/XdUnit/XdUnit";
66
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
67
+ export default{
68
+ name: "XdCouponItem",
69
+ components: {
70
+ XdFontIcon,
71
+ XdUnit
72
+ },
73
+ props: {
74
+ item:{
75
+ type: Object,
76
+ },
77
+ couponRadius: {
78
+ type: String,
79
+ default: "16"
80
+ },
81
+ couponLeftBgColor: {
82
+ type: String,
83
+ default: 'linear-gradient(180deg, #FFA852 0%, #FF5733 100%)'
84
+ },
85
+ couponImageUrl: {
86
+ type: Object | String
87
+ },
88
+ couponTitleBgColor: {
89
+ type: String,
90
+ default: "rgba(255, 87, 51, 0.1)"
91
+ },
92
+ couponUseBtnPadding: {
93
+ type: Object,
94
+ default(){
95
+ return {
96
+ top: 20,
97
+ right: 20,
98
+ bottom: 10,
99
+ left: 20
100
+ }
101
+ },
102
+ },
103
+ couponBtnRadius: {
104
+ type: String,
105
+ default: "16"
106
+ },
107
+ couponBtnTextStyle: {
108
+ type: Object,
109
+ default(){
110
+ return {
111
+ color: '#fff',
112
+ bgColor: '#ff5722',
113
+ fontSize: '30rpx',
114
+ fontWeight: 'normal'
115
+ }
116
+ }
117
+ }
118
+ },
119
+ data() {
120
+ return {
121
+ expand: false,
122
+ }
123
+ },
124
+ computed: {
125
+ couponItemBoxStyle(){
126
+ return this.styleObjectToString({
127
+ borderRadius: this.couponRadius + 'rpx',
128
+ })
129
+ },
130
+ couponBtnPadding(){
131
+ let padding = `${this.checkValue(this.couponUseBtnPadding.top, 20)}rpx`;
132
+ padding = `${padding} ${this.checkValue(this.couponUseBtnPadding.right, 20)}rpx`;
133
+ padding = `${padding} ${this.checkValue(this.couponUseBtnPadding.bottom, 20)}rpx`;
134
+ padding = `${padding} ${this.checkValue(this.couponUseBtnPadding.left, 20)}rpx`;
135
+ return padding;
136
+ },
137
+ couponBtnStyle(){
138
+ let styleObj = {
139
+ color: this.couponBtnTextStyle['color'] || '#333',
140
+ background: this.couponBtnTextStyle['bgColor'] || '#fff',
141
+ fontSize: this.couponBtnTextStyle['fontSize'] || '30rpx',
142
+ fontWeight: this.couponBtnTextStyle['fontWeight'] || 'normal',
143
+ }
144
+ return this.styleObjectToString(styleObj)
145
+ },
146
+ couponBtnActiveStyle(){
147
+ return this.styleObjectToString({
148
+ color: this.couponBtnTextStyle['actColor'] || '#fff',
149
+ background: this.couponBtnTextStyle['actBgColor'] || '#ff5722',
150
+ fontSize: this.couponBtnTextStyle['actFontSize'] || '30rpx',
151
+ fontWeight: this.couponBtnTextStyle['actFontWeight'] || 'normal',
152
+ })
153
+ },
154
+ couponRightItemBoxStyle(){
155
+ let image = {};
156
+ if(this.cardImageUrl) image = {
157
+ backgroundImage: `url(${this.getCouponBgImage})`,
158
+ backgroundSize: '100%',
159
+ backgroundRepeat: 'no-repeat',
160
+ }
161
+ return this.styleObjectToString(image)
162
+ },
163
+ getCouponBgImage(){
164
+ let bg = '';
165
+ if(this.$xdUniHelper.checkVarType(this.couponImageUrl) === 'object'
166
+ || this.$xdUniHelper.checkVarType(this.couponImageUrl) === 'array'
167
+ ) {
168
+ if(!this.$xdUniHelper.isEmpty(this.couponImageUrl)) {
169
+ return getServiceUrl(this.couponImageUrl.url)
170
+ }
171
+ }
172
+ return bg
173
+ },
174
+ },
175
+ methods: {
176
+ switchRule(){
177
+ this.expand = !this.expand;
178
+ },
179
+ goToUseCoupon(){
180
+ this.$emit('useCoupon', this.item);
181
+ },
182
+ checkValue(value, dValue = 0){
183
+ if(value === undefined || value === '' || value === null) return dValue;
184
+ return Number(value || 0);
185
+ },
186
+ }
187
+ }
188
+
189
+ </script>
190
+ <style lang="less" scoped>
191
+ .xd-coupon_item{
192
+ display: flex;
193
+ margin: 20rpx 0;
194
+ border-radius: 16rpx;
195
+ background: #FFFFFF;
196
+ overflow: hidden;
197
+ .coupon_left{
198
+ color: #FFFFFF;
199
+ width: 170rpx;
200
+ display: flex;
201
+ flex-direction: column;
202
+ align-items: center;
203
+ justify-content: center;
204
+
205
+ ._point{
206
+ font-size: 48rpx;
207
+ }
208
+ ._rule{
209
+ font-size: 24rpx;
210
+ }
211
+ }
212
+ .coupon_right{
213
+ flex: 1;
214
+ width: 530rpx;
215
+ .cont_top{
216
+ background: rgba(255, 87, 51, 0.1);
217
+ padding: 8rpx 40rpx;
218
+ font-size: 24rpx;
219
+ overflow: hidden;
220
+ white-space: nowrap;
221
+ text-overflow: ellipsis;
222
+ }
223
+ .cont_main{
224
+ position: relative;
225
+ padding: 28rpx 20rpx 28rpx 40rpx;
226
+ color: #333333;
227
+ .cou_number{
228
+ font-size: 32rpx;
229
+ font-weight: bold;
230
+ }
231
+ .cou_time{
232
+ font-size: 28rpx;
233
+ margin: 16rpx 0;
234
+ }
235
+ .cou_point{
236
+ font-size: 28rpx;
237
+ display: flex;
238
+ align-items: center;
239
+ }
240
+ .cou_btn{
241
+ position: absolute;
242
+ padding: 10rpx 30rpx;
243
+ background-color: #ddd;
244
+ border-radius: 12rpx;
245
+ right: 20rpx;
246
+ bottom: 20rpx;
247
+ }
248
+ }
249
+ .cont_bottom{
250
+ background: #EEEEEE;
251
+ .switch_rule{
252
+ display: flex;
253
+ align-items: center;
254
+ justify-content: space-between;
255
+ padding: 12rpx 40rpx;
256
+ font-size: 24rpx;
257
+ color: #666666;
258
+ }
259
+ .expand_rule{
260
+ padding: 12rpx 40rpx;
261
+ font-size: 20rpx;
262
+ color: #333333;
263
+ overflow: hidden;
264
+ white-space: nowrap;
265
+ text-overflow: ellipsis;
266
+ background-color: #F5F5F5;
267
+ }
268
+ }
269
+ }
270
+ }
271
+ </style>
@@ -0,0 +1,232 @@
1
+ <template>
2
+ <view class="search_all_list" >
3
+ <view class="module_item" v-for="parent in list" :key="parent.setting_id"
4
+ :style="moduleItemStyle"
5
+ >
6
+ <view class="module_title" :style="moduleItemTitleStyle">{{ parent.name }}</view>
7
+ <view class="module_cont">
8
+ <view v-for="(item, i) in parent.items" :key="i">
9
+ <content-cinema v-if="parent.type === 'cinema'"
10
+ style="width: 100%; height: 100%"
11
+ :keyword="keyword"
12
+ :item="item"
13
+ :out-spacing="$parentVm.outSpacing"
14
+ :color="{SEAT:$parentVm.mainColor,CODE:$parentVm.subMainColor,SELL:$parentVm.successColor}"
15
+ :border-radius="$parentVm.imgRradius"
16
+ :brand-color="$parentVm.brandColor"
17
+ @on-schedule="(cinema)=>{$parentVm.handleSchedule(cinema,parent)}"
18
+ @on-cashier-detail="(cinema)=>{$parentVm.handleCashierDetail(cinema,parent)}"
19
+ @on-code-detail="(cinema)=>{$parentVm.handleCodeDetail(cinema,parent)}"
20
+ ></content-cinema>
21
+
22
+ <content-film v-if="parent.type === 'film'"
23
+ type="hot"
24
+ style="width: 100%; height: 100%"
25
+ :keyword="keyword"
26
+ :item="item"
27
+ :out-spacing="$parentVm.outSpacing"
28
+ :color="$parentVm.mainColor"
29
+ :border-radius="$parentVm.imgRradius"
30
+ :brand-color="$parentVm.brandColor"
31
+ @on-film-detail="(film_id)=>{$parentVm.handleFilmDetail(film_id, parent)}"
32
+ @on-buy="(film_id)=>{$parentVm.handleBuy(film_id, parent)}"
33
+ ></content-film>
34
+
35
+ <content-shop v-if="parent.type === 'shop'"
36
+ style="width: 100%; height: 100%"
37
+ :keyword="keyword"
38
+ :item="item"
39
+ :out-spacing="$parentVm.outSpacing"
40
+ :color="$parentVm.mainColor"
41
+ :border-radius="$parentVm.imgRradius"
42
+ :brand-color="$parentVm.brandColor"
43
+ :is-echange="'Y' || $parentVm.isShowExchange"
44
+ @on-shop-jhd="(shop)=>{$parentVm.handleShopJhd(shop,parent)}"
45
+ @on-shop-detail="(shop)=>{$parentVm.handleShopDetail(shop,parent)}"
46
+ ></content-shop>
47
+
48
+ <content-product v-if="parent.type === 'product'"
49
+ style="width: 100%; height: 100%"
50
+ :keyword="keyword"
51
+ :item="item"
52
+ :product-config="$parentVm.productConfig"
53
+ :out-spacing="$parentVm.outSpacing"
54
+ :color="$parentVm.mainColor"
55
+ :brand-color="$parentVm.brandColor"
56
+ :border-radius="$parentVm.imgRradius"
57
+ :cell="1"
58
+ @on-product-detail="(product)=>{$parentVm.handleProductDetail(product,parent)}"
59
+ ></content-product>
60
+ </view>
61
+ </view>
62
+ <view class="module_more">
63
+ <view class="more_inner" :style="moduleMoreStyle" @click="switchMenu(parent)">查看全部</view>
64
+ </view>
65
+ </view>
66
+ </view>
67
+ </template>
68
+
69
+ <script>
70
+ import ContentCinema from "./ContentCinema.vue"
71
+ import ContentFilm from "./ContentFilm.vue"
72
+ import ContentShop from "./ContentShop.vue"
73
+ import ContentProduct from "./ContentProduct.vue"
74
+ import {mapState} from "vuex";
75
+ export default{
76
+ name: "SearchAllList",
77
+ components: {
78
+ ContentCinema,
79
+ ContentFilm,
80
+ ContentShop,
81
+ ContentProduct
82
+ },
83
+ props: {
84
+ keyword:{
85
+ type:String,
86
+ default:'',
87
+ },
88
+ },
89
+ computed: {
90
+ ...mapState({
91
+ stateCity: state => state.cityLocation.city,
92
+ stateLocation: (state) => state.cityLocation.location || {},
93
+ }),
94
+ contMarginComp(){
95
+ let str = `${this.$parentVm.checkValue(this.$parentVm.contMargin.top, 20)}rpx`;
96
+ str = `${str} ${this.$parentVm.checkValue(this.$parentVm.contMargin.right, 20)}rpx`;
97
+ str = `${str} ${this.$parentVm.checkValue(this.$parentVm.contMargin.bottom, 20)}rpx`;
98
+ str = `${str} ${this.$parentVm.checkValue(this.$parentVm.contMargin.left, 20)}rpx`;
99
+ return str
100
+ },
101
+ moduleItemStyle(){
102
+ let padding = `${this.$parentVm.checkValue(this.$parentVm.allModulePadding.top, 20)}rpx`;
103
+ padding = `${padding} ${this.$parentVm.checkValue(this.$parentVm.allModulePadding.right, 20)}rpx`;
104
+ padding = `${padding} ${this.$parentVm.checkValue(this.$parentVm.allModulePadding.bottom, 20)}rpx`;
105
+ padding = `${padding} ${this.$parentVm.checkValue(this.$parentVm.allModulePadding.left, 20)}rpx`;
106
+
107
+ return this.styleObjectToString({
108
+ background: this.$parentVm.allListBgColor,
109
+ padding: padding,
110
+ marginBottom: this.$parentVm.allModuleMargin + 'rpx'
111
+ })
112
+ },
113
+ moduleItemTitleStyle(){
114
+ let padding = `${this.$parentVm.checkValue(this.$parentVm.allModuleTitlePadding.top, 20)}rpx`;
115
+ padding = `${padding} ${this.$parentVm.checkValue(this.$parentVm.allModuleTitlePadding.right, 20)}rpx`;
116
+ padding = `${padding} ${this.$parentVm.checkValue(this.$parentVm.allModuleTitlePadding.bottom, 20)}rpx`;
117
+ padding = `${padding} ${this.$parentVm.checkValue(this.$parentVm.allModuleTitlePadding.left, 20)}rpx`;
118
+
119
+ let allModuleTitleStyle = this.$parentVm.allModuleTitleStyle;
120
+ let style = {padding: padding};
121
+ if(allModuleTitleStyle === 'underline'){
122
+ style['borderBottom'] = '1px solid #EEEEEE';
123
+ }else{
124
+ style['background'] = this.$parentVm.allModuleTitleBgColor;
125
+ }
126
+
127
+ return this.styleObjectToString(style);
128
+ },
129
+ moduleMoreStyle(){
130
+ let allModuleMoreStyle = this.$parentVm.allModuleMoreStyle;
131
+ let style = {};
132
+ if(allModuleMoreStyle === 'text'){
133
+
134
+ }else{
135
+ style['border'] = '1px solid #EEEEEE';
136
+ style['background'] = '#EEEEEE';
137
+ style['color'] = '#999999';
138
+ }
139
+ return this.styleObjectToString(style);
140
+ },
141
+ },
142
+ watch: {
143
+ keyword(){
144
+ this.getList()
145
+ },
146
+ stateCity(n, o){
147
+ if(n && JSON.stringify(n) !== JSON.stringify(o)){
148
+ this.getList()
149
+ }
150
+ },
151
+ },
152
+ data(){
153
+ return {
154
+ $parentVm:null,
155
+ parentStatus: false,
156
+
157
+ list: [],
158
+ }
159
+ },
160
+ created(){
161
+ this.getParentMV();
162
+ this.getList();
163
+ },
164
+ methods: {
165
+ getParentMV(){
166
+ this.$emit('on-parent-vm', ($vm)=>{
167
+ this.$parentVm = $vm;
168
+ this.parentStatus = true;
169
+ })
170
+ },
171
+ getList(){
172
+ let params = {keyword: this.keyword};
173
+ //设置城市
174
+ if(this.stateCity && this.stateCity.city_code) {
175
+ params['city_code'] = this.stateCity.city_code;
176
+ }
177
+
178
+ //设置经纬度
179
+ if(this.stateLocation &&
180
+ (this.stateLocation.latitude && this.stateLocation.longitude)
181
+ ){
182
+ params['latitude'] = this.stateLocation.latitude;
183
+ params['longitude'] = this.stateLocation.longitude;
184
+ }
185
+
186
+ this.$xdShowLoading({});
187
+ this.$emit('on-list', {
188
+ params: params,
189
+ cb:(list)=>{
190
+ this.list = list;
191
+ this.$xdHideLoading();
192
+ }
193
+ })
194
+ },
195
+ switchMenu(item){
196
+ this.$emit('on-switch', {...item, value: item.tab});
197
+ }
198
+ }
199
+ }
200
+ </script>
201
+
202
+ <style lang="less" scoped>
203
+ .search_all_list{
204
+ .module_item{
205
+ background-color: #FFFFFF;
206
+ margin-bottom: 20rpx;
207
+ }
208
+ .module_title{
209
+ font-size: 28rpx;
210
+ color: #333333;
211
+ }
212
+ .module_cont{
213
+ padding: 20rpx 0;
214
+ }
215
+ .module_more{
216
+ display: flex;
217
+ justify-content: center;
218
+ align-items: center;
219
+ font-size: 26rpx;
220
+ color: #999999;
221
+ margin-top: 32rpx;
222
+ .more_inner{
223
+ display: flex;
224
+ justify-content: center;
225
+ align-items: center;
226
+ height: 80rpx;
227
+ width: 200rpx;
228
+ border-radius: 80rpx;
229
+ }
230
+ }
231
+ }
232
+ </style>
@@ -7,50 +7,19 @@
7
7
  module.exports = [
8
8
  {
9
9
  //设置方法名字当别忘记加上【模块名字】:Tfk
10
- mapFnName: 'getTfkByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
10
+ mapFnName: 'getTfkSearchList',
11
+ title: '获取s搜索列表',
12
+ path: '/mall/v1/search',
13
13
  isRule: false,
14
14
  params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
17
- },
18
- isConsole: true,
19
- disabled: true,
20
- },
21
- {
22
- //设置方法名字当别忘记加上【模块名字】:Tfk
23
- mapFnName: 'updateTfkFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
26
- isRule: false,
27
- params: {
28
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
30
- },
31
- isConsole: true,
32
- disabled: true,
33
- },
34
- {
35
- //设置方法名字当别忘记加上【模块名字】:Tfk
36
- mapFnName: 'removeTfkFilmAddress',
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
- //设置方法名字当别忘记加上【模块名字】:Tfk
48
- mapFnName: 'addTfkFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
51
- isRule: false,
52
- params: {
53
- film_id: ['电影id', 'Number', '必选'],
15
+ keyword: ['模糊搜索关键字', 'Number', '必选'],
16
+ namespace: ['业务线', 'Number', '必选'],
17
+ city_code: ['城市编码', 'Number', '必选'],
18
+ latitude: ['纬度', 'Number', '必选'],
19
+ longitude: ['经度', 'Number', '必选'],
20
+ search_range: ['搜索范围', 'Number', '必选'],
21
+ page_size: ['每页条数', 'Number', '必选'],
22
+ page_token: ['当前页码', 'Number', '必选'],
54
23
  },
55
24
  isConsole: true,
56
25
  disabled: true,