Commit c0e67e67 authored by zL's avatar zL

充值部分修改

parent f6dea424
...@@ -64,15 +64,26 @@ const configModules = { ...@@ -64,15 +64,26 @@ const configModules = {
filename: 'index.html' filename: 'index.html'
} }
}, },
// hd // hd
"hd_test": { "hd_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:9007/', CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:9007/',
INERFACE_URL_PREFIX: 'http://172.16.101.87:46789', INERFACE_URL_PREFIX: 'http://172.16.101.87:46789',
INDEX: { INDEX: {
entry: './src/entry/hd/main.ts', entry: './src/entry/hd/main.ts',
template: './public/hd/index.html', template: './public/hd/index.html',
filename: 'index.html' filename: 'index.html'
} }
}, },
// www.sy.honordecent.com
// hd
"hd_prod": {
CHAIN_BROWSER_URL_PREFIX: 'https://www.cx.honordecent.com/',
INERFACE_URL_PREFIX: 'https://www.sy.honordecent.com/api',
INDEX: {
entry: './src/entry/hd/main.ts',
template: './public/hd/index.html',
filename: 'index.html'
}
},
} }
exports.model = configModules[process.env.VUE_APP_CURRENTMODE] exports.model = configModules[process.env.VUE_APP_CURRENTMODE]
\ No newline at end of file
...@@ -57,8 +57,8 @@ export default class MainHeader extends Vue { ...@@ -57,8 +57,8 @@ export default class MainHeader extends Vue {
// logo // logo
.icon_logo { .icon_logo {
margin-left: 27px; margin-left: 27px;
margin-top: 12px; margin-top: 6px;
height: 31px; height: 36px;
} }
.user_wrapper { .user_wrapper {
......
...@@ -83,8 +83,8 @@ export default { ...@@ -83,8 +83,8 @@ export default {
position: absolute; position: absolute;
left: 26px; left: 26px;
top: 14px; top: 14px;
width: 72px; width: 90px;
height: 30px; height: 36px;
background: url("../images/SigIn/logo.png") no-repeat center; background: url("../images/SigIn/logo.png") no-repeat center;
background-size: 100% 100%; background-size: 100% 100%;
} }
......
...@@ -12,6 +12,9 @@ if (key) { ...@@ -12,6 +12,9 @@ if (key) {
} else if (key.indexOf('best') === 0) { } else if (key.indexOf('best') === 0) {
// best // best
router = require('@/entry/best/router'); router = require('@/entry/best/router');
}else if (key.indexOf('hd') === 0) {
// hd
router = require('@/entry/hd/router');
} }
} }
......
...@@ -56,11 +56,11 @@ ...@@ -56,11 +56,11 @@
{{ item.chain_times }} {{ item.chain_times }}
<span></span> <span></span>
</p> </p>
<P class="price"> <p class="price">
价格: 价格:
<span>{{ item.price }}</span <span>{{ item.price }}</span
>元人民币 >元人民币
</P> </p>
<p class="average-price">上链均价:{{ item.chain_price }}</p> <p class="average-price">上链均价:{{ item.chain_price }}</p>
<div class="buy"> <div class="buy">
<div class="buy-button" @click="buyNow(item)">立即购买</div> <div class="buy-button" @click="buyNow(item)">立即购买</div>
...@@ -123,13 +123,6 @@ ...@@ -123,13 +123,6 @@
</li> </li>
</ul> </ul>
<div class="button" @click="determinePay">去支付</div> <div class="button" @click="determinePay">去支付</div>
<!-- <div @click="WeChatPay">
<div >
<img v-if="payUrl" :src="payUrl" />
<img v-else src="" />
</div>
</div>
<div @click="PaymentOrder"></div> -->
</div> </div>
<p class="warm-prompt"> <p class="warm-prompt">
温馨提示:所有套餐都是年费套餐,超过一年剩余的套餐将会被清零,详情请 温馨提示:所有套餐都是年费套餐,超过一年剩余的套餐将会被清零,详情请
...@@ -153,6 +146,7 @@ ...@@ -153,6 +146,7 @@
<div <div
class="bg-box--other" class="bg-box--other"
v-if="this.PaymentList[this.activeIndex].type === 2" v-if="this.PaymentList[this.activeIndex].type === 2"
:style="bg"
></div> ></div>
<div> <div>
<p> <p>
...@@ -172,7 +166,10 @@ ...@@ -172,7 +166,10 @@
class="money-box" class="money-box"
v-if="this.PaymentList[this.activeIndex].type === 2" v-if="this.PaymentList[this.activeIndex].type === 2"
> >
应付BEST:<span>{{ price }}</span> 应付{{ this.PaymentList[this.activeIndex].coin }}<span>{{
price
}}</span>
</div> </div>
<div class="Qr-code"> <div class="Qr-code">
<img :src="payUrl" /> <img :src="payUrl" />
...@@ -205,7 +202,7 @@ ...@@ -205,7 +202,7 @@
class="download" class="download"
v-if="this.PaymentList[this.activeIndex].type === 2" v-if="this.PaymentList[this.activeIndex].type === 2"
> >
B钱包下载地址:https://d.biqianbao.net 钱包下载地址:https://d.biqianbao.net
</div> </div>
<div <div
class="top-up-hints" class="top-up-hints"
...@@ -259,7 +256,17 @@ export default { ...@@ -259,7 +256,17 @@ export default {
this.back(); this.back();
} }
}, },
computed: {
bg() {
return (
"background-image:url('" +
this.PaymentList[this.activeIndex].s_image_url +
"')"
);
},
},
methods: { methods: {
//
// 倒计时 // 倒计时
reduce() { reduce() {
this.timeID = setInterval(() => { this.timeID = setInterval(() => {
...@@ -286,7 +293,6 @@ export default { ...@@ -286,7 +293,6 @@ export default {
this.PaymentList[this.activeIndex].coin this.PaymentList[this.activeIndex].coin
); );
this.steps = 2; this.steps = 2;
this.price = this.price / this.PaymentList[this.activeIndex].rate;
this.reduce(); this.reduce();
} }
}, },
...@@ -300,6 +306,7 @@ export default { ...@@ -300,6 +306,7 @@ export default {
}); });
if (res) { if (res) {
this.cycle(); this.cycle();
this.price = JSON.parse(res.data.pay_url).amount / 100000000;
if (res.data.pay_url) this.payUrl = await payQR(res.data.pay_url); if (res.data.pay_url) this.payUrl = await payQR(res.data.pay_url);
} }
}, },
...@@ -573,7 +580,9 @@ export default { ...@@ -573,7 +580,9 @@ export default {
float: left; float: left;
margin-top: 15px; margin-top: 15px;
margin-left: 96px; margin-left: 96px;
background: url("../../assets/images/userCenter/other.png") no-repeat center; // background: url("../../assets/images/userCenter/other.png") no-repeat center;
background-position: center;
background-repeat: no-repeat;
} }
.back-button { .back-button {
font-size: 16px; font-size: 16px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment