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