|
@@ -38,25 +38,46 @@
|
|
<p>¥{{ mallConfig.zhijiaPrice }}</p>
|
|
<p>¥{{ mallConfig.zhijiaPrice }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <spinner v-if="language!=='en'" class="count" @count='handleNum' />
|
|
|
|
|
|
+ <div class="zhijia-desc">
|
|
|
|
+ <p><h-icon type="gouwuche" class="icon" size="16"></h-icon>预计3日内发货</p>
|
|
|
|
+ <spinner v-if="language!=='en'" class="count" @count='handleZhijiaCount' />
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="plate02" ref="jsgg">
|
|
<div class="plate02" ref="jsgg">
|
|
- <div class="p2-name">{{langPurchase.parmas.name}}</div>
|
|
|
|
- <div class="p2-imgc">
|
|
|
|
- <img :src="`${$cdn}images/m-paramspro.png`" alt="">
|
|
|
|
|
|
+ <ul class="plate02-type-list">
|
|
|
|
+ <li :class="{'is-active': plate02ShowType === 'product'}" @click="plate02ShowType='product'">产品说明</li>
|
|
|
|
+ <li :class="{'is-active': plate02ShowType === 'tech'}" @click="plate02ShowType='tech'">技术参数</li>
|
|
|
|
+ </ul>
|
|
|
|
+ <div v-show="plate02ShowType === 'product'">
|
|
|
|
+ <ul class="desc-video">
|
|
|
|
+ <li v-for="item in videoArr" :key="item.name">
|
|
|
|
+ <h1 class="common-title" v-html="item.name"></h1>
|
|
|
|
+ <div class="player">
|
|
|
|
+ <video class="video" controls="controls" playsinline="playsinline" muted="muted" :poster="`${$cdn}images/postv${item.post}.png`">
|
|
|
|
+ <source :src="`${$cdn}video/homevideo/v${item.img}.mp4`" type="video/mp4">
|
|
|
|
+ </video>
|
|
|
|
+ </div>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
</div>
|
|
</div>
|
|
- <div class="p2-pramas">
|
|
|
|
- <div v-for="(item,i) in langPurchase.parmas.detail" :key="i">
|
|
|
|
- <p class="title">{{item.label}}</p>
|
|
|
|
- <div class="name">{{item.name}}</div>
|
|
|
|
- <div class="detail" >
|
|
|
|
- <span v-for="(sub,idx) in item.dec" :key="idx">
|
|
|
|
- <span v-html="sub">* 付款成功后5个工作日内发货,默认顺丰快递包邮</span>
|
|
|
|
- </span>
|
|
|
|
|
|
+ <div v-show="plate02ShowType === 'tech'">
|
|
|
|
+ <div class="common-title">{{langPurchase.parmas.name}}</div>
|
|
|
|
+ <div class="p2-pramas">
|
|
|
|
+ <div v-for="(item,i) in techData" :key="i">
|
|
|
|
+ <p class="title">{{item.label}}</p>
|
|
|
|
+ <div class="detail" >
|
|
|
|
+ <span v-for="(sub,idx) in item.desc" :key="idx">
|
|
|
|
+ {{sub}}
|
|
|
|
+ <!-- <span v-html="sub">* 付款成功后5个工作日内发货,默认顺丰快递包邮</span> -->
|
|
|
|
+ </span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="p2-imgc">
|
|
|
|
+ <img :src="`${$cdn}images/m-paramspro.png`" alt="">
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- <div class="plate03" ref="rlgz">
|
|
<!-- <div class="plate03" ref="rlgz">
|
|
@@ -77,7 +98,7 @@
|
|
</div> -->
|
|
</div> -->
|
|
<div class="hover-btns">
|
|
<div class="hover-btns">
|
|
<div class="h-price">
|
|
<div class="h-price">
|
|
- {{language!=='en'? `RMB ${selectParts?count*(12800 + 899):count*12800}`:'USD 1799'}}
|
|
|
|
|
|
+ {{language!=='en'? `RMB ${totalPrice}`:'USD 1799'}}
|
|
</div>
|
|
</div>
|
|
<div class="h-btns">
|
|
<div class="h-btns">
|
|
<span v-if="language!=='en'" @click="addcart">加入购物车</span>
|
|
<span v-if="language!=='en'" @click="addcart">加入购物车</span>
|
|
@@ -95,6 +116,7 @@ import priceTable from '@/components/priceTable'
|
|
import browse from '@/components/browse'
|
|
import browse from '@/components/browse'
|
|
import { getPosition } from '@/util'
|
|
import { getPosition } from '@/util'
|
|
import mallConfig from '@/../../common/mall/mall'
|
|
import mallConfig from '@/../../common/mall/mall'
|
|
|
|
+import { i18n } from '@/lang'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -107,7 +129,10 @@ export default {
|
|
token: state => state.user.token,
|
|
token: state => state.user.token,
|
|
language: state => state.language.current,
|
|
language: state => state.language.current,
|
|
langPurchase: state => state.language.home.purchase
|
|
langPurchase: state => state.language.home.purchase
|
|
- })
|
|
|
|
|
|
+ }),
|
|
|
|
+ totalPrice () {
|
|
|
|
+ return mallConfig.price * this.count + (this.selectParts ? mallConfig.zhijiaPrice * this.zhijiaCount : 0)
|
|
|
|
+ }
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
let browdata = [
|
|
let browdata = [
|
|
@@ -128,18 +153,101 @@ export default {
|
|
big: 'big-3'
|
|
big: 'big-3'
|
|
}]
|
|
}]
|
|
return {
|
|
return {
|
|
|
|
+ plate02ShowType: 'product',
|
|
mallConfig,
|
|
mallConfig,
|
|
count: 1,
|
|
count: 1,
|
|
browdata,
|
|
browdata,
|
|
selectParts: true,
|
|
selectParts: true,
|
|
pathname: window.location.pathname,
|
|
pathname: window.location.pathname,
|
|
- buyPackage: 'normal'
|
|
|
|
|
|
+ buyPackage: 'normal',
|
|
|
|
+ zhijiaCount: 1,
|
|
|
|
+ techData: [
|
|
|
|
+ {
|
|
|
|
+ label: '机身尺寸',
|
|
|
|
+ desc: [`高度:220.7mm / 宽度:78.2mm / 厚度:78.2mm`]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '分辨率',
|
|
|
|
+ desc: [`4608*3456像素(每个);8192*4096像素(合计)`]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '存储内存',
|
|
|
|
+ desc: ['16GB']
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'WiFi',
|
|
|
|
+ desc: ['802.11a/b/g/n网络协议 / ', '支持2.4/5GHz通信']
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '镜头',
|
|
|
|
+ desc: [`类型:200°鱼眼镜头 孔径:f/2.0 数量:8个`]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '传感器',
|
|
|
|
+ desc: [`范围:1/2.3英寸 数量:8个`]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '电池',
|
|
|
|
+ desc: ['7.4V 4200mAh / 可通过USB快速充电']
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '设备接口',
|
|
|
|
+ desc: ['TYPE-C']
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ videoArr: [
|
|
|
|
+ {
|
|
|
|
+ name: i18n.t('coreProduct.title1'),
|
|
|
|
+ img: 1,
|
|
|
|
+ post: 1,
|
|
|
|
+ runAnimation: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: i18n.t('coreProduct.title2'),
|
|
|
|
+ img: 2,
|
|
|
|
+ post: 2,
|
|
|
|
+ runAnimation: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: i18n.t('coreProduct.title3'),
|
|
|
|
+ img: 2,
|
|
|
|
+ post: 2,
|
|
|
|
+ runAnimation: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: i18n.t('coreProduct.title4'),
|
|
|
|
+ img: 2,
|
|
|
|
+ post: 2,
|
|
|
|
+ runAnimation: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: i18n.t('coreProduct.title5'),
|
|
|
|
+ img: 3,
|
|
|
|
+ post: 3,
|
|
|
|
+ runAnimation: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: i18n.t('coreProduct.title6'),
|
|
|
|
+ img: 4,
|
|
|
|
+ post: 4,
|
|
|
|
+ runAnimation: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: i18n.t('coreProduct.title7'),
|
|
|
|
+ img: 5,
|
|
|
|
+ post: 5,
|
|
|
|
+ runAnimation: true
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
handleNum (data) {
|
|
handleNum (data) {
|
|
this.count = data
|
|
this.count = data
|
|
},
|
|
},
|
|
|
|
+ handleZhijiaCount (data) {
|
|
|
|
+ this.zhijiaCount = data
|
|
|
|
+ },
|
|
async addcart () {
|
|
async addcart () {
|
|
if (!this.token) {
|
|
if (!this.token) {
|
|
return this.$router.push({path: '/login'})
|
|
return this.$router.push({path: '/login'})
|
|
@@ -147,12 +255,12 @@ export default {
|
|
let params = {
|
|
let params = {
|
|
goodsId: 4,
|
|
goodsId: 4,
|
|
goodsCount: this.count,
|
|
goodsCount: this.count,
|
|
- skuSn: 'U15609161635760015'
|
|
|
|
|
|
+ skuSn: mallConfig.goodsMap[4].skuSn
|
|
}
|
|
}
|
|
let zhijia = {
|
|
let zhijia = {
|
|
goodsId: 7,
|
|
goodsId: 7,
|
|
- goodsCount: this.count,
|
|
|
|
- skuSn: 'U15604134406280073'
|
|
|
|
|
|
+ goodsCount: this.zhijiaCount,
|
|
|
|
+ skuSn: mallConfig.goodsMap[7].skuSn
|
|
}
|
|
}
|
|
await this.$store.dispatch('addCart', params)
|
|
await this.$store.dispatch('addCart', params)
|
|
this.selectParts && await this.$store.dispatch('addCart', zhijia)
|
|
this.selectParts && await this.$store.dispatch('addCart', zhijia)
|
|
@@ -171,15 +279,15 @@ export default {
|
|
|
|
|
|
let params = {
|
|
let params = {
|
|
goodsId: 4,
|
|
goodsId: 4,
|
|
- price: 12800,
|
|
|
|
|
|
+ price: mallConfig.price,
|
|
goodsCount: this.count,
|
|
goodsCount: this.count,
|
|
- skuSn: 'U15609161635760015'
|
|
|
|
|
|
+ skuSn: mallConfig.goodsMap[4].skuSn
|
|
}
|
|
}
|
|
let zhijia = {
|
|
let zhijia = {
|
|
goodsId: 7,
|
|
goodsId: 7,
|
|
- goodsCount: this.count,
|
|
|
|
- price: 899,
|
|
|
|
- skuSn: 'U15604134406280073'
|
|
|
|
|
|
+ goodsCount: this.zhijiaCount,
|
|
|
|
+ price: mallConfig.zhijiaPrice,
|
|
|
|
+ skuSn: mallConfig.goodsMap[7].skuSn
|
|
}
|
|
}
|
|
let tmpcart = []
|
|
let tmpcart = []
|
|
let temp = {}
|
|
let temp = {}
|
|
@@ -204,7 +312,12 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- changeSelectParts () {}
|
|
|
|
|
|
+ changeSelectParts () {
|
|
|
|
+ if (this.buyPackage === 'lot') {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ this.selectParts = !this.selectParts
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|