|
@@ -45,7 +45,7 @@
|
|
|
<!-- 小title-->
|
|
|
<div class="line_container padding">
|
|
|
<div>
|
|
|
- <text class="text-sm text-gray">订单记录</text>
|
|
|
+ <text class="text-sm text-gray">邀请卡记录</text>
|
|
|
<van-divider customStyle="border:.1px solid;margin:0px;"/>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -56,10 +56,12 @@
|
|
|
style="background-image:url(https://img.shuimuai.com/web/icon_dingdan.png);"></view>
|
|
|
<view slot="title" class="flex justify-between">
|
|
|
<view>
|
|
|
- <text class="text-sm">{{ cu.user_name }}</text>
|
|
|
+ <text class="text-sm" v-if="cu.status == 1">未注册</text>
|
|
|
+ <text class="text-sm" v-else>{{ cu.user_name }}</text>
|
|
|
</view>
|
|
|
<view>
|
|
|
- <text class="text-gray text-sm">{{ cu.bind_time }}</text>
|
|
|
+ <text class="text-gray text-sm" v-if="cu.status == 1">{{ cu.invite_time }}</text>
|
|
|
+ <text class="text-gray text-sm" v-if="cu.status == 2">{{ cu.bind_time }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -87,6 +89,7 @@
|
|
|
|
|
|
import {agentInviteStock} from "../../../requests/agent";
|
|
|
import util from '@/utils/index'
|
|
|
+import {formatAllTime} from "../../../utils";
|
|
|
|
|
|
var $this
|
|
|
export default {
|
|
@@ -114,7 +117,8 @@ export default {
|
|
|
$this.use_count = $data.unuse
|
|
|
$this.invite_list = $data.list
|
|
|
$this.invite_list.forEach(($val,$index)=>{
|
|
|
- $this.invite_list[$index]['bind_time'] = util.formatTime($val['bind_time'])
|
|
|
+ $this.invite_list[$index]['bind_time'] = formatAllTime($val['bind_time'])
|
|
|
+ $this.invite_list[$index]['invite_time'] = formatAllTime($val['invite_time'])
|
|
|
})
|
|
|
$this.percent = ($data.stock / $data.total).toFixed(2) * 100
|
|
|
})
|