hejie %!s(int64=3) %!d(string=hai) anos
pai
achega
abc6abc749
Modificáronse 3 ficheiros con 32 adicións e 17 borrados
  1. 16 0
      .hbuilderx/launch.json
  2. 14 15
      src/pages/accountDetails/teaBaby.vue
  3. 2 2
      src/pages/my/index.vue

+ 16 - 0
.hbuilderx/launch.json

@@ -0,0 +1,16 @@
+{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
+  // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
+    "version": "0.0",
+    "configurations": [{
+     	"default" : 
+     	{
+     		"launchtype" : "local"
+     	},
+     	"mp-weixin" : 
+     	{
+     		"launchtype" : "local"
+     	},
+     	"type" : "uniCloud"
+     }
+    ]
+}

+ 14 - 15
src/pages/accountDetails/teaBaby.vue

@@ -8,8 +8,7 @@
         v-for="(item, index) in TabList"
         :key="index"
         @tap="SetStatus(index)"
-        >{{ item.title }}</view
-      >
+      >{{ item.title }}</view>
     </view>
     <!-- 顶部导航-end -->
     <!-- 积分列表 -->
@@ -23,7 +22,7 @@
           <view class="head_name" v-else-if="item.type == 4">提现转茶宝</view>
           <view class="head_name" v-else-if="item.type == 5">赠送茶宝</view>
           <view class="head_name" v-else-if="item.type == 6">消费茶宝</view>
-        <view class="head_name" v-else-if="item.type == 7">核销后送茶宝</view>
+          <view class="head_name" v-else-if="item.type == 8">核销后送茶宝</view>
           <view class="head_price g_color">{{item.act}}{{ item.num }}</view>
         </view>
         <view class="list_con flex_r flex_ac flex_jb">
@@ -44,7 +43,7 @@ import { get, post } from "@/request/api.js";
 import notGoods from "@/components/not-goods/index.vue";
 export default {
   components: {
-    notGoods,
+    notGoods
   },
   data() {
     return {
@@ -53,27 +52,27 @@ export default {
       TabList: [
         { title: "全部", sauts: "" },
         { title: "收益", sauts: 1 },
-        { title: "支出", sauts: 2 },
+        { title: "支出", sauts: 2 }
       ],
       list: [],
-      page: 1,
+      page: 1
     };
   },
-  onShow: function () {
+  onShow: function() {
     this.page = 1;
     this.list = [];
     this.loadData();
   },
   methods: {
-    loadData: function () {
+    loadData: function() {
       let that = this;
       let data = {
         type: this.current == 0 ? "" : this.current,
         page: page,
-        limit: 10,
+        limit: 10
       };
       uni.showLoading({ mask: true });
-      post("/my/chabao", data).then((res) => {
+      post("/my/chabao", data).then(res => {
         uni.hideLoading();
         if (res.code === 0) {
           if (res.data.data.data.length > 0) {
@@ -98,26 +97,26 @@ export default {
         }
       });
     },
-    SetStatus: function (i) {
+    SetStatus: function(i) {
       this.current = i;
       page = 1;
       this.list = [];
       this.haveGoods = false;
       this.loadData();
-    },
+    }
   },
   /**
    * 页面上拉触底事件的处理函数
    */
-  onReachBottom: function () {
+  onReachBottom: function() {
     if (page != -1) {
       var that = this;
-      setTimeout(function () {
+      setTimeout(function() {
         ++page;
         that.loadData();
       }, 800);
     }
-  },
+  }
 };
 </script>
 <style lang="scss">

+ 2 - 2
src/pages/my/index.vue

@@ -222,10 +222,10 @@
 						<image class="fun_img" src="/static/my/green.png" mode=""></image>
 						<view class="fun_text">新手教程</view>
 					</navigator>
-					<navigator class="fun_list flex_c flex_ac" url="/pagesB/my/assistant" hover-class="none">
+					<!-- <navigator class="fun_list flex_c flex_ac" url="/pagesB/my/assistant" hover-class="none">
 						<image class="fun_img" src="/static/my/assistant.png" mode=""></image>
 						<view class="fun_text">开票助手</view>
-					</navigator>
+					</navigator> -->
 					<view class="fun_list flex_c flex_ac">
 						<button open-type="contact" style="background: #fff; border: 0; line-height: 1; padding: 0">
 							<image class="fun_img" src="/static/my/service.png" mode=""></image>