|
@@ -110,7 +110,7 @@
|
|
|
<view class="chooselag">
|
|
<view class="chooselag">
|
|
|
<view @click="companyed(item.name,index)" class="language"
|
|
<view @click="companyed(item.name,index)" class="language"
|
|
|
v-for="(item,index) in typeSelect " :key="index"
|
|
v-for="(item,index) in typeSelect " :key="index"
|
|
|
- :sgActive='activeIndex==index'>
|
|
|
|
|
|
|
+ :class="[activeIndex === index?'sgActive': ''] ">
|
|
|
<text>{{item.name}}</text>
|
|
<text>{{item.name}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -130,9 +130,9 @@
|
|
|
style="font-size: 32rpx; color: #FF6200;line-height: 34rpx">确定</text></view>
|
|
style="font-size: 32rpx; color: #FF6200;line-height: 34rpx">确定</text></view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="chooselag">
|
|
<view class="chooselag">
|
|
|
- <view@click="companyedShop(item.name,item.id,item.distanceToMe)"
|
|
|
|
|
|
|
+ <view@click="companyedShop(item.name,item.id,item.distanceToMe,index)"
|
|
|
class="language" v-for="(item,index) in hotelList" :key="index"
|
|
class="language" v-for="(item,index) in hotelList" :key="index"
|
|
|
- :sgActive='activeIndex2==index'>
|
|
|
|
|
|
|
+ :class="[activeIndex2 === index?'sgActive': ''] ">
|
|
|
<text>{{item.name}}</text>
|
|
<text>{{item.name}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -188,7 +188,7 @@
|
|
|
// 产品ID
|
|
// 产品ID
|
|
|
product_id: '',
|
|
product_id: '',
|
|
|
// 产品规格ID
|
|
// 产品规格ID
|
|
|
- product_attr_id: 1,
|
|
|
|
|
|
|
+ attr:'',
|
|
|
},
|
|
},
|
|
|
// 配送方式
|
|
// 配送方式
|
|
|
typeSelect: [{
|
|
typeSelect: [{
|
|
@@ -345,7 +345,7 @@
|
|
|
obj.receiver = this.Data.receiver
|
|
obj.receiver = this.Data.receiver
|
|
|
obj.phone = this.Data.phone
|
|
obj.phone = this.Data.phone
|
|
|
obj.hotel_id = this.Data.hotel_id
|
|
obj.hotel_id = this.Data.hotel_id
|
|
|
- obj.product_attr_id = this.Data.product_attr_id
|
|
|
|
|
|
|
+ obj.attr = this.Data.attr
|
|
|
this.$api.product.integralExchange({
|
|
this.$api.product.integralExchange({
|
|
|
...obj
|
|
...obj
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
@@ -368,7 +368,7 @@
|
|
|
obj.receiver = this.Data.receiver
|
|
obj.receiver = this.Data.receiver
|
|
|
obj.phone = this.Data.phone
|
|
obj.phone = this.Data.phone
|
|
|
obj.hotel_id = this.Data.hotel_id
|
|
obj.hotel_id = this.Data.hotel_id
|
|
|
- obj.product_attr_id = this.Data.product_attr_id
|
|
|
|
|
|
|
+ obj.attr = this.Data.attr
|
|
|
this.$api.product.integralExchange({
|
|
this.$api.product.integralExchange({
|
|
|
...obj
|
|
...obj
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
@@ -394,10 +394,10 @@
|
|
|
openShop() {
|
|
openShop() {
|
|
|
this.$refs.shopSelected.open('bottom')
|
|
this.$refs.shopSelected.open('bottom')
|
|
|
},
|
|
},
|
|
|
- companyedShop(i, id, distance) {
|
|
|
|
|
|
|
+ companyedShop(i, id, distance,index) {
|
|
|
this.typestatus2 = i
|
|
this.typestatus2 = i
|
|
|
this.distanceToMe1 = distance
|
|
this.distanceToMe1 = distance
|
|
|
- // this.activeIndex = index
|
|
|
|
|
|
|
+ this.activeIndex2= index
|
|
|
this.Data.hotel_id = id
|
|
this.Data.hotel_id = id
|
|
|
},
|
|
},
|
|
|
//确定按钮
|
|
//确定按钮
|
|
@@ -426,7 +426,6 @@
|
|
|
companyed(i, index) {
|
|
companyed(i, index) {
|
|
|
this.typestatus1 = i
|
|
this.typestatus1 = i
|
|
|
this.activeIndex = index
|
|
this.activeIndex = index
|
|
|
- console.log(i, this.activeIndex)
|
|
|
|
|
if (index == 0) {
|
|
if (index == 0) {
|
|
|
this.Data.express_type = 1
|
|
this.Data.express_type = 1
|
|
|
} else if (index == 1) {
|
|
} else if (index == 1) {
|
|
@@ -538,11 +537,11 @@
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
padding-top: 40rpx;
|
|
padding-top: 40rpx;
|
|
|
padding-bottom: 40rpx;
|
|
padding-bottom: 40rpx;
|
|
|
-
|
|
|
|
|
- &[sgActive] {
|
|
|
|
|
- color: #405E49 !important;
|
|
|
|
|
- font-weight: bold !important;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .sgActive{
|
|
|
|
|
+ color: #FF6200 !important;
|
|
|
|
|
+ font-weight: bold !important;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|