1234567891011121314151617181920212223242526272829303132 |
- export default {
- data() {
- return {
- textCost: false
- }
- },
- computed: {
- iphonePlatform() {
- const systemInfo = this.$store.getters.systemInfo
- if (systemInfo && Object.keys(systemInfo).length > 0) {
- return systemInfo.model.indexOf('iPhone') !== -1
- }
- return false
- },
- goodsPrice() {
- return (price) => {
- if (price > 0) {
- if (this.iphonePlatform) {
- this.textCost = true
- return '需要申请'
- }
- return '¥' + price
- }
- this.textCost = true
- return '免费'
- }
- }
- }
- }
|