Commit c4e51a7b authored by 潘永坪's avatar 潘永坪

bug处理

parent ba59416b
var baseUrl = '' var baseUrl = ''
if(process.env.NODE_ENV === 'development'){//开发环境 if(process.env.NODE_ENV === 'development'){//开发环境
baseUrl= 'https://manager.pangdly.com/' baseUrl= 'http://pay.tuyoyoo.com/'
// baseUrl= 'http://pay.tuyoyoo.com/'
}else{ }else{
baseUrl= 'https://manager.pangdly.com/' baseUrl= 'https://manager.pangdly.com/'
} }
......
...@@ -8,6 +8,7 @@ import commonjs from 'common/common.js' ...@@ -8,6 +8,7 @@ import commonjs from 'common/common.js'
Vue.prototype.$commonjs = commonjs Vue.prototype.$commonjs = commonjs
Vue.prototype.$request = request Vue.prototype.$request = request
Vue.prototype.imageError ='@/static/img/common/pangdingLogo.png' //餐饮类型
Vue.use(uView) Vue.use(uView)
Vue.config.productionTip = false Vue.config.productionTip = false
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</view> </view>
<view class="search-right"> <view class="search-right">
<input class="search-input" placeholder="景区/商品/关键词搜索" v-model="searchData" /> <input class="search-input" placeholder="景区关键词搜索" v-model="searchData" />
<text class="search-btn" @click="initList('','',true)">搜索</text> <text class="search-btn" @click="initList('','',true)">搜索</text>
</view> </view>
</view> </view>
...@@ -144,16 +144,13 @@ export default { ...@@ -144,16 +144,13 @@ export default {
scenicList:[],//景区数据 scenicList:[],//景区数据
list: [ list: [
{ {
image: 'http://wx.pangdly.com/static/img/test7.6d14c2d.jpg', image: 'http://wx.pangdly.com/static/img/test7.6d14c2d.jpg'
title: '昨夜星辰昨夜风,画楼西畔桂堂东'
}, },
{ {
image: 'http://wx.pangdly.com/static/img/test8.1cf812b.jpg', image: 'http://wx.pangdly.com/static/img/test8.1cf812b.jpg'
title: '身无彩凤双飞翼,心有灵犀一点通'
}, },
{ {
image: 'http://wx.pangdly.com/static/img/test9.b3dd44c.jpg', image: 'http://wx.pangdly.com/static/img/test9.b3dd44c.jpg'
title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳'
} }
], ],
tabList: [{ tabList: [{
...@@ -250,10 +247,9 @@ export default { ...@@ -250,10 +247,9 @@ export default {
openid:uni.getStorageSync('openid')||'' openid:uni.getStorageSync('openid')||''
} }
this.$request('scenic/market/findPageMarket',data).then((res)=>{ this.$request('scenic/market/findPageMarket',data).then((res)=>{
if(res.data.length>0){ let list=res.data||[]
let list=res.data||[] if(list.length>0){
list.forEach(item=>{ list.forEach(item=>{
if(item.couponType==1){ if(item.couponType==1){
//抵用券 //抵用券
this.showCoupon1=true this.showCoupon1=true
......
<template> <template>
<!-- 详情 --> <!-- 详情 -->
<u-popup v-model="showPop" mode="bottom" border-radius="14" closeable height="65%"> <u-popup v-model="showPop" mode="bottom" border-radius="14" closeable height="75%">
<view class="son-wrap"> <view class="son-wrap">
<view class="title"> <view class="title">
明细 明细
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
z-index: 1; z-index: 1;
} }
.middle { .middle {
padding: 100rpx 24rpx 0 24rpx; padding: 100rpx 24rpx;
} }
.merchantlist{ .merchantlist{
border-bottom:2rpx solid #ececec; border-bottom:2rpx solid #ececec;
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</view> </view>
<label v-for="(items,a) in item.productListCopy" :key='a' :class="{'off':items.status==2}"> <label v-for="(items,a) in item.productListCopy" :key='a' :class="{'off':items.status==2}">
<view class="product" :class="{'on':items.ifChoose}"> <view class="product" :class="{'on':items.ifChangeBg}">
<view class="product-left"> <view class="product-left">
<checkbox class="blue" :disabled="items.status==2" :value="JSON.stringify(items)" :checked="items.ifChecked" /> <checkbox class="blue" :disabled="items.status==2" :value="JSON.stringify(items)" :checked="items.ifChecked" />
</view> </view>
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
item2.productList.forEach(item3=>{ item2.productList.forEach(item3=>{
if(item.id==item3.id){ if(item.id==item3.id){
item3.ifChecked=false item3.ifChecked=false
item3.ifChoose=false item3.ifChangeBg=false
} }
}) })
}) })
...@@ -289,10 +289,12 @@ export default { ...@@ -289,10 +289,12 @@ export default {
//判断是否选中产品,选中产品的背景颜色需要变化 //判断是否选中产品,选中产品的背景颜色需要变化
this.scenicList.forEach(item=>{ this.scenicList.forEach(item=>{
item.productList.forEach(item2=>{ item.productList.forEach(item2=>{
item2.ifChoose=false item2.ifChangeBg=false
this.chooseProduct.forEach(item3=>{ this.chooseProduct.forEach(item3=>{
if(item2.id==item3.id){ if(item2.id==item3.id){
item2.ifChoose=true item2.ifChangeBg=true
//解决是否支持多产品购买弹窗2次之后,选中状态错误bug,需要在选中时修改状态
item2.ifChecked=true
} }
}) })
}) })
...@@ -308,7 +310,7 @@ export default { ...@@ -308,7 +310,7 @@ export default {
item2.productList.forEach(item3=>{ item2.productList.forEach(item3=>{
if(item.id==item3.id){ if(item.id==item3.id){
item3.ifChecked=false item3.ifChecked=false
item3.ifChoose=false item3.ifChangeBg=false
} }
}) })
}) })
...@@ -330,7 +332,7 @@ export default { ...@@ -330,7 +332,7 @@ export default {
item2.productList.forEach(item3=>{ item2.productList.forEach(item3=>{
if(item.id==item3.id){ if(item.id==item3.id){
item3.ifChecked=false item3.ifChecked=false
item3.ifChoose=false item3.ifChangeBg=false
} }
}) })
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment