|
@@ -142,17 +142,21 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <view :style="{'height':'280rpx'}"></view>
|
|
|
|
|
|
|
+ <view v-if="recommendActivity" class="flex-row justify-center" style="background: #ffffff;margin-top: 20rpx;padding: 10rpx 32rpx">
|
|
|
|
|
+ <image style="width: 686rpx" :src="activityImg" mode="widthFix" @click="goDetail(recommendActivity)"></image>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ <view :style="{'height':'236rpx'}"></view>
|
|
|
|
|
|
|
|
<view class="flex-col group2 ">
|
|
<view class="flex-col group2 ">
|
|
|
|
|
|
|
|
- <view v-if="recommendActivity" class="btnTitle1 flex-row justify-between">
|
|
|
|
|
- <view>
|
|
|
|
|
- <text>推荐活动:{{recommendActivity.title}}</text>
|
|
|
|
|
- <text style="margin-left: 10rpx;color: #999999" >({{recommendActivity.description}})</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="btnRight1" @click="goDetail(recommendActivity)">购买({{recommendActivity.salePrice}})</view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+<!-- <view v-if="recommendActivity" class="btnTitle1 flex-row justify-between">-->
|
|
|
|
|
+<!-- <view>-->
|
|
|
|
|
+<!-- <text>推荐活动:{{recommendActivity.title}}</text>-->
|
|
|
|
|
+<!-- <text style="margin-left: 10rpx;color: #999999" >({{recommendActivity.description}})</text>-->
|
|
|
|
|
+<!-- </view>-->
|
|
|
|
|
+<!-- <view class="btnRight1" @click="goDetail(recommendActivity)">购买({{recommendActivity.salePrice}})</view>-->
|
|
|
|
|
+<!-- </view>-->
|
|
|
|
|
|
|
|
<view class="btnTitle flex-row">
|
|
<view class="btnTitle flex-row">
|
|
|
<u-icon v-if="selectIcon" name="checkmark-circle-fill" color="#FFE52C" size="18"
|
|
<u-icon v-if="selectIcon" name="checkmark-circle-fill" color="#FFE52C" size="18"
|
|
@@ -285,6 +289,7 @@
|
|
|
takeNumberRules:[],
|
|
takeNumberRules:[],
|
|
|
storeInfo: {},
|
|
storeInfo: {},
|
|
|
expireEquityCard:[], //过期的权益卡
|
|
expireEquityCard:[], //过期的权益卡
|
|
|
|
|
+ activityImg:'',
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -311,7 +316,7 @@
|
|
|
this.getRecommendActivity();
|
|
this.getRecommendActivity();
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
-
|
|
|
|
|
|
|
+ this.getActivityImg()
|
|
|
//获取弹窗设置
|
|
//获取弹窗设置
|
|
|
let reservationQueueContent = uni.getStorageSync('reservation_queue_content');
|
|
let reservationQueueContent = uni.getStorageSync('reservation_queue_content');
|
|
|
if (!reservationQueueContent){
|
|
if (!reservationQueueContent){
|
|
@@ -340,6 +345,19 @@
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
+ getActivityImg(){
|
|
|
|
|
+ this.$api.getSelectionRules({
|
|
|
|
|
+ dictType:'recommended_images'
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+
|
|
|
|
|
+ if (res.data.rows.length > 0){
|
|
|
|
|
+ let url = this.$activityImgUrl
|
|
|
|
|
+ this.activityImg = url + res.data.rows[0].dictValue
|
|
|
|
|
+ console.log("++++++++++this.activityImg++++++++++",this.activityImg)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
goDetail(e){
|
|
goDetail(e){
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url:'/orderPages/activityDetail/activityDetail?id=' + e.id
|
|
url:'/orderPages/activityDetail/activityDetail?id=' + e.id
|