瀏覽代碼

一人一码

duanshenglang 7 月之前
父節點
當前提交
dcf1942106
共有 2 個文件被更改,包括 44 次插入23 次删除
  1. 二進制
      lottery/img/tip_icon.png
  2. 44 23
      lottery/onePersonOneCode.html

二進制
lottery/img/tip_icon.png


+ 44 - 23
lottery/onePersonOneCode.html

@@ -112,9 +112,25 @@
     padding: 10px 0;
     padding-left: 35px;
   }
+  .post_tip {
+    font-weight: 500;
+    font-size: 20px;
+    line-height: 29px;
+    padding-top: 30px;
+    color: #1677FF;
+    text-align: center;
+    display: flex;
+    align-items: center;
+    flex-direction: column;
+  }
+  .tip_icon {
+    width: 16px;
+    height: 8px;
+    margin-top: 10px;
+  }
   .post_box {
-    padding: 20px 35px;
-    height: calc(100vh - 92px);
+    padding: 10px 35px 20px;
+    height: calc(100vh - 77px);
     box-sizing: border-box;
     display: flex;
     justify-content: center;
@@ -125,6 +141,7 @@
     height: auto;
     max-width: 100%;
     max-height: 100%;
+    border-radius: 15px;
   }
   .foot_btn {
     position: absolute;
@@ -144,6 +161,16 @@
     color: #FFFFFF;
     text-align: center;
   }
+  .el-button:hover, .el-button:focus {
+    width: 100%;
+    height: 52px;
+    background: #222222;
+    border-radius: 20px;
+    font-weight: 500;
+    font-size: 16px;
+    color: #FFFFFF;
+    text-align: center;
+  }
   .save_btn {
     width: 100%;
     height: 52px;
@@ -161,7 +188,7 @@
 <body>
   <div id="box" class="box" :class="step === 2 ? 'page2' : 'page1'">
     <!--  引导页面 -->
-    <div v-if="step === 1">
+    <!-- <div v-if="step === 1">
       <div class="ready_code_box">
         <image class="ready_code" src="./img/ready_code.png"></image>
         <div class="code_tip">
@@ -169,18 +196,18 @@
           <span class="main_tip">专属活码</span>
         </div>
       </div>
-      <div class="page_tip">引导门店客户添加,领取引流激励!</div>
+      <div class="page_tip">邀请我的好友添加,领取拉新奖金!</div>
       <div class="foot_btn">
         <div class="create_btn" style="line-height: 52px;" @click="createQrcode">创建活码</div>
       </div>
-    </div>
+    </div> -->
     <!-- 创建活码 -->
     <div v-if="step === 2">
       <div class="form_title">
         <span>生成我的</span>
         <span class="main_tip">专属活码</span>
       </div>
-      <div class="page_tip page1 page_tip_page2">引导好友添加,领取引流激励!</div>
+      <div class="page_tip page1 page_tip_page2">邀请我的好友添加,领取拉新奖金!</div>
       <div class="form_list">
         <el-form ref="form" :model="form" label-position="left" label-width="100px">
           <el-form-item label="顾问姓名:">
@@ -197,12 +224,13 @@
     </div>
     <!-- 我的活码 -->
     <div v-if="step === 3">
+      <div class="post_tip">
+        <div>长按图片保存引流海报</div>
+        <image class="tip_icon" src="./img/tip_icon.png"></image>
+      </div>
       <div class="post_box">
         <image class="post_img" :src="postCode"></image>
       </div>
-      <div class="foot_btn">
-        <div class="save_btn" @click="saveImage">长按二维码保存</div>
-      </div>
     </div>
   </div>
 </body>
@@ -301,17 +329,17 @@
               this.step = 3
               this.postCode = data.postCode
             } else {
-              this.step = 1
+              this.step = 2
             }
           } else {
             this.$message.error(msg)
-            this.step = 1 
+            this.step = 2 
           }
         })
       },
-      createQrcode() {
-        this.step = 2
-      },
+      // createQrcode() {
+      //   this.step = 2
+      // },
       // 创建活码
       handleQrcode() {
         if (!this.form.salesMan) {
@@ -342,23 +370,16 @@
               this.step = 3
               this.postCode = data.postCode
             } else {
-              this.step = 1
+              this.step = 2
             }
           } else {
             this.$message.error(msg)
-            this.step = 1
+            this.step = 2
           }
         }).finally(() => {
           this.loading = false
         })
       },
-      // 保存二维码
-      saveImage() {
-        this.$message({
-          message: '长按二维码保存',
-          type: 'success',
-        })
-      },
       // 截取url中的数据
       getQueryParam(paramName) {
         // 获取当前URL的查询字符串部分