Authored by zhangxiaoru

标题取接口

<div class="my-promotion-page yoho-page">
{{# promotionData}}
<div class="my-code">
<div class="describe">
{{{activityDescribe}}}
</div>
<div class="code-outer">
<div class="code-qr" qr-data="{{url}}"></div>
</div>
... ... @@ -11,7 +14,7 @@
<div class="invite-content">
<span class="code">{{inviteCode}}</span>
{{#if isApp}}
<a class="copy" href='//m.yohobuy.com/?openby:yohobuy={"action":"go.copy","params":{"text":"{{inviteCode}}","message":"复制成功"}}' class="copy">复制</a>
<a class="copy" href='//m.yohobuy.com/?openby:yohobuy={"action":"go.copy","params":{"text":"{{inviteCode}}","message":"复制成功"}}'>复制</a>
{{else}}
<span class="copy">复制</span>
{{/if}}
... ... @@ -25,7 +28,7 @@
<div class="invite-content">
<span class="code">{{url}}</span>
{{#if isApp}}
<a class="copy" href='//m.yohobuy.com/?openby:yohobuy={"action":"go.copy","params":{"text":"{{url}}","message":"复制成功"}}' class="copy">复制</a>
<a class="copy" href='//m.yohobuy.com/?openby:yohobuy={"action":"go.copy","params":{"text":"{{url}}","message":"复制成功"}}'>复制</a>
{{else}}
<span class="copy">复制</span>
{{/if}}
... ...

45.3 KB | W: | H:

23.8 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -10,8 +10,9 @@ let page = 2,
// 获取推送消息开启状态
function getStatus() {
yoho.invokeMethod('get.usernotificationstatus', {}, function(res) {
if (parseInt(res, 10) === 1) {
if (parseInt(res, 10) === 1 || res === '1') {
$('.state').html('已开启').removeClass('gosetting');
}
});
... ...
... ... @@ -5,14 +5,31 @@
background-image: resolve("activity/expand-new/qrcode-back.png");
background-size: 100%;
background-repeat: no-repeat;
position: relative;
.describe {
width: 100%;
text-align: center;
color: #fff;
font-size: 38px;
margin: 23px auto;
font-family: SourceHanSansCN;
transform: rotate(-2deg);
font-weight: 700;
font-style: oblique;
letter-spacing: 4px;
}
.code-outer {
width: 180px;
height: 180px;
border: 2px solid #000;
margin: 200px auto;
margin-left: -90px;
padding: 8px;
background-color: #fff;
position: absolute;
top: 200px;
left: 50%;
}
.code-qr {
... ...