Explorar el Código

原始股明细类型

vvv vvv hace 1 año
padre
commit
78dad5ed9f
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/pagesB/accountDetails/OriginalShares.vue

+ 3 - 1
src/pagesB/accountDetails/OriginalShares.vue

@@ -4,8 +4,8 @@
         <view class="con">
             <view class="list" v-for="(item, index) in list" :key="index">
                 <view class="list_head flex_r flex_ac flex_jb">
+                    <view class="head_name">{{ statusList[item.type] }}</view>
                     <view :class="['head_price',item.act == '+' ? 'g_color' : '']">{{item.act}}{{ item.num }}</view>
-                    <!-- <view class="head_name">{{ item.remark }}</view> -->
                 </view>
                 <view class="list_con flex_r flex_ac flex_jb">
                     <view class="list_balance">{{ item.create_time }}</view>
@@ -36,6 +36,7 @@ export default {
             ],
             list: [],
             page: 1,
+            statusList:{}
         };
     },
     onShow() {
@@ -56,6 +57,7 @@ export default {
             post("v1/my/equity", data).then((res) => {
                 uni.hideLoading();
                 if (res.code === 0) {
+                    this.statusList = JSON.parse(res.data.statusList)
                     if (res.data.data.data.length > 0) {
                         this.list = this.list.concat(res.data.data.data);
                     } else {