Ver Fonte

部分提交

zqwang há 2 anos atrás
pai
commit
61cab55c58

BIN
src/assets/imgs/shelf.png


BIN
src/assets/imgs/shelf_choose.png


+ 9 - 0
src/assets/less/global.less

@@ -0,0 +1,9 @@
+@theme: #79BA70;
+@border-color: #1793ff;
+@general-backgoud: #f7f7f7; // 一般背景色
+@white: #ffffff; // 白色
+@black: #000000; // 一般字体颜色
+@grey: #9393aa;
+@red: #fa0101;
+@size-factor: 5px;
+@fontface: PingFangSC-Medium, PingFang SC; // 字体

+ 3 - 40
src/assets/less/home.less

@@ -1,10 +1,10 @@
+@import "./global.less";
 .home-wrap {
   background-color: #F2F2F2;
   flex-direction: column;
-  // padding: 0px 10px;
   .home_title {
     height: 112px;
-    background-color: #79BA70;
+    background-color: @theme;
     text {
       padding: 0 0 0 30px;
       font-size: 36px;
@@ -16,13 +16,9 @@
     margin-left: 40px;
   }
   .type-wrap_content {
-    // background-color:  #61A9C0;
-    // padding: 0px 30px;
     .type-wrap {
-      // background-color:  #61A9C0;;
       flex-direction: row;
       .type-item {
-        // padding: 0 15px;
         justify-content: center;
         align-items: center;
         flex-direction: column;
@@ -75,27 +71,6 @@
   .type-bar {
     background-color: #ffffff;
     padding: 20px 30px;
-    // .search-bar__wrap {
-    //   flex: 1;
-    //   // background-color: #f7f7f7;
-    //   background-color: #ffffff;
-    //   height: 62px;
-    //   padding: 0 14px;
-    //   border-radius: 30px;
-    //   align-items: center;
-
-    //   image {
-    //     margin-right: 20px;
-    //     width: 36px;
-    //     height: 36px;
-    //   }
-
-    //   text {
-    //     flex: 1;
-    //     font-size: 24px;
-    //     color: #999;
-    //   }
-    // }
     .type-bar-item{
       width: 100%;
       justify-content: space-between;
@@ -118,7 +93,7 @@
     .search-bar__wrap {
       flex: 1;
       background-color: #FFFFFF;
-      // height: 62px;
+
       width: 350px;
       height: 75px;
       padding: 0 14px;
@@ -141,17 +116,12 @@
 
   .swipe-bar {
     height:290px;
-    // margin-top: 13px;
-    // background: linear-gradient(to bottom, #61A9C0 50%, #fff 50%);
     background-color: white;
     .swipe-item {
-      // padding: 30px 24px 0px;
       padding: 25px 30px;
       .swipe-item__info {
         flex: 1;
         flex-direction: column;
-        // padding-right: 32px;
-        // border-radius: 20px;
         .name {
           font-size: 32px;
           color: #333;
@@ -176,10 +146,6 @@
         border-radius: 30px;
         width: 100%;
         height: 260px;
-        // flex-basis: 180px;
-        // flex-shrink: 0;
-        // height: 240px;
-        // border-radius: 6px;
       }
     }
     .switch-bar{
@@ -188,7 +154,6 @@
   }
 
   .book-list__wrap {
-    // padding: 0 24px;
     margin-top: 20px;
     padding: 0px 30px;
     flex-direction: column;
@@ -232,8 +197,6 @@
       justify-content: flex-start;
       align-items: flex-start;
       margin-left: 38px;
-      // margin-bottom: 40px;
-
       .name {
         font-size: 32px;
         color: #333;

+ 4 - 4
src/assets/less/my.less

@@ -1,9 +1,10 @@
+@import "./global.less";
 .user-wrap {
   flex-direction: column;
   background-color: #f7f7f7;
   .page_title {
     height: 143px;
-    background-color:  #79BA70;
+    background-color:  @theme;
     text {
       padding: 0 30px;
       font-size: 36px;
@@ -69,8 +70,7 @@
     }
   }
   .user-info__wrap {
-    // background: linear-gradient(180deg, #BD8757 1%, #BD8757 100%);
-    background-color: #79BA70;
+    background-color: @theme;
     padding: 40px 30px 80px 30px;
     align-items: center;
     justify-content: center;
@@ -99,7 +99,7 @@
     .un-Login {
       width: 120px;
       height: 50px;
-      background-color:  #79BA70;
+      background-color:  @theme;
       border-radius: 30px;
       border: 1px solid #ffffff;
       justify-content: center;

+ 4 - 3
src/assets/less/phone.less

@@ -1,3 +1,4 @@
+@import "./global.less";
 .phone-wrap {
   flex-direction: column;
   align-items: center;
@@ -26,7 +27,7 @@
       }
     }
     .red{
-      color: #fd555d;
+      color: @theme;
       padding: 0 14px;
     }
   }
@@ -49,7 +50,7 @@
     .send-msg{
       width: 200px;
       font-size:24px;
-      color:#EF5952;
+      color:@theme;;
       margin-right:20px;
       height:90px;
       line-height:90px;
@@ -63,7 +64,7 @@
     line-height: 90px;
     align-items: center;
     width:600px;
-    background-color:#EF5952;
+    background-color:@theme;
     color:#fff;
     font-size:30px;
     margin:40px auto 0;

+ 2 - 1
src/manifest.json

@@ -57,7 +57,8 @@
   "config": {
     "logLevel": "debug",
     "data": {
-      "yinsi_addr": "https://zhuishuyun.oss-cn-hangzhou.aliyuncs.com/qapp/privacy/shouyue-privacy.htm"
+      "yinsi_addr": "https://zhuishuyun.oss-cn-hangzhou.aliyuncs.com/qapp/privacy/shouyue-privacy.htm",
+      "company_name":"杭州植宇科技有限公司"
     }
   },
   "router": {

+ 0 - 1
src/views/Activity/index.ux

@@ -175,7 +175,6 @@ export default {
     this.currentProduct = this.activity.products[0]
   },
   async wantCharge() {
-    // console.log("this.send_order_id",this.send_order_id,"this.haslogin",this.haslogin,'this,loginphone',this.loginPhone);
      let manufacturer = (await it.getDevManufacturer()).toLowerCase();
     if (!(this.send_order_id || (this.haslogin && this.loginPhone)) &&
       (manufacturer == 'xiaomi' || manufacturer == 'vivo')) {

+ 6 - 4
src/views/Agreement/index.ux

@@ -5,7 +5,7 @@
       >{{app_name}}在此特别提醒您认真阅读、充分理解本《软件服务协议》(以下简称“本协议”):</text
     >
     <text
-      >1、本协议是您与杭州掌维科技有限公司及其关联公司(以下简称“{{app_name}}”或“本公司”)之间关于您注册、登录、使用“{{app_name}}”(以下简称“本平台”)服务所订立的协议。本协议描述本公司与您之间关于使用本平台所提供相关服务的权利义务。</text
+      >1、本协议是您与{{company_name}}及其关联公司(以下简称“{{app_name}}”或“本公司”)之间关于您注册、登录、使用“{{app_name}}”(以下简称“本平台”)服务所订立的协议。本协议描述本公司与您之间关于使用本平台所提供相关服务的权利义务。</text
     >
     <text
       >2、以下声明和本协议中,服务是指本公司现在或将来向用户提供的包括但不限于本地阅读或在线阅读等服务(以下简称“服务”)。“用户”是指注册、登录、使用、浏览本服务的个人或组织,本协议中更多的称为“您”。</text
@@ -254,8 +254,8 @@
       >5、【争议解决】若您和本公司之间发生任何纠纷或争议,首先应友好协商解决,协商不成的,您在此完全同意将纠纷或争议提交{{app_name}}所在地有管辖权的人民法院通过诉讼方式解决。</text
     >
     <text>6、若您对本协议及本平台服务有任何意见,欢迎垂询本公司微信客服</text>
-    <text class="title">杭州掌维科技有限公司</text>
-    <text class="title">2019.11.25</text>
+    <text class="title">{{ company_name}}</text>
+    <text class="title">2021.11.25</text>
     <text></text>
     <text></text>
     <text></text>
@@ -266,10 +266,12 @@
 import it from "../../helper/interface.js";
 export default {
   private: {
-    app_name:"掌维"
+    app_name:"",
+    company_name:"杭州植宇科技有限公司",
   },
   onInit() {
     this.app_name = it.getAppName();
+    this.company_name = this.$app.$def.manifest.config.data.company_name;
     // 设置标题栏
     this.$page.setTitleBar({ text: '用户协议' })
   }

+ 4 - 28
src/views/Home/index.ux

@@ -62,31 +62,9 @@
           <image src="../../assets/imgs/recent_read.png" @click="toMyRead"></image>
         </div>
       </list-item>
-      <!-- <list-item type="entrance">
-        <div class="entrance_block">
-          <div>
-            <image
-              src="../../assets/imgs/to_search.png"
-              @click="toPage('Search')"
-            ></image>
-          </div>
-          <div>
-            <image
-              src="../../assets/imgs/to_task.png"
-              @click="toPage('Task')"
-            ></image>
-           
-          </div>
-          <div>
-            <image
-              src="../../assets/imgs/to_rank.png"
-              @click="toPage('Leaderboard')"
-            ></image>
-          </div>
-        </div>
-      </list-item> -->
+
       <block for="bookObj in list">
-        <list-item type="simple" class="book-list__wrap" if="$idx % 3 === 0">
+        <list-item type="simple" class="book-list__wrap" if="$idx % 2 === 0">
           <div class="book-list_content">
             <div class="book-list__title">
               <text class="border"></text>
@@ -127,7 +105,8 @@
             </div>
             <div class="book-list">
               <block for="book in bookObj.books">
-                <x-book multi="{{false}}" book="{{book}}"></x-book>
+                <x-book multi="{{false}}" book="{{book}}"  width="{{200}}"
+                  ></x-book>
               </block>
             </div>
           </div>
@@ -186,7 +165,6 @@ export default {
     }
   },
   toCategory() {
-    //this.$emit('change');
     router.push({
       uri: '/views/Search'
     })
@@ -196,7 +174,6 @@ export default {
       try{
         let type = page.type ? "default" : "";
         checkAdvertisement(type,page.ids);
-        // console.log('type',type);
       }catch(e){
 
       }
@@ -246,7 +223,6 @@ export default {
    await storage.set({ key: 'sex', value: index || 0 })
     let sex = index ? 'female' : 'male'
     let ret = await getHomeList(sex)
-    // this.banner = ret.slice(0, 1)[0]
     this.list = ret.slice(1)
     let banner = await getBannerData(sex == "female" ? 2 : 1);
     this.banner = banner;

+ 1 - 1
src/views/My/index.ux

@@ -11,7 +11,7 @@
           <text class="user-name" if="{{haslogin && loginPhone}}"
             >书友{{ user.id }}</text
           >
-          <text class="un-Login" @click="goToLogin" else>登录</text>
+          <text class="un-Login" @click="goToLogin" else>登录</text>
           <text>ID:{{ user.id }}</text>
           <text class="vip-card" if="{{user.is_vip}}">免费阅读卡还剩{{ user.vip_days }}</text>
         </div>

+ 1 - 40
src/views/Pay/index.ux

@@ -282,7 +282,6 @@ export default {
         bid: this.bid,
         send_order_id: this.send_order_id
       })
-      // console.log('al111111111111111111111111',res);
       this.trade_no = ret.order
       this.showToastByCode(ret.code)
     } else {
@@ -294,13 +293,9 @@ export default {
       this.trade_no = ret.order
       this.pay_order_id = ret.order
       this.need_check_order = true
-      // this.back_click = 0;
-      //  console.log('wx111111111111111111111',res);
-      // if (fb && typeof fb === 'object')
+
     }
 
-    // this.pay_order_id =ret.order;
-    // console.log('00000000000000000',ret,"paytype d",cur_pay_type);
     return false
     // 成功支付后的回调操作
     if (ret.code === '9000') this.showWaitingWrap(ret)
@@ -398,8 +393,6 @@ export default {
     }
   },
   async checkOrderNew(order) {
-    console.log('需要查询订单', order)
-    // this.showLoading = true;
     let fb = await checkWxOrder(order)
     console.log('查询结果:', fb)
     if (fb && typeof fb === 'object') {
@@ -483,7 +476,6 @@ export default {
       }
     } catch (e) {
       backPage = {}
-      // console.log('back err',e);
     }
     console.log(backPage, backPage.length, typeof backPage)
     if (JSON.stringify(backPage) === '{}') {
@@ -492,37 +484,6 @@ export default {
       router.back(backPage)
     }
     return true
-  },
-  onBackPressOld() {
-    if (this.pay_back) {
-      prompt.showDialog({
-        title: '温馨提示',
-        message: '每日完成任务,可以免费获取书币~',
-        buttons: [
-          {
-            text: '去做任务',
-            color: '#EF5952'
-          },
-          {
-            text: '我知道了',
-            color: '#999'
-          }
-        ],
-        success: function(data) {
-          if (data.index === 1) {
-            router.back()
-          } else {
-            router.push({
-              uri: '/views/Task'
-            })
-          }
-        },
-        cancel: function() {
-          console.log('取消前往')
-        }
-      })
-      return true
-    }
   }
 }
 </script>