luyisha 3 years ago
parent
commit
a35c6e8ce0
  1. 2
      api/member.js
  2. 27
      pages/auth/primary.vue
  3. 6
      pages/base/home.vue
  4. 4
      pages/exchange/exchange-transaction.vue
  5. 61
      pages/purchase/index.vue
  6. 7
      pages/service/service.vue

2
api/member.js

@ -122,7 +122,7 @@ class Member {
return server.get('/getNewestVersion') return server.get('/getNewestVersion')
} }
static serviceDetail(data) { static serviceDetail(data) {
return server.get(`/article/serviceDetail`, data); return server.get(`/article/detail`, data);
} }
} }

27
pages/auth/primary.vue

@ -2,7 +2,13 @@
<v-page style="height:auto!important;min-height: 100%!important;"> <v-page style="height:auto!important;min-height: 100%!important;">
<v-header :title="$t('auth.a1')"></v-header> <v-header :title="$t('auth.a1')"></v-header>
<main class=" m-lg bg-panel-3 rounded-md p-x-md box-shadow"> <main class=" m-lg bg-panel-3 rounded-md p-x-md box-shadow">
<view class="form-item border-b p-md m-b-md" v-if="1==='国籍'"> <view class="form-item border-b p-md m-b-md">
<view class="label m-b-xs">{{$t('auth.a9')}}</view>
<view class="input color-light">
<v-input v-model="form.realname" :placeholder="$t('auth.b0')"></v-input>
</view>
</view>
<view class="form-item border-b p-md m-b-md">
<view class="label m-b-xs">{{$t('auth.a7')}}</view> <view class="label m-b-xs">{{$t('auth.a7')}}</view>
<view class="input color-light" > <view class="input color-light" >
<v-picker :value="form.country_id" @change="selectCountry" :list="countryList" range-value="id" range-label="name"> <v-picker :value="form.country_id" @change="selectCountry" :list="countryList" range-value="id" range-label="name">
@ -14,12 +20,12 @@
</v-picker> </v-picker>
</view> </view>
</view> </view>
<view class="form-item border-b p-md m-b-md"> <view class="form-item border-b p-md m-b-md">
<view class="label m-b-xs">{{$t('auth.a9')}}</view> <view class="label m-b-xs">{{$t('auth.c7')}}</view>
<view class="input color-light"> <view class="input color-light">
<v-input v-model="form.realname" :placeholder="$t('auth.b0')"></v-input> <v-input v-model="form.address" :placeholder="$t('auth.c8')"></v-input>
</view> </view>
</view> </view>
<view class="form-item border-b p-md m-b-md" v-if="1==='出生日期'"> <view class="form-item border-b p-md m-b-md" v-if="1==='出生日期'">
<view class="label m-b-xs">{{$t('auth.c5')}}</view> <view class="label m-b-xs">{{$t('auth.c5')}}</view>
<view class="input color-light"> <view class="input color-light">
@ -43,12 +49,7 @@
<v-input v-model="form.id_card" :placeholder="$t('auth.b2')"></v-input> <v-input v-model="form.id_card" :placeholder="$t('auth.b2')"></v-input>
</view> </view>
</view> </view>
<view class="form-item border-b p-md m-b-md" v-if="1==='地址'">
<view class="label m-b-xs">{{$t('auth.c7')}}</view>
<view class="input color-light">
<v-input v-model="form.address" :placeholder="$t('auth.c8')"></v-input>
</view>
</view>
<view class="form-item border-b p-md m-b-md" v-if="1==='电话'"> <view class="form-item border-b p-md m-b-md" v-if="1==='电话'">
<view class="label m-b-xs">{{$t('auth.c9')}}</view> <view class="label m-b-xs">{{$t('auth.c9')}}</view>
<view class="input color-light"> <view class="input color-light">

6
pages/base/home.vue

@ -588,14 +588,14 @@
</view> </view>
<van-icon name="arrow" class="fn-18" /> <van-icon name="arrow" class="fn-18" />
</v-link> </v-link>
<v-link to="/pages/assets/address-list" tag="div" <!-- <v-link to="/pages/assets/address-list" tag="div"
class="per-bot p-y-md p-x-sm d-flex align-center justify-between"> class="per-bot p-y-md p-x-sm d-flex align-center justify-between">
<view class="d-flex align-center"> <view class="d-flex align-center">
<img :src="$localImgUrl('Page5.png')" alt="" class="h-20 m-r-xs" /> <img :src="$localImgUrl('Page5.png')" alt="" class="h-20 m-r-xs" />
<span class="color-dark">{{ $t("base.c5") }}</span> <span class="color-dark">{{ $t("base.c5") }}</span>
</view> </view>
<van-icon name="arrow" class="fn-18" /> <van-icon name="arrow" class="fn-18" />
</v-link> </v-link> -->
<!-- <v-link to="/pages/purchase/index" tag="div" <!-- <v-link to="/pages/purchase/index" tag="div"
class="per-bot p-y-md p-x-sm d-flex align-center justify-between"> class="per-bot p-y-md p-x-sm d-flex align-center justify-between">
<view class="d-flex align-center"> <view class="d-flex align-center">
@ -604,7 +604,7 @@
</view> </view>
<van-icon name="arrow" class="fn-18" /> <van-icon name="arrow" class="fn-18" />
</v-link> --> </v-link> -->
<v-link :to="'/pages/service/service?id=33&type=0'" tag="div" <v-link :to="'/pages/service/service?id=101&type=0'" tag="div"
class="per-bot p-y-md p-x-sm d-flex align-center justify-between"> class="per-bot p-y-md p-x-sm d-flex align-center justify-between">
<view class="d-flex align-center"> <view class="d-flex align-center">
<img :src="$localImgUrl('Page10.png')" alt="" class="h-20 m-r-xs" /> <img :src="$localImgUrl('Page10.png')" alt="" class="h-20 m-r-xs" />

4
pages/exchange/exchange-transaction.vue

@ -126,13 +126,13 @@
disabled disabled
class="h-30 p-x-sm p-y-xxs fn-center color-dark m-y-ms" class="h-30 p-x-sm p-y-xxs fn-center color-dark m-y-ms"
style="background:#F5F5F5;" style="background:#F5F5F5;"
:placeholder='$t("exchange.c9")+totalMoney+currentCoin' :placeholder='$t("exchange.c9")+(+((totalMoney*form.entrust_price)))+targetCoin'
></v-input> ></v-input>
<v-input v-else <v-input v-else
disabled disabled
class="h-30 p-x-sm p-y-xxs fn-center color-dark m-y-ms" class="h-30 p-x-sm p-y-xxs fn-center color-dark m-y-ms"
style="background:#F5F5F5;" style="background:#F5F5F5;"
:placeholder='$t("exchange.c9")+totalMoney+targetCoin' :placeholder='$t("exchange.c9")+(+((totalMoney/form.entrust_price).toFixed(8)))+currentCoin'
></v-input> ></v-input>
<view> <view>
<view class="tips fn-10 m-y-ms d-flex justify-between"> <view class="tips fn-10 m-y-ms d-flex justify-between">

61
pages/purchase/index.vue

@ -2,15 +2,40 @@
<v-page> <v-page>
<view class="layout-main"> <view class="layout-main">
<!-- 申购数据和申购周期 --> <!-- 申购数据和申购周期 -->
<v-header class="nav-head" :border="false" :title="$t('purchase.a5')"> <v-header class="nav-head" :border="false" :title="$t('purchase.a5')" :left-arrow="false">
<template #right> <template #right>
<v-link :to="'/pages/purchase/bill?issue_price='+detail.issue_price"> <v-link :to="'/pages/purchase/bill?issue_price='+detail.issue_price">
<van-icon class="fn-20 m-t-xs" name="todo-list-o"/> <van-icon class="fn-20 m-t-xs" name="todo-list-o"/>
</v-link> </v-link>
</template> </template>
</v-header> </v-header>
<view>
<view class="m-b-xs d-flex justify-center"><img :src="detail.icon" style="width: 200upx;"></view>
<!--<view class="m-b-xs">-->
<!-- <view class="label fn-10">{{ $t("purchase.a2") }}</view>-->
<!-- <view class="color-light">{{-->
<!-- detail.expected_time_online-->
<!-- }}-->
<!-- </view>-->
<!--</view>-->
<!--<view class="m-b-xs">-->
<!-- <view class="label fn-10">{{ $t("purchase.a3") }}11</view>-->
<!-- <view class="color-light">{{-->
<!-- detail.start_subscription_time-->
<!-- }}-->
<!-- </view>-->
<!--</view>-->
<!--<view class="m-b-xs">-->
<!-- <view class="label fn-10">{{ $t("purchase.a4") }}</view>-->
<!-- <view class="color-light">{{-->
<!-- detail.end_subscription_time-->
<!-- }}-->
<!-- </view>-->
<!--</view>-->
</view>
<view class="bg-form-panel-4 p-md fn-center d-flex"> <view class="bg-form-panel-4 p-md fn-center d-flex">
<view class="w-6/12 d-flex align-center">
<view class="w-6/12 d-flex align-center justify-center" style="width: 100%;">
<!--<van-circle--> <!--<van-circle-->
<!-- size="130"--> <!-- size="130"-->
<!-- class="w-max"--> <!-- class="w-max"-->
@ -33,38 +58,14 @@
<!-- </view>--> <!-- </view>-->
<!-- </view>--> <!-- </view>-->
<!--</van-circle>--> <!--</van-circle>-->
<view class="m-b-xs"> <view class="m-b-xs fn-16" style="text-align: left;line-height: 30px;">
<view class="label fn-10">{{ $t("purchase.a0") }}</view> <view class="label">{{ $t("purchase.a0") }}</view>
<view class="color-light">1 {{ detail.coin_name }}<!--{{ detail.issue_price }}-->0.035USDT</view> <view class="color-light">1 {{ detail.coin_name }}<!--{{ detail.issue_price }}-->0.035USDT</view>
<view class="label fn-10">{{ $t("purchase.a1") }}</view> <view class="label">{{ $t("purchase.a1") }}</view>
<view class="color-light">{{ detail.subscribe_currency }}</view> <view class="color-light">{{ detail.subscribe_currency }}</view>
</view> </view>
</view> </view>
<view>
<vue class="m-b-xs"><img :src="detail.icon"></vue>
<!--<view class="m-b-xs">-->
<!-- <view class="label fn-10">{{ $t("purchase.a2") }}</view>-->
<!-- <view class="color-light">{{-->
<!-- detail.expected_time_online-->
<!-- }}-->
<!-- </view>-->
<!--</view>-->
<!--<view class="m-b-xs">-->
<!-- <view class="label fn-10">{{ $t("purchase.a3") }}11</view>-->
<!-- <view class="color-light">{{-->
<!-- detail.start_subscription_time-->
<!-- }}-->
<!-- </view>-->
<!--</view>-->
<!--<view class="m-b-xs">-->
<!-- <view class="label fn-10">{{ $t("purchase.a4") }}</view>-->
<!-- <view class="color-light">{{-->
<!-- detail.end_subscription_time-->
<!-- }}-->
<!-- </view>-->
<!--</view>-->
</view>
</view> </view>
<!-- 申购 --> <!-- 申购 -->
<view class="bg-panel-3 p-md box-shadow"> <view class="bg-panel-3 p-md box-shadow">

7
pages/service/service.vue

@ -1,9 +1,10 @@
<template> <template>
<v-page> <v-page>
<v-header :title="$t('notice.a0')"></v-header> <!-- <v-header :title="$t('notice.a0')"></v-header> -->
<v-header :title="detail.title"></v-header>
<main class="layout-main p-md"> <main class="layout-main p-md">
<view class="top p-b-sm border-b" style="background-color: #f5f5f5;"> <view class="top p-b-sm border-b" style="background-color: #f5f5f5;">
<view class="title fn-lg fn-center m-b-md color-dark">{{detail.title}}</view> <!-- <view class="title fn-lg fn-center m-b-md color-dark">{{detail.title}}</view> -->
<!-- <view class="time fn-sm">{{detail.created_at}}</view> --> <!-- <view class="time fn-sm">{{detail.created_at}}</view> -->
<!-- <view class="time fn-sm">{{detail.created_ats | parseTime}}</view> --> <!-- <view class="time fn-sm">{{detail.created_ats | parseTime}}</view> -->
</view> </view>
@ -31,7 +32,7 @@ export default {
methods: { methods: {
serviceDetail() { serviceDetail() {
Member.serviceDetail({ Member.serviceDetail({
id: this.query.id, id: this.query.id
}).then((res) => { }).then((res) => {
console.log(res) console.log(res)
this.detail = res.data; this.detail = res.data;

Loading…
Cancel
Save