10.16
This commit is contained in:
parent
250bf6cc09
commit
32aafbf042
@ -3,44 +3,44 @@
|
||||
<view class="container">
|
||||
<view class="box-hang">
|
||||
<view class="dis">活动名称</view>
|
||||
<view class="" >
|
||||
<text>推荐会员消费有礼</text>
|
||||
<view class="">
|
||||
<text>{{activeInfo.name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box-hang">
|
||||
<view class="dis">活动时间</view>
|
||||
<view class="" >
|
||||
<view class="">
|
||||
<text>长期有效</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box-hang">
|
||||
<view class="dis">推荐人等级</view>
|
||||
<view class="" >
|
||||
<text>普通会员、白金会员</text>
|
||||
<view class="">
|
||||
<text>{{activeInfo.userGradeName}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box-hang">
|
||||
<view class="dis">支付方式</view>
|
||||
<view class="" >
|
||||
<view class="">
|
||||
<text>微信、支付宝、云闪付、现金、pos刷卡</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box-hang">
|
||||
<view class="dis">赠送优惠券</view>
|
||||
<view class="" >
|
||||
<view class="">
|
||||
<text>50元优惠券</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box-hang">
|
||||
<view class="dis">赠送积分</view>
|
||||
<view class="" >
|
||||
<text>20分</text>
|
||||
<view class="">
|
||||
<text>{{activeInfo.points || 0}}分</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box-hang">
|
||||
<view class="dis">赠送成长值</view>
|
||||
<view class="" >
|
||||
<text>2成长值</text>
|
||||
<view class="">
|
||||
<text>{{activeInfo.growaValue || 0}}成长值</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -57,10 +57,9 @@
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
totalPage: '',
|
||||
|
||||
activeInfo: {}
|
||||
}
|
||||
},
|
||||
onLoad() {},
|
||||
onPullDownRefresh() {
|
||||
//下拉刷新
|
||||
uni.stopPullDownRefresh()
|
||||
@ -73,11 +72,28 @@
|
||||
this.pageNo++
|
||||
}
|
||||
},
|
||||
|
||||
onLoad() {},
|
||||
onShow() {
|
||||
this.getInfo()
|
||||
},
|
||||
components: {
|
||||
|
||||
},
|
||||
methods: {
|
||||
getInfo() {
|
||||
request({
|
||||
url: '/business/marketingActivity/activeApplet/getRecommendedByStoreId',
|
||||
method: 'get',
|
||||
params: {
|
||||
storeId: uni.getStorageSync("storeId")
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res, 319)
|
||||
if (res.code == 200) {
|
||||
this.activeInfo = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
goback() {
|
||||
uni.navigateBack()
|
||||
}
|
||||
|
@ -10,7 +10,7 @@
|
||||
</view>
|
||||
<view class="hbbox">
|
||||
<view class="h-box">
|
||||
<view class="or-box">
|
||||
<view class="or-box" @click="show=!show">
|
||||
<image src="../../static/new/fxrwm.png" mode=""></image>
|
||||
<view class="min-size">分享二维码</view>
|
||||
</view>
|
||||
@ -25,15 +25,18 @@
|
||||
</view>
|
||||
<view class="h_bs">
|
||||
<view class="title_">推荐会员消费有礼</view>
|
||||
<view class="d-s" @click="goDetails()">
|
||||
<view class="d-s1" @click="goDetails()">
|
||||
<view class="hui-size">详情</view>
|
||||
<u-icon name="arrow-right" color="#999999" size="12"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<view class="si_">
|
||||
<view class="">赠送优惠券</view>
|
||||
<view class="">50元优惠券</view>
|
||||
<view v-if="activeInfo.couponList">
|
||||
<view class="si_" v-for="(item,index) in activeInfo.couponList" :key="index">
|
||||
<view class="">赠送优惠券</view>
|
||||
<view class="">{{item.giftCardName}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="h_bs">
|
||||
<view class="title_">会员卡详情</view>
|
||||
|
||||
@ -41,7 +44,7 @@
|
||||
<view class="backf">
|
||||
<view class="n_hang">
|
||||
<view class="">特权说明</view>
|
||||
<view class="">加油立享优惠</view>
|
||||
<view class="">{{activeInfo.discountActiveDescribe}}</view>
|
||||
</view>
|
||||
<view class="n_hang">
|
||||
<view class="">有效期</view>
|
||||
@ -92,7 +95,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="bott-box">
|
||||
<view class="">
|
||||
<view class="" @click="savePicture()">
|
||||
<view class="">
|
||||
<image src="../../static/my/fztp.png" style="width: 40px; height: 40px; "></image>
|
||||
</view>
|
||||
@ -101,7 +104,7 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="">
|
||||
<view class="" @click="copyLink()">
|
||||
<view class="">
|
||||
<image src="../../static/my/fzlj.png" style="width: 40px; height: 40px; "></image>
|
||||
</view>
|
||||
@ -130,6 +133,7 @@
|
||||
storeId: ''
|
||||
},
|
||||
allAmount: 0.0,
|
||||
activeInfo: {},
|
||||
activeRecommendRecordsList: [],
|
||||
title: '',
|
||||
userId: '',
|
||||
@ -165,6 +169,11 @@
|
||||
// console.log(codes);
|
||||
// this.query.storeId = uni.getStorageSync("storeId");
|
||||
},
|
||||
onShow() {
|
||||
this.getAllAmount();
|
||||
this.getActiveRecommendRecords();
|
||||
this.getAddress(uni.getStorageSync("storeId"))
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
if (res.from === 'button') { // 来自页面内分享按钮
|
||||
console.log(res.target)
|
||||
@ -219,12 +228,44 @@
|
||||
}
|
||||
},
|
||||
|
||||
onShow() {
|
||||
this.getAllAmount();
|
||||
this.getActiveRecommendRecords();
|
||||
this.getAddress(uni.getStorageSync("storeId"))
|
||||
},
|
||||
methods: {
|
||||
// 复制链接
|
||||
copyLink() {
|
||||
const link = this.options.code;
|
||||
uni.setClipboardData({
|
||||
data: link,
|
||||
success: () => {
|
||||
uni.showToast({
|
||||
title: '链接已复制',
|
||||
icon: 'success',
|
||||
duration: 2000
|
||||
});
|
||||
},
|
||||
fail: () => {
|
||||
uni.showToast({
|
||||
title: '复制失败',
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
// 下载图片
|
||||
savePicture() {
|
||||
console.log(230);
|
||||
// 下载图片
|
||||
uni.downloadFile({
|
||||
url: 'https://www.example.com/file/test', //仅为示例,并非真实的资源
|
||||
success: (res) => {
|
||||
if (res.statusCode === 200) {
|
||||
console.log('下载成功');
|
||||
}
|
||||
},
|
||||
fail: (err) => {
|
||||
console.log(err, 240);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 去导航
|
||||
goGoGo() {
|
||||
let lat = Number(this.lat)
|
||||
let lon = Number(this.lon)
|
||||
@ -311,13 +352,15 @@
|
||||
},
|
||||
getAllAmount() {
|
||||
request({
|
||||
url: 'business/marketingActivity/activeRecommendRecords/selectAllAmount',
|
||||
url: '/business/marketingActivity/activeApplet/getRecommendedByStoreId',
|
||||
method: 'get',
|
||||
params: this.query
|
||||
params: {
|
||||
storeId: uni.getStorageSync("storeId")
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
console.log(res, 319)
|
||||
if (res.code == 200) {
|
||||
this.allAmount = res.data
|
||||
this.activeInfo = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
@ -603,6 +646,12 @@
|
||||
margin: 15px auto;
|
||||
}
|
||||
|
||||
.d-s1 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.backf {
|
||||
background: #fff;
|
||||
width: 95%;
|
||||
|
Loading…
Reference in New Issue
Block a user