Browse Source

紫亚兰专题

zhengjinyi 10 months ago
parent
commit
9778a046c3

+ 3 - 3
components/cm-module/cart-components/index.vue

@@ -391,14 +391,14 @@
 													{{
 														coupon.productType && coupon.productType == 1
 															? '全商城商品通用'
-															: '仅可购买指定商品'
+															: coupon.couponName
 													}}
 												</text>
 												<text v-if="coupon.couponType == 1">
 													{{
 														coupon.categoryType == 1
-															? '仅限购买产品类商品'
-															: '仅限购买仪器类商品'
+															? coupon.couponName
+															: coupon.couponName
 													}}
 												</text>
 												<text v-if="coupon.couponType == 3"

+ 3 - 3
pages/goods/product.vue

@@ -409,14 +409,14 @@
 															{{
 																coupon.productType && coupon.productType == 1
 																	? '全商城商品通用'
-																	: '仅可购买指定商品'
+																	: coupon.couponName
 															}}
 														</text>
 														<text v-if="coupon.couponType == 1">
 															{{
 																coupon.categoryType == 1
-																	? '仅限购买产品类商品'
-																	: '仅限购买仪器类商品'
+																	? coupon.couponName
+																	: coupon.couponName
 															}}
 														</text>
 														<text v-if="coupon.couponType == 3">

+ 88 - 51
pages/h5/activity/activity-entry.vue

@@ -1,52 +1,56 @@
 <template>
 	<view class="container cashier">
-        <custom :navbar-data='nvabarData' />
-        <view class="container-banner" :style="{ paddingTop:CustomBar + 180 +'px' }">
-            <view class="login-input">
-            	<input type="text" 
-            		   v-model="params.ticket"
-            		   maxlength="20" 
-                       disabled="true"
-            		   class="input" 
-            	/>
+        <tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading="true" :loadingType="5" />
+        <template v-else>
+            <custom :navbar-data='nvabarData' />
+            <view class="container-banner" :style="{ paddingTop:CustomBar + 170 +'px' }">
+                <view class="container-title">{{ voteTitle }}</view>
+                <view class="login-input">
+                	<input type="text" 
+                		   v-model="params.ticket"
+                		   maxlength="20" 
+                           disabled="true"
+                		   class="input"  
+                	/>
+                </view>
+                <view class="login-input">
+                	<input type="text" 
+                		   v-model="params.name"
+                		   maxlength="10" 
+                		   class="input" 
+                		   placeholder="您的姓名"
+                	/>
+                </view>
+                <view class="login-input">
+                	<input type="text" 
+                		   v-model="params.idCard"
+                		   maxlength="20" 
+                		   class="input" 
+                		   placeholder="证件号码(身份证/港澳台通行证/护照)"
+                	/>
+                </view>
+                <view class="login-input">
+                	<input type="text" 
+                		   v-model="params.mobile"
+                		   maxlength="11" 
+                		   class="input" 
+                		   placeholder="您的联系电话"
+                	/>
+                </view>
+                <view class="login-input">
+                	<input type="text" 
+                		   v-model="params.work"
+                		   maxlength="15" 
+                		   class="input" 
+                		   placeholder="您的职业"
+                	/>
+                </view>
+                <view class="login-btn"  v-show="isBundled" @click="handleEntry">绑定采美账号</view>
+                <view class="login-text">
+                    说明:门票绑定的证件号码是作为进入大会会场的凭证。
+                </view>
             </view>
-            <view class="login-input">
-            	<input type="text" 
-            		   v-model="params.name"
-            		   maxlength="10" 
-            		   class="input" 
-            		   placeholder="您的姓名"
-            	/>
-            </view>
-            <view class="login-input">
-            	<input type="text" 
-            		   v-model="params.idCard"
-            		   maxlength="20" 
-            		   class="input" 
-            		   placeholder="证件号码(身份证/港澳台通行证/护照)"
-            	/>
-            </view>
-            <view class="login-input">
-            	<input type="text" 
-            		   v-model="params.mobile"
-            		   maxlength="11" 
-            		   class="input" 
-            		   placeholder="您的联系电话"
-            	/>
-            </view>
-            <view class="login-input">
-            	<input type="text" 
-            		   v-model="params.work"
-            		   maxlength="15" 
-            		   class="input" 
-            		   placeholder="您的职业"
-            	/>
-            </view>
-            <view class="login-btn"  @click="handleEntry">绑定采美账号</view>
-            <view class="login-text">
-                说明:门票绑定的证件号码是作为进入大会会场的凭证。
-            </view>
-        </view>
+        </template>
         <!-- 提示弹窗 -->
         <tui-modal
         	:show="modal"
@@ -77,7 +81,8 @@
                 	textLeft:this.$store.state.isIphone
                 },
 				isIphoneX:this.$store.state.isIphoneX,
-				CustomBar:this.CustomBar,// 顶部导航栏高度
+				CustomBar:this.CustomBar,// 顶部导航栏高度
+                skeletonShow:true,
 				params:{
                     name:'',
                     idCard:'',
@@ -86,6 +91,7 @@
                     work:'',
                     userId:''
                 },
+                voteTitle:'',
                 modal: false,
                 contentModalText: '', //操作文字提示语句
                 modalButton: [
@@ -102,12 +108,12 @@
                 		},
                 		plain: false
                 	}
-                ]
+                ],
+                isBundled:true
 			}
 		},
 		onLoad(option) {
             wxLogin.wxLoginAuthorize()
-            this.params.ticket = option.ticket
             setTimeout(()=>{
                 this.initData(option)
             },2000)
@@ -119,8 +125,31 @@
             // 初始化
             async initData(option) {
             	const userInfo = await this.$api.getStorage()
-                this.params.userId = userInfo.userId
-                this.contentModalText = `您的采美机构账号为【${userInfo.name}】,确认绑定吗?`
+                this.params.ticket = option.ticket
+                this.voteTitle = option.voteType*1 === 1 ? '大会通票' : '学术套票'
+                console.log('userInfo',userInfo)
+                if(userInfo.userId){
+                    this.params.userId = userInfo.userId
+                    this.contentModalText = `您的采美机构账号为【${userInfo.name}】,确认绑定吗?`
+                }
+                this.getTicketDetails({ ticket: option.ticket})
+            },
+            // 查询门票信息
+            async getTicketDetails(params){
+            	try{
+            		const res = await this.UserService.getTicketDetails(params)
+                    const data = res.data
+                    if(data.userId){
+                        this.isBundled = false
+                        this.params = {...this.params ,...data}
+                        this.params.idCard = data.idCard.substring(0, 4) + '**********' + data.idCard.substring(data.idCard.length - 4);
+                    }else{
+                        this.isBundled = true
+                    }
+                    this.skeletonShow = false
+            	}catch(error){
+            		this.$util.msg(error.msg,2000)
+            	}
             },
             //确认操作
             handleClick(e) {
@@ -191,6 +220,14 @@
         background-size: contain;
         box-sizing: border-box;
         padding: 0 110rpx;
+        .container-title{
+            height: 120rpx;
+            line-height: 120rpx;
+            font-size: $font-size-48;
+            font-weight: 600;
+            text-align: center;
+            color: #FFFFFF;
+        }
         .login-title{
             font-size: $font-size-28;
             line-height: 58rpx;

+ 2 - 2
pages/seller/cart/coupon-share.vue

@@ -19,10 +19,10 @@
 						<view class="list-cell-price"> {{ coupon.couponAmount }}元满{{ coupon.touchPrice }}可用 </view>
 						<view class="list-cell-texts">
 							<text v-if="coupon.couponType == 0">
-								{{ coupon.productType && coupon.productType == 1 ? '全商城商品通用' : '仅可购买指定商品' }}
+								{{ coupon.productType && coupon.productType == 1 ? '全商城商品通用' : coupon.couponName }}
 							</text>
 							<text v-if="coupon.couponType == 1">
-								{{ coupon.categoryType == 1 ? '仅限购买产品类商品' : '仅限购买仪器类商品' }}
+								{{ coupon.categoryType == 1 ? coupon.couponName : coupon.couponName }}
 							</text> 
 							<text v-if="coupon.couponType == 3">仅限购买店铺【{{ coupon.shopName }}】的商品</text>
 							<text v-if="coupon.couponType == 4 || coupon.couponType == 2">全商城商品通用</text>

+ 3 - 3
pages/seller/order/components/cm-coupon-popup.vue

@@ -55,14 +55,14 @@
 													{{
 														coupon.productType && coupon.productType == 1
 															? '全商城商品通用'
-															: '仅可购买指定商品'
+															: coupon.couponName
 													}}
 												</text>
 												<text v-if="coupon.couponType == 1">
 													{{
 														coupon.categoryType == 1
-															? '仅限购买产品类商品'
-															: '仅限购买仪器类商品'
+															? coupon.couponName
+															: coupon.couponName
 													}}
 												</text>
 												<text v-if="coupon.couponType == 3"

+ 2 - 2
pages/user/coupon/coupon-activity.vue

@@ -40,11 +40,11 @@
 											{{
 												coupon.productType && coupon.productType == 1
 													? '全商城商品通用'
-													: '仅可购买指定商品'
+													: coupon.couponName
 											}}
 										</text>
 										<text v-if="coupon.couponType == 1">
-											{{ coupon.categoryType == 1 ? '仅限购买产品类商品' : '仅限购买仪器类商品' }}
+											{{ coupon.categoryType == 1 ? coupon.couponName : coupon.couponName }}
 										</text>
 										<text v-if="coupon.couponType == 3"
 											>仅限购买店铺【{{ coupon.shopName }}】的商品</text

+ 2 - 2
pages/user/coupon/coupon-collection.vue

@@ -30,11 +30,11 @@
 										{{
 											coupon.productType && coupon.productType == 1
 												? '全商城商品通用'
-												: '仅可购买指定商品'
+												: coupon.couponName
 										}}
 									</text>
 									<text v-if="coupon.couponType == 1">
-										{{ coupon.categoryType == 1 ? '仅限购买产品类商品' : '仅限购买仪器类商品' }}
+										{{ coupon.categoryType == 1 ? coupon.couponName : coupon.couponName }}
 									</text>
 									<text v-if="coupon.couponType == 3"
 										>仅限购买店铺【{{ coupon.shopName }}】的商品</text

+ 3 - 3
pages/user/coupon/coupon-details.vue

@@ -33,11 +33,11 @@
                                             {{
                 								coupon.productType && coupon.productType == 1
                 									? '全商城商品通用'
-                									: '仅可购买指定商品'
+                									: coupon.couponName
                 							}}
                                         </text>
                                         <text v-if="coupon.couponType == 1">
-                                            {{ coupon.categoryType == 1 ? '仅限购买产品类商品' : '仅限购买仪器类商品' }}
+                                            {{ coupon.categoryType == 1 ? coupon.couponName : coupon.couponName }}
                                         </text>
                                         <text v-if="coupon.couponType == 3">仅限购买店铺【{{ coupon.shopName }}】的商品</text>
                                         <text v-if="coupon.couponType == 4 || coupon.couponType == 2">全商城商品通用</text>
@@ -92,7 +92,7 @@
             console.log('绑定分享参数', { query: `couponId=${option.couponId}&shareUserId=${option.shareUserId}` })
             wx.onCopyUrl(() => {
                 return { query: `couponId=${option.couponId}&shareUserId=${option.shareUserId}` }
-            });
+            })
             // #endif
             this.initCouponDetail(this.param.couponId)
         },

+ 15 - 15
pages/user/coupon/coupon-exchange.vue

@@ -33,10 +33,10 @@
 						<view class="list-cell-ri">
 							<view class="list-cell-top">
 								<text v-if="coupon.couponType == 0">
-									{{ coupon.productType && coupon.productType == 1 ? '全商城商品通用' : '仅可购买指定商品'  }}
+									{{ coupon.productType && coupon.productType == 1 ? '全商城商品通用' : coupon.couponName  }}
 								</text>
 								<text v-if="coupon.couponType == 1">
-									{{ coupon.categoryType == 1 ? '仅限购买产品类商品' : '仅限购买仪器类商品' }}
+									{{ coupon.categoryType == 1 ? coupon.couponName : coupon.couponName }}
 								</text>
 								<text v-if="coupon.couponType == 3">仅限购买店铺【{{ coupon.shopName }}】的商品</text>
 								<text v-if="coupon.couponType == 4 || coupon.couponType == 2">全商城商品通用</text>
@@ -52,7 +52,7 @@
 </template>
 
 <script>
-	import { mapState,mapMutations} from 'vuex';
+	import { mapState,mapMutations} from 'vuex'
 	export default {
 		components:{
 			
@@ -75,20 +75,20 @@
 			TypeFormat:function(value) {
 				switch (value) {
 					case 0:
-						return  '活动券';
-						break;
+						return  '活动券'
+						break
 					case 1:
-						return  '品类券';
-						break;
+						return  '品类券'
+						break
 					case 2:
-						return  '用户专享券';
-						break;
+						return  '用户专享券'
+						break
 					case 3:
-						return  '店铺券';
-						break;
+						return  '店铺券'
+						break
 					case 4:
-						return  '新用户券';
-						break;
+						return  '新用户券'
+						break
 				}
 			}
 		},
@@ -109,7 +109,7 @@
 					this.isCouponModel = true
 				})
 				.catch(error =>{
-					this.$util.msg(error.msg,2000);
+					this.$util.msg(error.msg,2000)
 				})
 			},
 			handleClickCancel(){// 关闭弹窗并跳转个人优惠券中心
@@ -119,7 +119,7 @@
 		},
 		onShow(){
 			this.$api.getComStorage('userInfo').then((resolve) =>{
-				this.params.userId = resolve.userId ? resolve.userId : 0;
+				this.params.userId = resolve.userId ? resolve.userId : 0
 			}).catch(error =>{
 				console.log('暂无用户信息~')
 			})

+ 2 - 2
pages/user/coupon/coupon.vue

@@ -68,11 +68,11 @@
 											{{
 												coupon.productType && coupon.productType == 1
 													? '全商城商品通用'
-													: '仅可购买指定商品'
+													: coupon.couponName
 											}}
 										</text>
 										<text v-if="coupon.couponType == 1">
-											{{ coupon.categoryType == 1 ? '仅限购买产品类商品' : '仅限购买仪器类商品' }}
+											{{ coupon.categoryType == 1 ? coupon.couponName : coupon.couponName }}
 										</text>
 										<text v-if="coupon.couponType == 3"
 											>仅限购买店铺【{{ coupon.shopName }}】的商品</text

+ 3 - 3
pages/user/order/components/cm-coupon-popup.vue

@@ -46,14 +46,14 @@
 												{{
 													coupon.productType && coupon.productType == 1
 														? '全商城商品通用'
-														: '仅可购买指定商品'
+														: coupon.couponName
 												}}
 											</text>
 											<text v-if="coupon.couponType == 1">
 												{{
 													coupon.categoryType == 1
-														? '仅限购买产品类商品'
-														: '仅限购买仪器类商品'
+														? coupon.couponName
+														: coupon.couponName
 												}}
 											</text>
 											<text v-if="coupon.couponType == 3"

+ 2 - 2
pages/user/order/components/cm-coupon-tips.vue

@@ -18,11 +18,11 @@
 								{{
 									coupon.productType && coupon.productType == 1
 										? '全商城商品通用'
-										: '仅可购买指定商品'
+										: coupon.couponName
 								}}
 							</text>
 							<text v-if="coupon.couponType == 1">
-								{{ coupon.categoryType == 1 ? '仅限购买产品类商品' : '仅限购买仪器类商品' }}
+								{{ coupon.categoryType == 1 ? coupon.couponName : coupon.couponName }}
 							</text>
 							<text v-if="coupon.couponType == 3">仅限购买店铺【{{ coupon.shopName }}】的商品</text>
 							<text v-if="coupon.couponType == 4 || coupon.couponType == 2">全商城商品通用</text>

+ 2 - 2
services/config.env.js

@@ -2,8 +2,8 @@ let URL_CONFIG = ''
 if(process.env.NODE_ENV === 'development'){
     // 开发环境
     // URL_CONFIG = 'http://192.168.2.67:18002'	 //智捷联调地址
-    URL_CONFIG = 'https://core-b.caimei365.com' 
-    // URL_CONFIG = 'https://core.caimei365.com'    
+    // URL_CONFIG = 'https://core-b.caimei365.com' 
+    URL_CONFIG = 'https://core.caimei365.com'    
 }else{
     // 生产环境
     URL_CONFIG = 'https://core.caimei365.com'

+ 11 - 0
services/user.service.js

@@ -1099,6 +1099,17 @@ export default class UserService {
             isLoading: false
         })
     }
+    /**
+     * @紫亚兰活动-票信息
+     * @param:ticket 
+     */
+    getTicketDetails(data = {}) {
+        return this.AjaxService.get({
+            url: '/user/login/ticket/detail',
+            data,
+            isLoading: false
+        })
+    }
     /**
      * @紫亚兰活动-获取展位信息
      * @param:shopId