产品图和vip图从配置中读取
This commit is contained in:
parent
15da3d63cf
commit
65ce766561
@ -46,7 +46,7 @@
|
|||||||
</style>
|
</style>
|
||||||
<template>
|
<template>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<image class="product_img" mode="widthFix" src="http://h5games-al.kingsome.cn/emulator/v1.0.7/assets/vip.jpg"/>
|
<image class="product_img" mode="widthFix" src="{{vip_img}}"/>
|
||||||
<view class="one-product {{currentType === 'vip'? 'selected' : ''}}" @tap="selectType('vip')">
|
<view class="one-product {{currentType === 'vip'? 'selected' : ''}}" @tap="selectType('vip')">
|
||||||
<view class="price">
|
<view class="price">
|
||||||
<view class="price-txt delete-txt"> 原价{{vip_price/100}}元 </view>
|
<view class="price-txt delete-txt"> 原价{{vip_price/100}}元 </view>
|
||||||
@ -95,7 +95,8 @@
|
|||||||
vip_price: 5000,
|
vip_price: 5000,
|
||||||
vip_discount: 3000,
|
vip_discount: 3000,
|
||||||
month_price: 1500,
|
month_price: 1500,
|
||||||
month_discount: 1000
|
month_discount: 1000,
|
||||||
|
vip_img: 'http://h5games-al.kingsome.cn/emulator/v1.0.7/assets/vip.jpg'
|
||||||
|
|
||||||
};
|
};
|
||||||
methods = {
|
methods = {
|
||||||
@ -127,6 +128,7 @@
|
|||||||
this.vip_discount = this.$getPrice('vip_discount');
|
this.vip_discount = this.$getPrice('vip_discount');
|
||||||
this.month_price = this.$getPrice('month_price');
|
this.month_price = this.$getPrice('month_price');
|
||||||
this.month_discount = this.$getPrice('month_discount');
|
this.month_discount = this.$getPrice('month_discount');
|
||||||
|
this.vip_img = this.$getPrice('vip_img');
|
||||||
this.$apply();
|
this.$apply();
|
||||||
}
|
}
|
||||||
buy(type) {
|
buy(type) {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</style>
|
</style>
|
||||||
<template>
|
<template>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<image class="product_img" mode="widthFix" src="http://h5games-al.kingsome.cn/emulator/v1.0.7/assets/product.jpg"/>
|
<image class="product_img" mode="widthFix" src="{{product_img}}"/>
|
||||||
</view>
|
</view>
|
||||||
<addressFrom :config.sync="formCfg" :addressInfo.sync="addressInfo" @cancelTap.user="formCancel" @confirmTap.user="formConfirm"/>
|
<addressFrom :config.sync="formCfg" :addressInfo.sync="addressInfo" @cancelTap.user="formCancel" @confirmTap.user="formConfirm"/>
|
||||||
<gameBottomBar :config.sync="bottomActionCfg" @bottomMainTap.user="bottomMainTap"
|
<gameBottomBar :config.sync="bottomActionCfg" @bottomMainTap.user="bottomMainTap"
|
||||||
@ -45,7 +45,8 @@
|
|||||||
name: '',
|
name: '',
|
||||||
address: ''
|
address: ''
|
||||||
},
|
},
|
||||||
tid: ''
|
tid: '',
|
||||||
|
product_img: 'http://h5games-al.kingsome.cn/emulator/v1.0.7/assets/product.jpg'
|
||||||
};
|
};
|
||||||
methods = {
|
methods = {
|
||||||
bottomMainTap(e) {
|
bottomMainTap(e) {
|
||||||
@ -83,6 +84,10 @@
|
|||||||
this.gid = decodeURIComponent(params.gid);
|
this.gid = decodeURIComponent(params.gid);
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
}
|
}
|
||||||
|
onShow(){
|
||||||
|
this.product_img = this.$getPrice('product_img');
|
||||||
|
this.$apply();
|
||||||
|
}
|
||||||
async showBuyMenu() {
|
async showBuyMenu() {
|
||||||
let self = this;
|
let self = this;
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user