7d0792fc by simon

默认提交

1 parent 5e7fefff
......@@ -4,7 +4,7 @@
$contentWidth:690px;
.page {
border-bottom: $pageBottom;
padding-bottom: $pageBottom;
.bgc {}
......@@ -91,8 +91,6 @@ $contentWidth:690px;
}
}
.border {
width: $contentWidth;
@extend .shadow;
......@@ -101,3 +99,10 @@ $contentWidth:690px;
padding: 24px 30px;
margin: 0 auto 20px;
}
.official-account-wrap {
width: $contentWidth;
margin: 24px auto;
.official-account {}
}
......
......@@ -45,10 +45,13 @@
<view class="tips">更多讯息,欢迎关注我们的公众号</view>
<!-- <view bindtap="onPreviewImageHandler" class="btn">一键关注</view> -->
</view>
<!-- 一键关注 -->
<view class="official-account-wrap">
<official-account class="official-account" bindload="officialAccountLoadFuc" binderror="officialAccountErrorFuc"></official-account>
</view>
</view>
</view>
</view>
<van-popup show="{{ authorizeVisible }}">
<authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>
......
......@@ -93,6 +93,14 @@ Page({
productList: []
})
},
officialAccountLoadFuc(evt) {
console.log("officialAccountLoadFuc:", evt)
},
officialAccountErrorFuc(evt) {
console.log("officialAccountErrorFuc:", evt)
},
/**
* 请求产品
*/
......
......@@ -24,7 +24,7 @@ $contentWidth:670px;
height: 300px;
}
.space1{
.space1 {
height: 222px;
}
......@@ -43,8 +43,7 @@ $contentWidth:670px;
&-ipt-wrap {
@extend .bb;
padding-left: 30px;
width: 568px;
flex: 1;
width: 320px;
.ipt {
font-size: 28px;
......@@ -61,12 +60,38 @@ $contentWidth:670px;
&-scan {
@extend .fcc;
width: 100px;
height: 100px;
.icon {
width: 40px;
height: 40px;
}
.icon-search{
width: 36px;
height: 36px;
opacity: .6;
}
.icon2 {
width: 60px;
height: 60px;
margin-left: 4px;
}
.t1{
font-size: 22px;
margin: 0 12px 0;
color: #333333;
text-align: center;
}
}
&-scan2 {
flex-wrap: wrap;
flex: 1;
}
}
}
......
......@@ -11,12 +11,13 @@
<input value="{{code}}" bindinput="bindCodeInput" class="ipt" placeholder="请输入串码" />
</view>
<view bindtap="onSearchHandler" class="search-scan">
<image class="icon" mode="aspectFit" src="../../image/icon/icon-search.png" />
<image class="icon icon-search" mode="aspectFit" src="../../image/icon/icon-search.png" />
</view>
<!-- 隐藏扫描二维码 -->
<view class="search-line"></view>
<view bindtap="onScanHandler" class="search-scan">
<image class="icon" mode="aspectFit" src="../../image/icon/icon-scan.png" />
<!-- 隐藏扫描二维码 -->
<view bindtap="onScanHandler" class="search-scan search-scan2">
<text class="t1">扫码得积分</text>
<image class="icon icon2" mode="aspectFit" src="../../image/icon/icon-scan.png" />
</view>
</view>
</view>
......
......@@ -152,6 +152,22 @@ Page({
},
/**
* 图片查看
*/
onPreviewImageHandler(evt) {
// let curItem = getBindtapData(evt);
// let index = getBindtapData(evt, "index");
// let current = curItem[index] || '';
console.log("onPreviewImageHandler")
let current = this.data.imageUrl;
let urls = [current];
wx.previewImage({
current: current,
urls: urls
})
},
/**
* 保存图片到本地
*/
saveImageToPhotosAlbum() {
......@@ -196,11 +212,6 @@ Page({
},
// 创建二维码
createQrCode(content, canvasId, cavW, cavH) {
//调用插件中的draw方法,绘制二维码图片
......
......@@ -6,7 +6,7 @@
<view class="top-space"></view>
<view class="content">
<view class="card">
<image class="my-card" mode="widthFix" src="{{imageUrl}}" />
<image bindtap="onPreviewImageHandler" class="my-card" mode="widthFix" src="{{imageUrl}}" />
<!-- <image class="avatar" mode="widthFix" src="{{userInfo.avatar}}" />
<view class="nickname">{{userInfo.nickname}}</view>
<image class="qrcode" mode="widthFix" src="{{qrImagePath}}" />
......
......@@ -88,6 +88,7 @@ Page({
formatRankInfo(val, status) {
let rankInfo = val;
if (!rankInfo) return;
if (status == "promotion") {
rankInfo.myMember.rank = rankInfo.myMember.promotionNo;
rankInfo.myMember.points = rankInfo.myMember.promotionPoints;
......
......@@ -284,3 +284,9 @@ $contentWidth:690px;
}
}
}
.empty-tips {
text-align: center;
padding-top: 400px;
font-size: 28px;
}
......
......@@ -17,6 +17,7 @@
</view>
<!-- 排行 -->
<view class="border rank">
<block wx:if="{{rankInfo && rankInfo.memberList > 0}}">
<!-- 功能区 -->
<view class="rank-func">
<view class="rank-func-item">
......@@ -91,6 +92,11 @@
<view class="integral">{{rankInfo.myMember.points}}</view>
</view>
</view>
</block>
<view class="empty-tips">
<!-- <span class="iconfont iconempty"></span> -->
<view class="tips">暂未开启积分排行,敬请期待</view>
</view>
</view>
<!-- 我的奖励按钮 -->
<view wx:if="{{status == 'promotion'}}" class="btn-wrap">
......
......@@ -7,14 +7,14 @@
<!-- 用户信息 -->
<view class="user">
<!-- 左边栏 -->
<view class="user-info">
<view class="user-info" bindtap="toVipVerifyHandler">
<image class="avatar" mode="aspectFill" src="{{userInfo.avatar}}" />
<view class="wrap1">
<view class="name">{{userInfo.realName ? userInfo.realName : userInfo.nickname}}</view>
<view wx:if="{{userInfo.auditStatus == 'authorization'}}" class="vip vip-check">
积分会员
</view>
<view wx:elif="{{userInfo.auditStatus == 'unauthorized'}}" class="vip" bindtap="toVipVerifyHandler">
<view wx:elif="{{userInfo.auditStatus == 'unauthorized'}}" class="vip" >
审核中 >
</view>
<view wx:else class="vip" bindtap="toVipLoginHandler">未验证 ></view>
......
......@@ -100,7 +100,7 @@
display: flex;
justify-content: space-between;
@extend .bb;
padding: 32px 66px 66px;
padding: 48px 66px 24px;
&-item {
text-align: center;
......@@ -127,7 +127,7 @@
}
.submit-tips {
margin: 12px 0;
padding: 24px 0;
width: 100%;
color: #333333;
text-align: center;
......
......@@ -52,7 +52,7 @@
</view>
<!-- 上传 -->
<view class="upload">
<view class="upload-tit">请上传身份证或电工证,审核后,可签到及兑换积分</view>
<!-- <view class="upload-tit">请上传身份证或电工证,审核后,可签到及兑换积分</view> -->
<view class="upload-wrap">
<view class="upload-wrap-item">
<image class="image" bindtap="onUploadHandler" mode="aspectFit" src="{{files[0] && files[0].path?files[0].path:'../../image/icon/icon-plus.png'}}" />
......@@ -63,13 +63,13 @@
<view class="tips">示例</view>
</view>
</view>
</view>
<!-- 提交按钮 -->
<view class="submit-btn" bindtap="onSubmitHandler">确认提交</view>
<view class="submit-tips">
<text class="text">五金分销商请上传营业执照,其他用户上传身份证或电工证\n审核后可参与签到及兑换积分</text>
</view>
</view>
<!-- 提交按钮 -->
<view class="submit-btn" bindtap="onSubmitHandler">确认提交</view>
</view>
</view>
</view>
</view>
......