|
@@ -86,11 +86,19 @@
|
|
|
<view class="timeviewTxt" > 分</view>
|
|
|
</view>
|
|
|
<view class="bottomBtnBox">
|
|
|
- <view class="bottomBtnBoxLeft">
|
|
|
+ <!-- <view class="bottomBtnBoxLeft">
|
|
|
<img src="../../static/timg/share.png" alt="" class="shareIcon">
|
|
|
<view class="shareTxt">分享</view>
|
|
|
- </view><!-- 状态1未开始 2进行中3已结束 -->
|
|
|
- <view class="bottomBtn" v-if="info.state==2" @click="signUp">立即报名</view>
|
|
|
+ </view> -->
|
|
|
+ <button open-type="share" class="bottomBtnBoxLeft shareBtn" >
|
|
|
+ <image src="../../static/timg/share.png" mode="" class="shareIcon"></image>
|
|
|
+ <view class="shareTxt">分享</view>
|
|
|
+ </button>
|
|
|
+ <!-- 状态1未开始 2进行中3已结束 -->
|
|
|
+ <view class="bottomBtn" v-if="info.state==2" @click="signUp">
|
|
|
+ <span v-if="info.money">¥{{info.money}} 立即购买</span>
|
|
|
+ <span v-else>立即报名</span>
|
|
|
+ </view>
|
|
|
<view class="bottomBtn2" v-if="info.state==1">报名未开始</view>
|
|
|
<view class="bottomBtn2" v-if="info.state==3">报名已结束</view>
|
|
|
</view>
|
|
@@ -99,7 +107,7 @@
|
|
|
<view class="baomingBox" v-if="bmShow" @click="nobmshow">
|
|
|
<view class="baomingCont" @click.stop="">
|
|
|
<view class="bmTop">
|
|
|
- <view class="bmTitle">登记信息 领好礼</view>
|
|
|
+ <view class="bmTitle">登记信息</view>
|
|
|
<img src="../../static/timg/chahao.png" alt="" class="bmChimg" @click="nobmshow">
|
|
|
</view>
|
|
|
<view style="padding: 0 24rpx;">
|
|
@@ -108,17 +116,17 @@
|
|
|
<img src="../../static/timg/icon_arrow_right.png" alt="" class="bmshopjt">
|
|
|
</view>
|
|
|
<!-- clWhere报名凭证1,2,3,4 1手机号2车牌号3姓名4单位 -->
|
|
|
- <view class="bmLine" v-if="info.clWhere.indexOf(1)!=-1">
|
|
|
- <input type="text" v-model="mobilePhone" class="bmlineInput" placeholder="输入手机号">
|
|
|
+ <view class="bmLine" v-if="info.clWhere.indexOf(1)!=-1" >
|
|
|
+ <input type="text" v-model="mobilePhone" cursor-spacing="10" class="bmlineInput" placeholder="输入手机号">
|
|
|
</view>
|
|
|
<view class="bmLine" v-if="info.clWhere.indexOf(2)!=-1">
|
|
|
- <input type="text" v-model="plateNumber" name="" id="" class="bmlineInput" placeholder="输入车牌号">
|
|
|
+ <input type="text" v-model="plateNumber" cursor-spacing="10" class="bmlineInput" placeholder="输入车牌号">
|
|
|
</view>
|
|
|
<view class="bmLine" v-if="info.clWhere.indexOf(3)!=-1">
|
|
|
- <input type="text" v-model="customerName" class="bmlineInput" placeholder="输入姓名">
|
|
|
+ <input type="text" v-model="customerName" cursor-spacing="10" class="bmlineInput" placeholder="输入姓名">
|
|
|
</view>
|
|
|
<view class="bmLine" v-if="info.clWhere.indexOf(4)!=-1">
|
|
|
- <input type="text" v-model="unit" class="bmlineInput" placeholder="输入单位">
|
|
|
+ <input type="text" v-model="unit" cursor-spacing="10" class="bmlineInput" placeholder="输入单位">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="bmTtnBox">
|
|
@@ -190,21 +198,25 @@
|
|
|
unit:'',
|
|
|
plateNumber:'',
|
|
|
comment:'',
|
|
|
+ userInfo:'',
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
|
- // this.info={
|
|
|
- // activityName:'洗车大礼包洗车大礼包洗车大礼包洗车大礼包',
|
|
|
- // startTime:'2022.01.21',
|
|
|
- // endTime:'2022-10-01',
|
|
|
- // activityContent:'这里展示活动说明,如果后台没填则不展示',
|
|
|
- // img: "http://dmsphoto.66km.com.cn/marketing//accompany/3885B510-6405-4A5E-BD64-B6C09CEE070E.jpg",
|
|
|
- // imgList: "http://dmsphoto.66km.com.cn/marketing//accompany/855DE839-8691-4432-8989-720AA0EA1206.jpg,http://dmsphoto.66km.com.cn/marketing//accompany/855DE839-8691-4432-8989-720AA0EA1206.jpg",
|
|
|
-
|
|
|
- // }
|
|
|
- this.collectingID=opt.id;
|
|
|
- this.getInfo();
|
|
|
- this.queryActivityInfo()
|
|
|
+ this.userInfo=this.$store.state.userInfo;
|
|
|
+ if(this.userInfo){
|
|
|
+ this.collectingID=opt.id;
|
|
|
+ this.getInfo();
|
|
|
+ this.queryActivityInfo()
|
|
|
+ }else{
|
|
|
+ this.$common.automaticlogin().then(val => {
|
|
|
+ this.userInfo=this.$store.state.userInfo;
|
|
|
+
|
|
|
+ this.collectingID=opt.id;
|
|
|
+ this.getInfo();
|
|
|
+ this.queryActivityInfo()
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
submitOrder(){
|
|
@@ -496,7 +508,30 @@
|
|
|
setTimeout(_this.clock2, 500)
|
|
|
}
|
|
|
|
|
|
- }
|
|
|
+ },
|
|
|
+ onShareAppMessage(res) {
|
|
|
+ var img='';
|
|
|
+ if(this.info.ImgList.length>0){
|
|
|
+ img=this.info.ImgList[0].url
|
|
|
+ }
|
|
|
+ return {
|
|
|
+ title: this.info.activityName,
|
|
|
+ imageUrl:this.mainImg,
|
|
|
+ path: 'pages/activity/jkDetail?id=' + this.id,
|
|
|
+ success(res){
|
|
|
+ uni.showToast({
|
|
|
+ title:'分享成功'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail(res){
|
|
|
+ uni.showToast({
|
|
|
+ title:'分享失败',
|
|
|
+ icon:'none',
|
|
|
+ duration: 3000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
|
|
@@ -965,4 +1000,32 @@
|
|
|
padding: 20rpx 0;
|
|
|
border-bottom: 1px solid #EEEEEE;
|
|
|
}
|
|
|
+ button::after{
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+ button{
|
|
|
+ position: relative;
|
|
|
+ display: block;
|
|
|
+ margin-left: 0;
|
|
|
+ margin-right: 0;
|
|
|
+ padding-left: 0px;
|
|
|
+ padding-right: 0px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ // font-size: 18px;
|
|
|
+ text-align: center;
|
|
|
+ text-decoration: none;
|
|
|
+ // line-height: 1;
|
|
|
+ line-height: 1.35;
|
|
|
+ // border-radius: 5px;
|
|
|
+ -webkit-tap-highlight-color: transparent;
|
|
|
+ overflow: hidden;
|
|
|
+ color: #000000;
|
|
|
+ background-color: #fff;
|
|
|
+
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ .shareBtn{
|
|
|
+ /* width: 100rpx; */
|
|
|
+ background: #FFFFFF;
|
|
|
+ }
|
|
|
</style>
|