tanyanfei 3 лет назад
Родитель
Сommit
80b7f0565a

+ 2 - 2
app.json

@@ -10,11 +10,11 @@
   "pages/rethink/rethink",
   "pages/message/message",
   "pages/change/change",
-    
+  "pages/stock/stock",
     "pages/apply/apply",
     
     
-    "pages/stock/stock",
+    
     
     
     "pages/myMatchDetail/myMatchDetail",

+ 16 - 7
pages/index/index.js

@@ -8,7 +8,8 @@ Page({
     notices:[],
     tabs:['关注','热门股票','热门选手','胜率榜','冠军心得'],
     cur:0,
-    date:'2021-11-09',
+    hot:0,
+    date:'2022-04-27',
     followList:[],
     defendList:[],
     winList:[],
@@ -28,9 +29,9 @@ Page({
     var y = new Date().getFullYear(), m = (new Date().getMonth() + 1), d = new Date().getDate();
     m = m > 9 ? m : '0' + m;
     d = d > 9 ? d : '0' + d;
-    this.setData({
-      date: y + '-' + m + '-' + d
-    })
+    // this.setData({
+    //   date: y + '-' + m + '-' + d
+    // })
 
     this.getFollow()
    
@@ -39,6 +40,7 @@ Page({
         notices:res.data.data
       })
     })
+    
   },
   fresh: function () {
     this.setData({
@@ -195,6 +197,11 @@ Page({
         hotsellList: res.data.data.list
       })
     })
+    $api.getChoice().then(res=>{
+      this.setData({
+        myList: res.data.data.list
+      })
+    })
   },
   tabChange(e){
       this.setData({
@@ -213,9 +220,11 @@ Page({
         case 4:
           this.getData()
       }
-      
-
-
+  },
+  tabChange1(e){
+    this.setData({
+      hot:e.target.dataset.id
+    })
   },
   //预览
   preview(e){

+ 34 - 12
pages/index/index.wxml

@@ -53,7 +53,7 @@
       </scroll-view>
   </swiper-item>
   <swiper-item>
-      <scroll-view style="padding:0;" scroll-y='{{true}}'>
+      
           <view class="item2">
               <picker mode="date" value="{{date}}"  bindchange="bindDateChange">
                 <view class="date-picker">
@@ -62,16 +62,38 @@
                 </view>
               </picker>
               <view class="hot">
-                    <view class="tab1">热门持仓</view>
-                    <navigator hover-class="none" url="../stock/stock?id={{item.id}}&date={{date}}" class="gp" wx:for='{{hotbuyList}}' wx:if='{{index<10}}'>
-                        <image wx:if='{{index==0}}' mode="widthFix" src="../../images/1.png"></image>
-                        <image wx:if='{{index==1}}' mode="widthFix" src="../../images/2.png"></image>
-                        <image wx:if='{{index==2}}' mode="widthFix" src="../../images/3.png"></image>
-                        <text class="rank" wx:if='{{index>2}}'>{{index+1}}</text>
-                        <view class="gp-name">{{item.stock_name}}</view>
-                        <view class="num">持仓 <text>{{item.count}}</text> 人</view>
-                    </navigator>
-                    <navigator hover-class="none" url="../stock/stock?date={{date}}&type=1"  class="more">查看更多 <image mode="widthFix" src="../../images/right_icon.png"></image></navigator>
+                    <!-- <view class="tab1">热门持仓</view>
+                     -->
+                    <view class="hot_tab">
+                        <view bindtap="tabChange1" data-id='0' class="{{hot==0?'act1':''}}">今日热门 <text></text></view>
+                        <view bindtap="tabChange1" data-id='1' class="{{hot==1?'act1':''}}">我的自选 <text></text></view>
+                    </view>
+                    <scroll-view style="padding:0;" scroll-y='{{true}}' style="height:calc(100vh - 377rpx);">
+                        <view wx:if='{{hot==0}}'>
+                          <navigator hover-class="none" url="../stock/stock?id={{item.id}}&date={{date}}" class="gp" wx:for='{{hotbuyList}}' wx:if='{{index<10}}'>
+                              <image wx:if='{{index==0}}' mode="widthFix" src="../../images/1.png"></image>
+                              <image wx:if='{{index==1}}' mode="widthFix" src="../../images/2.png"></image>
+                              <image wx:if='{{index==2}}' mode="widthFix" src="../../images/3.png"></image>
+                              <text class="rank" wx:if='{{index>2}}'>{{index+1}}</text>
+                              <view class="gp-name">{{item.stock_name}}</view>
+                              <view class="num"> <text>{{item.count}}</text> 人持仓</view>
+                              <view class="comment"><text>留言 1200 条</text>|<text>跟踪 908 人</text></view>
+                          </navigator>
+                          <navigator hover-class="none" url="../stock/stock?date={{date}}&type=1"  class="more">查看更多 <image mode="widthFix" src="../../images/right_icon.png"></image></navigator>
+                        </view>
+                        <view wx:if='{{hot==1}}'>
+                          <navigator hover-class="none" url="../stock/stock?id={{item.id}}&date={{date}}" class="gp" wx:for='{{myList}}'>
+                              <!-- <image wx:if='{{index==0}}' mode="widthFix" src="../../images/1.png"></image>
+                              <image wx:if='{{index==1}}' mode="widthFix" src="../../images/2.png"></image>
+                              <image wx:if='{{index==2}}' mode="widthFix" src="../../images/3.png"></image> -->
+                              <text class="rank">{{index+1}}</text>
+                              <view class="gp-name">{{item.stock_name}}</view>
+                              <view class="num"> <text>{{item.count}}</text> 人持仓</view>
+                              <view class="comment"><text>留言 1200 条</text>|<text>跟踪 908 人</text></view>
+                          </navigator>
+                          <view class="loading" wx:if='{{!myList}}'>暂无数据</view>
+                        </view>
+                  </scroll-view>
               </view>
               <!-- <view class="hot">
                     <view class="tab2">热门清仓</view>
@@ -85,7 +107,7 @@
                     <navigator hover-class="none"  url="../stock/stock?date={{date}}&type=2" class="more">查看更多 <image mode="widthFix" src="../../images/right_icon.png"></image></navigator>
               </view> -->
           </view>
-      </scroll-view>
+      
   </swiper-item>
   <swiper-item>
       <scroll-view  scroll-y='{{true}}' bindscrolltolower='next3'>

+ 41 - 5
pages/index/index.wxss

@@ -155,7 +155,31 @@ scroll-view{
 .hot{
   border-radius: 16rpx;
   margin-top: 30rpx;
-  box-shadow: 0px 0px 12px 0px rgba(218, 217, 217, 0.5);
+  /* box-shadow: 0px 0px 12px 0px rgba(218, 217, 217, 0.5); */
+}
+.hot_tab{
+  display: flex;
+}
+.hot_tab view{
+  width: 50%;
+  text-align: center;
+  font-size: 30rpx;
+  line-height: 88rpx;
+  position: relative;
+}
+.hot_tab .act1{
+  font-weight: bold;
+}
+.act1 text{
+  position: absolute;
+  width: 64rpx;
+  height: 6rpx;
+  bottom: 0;
+  left: 0;
+  right: 0;
+  margin: auto;
+  background: rgba(217, 75, 36, 1);
+  border-radius: 40rpx;
 }
 .tab1{
   color: #D94B24;
@@ -183,27 +207,39 @@ scroll-view{
 .gp{
   display: flex;
   justify-content: space-between;
-  padding: 24rpx;
+  padding: 24rpx 0;
+  flex-wrap: wrap;
+  border-bottom: 1px solid #F5F5F5;
 }
 .gp-name{
   font-weight: 500;
   font-size: 32rpx;
-  width: 70%;
+  width: 60%;
   padding-left: 8rpx;
 }
 .num{
   font-size: 28rpx;
-  color: #666;
+  color: #999;
   text-align: right;
   width: 200rpx;
 }
 .num text{
   font-size: 36rpx;
   font-weight: 500;
+  color: #D94B24;
+}
+.comment{
+  width: 100%;
+  padding-top: 20rpx;
+  padding-left: 60rpx;
+}
+.comment text{
+  color: #666;
+  margin:0 10rpx;
 }
 .more{
   display: block;
-  border-top: 1px solid #F5F5F5;
+  
   line-height: 94rpx;
   text-align: center;
   font-size: 28rpx;

+ 71 - 0
pages/stock/stock.js

@@ -12,6 +12,9 @@ Page({
     type:'',
     page:1,
     total:0,
+    cur:0,
+    text:'留下你的观点',
+    comment:'',
     list:[]
   },
 
@@ -19,12 +22,19 @@ Page({
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
+
     this.setData({
       stock_date: options.date,
       type: options.type
     })
     if (options.id){
       this.setData({id:options.id})
+      this.getComment()
+      $api.getAuthinfo().then(res=>{
+        this.setData({
+          role: res.data.data.role
+        })
+      })
       if(options.type == 2){
         $api.getSellStock({ id: options.id, stock_date: this.data.stock_date }).then(res => {
           this.setData({
@@ -50,6 +60,67 @@ Page({
     }
     
   },
+  inputchange1(e) {
+    this.setData({
+      comment: e.detail.value
+    })
+  },
+  blur(){
+    this.setData({
+      comment:'',
+      pid:null,
+      text:'留下你的观点'
+    })
+  },
+  sendmsg(){
+    console.log(233)
+    var data={
+      stock_id:this.data.id,
+      cotent:this.data.comment,
+      pid:this.data.pid
+    }
+    if(!data.cotent){
+        return
+    }
+    
+    $api.postcomment(data).then(res=>{
+      this.getComment()
+      this.setData({
+        comment:'',
+        pid:null,
+        text:'留下你的观点'
+      })
+    })
+  },
+  choice(){
+    $api.addchoice({stock_id:this.data.id}).then(res=>{
+      wx.showToast({
+        title: '加入成功',
+      })
+    })
+  },
+  tab(e){
+      this.setData({
+          cur:e.target.dataset.id
+      })
+  },
+  getComment(){
+    $api.getComment({stock_id:this.data.id}).then(res=>{
+      if(res.data.code == 0){
+          this.setData({
+            comment_list:res.data.data.list,
+            comment_count:res.data.data.total
+          })
+      }
+    })
+  },
+  answer(e){
+      this.setData({
+          focus:true,
+          text:'回复'+e.target.dataset.name,
+          pid:e.target.dataset.id
+      })
+  },
   inputChange(e) {
     this.setData({
       name: e.detail.value

+ 53 - 20
pages/stock/stock.wxml

@@ -6,27 +6,60 @@
 </view>
 
 <view wx:if='{{id}}'>
-  <image wx:if='{{info.img}}' mode="withFix" src="{{info.img}}"></image>
-  <view wx:if='{{info.desc}}' class="desc">{{info.desc}}</view>
-  <navigator hover-class="none" class="player" wx:for='{{info.list}}' url="../today/today?id={{item.match_id}}&player_id={{item.player_id}}">
-    <view class="name">{{item.username}}  <text>{{item.badge}}</text> 
-    <view>TOP <text>{{item.group_rank}}</text></view></view> 
-    <view class="info">
-                日期: <view>{{item.stock_date}}</view>
-    </view>
-    <view class="info">
-                资产:<view><label>{{item.today_fund}}w</label>(今日收益 <text  class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text><text style="color:#F5F5F5;">  |  </text>总收益<text  class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>)</view>
-    </view>
+  <view class="stock_name">{{info.name}} <text wx:if='{{info.code}}'>{{info.code}}</text><view bindtap="choice">加入自选</view></view>
+  <!-- <image wx:if='{{info.img}}' mode="withFix" src="{{info.img}}"></image>
+  <view wx:if='{{info.desc}}' class="desc">{{info.desc}}</view> -->
+  <view class="tab">
+      <view bindtap="tab" data-id='0' class="{{cur==0?'act':''}}">留言 {{comment_count}} <text></text></view>
+      <view bindtap="tab"   data-id='1' class="{{cur==1?'act':''}}">今日持仓 {{info.user_num}}<text></text></view>
+      <view bindtap="tab"   data-id='2' class="{{cur==2?'act':''}}">跟踪<text></text></view>
+  </view>
+  <scroll-view bindtap="blur"  scroll-y='{{true}}' style="height:calc(100vh - 380rpx);background: #fff;padding: 30rpx;">
+    <view class="content" wx:if='{{cur==0}}'>
+        <view class="_list" wx:for="{{comment_list}}">
+          <image src="{{item.user_avatar}}" ></image>
+            <view class="msg">
+                <text class="_name">{{item.user_name}}</text>
+                <view class="_content">{{item.content}}</view>
+                <view class="answer" wx:if="{{item.children.length>0}}">
+                    <view  wx:for="{{item.children}}" wx:for-item='i'>
+                    <text>{{i.user_name}}:</text>
+                    {{i.content}}</view>
+                </view>
+                <view class="addr">
+                    <text>{{item.ctime}}</text><text>来自{{item.location}}</text>
+                    <image data-id='{{item.id}}' data-name='{{item.user_name}}' catchtap="answer" mode="widthFix" src="../../images/msg.png"></image>
+                </view>
+            </view>
+        </view>
+      </view>
+      <view wx:if='{{cur==1}}'>
+        <navigator hover-class="none" class="player" wx:for='{{info.list}}' url="../today/today?id={{item.match_id}}&player_id={{item.player_id}}">
+            <view class="name">{{item.username}}  <text>{{item.badge}}</text> 
+            <view>TOP <text>{{item.group_rank}}</text></view></view> 
+            <view class="info">
+                        日期: <view>{{item.stock_date}}</view>
+            </view>
+            <view class="info">
+                        资产:<view><label>{{item.today_fund}}w</label>(今日收益 <text  class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text><text style="color:#F5F5F5;">  |  </text>总收益<text  class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>)</view>
+            </view>
 
-    <view class="info">
-                  持仓: 
-                    <view wx:if='{{item.is_markt}}'>开超市</view>
-                    <view wx:elif='{{item.today_stock.length>0}}'>
-                        <block wx:for="{{item.today_stock}}" wx:for-item='i'> {{i.name}}({{i.fund}}w) </block>
-                    </view>
-                    <view wx:else>空仓</view>
-    </view>
-  </navigator>
+            <view class="info">
+                          持仓: 
+                            <view wx:if='{{item.is_markt}}'>开超市</view>
+                            <view wx:elif='{{item.today_stock.length>0}}'>
+                                <block wx:for="{{item.today_stock}}" wx:for-item='i'> {{i.name}}({{i.fund}}w) </block>
+                            </view>
+                            <view wx:else>空仓</view>
+            </view>
+          </navigator>
+      </view>
+  </scroll-view>
+
+  <view class="post" wx:if="{{role==2}}">
+      <input value="{{comment}}" placeholder-style="color:#999" maxlength="500" bindinput="inputchange1" focus='{{focus}}' type="text" placeholder="{{text}}"/>
+      <button bindtap="sendmsg">提交</button>
+  </view>
 </view>
 <scroll-view wx:else scroll-y='{{true}}' bindscrolltolower='next'>
     <navigator hover-class="none" class="list" url="../stock/stock?id={{item.id}}&&date={{stock_date}}&type={{type}}" wx:for='{{list}}'>{{item.stock_name}}

+ 147 - 1
pages/stock/stock.wxss

@@ -1,6 +1,7 @@
 /* pages/stock/stock.wxss */
 page{
-  padding: 30rpx;
+  /* padding: 30rpx; */
+  background-color: #F7F7F7;
 }
 scroll-view{
   height: calc(100vh - 140rpx);
@@ -120,4 +121,149 @@ image{
 .num text{
   font-size: 36rpx;
   font-weight: 500;
+}
+.stock_name{
+  line-height: 82rpx;
+  padding: 0 30rpx;
+  font-size: 36rpx;
+  font-weight: bold;
+  color: #333;
+  background: #fff;
+  position: relative;
+}
+.stock_name text{
+  color: #2383E5;
+  font-weight: 400;
+  font-size: 28rpx;
+  background-color: #F7F7F7;
+  padding: 5rpx 10rpx;
+}
+.tab{
+  background: #fff;
+  margin-top: 20rpx;
+}
+.tab view{
+  line-height: 90rpx;
+  text-align: center;
+  /* width: 50%; */
+  display: inline-block;
+  font-size: 30rpx;
+  position: relative;
+  padding: 0 30rpx;
+}
+.tab .act{
+  font-weight: bold;
+}
+.act text{
+  position: absolute;
+  width: 64rpx;
+  height: 6rpx;
+  bottom: 0;
+  left: 0;
+  right: 0;
+  margin: auto;
+  background: rgba(217, 75, 36, 1);
+  border-radius: 40rpx;
+}
+
+._list{
+  position: relative;
+  padding-left: 80rpx;
+  margin-bottom: 24rpx;
+}
+._list>image{
+  width: 64rpx;
+  height: 64rpx;
+  position: absolute;
+  left: 0;
+  top: 0;
+  border-radius: 100%;
+}
+._content,._name{
+  font-size: 30rpx;
+  line-height: 48rpx;
+}
+.answer{
+  background: rgba(247, 247, 247, 1);
+  padding: 20rpx;
+  color: #666;
+  margin: 20rpx 0;
+  font-size: 28rpx;
+  line-height: 36rpx;
+}
+.answer view{
+  line-height: 48rpx;
+}
+.answer text{
+  color: #2383e5;
+}
+.addr{
+  position: relative;
+  padding-bottom: 16px;
+  border-bottom: 1px solid rgba(245, 245, 245, 1);
+}
+.addr text{
+  font-size: 28rpx;
+  margin-right: 24rpx;
+  color: #666666;
+}
+.addr image{
+  width: 34rpx;
+  position: absolute;
+  right: 0;
+  top: 12rpx;
+}
+.post{
+  position: fixed;
+  padding: 24rpx 30rpx 80rpx;
+  bottom: 0;
+  left: 0;
+  background: #fff;
+  z-index: 9;
+  border-top: 1px solid rgba(245, 245, 245, 1);
+  display: flex;
+  justify-content: space-between;
+  width: 100%;
+}
+.post input{
+  width: 75%;
+  height: 64rpx;
+  border: 1px solid rgba(224, 224, 224, 1);
+  border-radius: 9rpx;
+  font-size: 30rpx;
+  color: #666;
+  padding: 0 16rpx;
+}
+.post button:not([size='mini']){
+  height: 64rpx;
+  width: 124rpx !important;
+  background: #D94B24;
+  border-radius: 8rpx;
+  line-height: 64rpx;
+  font-size: 30rpx;
+  color: #fff;
+  padding: 0;
+  font-weight: 400;
+  margin: 0;
+}
+.post image{
+  width: 48rpx;
+  position: relative;
+  top: 10rpx;
+}
+.stock_name view{
+  position: absolute;
+  color: #D94B24;
+  border: 1px solid #D94B24;
+  width: 72px;
+  height: 24px;
+  line-height: 24px;
+  right: 30rpx;
+  top: 0;
+  bottom: 0;
+  margin: auto;
+  font-size: 28rpx;
+  font-weight: 400;
+  text-align: center;
+  border-radius: 8rpx;
 }

+ 4 - 3
pages/today/today.wxml

@@ -1,3 +1,4 @@
+<view bindtap="blur">
 <view class="per_top">
     <image src="{{datas.today_record.avatar}}" ></image>
     <view class="name">
@@ -82,7 +83,7 @@
           </view>
           <view class="addr">
               <text>{{item.ctime}}</text><text>来自{{item.location}}</text>
-              <image data-id='{{item.id}}' data-name='{{item.user_name}}' bindtap="answer" mode="widthFix" src="../../images/msg.png"></image>
+              <image data-id='{{item.id}}' data-name='{{item.user_name}}' catchtap="answer" mode="widthFix" src="../../images/msg.png"></image>
           </view>
       </view>
   </view>
@@ -92,10 +93,10 @@
     <view class="title">顽主点评</view>
     {{datas.today_record.wanzhu_comment?datas.today_record.wanzhu_comment:'无'}}
 </view> -->
-
+</view>
 <view class="post" wx:if='{{role==2}}'>
     <image bindtap="zan"  mode="widthFix" src="../../images/zan.png"></image>
-    <input bindblur="blur" value="{{comment}}" placeholder-style="color:#999" maxlength="500" bindinput="inputchange" focus='{{focus}}' type="text" placeholder="{{text}}"/>
+    <input   value="{{comment}}" placeholder-style="color:#999" maxlength="500" bindinput="inputchange" focus='{{focus}}' type="text" placeholder="{{text}}"/>
     <button bindtap="sendmsg">提交</button>
 </view>
 

+ 2 - 0
pages/upload/upload.wxml

@@ -50,7 +50,9 @@
         <text>5、连续3天未交作业,无特殊原因将被视为退赛。</text>
         <text>6、重新归赛请跟顽主微信申请,并提供请假期间的银证记录。</text>
         <text>7、数据提交有误可直接修改,再点击上传。</text>
+        <navigator wx:if="{{role == 2}}" class="change" url="../change/change">初始资金修改</navigator>
     </view>
+    
     <button wx:if="{{role == 2}}" bindtap="post">上传</button>
     <button wx:else disabled>上传</button>
     

+ 13 - 1
pages/upload/upload.wxss

@@ -83,7 +83,19 @@ picker{
   line-height: 40rpx;
 }
 
-
+.change{
+  /* background: #D94B24; */
+  color: #D94B24;
+  width: 90%;
+  height: 88rpx;
+  line-height: 88rpx;
+  padding: 0;
+  font-size: 32rpx;
+  border-radius: 8rpx;
+  margin-top: 50rpx;
+  text-align: center;
+  border: 1px solid #D94B24;
+}
 
 form button:not([size='mini']){
   background: #D94B24;

+ 54 - 54
project.config.json

@@ -1,57 +1,57 @@
 {
-    "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
-    "packOptions": {
-        "ignore": [],
-        "include": []
+  "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+  "packOptions": {
+    "ignore": [],
+    "include": []
+  },
+  "setting": {
+    "urlCheck": true,
+    "es6": true,
+    "enhance": true,
+    "postcss": true,
+    "preloadBackgroundData": false,
+    "minified": true,
+    "newFeature": true,
+    "coverView": true,
+    "nodeModules": false,
+    "autoAudits": false,
+    "showShadowRootInWxmlPanel": true,
+    "scopeDataCheck": false,
+    "uglifyFileName": false,
+    "checkInvalidKey": true,
+    "checkSiteMap": true,
+    "uploadWithSourceMap": true,
+    "compileHotReLoad": false,
+    "lazyloadPlaceholderEnable": false,
+    "useMultiFrameRuntime": true,
+    "useApiHook": true,
+    "useApiHostProcess": true,
+    "babelSetting": {
+      "ignore": [],
+      "disablePlugins": [],
+      "outputPath": ""
     },
-    "setting": {
-        "urlCheck": true,
-        "es6": true,
-        "enhance": true,
-        "postcss": true,
-        "preloadBackgroundData": false,
-        "minified": true,
-        "newFeature": true,
-        "coverView": true,
-        "nodeModules": false,
-        "autoAudits": false,
-        "showShadowRootInWxmlPanel": true,
-        "scopeDataCheck": false,
-        "uglifyFileName": false,
-        "checkInvalidKey": true,
-        "checkSiteMap": true,
-        "uploadWithSourceMap": true,
-        "compileHotReLoad": false,
-        "lazyloadPlaceholderEnable": false,
-        "useMultiFrameRuntime": true,
-        "useApiHook": true,
-        "useApiHostProcess": true,
-        "babelSetting": {
-            "ignore": [],
-            "disablePlugins": [],
-            "outputPath": ""
-        },
-        "useIsolateContext": false,
-        "userConfirmedBundleSwitch": false,
-        "packNpmManually": false,
-        "packNpmRelationList": [],
-        "minifyWXSS": true,
-        "disableUseStrict": false,
-        "minifyWXML": true,
-        "showES6CompileOption": false,
-        "useCompilerPlugins": false,
-        "ignoreUploadUnusedFiles": true,
-        "useStaticServer": true
-    },
-    "compileType": "miniprogram",
-    "libVersion": "2.15.0",
-    "appid": "wx2938132b773c7b5a",
-    "projectname": "newwzb_xcx",
-    "simulatorType": "wechat",
-    "simulatorPluginLibVersion": {},
-    "editorSetting": {
-        "tabIndent": "insertSpaces",
-        "tabSize": 2
-    },
-    "condition": {}
+    "useIsolateContext": false,
+    "userConfirmedBundleSwitch": false,
+    "packNpmManually": false,
+    "packNpmRelationList": [],
+    "minifyWXSS": true,
+    "disableUseStrict": false,
+    "minifyWXML": true,
+    "showES6CompileOption": false,
+    "useCompilerPlugins": false,
+    "ignoreUploadUnusedFiles": true,
+    "useStaticServer": true
+  },
+  "compileType": "miniprogram",
+  "libVersion": "2.15.0",
+  "appid": "wx2938132b773c7b5a",
+  "projectname": "newwzb_xcx",
+  "simulatorType": "wechat",
+  "simulatorPluginLibVersion": {},
+  "editorSetting": {
+    "tabIndent": "insertSpaces",
+    "tabSize": 2
+  },
+  "condition": {}
 }

+ 4 - 1
utils/api.js

@@ -145,7 +145,10 @@ const API = {
   wxpay: (data) => request(POST, `/api/wx/v3/signup/wxpay`, data),
   consult: (data) => request(POST, `/api/wx/v3/user/consult`, data),
   getsignup: (data) => request(GET, `/api/wx/v3/signup/info`, data),
-  update: (data) => request(PUT, `/v3/user/fund/modify`, data),
+  update: (data) => request(PUT, `/api/wx/v3/user/fund/modify`, data),
+  getChoice: (data) => request(GET, `/api/wx/v3/user/choice/list`, data),
+  addchoice: (data) => request(POST, `/api/wx/v3/user/choice`, data),
+  
   
   
 };