|
|
|
@ -3,13 +3,13 @@ |
|
|
|
|
<image src="@/static/bg.png" mode="" style="width: 100%;height: 928rpx;"></image> |
|
|
|
|
<view class="top"> |
|
|
|
|
<image class="dw" src="@/static/定位.png" mode="" style="width: 30rpx;height: 30rpx;"></image> |
|
|
|
|
<view class="xuzou">徐州</view> |
|
|
|
|
<view class="xuzou">{{city}}</view> |
|
|
|
|
<picker @change="bindPickerChange" :value="index" :range="array"> |
|
|
|
|
<image class="jiantou" src="@/static/jiantou.png" mode="" style="width: 15rpx;height: 15rpx;"></image> |
|
|
|
|
</picker> |
|
|
|
|
</view> |
|
|
|
|
<view class="topimg"> |
|
|
|
|
<image class="topimg1" src="@/static/uni.png" mode=""></image> |
|
|
|
|
<image class="topimg1" :src="tuijianlist[0].image.url" mode=""></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="mendian"> |
|
|
|
|
<view class="mendian1"> |
|
|
|
@ -18,15 +18,15 @@ |
|
|
|
|
找门店<uni-icons type="right" size="18"></uni-icons> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="mddz"> |
|
|
|
|
<view class="mddz" v-for="(item,index) in tuijianlist" :key="index"> |
|
|
|
|
<view class="mddz1"> |
|
|
|
|
<image class="mddz1img" src="@/static/uni.png" mode=""></image> |
|
|
|
|
<view class="mddz1wz">运动湾24小时自助健身(置地大厦店)</view> |
|
|
|
|
<image class="mddz1img" :src="item.image.url" mode=""></image> |
|
|
|
|
<view class="mddz1wz">{{item.name}}</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="mddz2"> |
|
|
|
|
<image class="mddz1img1" src="@/static/定位1.png" mode=""></image> |
|
|
|
|
<text class="dz">地址:徐州云龙区置地大厦116号</text> |
|
|
|
|
<image class="mddz1img2" src="@/static/电话o.png" mode="" @click="makePhoneCall"></image> |
|
|
|
|
<text class="dz">{{item.address}}</text> |
|
|
|
|
<image class="mddz1img2" src="@/static/电话o.png" mode="" @click="makePhoneCall(item.mobile)"></image> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -35,23 +35,14 @@ |
|
|
|
|
<view class="btnwz1">美团/抖音,验券进场</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="hy">会员套餐</view> |
|
|
|
|
<view class="btboxs" v-for="(item,index) in 4" @click="taochan"> |
|
|
|
|
<view class="btbox"> |
|
|
|
|
<image src="@/static/uni.png" mode="" class="btimg"></image> |
|
|
|
|
<view class="bttitle">暑假双月卡</view> |
|
|
|
|
<view class="btwz">期限:60天</view> |
|
|
|
|
<view class="btboxs"> |
|
|
|
|
<view class="btbox" v-for="(item,index) in viplist" :key="index" @click="taochan(item)"> |
|
|
|
|
<image :src="item.img.url" mode="" class="btimg"></image> |
|
|
|
|
<view class="bttitle">{{item.name}}</view> |
|
|
|
|
<view class="btwz">期限:{{item.validity_day}}</view> |
|
|
|
|
<view class="btwzjg"> |
|
|
|
|
<text class="btwzjg1">¥189</text> |
|
|
|
|
<text class="btwzjg2">原件:¥190</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="btbox"> |
|
|
|
|
<image src="@/static/uni.png" mode="" class="btimg"></image> |
|
|
|
|
<view class="bttitle">暑假双月卡</view> |
|
|
|
|
<view class="btwz">期限:60天</view> |
|
|
|
|
<view class="btwzjg"> |
|
|
|
|
<text class="btwzjg1">¥189</text> |
|
|
|
|
<text class="btwzjg2">原件:¥190</text> |
|
|
|
|
<text class="btwzjg1">¥{{item.price}}</text> |
|
|
|
|
<text class="btwzjg2">原件:¥{{item.original_price}}</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -65,33 +56,91 @@ |
|
|
|
|
团购验券 |
|
|
|
|
</view> |
|
|
|
|
<view class="input"> |
|
|
|
|
<input class="input1" type="text" placeholder="请输入抖音/美团券码" /> |
|
|
|
|
<input class="input1" type="text" placeholder="请输入抖音/美团券码" v-model="number"/> |
|
|
|
|
<image class="saoma" src="@/static/扫一扫.png" mode=""></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="yqbtn"> |
|
|
|
|
<view class="yqbtn" @click="numberCheck"> |
|
|
|
|
验券 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</uni-popup> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
city:'', |
|
|
|
|
number:'', |
|
|
|
|
viplist:[], |
|
|
|
|
mendainlist:[], |
|
|
|
|
latitude:'', |
|
|
|
|
longitude:'', |
|
|
|
|
tuijianlist:[], |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onShow() { |
|
|
|
|
this.cardList(1) |
|
|
|
|
// this.storeList(1) |
|
|
|
|
this.getLocation() |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
methods: { |
|
|
|
|
makePhoneCall(){ |
|
|
|
|
console.log(111); |
|
|
|
|
// uni.makePhoneCall({ |
|
|
|
|
// phoneNumber: '114' //仅为示例 |
|
|
|
|
// }); |
|
|
|
|
numberCheck(){ |
|
|
|
|
this.$api.numberCheck({number:this.number}).then(res=>{ |
|
|
|
|
if(res.data.code==200){ |
|
|
|
|
uni.showToast({ |
|
|
|
|
icon: "none", |
|
|
|
|
title: res.data.msg, |
|
|
|
|
duration: 3000 |
|
|
|
|
}); |
|
|
|
|
this.$refs.popup.close('center') |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
getLocation(){ |
|
|
|
|
console.log(1234); |
|
|
|
|
var that=this |
|
|
|
|
uni.getLocation({ |
|
|
|
|
type: 'wgs84', |
|
|
|
|
success: function (res) { |
|
|
|
|
that.latitude= res.latitude; |
|
|
|
|
that.longitude= res.longitude; |
|
|
|
|
that.$api.nearStore({latitude:that.latitude,longitude:that.longitude,limit:1}).then(res=>{ |
|
|
|
|
that.tuijianlist=res.data |
|
|
|
|
}) |
|
|
|
|
that.$api.ipGetCity().then(res=>{ |
|
|
|
|
console.log('res',res); |
|
|
|
|
that.city=res.data.city |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
fail: function (error) { |
|
|
|
|
console.error('获取位置失败:', error); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
cardList(page){ |
|
|
|
|
this.$api.cardList({page:page}).then(res=>{ |
|
|
|
|
console.log(123,res); |
|
|
|
|
this.viplist=res.data.list |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
storeList(page){ |
|
|
|
|
this.$api.storeList({page:page}).then(res=>{ |
|
|
|
|
this.mendainlist=res.data.list |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
makePhoneCall(e){ |
|
|
|
|
uni.makePhoneCall({ |
|
|
|
|
phoneNumber: e //仅为示例 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
mendianlist() { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/mendainlist/mendainlist' |
|
|
|
|
url: '/pages/mendainlist/mendainlist?item='+'shouye' |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
tuanquan() { |
|
|
|
@ -100,9 +149,13 @@ |
|
|
|
|
close() { |
|
|
|
|
this.$refs.popup.close('center') |
|
|
|
|
}, |
|
|
|
|
taochan() { |
|
|
|
|
taochan(i) { |
|
|
|
|
uni.setStorageSync('xzmd','') |
|
|
|
|
var that=this |
|
|
|
|
var tuijianlist=JSON.stringify(that.tuijianlist[0]) |
|
|
|
|
var item=JSON.stringify(i) |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/order/order' |
|
|
|
|
url: `/pages/order/order?tuijianlist=${tuijianlist}&item=${item}` |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|