Commit c98d7886 by 赵雅纹

我的邀请订单收益

parent eb4ed70c
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
</navigator> </navigator>
<view class="order-benefit-wrap"> <view class="order-benefit-wrap">
<view class="order-benefit-list" wx:for="{{inviteMemberList}}" wx:key="{{index}}"> <view class="order-benefit-list" wx:for="{{inviteMemberList}}" wx:key="{{index}}">
<navigator url="/subPackage/page/pages/orderBenefit/orderBenefit" hover-class="none">
<view class="top-info"> <view class="top-info">
<image class="invite-avatar" src="{{item.headimgurl}}"></image> <image class="invite-avatar" src="{{item.headimgurl}}"></image>
<view class="invite-phone"> <view class="invite-phone">
...@@ -28,6 +29,7 @@ ...@@ -28,6 +29,7 @@
<button class="btn btn-primary btn-outline">查看收益</button> <button class="btn btn-primary btn-outline">查看收益</button>
</view> </view>
</view> </view>
</navigator>
<!-- <view class="bottom-info"> <!-- <view class="bottom-info">
<view> <view>
<image src="/assets/imgs/7_1_0/integral-icon.png" class="integral-icon" mode="widthFix"></image> <image src="/assets/imgs/7_1_0/integral-icon.png" class="integral-icon" mode="widthFix"></image>
......
...@@ -5,8 +5,6 @@ const utils = require('../../../../utils/util') ...@@ -5,8 +5,6 @@ const utils = require('../../../../utils/util')
// src/pages/xml2can/xml2can.js // src/pages/xml2can/xml2can.js
wxService.page({ wxService.page({
// imagePath: '',
data: { data: {
//轮播图 //轮播图
swiperCurrent: 0, swiperCurrent: 0,
...@@ -47,7 +45,6 @@ wxService.page({ ...@@ -47,7 +45,6 @@ wxService.page({
// 点击更换海报 // 点击更换海报
switchPoster(e){ switchPoster(e){
console.log(e)
this.setData({ this.setData({
currentTab: e.currentTarget.dataset.current, currentTab: e.currentTarget.dataset.current,
swiperCurrent: e.currentTarget.dataset.current, swiperCurrent: e.currentTarget.dataset.current,
...@@ -59,8 +56,6 @@ wxService.page({ ...@@ -59,8 +56,6 @@ wxService.page({
//生成海报 //生成海报
generatePoster(){ generatePoster(){
console.log(this.data.currentPosterImg)
console.log(this.data.codeImg)
this.setData({ this.setData({
template: new Card().palette(this.data.currentPosterImg, this.data.codeImg), template: new Card().palette(this.data.currentPosterImg, this.data.codeImg),
}); });
...@@ -76,7 +71,6 @@ wxService.page({ ...@@ -76,7 +71,6 @@ wxService.page({
let initiatorPage = JSON.parse(data.initiatorPage) let initiatorPage = JSON.parse(data.initiatorPage)
this.setData({ this.setData({
posterImgData: initiatorPage posterImgData: initiatorPage
}, () => {
}) })
} }
} }
...@@ -99,6 +93,10 @@ wxService.page({ ...@@ -99,6 +93,10 @@ wxService.page({
this.setData({ this.setData({
// codeImg: app.globalData.imageUrl + data // codeImg: app.globalData.imageUrl + data
codeImg: "https://hwimagecdn.ihotwind.cn/usr/201908/miniQrCode-f00c5051fef7479395efb193431762c4.jpg" codeImg: "https://hwimagecdn.ihotwind.cn/usr/201908/miniQrCode-f00c5051fef7479395efb193431762c4.jpg"
},()=>{
this.setData({
template: new Card().palette(this.data.posterImgData[0], this.data.codeImg),
});
}) })
} }
}) })
...@@ -120,26 +118,19 @@ wxService.page({ ...@@ -120,26 +118,19 @@ wxService.page({
if (res && res.tentacleId) { if (res && res.tentacleId) {
wx.saveImageToPhotosAlbum({ wx.saveImageToPhotosAlbum({
filePath: this.imagePath, filePath: this.imagePath,
success(res) {
setTimeout(()=>{
wx.showToast({
title: '保存成功,请前往相册查看~',
icon: 'none'
},2000)
})
}
}); });
} }
}) })
}, },
onImgOK(e) { onImgOK(e) {
this.imagePath = e.detail.path; this.imagePath = e.detail.path;
}, }
// saveImage() {
// wx.saveImageToPhotosAlbum({
// filePath: this.imagePath,
// });
// },
// /**
// * 生命周期函数--监听页面初次渲染完成
// */
onReady: function () {
// this.setData({
// template: new Card().palette('http://testimg3.bigaka.com/group3/M00/00/1B/Cv6CBF1kypiAHc11AAAJmPBsWAo215.png', 'https://hwimagecdn.ihotwind.cn/usr/201908/miniQrCode-f00c5051fef7479395efb193431762c4.jpg'),
// });
},
}); });
\ No newline at end of file
...@@ -112,6 +112,7 @@ swiper-item{ ...@@ -112,6 +112,7 @@ swiper-item{
/* 测试 */ /* 测试 */
.test{ .test{
position: absolute; position: absolute;
top: 0;
transform: translateX(100%); transform: translateX(100%);
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment