|
@@ -240,12 +240,10 @@
|
|
<view class="pop-bg" @tap="tapPopClose"></view>
|
|
<view class="pop-bg" @tap="tapPopClose"></view>
|
|
<view class="pop-win-inner">
|
|
<view class="pop-win-inner">
|
|
<view class="pop-win-body">
|
|
<view class="pop-win-body">
|
|
-
|
|
|
|
<view class="fx-r">
|
|
<view class="fx-r">
|
|
<view class="pop-win-bg">
|
|
<view class="pop-win-bg">
|
|
<image @tap="tapPhone2" :src="selData.img"></image>
|
|
<image @tap="tapPhone2" :src="selData.img"></image>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
<view class="pop-win-lg">
|
|
<view class="pop-win-lg">
|
|
<view class="pop-win-lg-title">{{data.title}}</view>
|
|
<view class="pop-win-lg-title">{{data.title}}</view>
|
|
<view class="pop-win-log-price"><text>¥</text>{{selData.commission}}</view>
|
|
<view class="pop-win-log-price"><text>¥</text>{{selData.commission}}</view>
|
|
@@ -274,15 +272,15 @@
|
|
|
|
|
|
<view class="buy fx-r fx-bc fx-ac">
|
|
<view class="buy fx-r fx-bc fx-ac">
|
|
<view class="fx-g1">数量</view>
|
|
<view class="fx-g1">数量</view>
|
|
- <view class="fx-r" v-if="data.is_package == 0">
|
|
|
|
|
|
+ <view class="fx-r">
|
|
<button @tap="tapAdCount(-1)" class="nt buy-ad-btn jdd">-</button>
|
|
<button @tap="tapAdCount(-1)" class="nt buy-ad-btn jdd">-</button>
|
|
<input type="number" v-model="selData.count" @input="tapInput" class="buy-input"/>
|
|
<input type="number" v-model="selData.count" @input="tapInput" class="buy-input"/>
|
|
<button @tap="tapAdCount(1)" class="nt buy-ad-btn add">+</button>
|
|
<button @tap="tapAdCount(1)" class="nt buy-ad-btn add">+</button>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="fx-r" v-else>
|
|
|
|
|
|
+ <!-- <view class="fx-r" v-else>
|
|
x{{ selData.count }}
|
|
x{{ selData.count }}
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -451,7 +449,7 @@
|
|
*/
|
|
*/
|
|
tapBuy:function(){
|
|
tapBuy:function(){
|
|
if(this.user == null) {
|
|
if(this.user == null) {
|
|
- uni.navigateTo({ url:"../login/login"});
|
|
|
|
|
|
+ uni.navigateTo({ url:"/pages/login/index"});
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
buyType = "buy";
|
|
buyType = "buy";
|
|
@@ -573,6 +571,7 @@
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
if(res.code == 200) {
|
|
if(res.code == 200) {
|
|
this.data = res.data;
|
|
this.data = res.data;
|
|
|
|
+ console.log(this.data,'this.data')
|
|
var sku = [];
|
|
var sku = [];
|
|
this.selData = {
|
|
this.selData = {
|
|
title : res.data.title,
|
|
title : res.data.title,
|