Authored by zhangxiaoru

标题取接口

1 <div class="my-promotion-page yoho-page"> 1 <div class="my-promotion-page yoho-page">
2 {{# promotionData}} 2 {{# promotionData}}
3 <div class="my-code"> 3 <div class="my-code">
  4 + <div class="describe">
  5 + {{{activityDescribe}}}
  6 + </div>
4 <div class="code-outer"> 7 <div class="code-outer">
5 <div class="code-qr" qr-data="{{url}}"></div> 8 <div class="code-qr" qr-data="{{url}}"></div>
6 </div> 9 </div>
@@ -11,7 +14,7 @@ @@ -11,7 +14,7 @@
11 <div class="invite-content"> 14 <div class="invite-content">
12 <span class="code">{{inviteCode}}</span> 15 <span class="code">{{inviteCode}}</span>
13 {{#if isApp}} 16 {{#if isApp}}
14 - <a class="copy" href='//m.yohobuy.com/?openby:yohobuy={"action":"go.copy","params":{"text":"{{inviteCode}}","message":"复制成功"}}' class="copy">复制</a> 17 + <a class="copy" href='//m.yohobuy.com/?openby:yohobuy={"action":"go.copy","params":{"text":"{{inviteCode}}","message":"复制成功"}}'>复制</a>
15 {{else}} 18 {{else}}
16 <span class="copy">复制</span> 19 <span class="copy">复制</span>
17 {{/if}} 20 {{/if}}
@@ -25,7 +28,7 @@ @@ -25,7 +28,7 @@
25 <div class="invite-content"> 28 <div class="invite-content">
26 <span class="code">{{url}}</span> 29 <span class="code">{{url}}</span>
27 {{#if isApp}} 30 {{#if isApp}}
28 - <a class="copy" href='//m.yohobuy.com/?openby:yohobuy={"action":"go.copy","params":{"text":"{{url}}","message":"复制成功"}}' class="copy">复制</a> 31 + <a class="copy" href='//m.yohobuy.com/?openby:yohobuy={"action":"go.copy","params":{"text":"{{url}}","message":"复制成功"}}'>复制</a>
29 {{else}} 32 {{else}}
30 <span class="copy">复制</span> 33 <span class="copy">复制</span>
31 {{/if}} 34 {{/if}}

45.3 KB | W: | H:

23.8 KB | W: | H:

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