|
|
@@ -16,11 +16,11 @@
|
|
|
<div class="list">
|
|
|
<div class="info">
|
|
|
<div class="text1">作品费用</div>
|
|
|
- <div class="text2">¥{{ info.price }}</div>
|
|
|
+ <div class="text2">¥{{ iosPrice || info.price }}</div>
|
|
|
</div>
|
|
|
<div class="info">
|
|
|
<div class="text1">GAS费用</div>
|
|
|
- <div class="text2">¥{{ gas }}</div>
|
|
|
+ <div class="text2">¥{{ iosPrice ? 0 : gas }}</div>
|
|
|
</div>
|
|
|
<div v-if="couponList.length > 0" class="info" :class="{ not: !couponInfo }" @click="goCoupon">
|
|
|
<div class="text1">藏品兑换券</div>
|
|
|
@@ -68,6 +68,7 @@ import { mapState } from 'vuex';
|
|
|
import resolveUrl from 'resolve-url';
|
|
|
let inWeixin = /micromessenger/i.test(navigator.userAgent);
|
|
|
let inApp = /#cordova#/i.test(navigator.userAgent);
|
|
|
+let inIos = /iPhone|iPad|iPod/i.test(navigator.userAgent);
|
|
|
export default {
|
|
|
name: 'Submit',
|
|
|
mixins: [product, coupon],
|
|
|
@@ -99,6 +100,7 @@ export default {
|
|
|
gas: 1,
|
|
|
inWeixin,
|
|
|
inApp,
|
|
|
+ inIos,
|
|
|
couponList: [],
|
|
|
collectionId: 0,
|
|
|
timer: null,
|
|
|
@@ -106,7 +108,8 @@ export default {
|
|
|
enable_wx_lite: false,
|
|
|
enable_wx_pub: false,
|
|
|
launchName: '',
|
|
|
- launchPath: ''
|
|
|
+ launchPath: '',
|
|
|
+ iosPrice: 0
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -119,6 +122,10 @@ export default {
|
|
|
money = this.accAdd(money, this.gas);
|
|
|
}
|
|
|
|
|
|
+ if (this.iosPrice) {
|
|
|
+ money = this.iosPrice;
|
|
|
+ }
|
|
|
+
|
|
|
return money;
|
|
|
},
|
|
|
...mapState(['couponInfo'])
|
|
|
@@ -131,6 +138,15 @@ export default {
|
|
|
next();
|
|
|
},
|
|
|
mounted() {
|
|
|
+ if (this.inApp && this.inIos) {
|
|
|
+ this.$http.get(`/appVersion/checkIosReview?version=${navigator.appInfo.version}`).then(res => {
|
|
|
+ if (res.review === true) {
|
|
|
+ this.iosPrice = 328;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ console.log(navigator.appInfo);
|
|
|
+
|
|
|
Promise.all([
|
|
|
this.$http.get('/sysConfig/get/gas_fee').then(res => {
|
|
|
this.gas = res.value;
|