|
@@ -91,7 +91,9 @@ export default defineComponent({
|
|
|
)
|
|
|
this.loading = false
|
|
|
const result = res.data || {}
|
|
|
- this.albumPics = [result.product.pic].concat(result.product.albumPics.split(',')).filter(n => n)
|
|
|
+ this.albumPics = [result.product.pic]
|
|
|
+ .concat(result.product.albumPics.split(','))
|
|
|
+ .filter(n => n)
|
|
|
this.product = result.product
|
|
|
this.skuStockListTemp = result.skuStockList || []
|
|
|
if (this.skuStockListTemp.length) {
|
|
@@ -285,8 +287,7 @@ export default defineComponent({
|
|
|
|
|
|
{!this.loading && (
|
|
|
<>
|
|
|
-
|
|
|
- <ActionBar class={styles.actionBar}>
|
|
|
+ {/* <ActionBar class={styles.actionBar}>
|
|
|
<ActionBarIcon
|
|
|
icon="cart-o"
|
|
|
// text="购物车"
|
|
@@ -314,8 +315,38 @@ export default defineComponent({
|
|
|
onClick={() => this.onShowCart('cartConfirm')}
|
|
|
/>
|
|
|
</div>
|
|
|
- </ActionBar>
|
|
|
- <SubmitBar style={{display: 'none'}}></SubmitBar>
|
|
|
+ </ActionBar> */}
|
|
|
+ <SubmitBar
|
|
|
+ class={styles.actionBar}
|
|
|
+ safe-area-inset-bottom
|
|
|
+ v-slots={{
|
|
|
+ button: () => (
|
|
|
+ <div class={styles.buyGroup}>
|
|
|
+ <ActionBarButton
|
|
|
+ type="primary"
|
|
|
+ class={styles.addCertBtn}
|
|
|
+ text="加入购物车"
|
|
|
+ onClick={() => this.onShowCart()}
|
|
|
+ />
|
|
|
+ <ActionBarButton
|
|
|
+ type="primary"
|
|
|
+ text="立即购买"
|
|
|
+ onClick={() => this.onShowCart('cartConfirm')}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Badge
|
|
|
+ content={this.cartCount}
|
|
|
+ showZero={false}
|
|
|
+ onClick={() => {
|
|
|
+ this.$router.push('/cart')
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Icon name={iconShopCart} size={30} />
|
|
|
+ </Badge>
|
|
|
+ </SubmitBar>
|
|
|
</>
|
|
|
)}
|
|
|
<Popup
|