Commit c0e67e67 authored by zL's avatar zL

充值部分修改

parent f6dea424
......@@ -64,15 +64,26 @@ const configModules = {
filename: 'index.html'
}
},
// hd
"hd_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:9007/',
INERFACE_URL_PREFIX: 'http://172.16.101.87:46789',
INDEX: {
entry: './src/entry/hd/main.ts',
template: './public/hd/index.html',
filename: 'index.html'
}
},
// hd
"hd_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:9007/',
INERFACE_URL_PREFIX: 'http://172.16.101.87:46789',
INDEX: {
entry: './src/entry/hd/main.ts',
template: './public/hd/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]
\ No newline at end of file
......@@ -57,8 +57,8 @@ export default class MainHeader extends Vue {
// logo
.icon_logo {
margin-left: 27px;
margin-top: 12px;
height: 31px;
margin-top: 6px;
height: 36px;
}
.user_wrapper {
......
......@@ -83,8 +83,8 @@ export default {
position: absolute;
left: 26px;
top: 14px;
width: 72px;
height: 30px;
width: 90px;
height: 36px;
background: url("../images/SigIn/logo.png") no-repeat center;
background-size: 100% 100%;
}
......
......@@ -12,6 +12,9 @@ if (key) {
} else if (key.indexOf('best') === 0) {
// best
router = require('@/entry/best/router');
}else if (key.indexOf('hd') === 0) {
// hd
router = require('@/entry/hd/router');
}
}
......
......@@ -56,11 +56,11 @@
{{ item.chain_times }}
<span></span>
</p>
<P class="price">
<p class="price">
价格:
<span>{{ item.price }}</span
>元人民币
</P>
</p>
<p class="average-price">上链均价:{{ item.chain_price }}</p>
<div class="buy">
<div class="buy-button" @click="buyNow(item)">立即购买</div>
......@@ -123,13 +123,6 @@
</li>
</ul>
<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>
<p class="warm-prompt">
温馨提示:所有套餐都是年费套餐,超过一年剩余的套餐将会被清零,详情请
......@@ -153,6 +146,7 @@
<div
class="bg-box--other"
v-if="this.PaymentList[this.activeIndex].type === 2"
:style="bg"
></div>
<div>
<p>
......@@ -172,7 +166,10 @@
class="money-box"
v-if="this.PaymentList[this.activeIndex].type === 2"
>
应付BEST:<span>{{ price }}</span>
应付{{ this.PaymentList[this.activeIndex].coin }}<span>{{
price
}}</span>
</div>
<div class="Qr-code">
<img :src="payUrl" />
......@@ -205,7 +202,7 @@
class="download"
v-if="this.PaymentList[this.activeIndex].type === 2"
>
B钱包下载地址:https://d.biqianbao.net
钱包下载地址:https://d.biqianbao.net
</div>
<div
class="top-up-hints"
......@@ -259,7 +256,17 @@ export default {
this.back();
}
},
computed: {
bg() {
return (
"background-image:url('" +
this.PaymentList[this.activeIndex].s_image_url +
"')"
);
},
},
methods: {
//
// 倒计时
reduce() {
this.timeID = setInterval(() => {
......@@ -286,7 +293,6 @@ export default {
this.PaymentList[this.activeIndex].coin
);
this.steps = 2;
this.price = this.price / this.PaymentList[this.activeIndex].rate;
this.reduce();
}
},
......@@ -300,6 +306,7 @@ export default {
});
if (res) {
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);
}
},
......@@ -573,7 +580,9 @@ export default {
float: left;
margin-top: 15px;
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 {
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