@@ -10,9 +10,7 @@ | |||||
"pages/market/index", | "pages/market/index", | ||||
"pages/user/index", | "pages/user/index", | ||||
"pages/coupon/detail/index", | "pages/coupon/detail/index", | ||||
"pages/shop/detail/index", | |||||
"pages/rushToBuy/index", | "pages/rushToBuy/index", | ||||
"pages/shop/index/index", | |||||
"pages/couponorder/index/index", | "pages/couponorder/index/index", | ||||
"pages/couponorder/detail/index", | "pages/couponorder/detail/index", | ||||
"pages/cardorder/index/index", | "pages/cardorder/index/index", | ||||
@@ -50,20 +48,20 @@ | |||||
"list": [ | "list": [ | ||||
{ | { | ||||
"pagePath": "pages/index/index", | "pagePath": "pages/index/index", | ||||
"iconPath": "assets/img/home-n.png", | |||||
"selectedIconPath": "assets/img/home-y.png", | |||||
"iconPath": "assets/images/home-n.png", | |||||
"selectedIconPath": "assets/images/home-y.png", | |||||
"text": "首页" | "text": "首页" | ||||
}, | }, | ||||
{ | { | ||||
"pagePath": "pages/passCar/passCar", | "pagePath": "pages/passCar/passCar", | ||||
"iconPath": "assets/img/pass1.png", | |||||
"selectedIconPath": "assets/img/pass0.png", | |||||
"iconPath": "assets/images/pass1.png", | |||||
"selectedIconPath": "assets/images/pass0.png", | |||||
"text": "停车" | "text": "停车" | ||||
}, | }, | ||||
{ | { | ||||
"pagePath": "pages/user/index", | "pagePath": "pages/user/index", | ||||
"iconPath": "assets/img/user-n.png", | |||||
"selectedIconPath": "assets/img/user-y.png", | |||||
"iconPath": "assets/images/user-n.png", | |||||
"selectedIconPath": "assets/images/user-y.png", | |||||
"text": "我的" | "text": "我的" | ||||
} | } | ||||
] | ] | ||||
@@ -14,7 +14,8 @@ Component({ | |||||
* 组件的初始数据 | * 组件的初始数据 | ||||
*/ | */ | ||||
data: { | data: { | ||||
swiperCurrent: 0 | |||||
swiperCurrent: 0, | |||||
bannerUrl: wx.getStorageSync('imgurl').banner.url | |||||
}, | }, | ||||
/** | /** | ||||
@@ -1,5 +1,5 @@ | |||||
<view wx:if="{{list.length!=0}}" class='bannerbg'> | <view wx:if="{{list.length!=0}}" class='bannerbg'> | ||||
<image src='./../../assets/img/banner.png' mode="widthFix"></image> | |||||
<image src='{{bannerUrl}}' mode="widthFix"></image> | |||||
</view> | </view> | ||||
<view wx:if="{{list.length!=0}}" class="index-slide-view"> | <view wx:if="{{list.length!=0}}" class="index-slide-view"> | ||||
<swiper class="index-slide" bindchange="swiperChange" autoplay="true" circular="false"> | <swiper class="index-slide" bindchange="swiperChange" autoplay="true" circular="false"> | ||||
@@ -14,7 +14,9 @@ Component({ | |||||
* 组件的初始数据 | * 组件的初始数据 | ||||
*/ | */ | ||||
data: { | data: { | ||||
swiperCurrent: 0 | |||||
swiperCurrent: 0, | |||||
// discountcardUrl: wx.getStorageSync('imgurl').discountcard.url, | |||||
discountcardUrl: '' | |||||
}, | }, | ||||
/** | /** | ||||
@@ -1,5 +1,5 @@ | |||||
<view class='content' > | <view class='content' > | ||||
<view bindtap='gotoDiscountCardList'> | <view bindtap='gotoDiscountCardList'> | ||||
<image src='./../../assets/img/discountcard.png' mode='widthFix'></image> | |||||
<image src='{{discountcardUrl}}' mode='widthFix'></image> | |||||
</view> | </view> | ||||
</view> | </view> |
@@ -6,6 +6,8 @@ Page({ | |||||
* 页面的初始数据 | * 页面的初始数据 | ||||
*/ | */ | ||||
data: { | data: { | ||||
shanchuGrayUrl: wx.getStorageSync('imgurl').shanchuGray.url, | |||||
shanchuUrl: wx.getStorageSync('imgurl').shanchu.url, | |||||
title: '京', | title: '京', | ||||
numFir: '', | numFir: '', | ||||
numSco: '', | numSco: '', | ||||
@@ -20,7 +20,7 @@ | |||||
<view class="addpark-choose-line" wx:for="{{chooseTitle}}" wx:for-item="items" wx:key="chooseNum"> | <view class="addpark-choose-line" wx:for="{{chooseTitle}}" wx:for-item="items" wx:key="chooseNum"> | ||||
<view style="display:flex;"> | <view style="display:flex;"> | ||||
<view class="addpark-choose-font{{chooseClass==item? ' choose' : ''}}" wx:for="{{items}}" wx:key="chooseNumFist" wx:for-item="item" > | <view class="addpark-choose-font{{chooseClass==item? ' choose' : ''}}" wx:for="{{items}}" wx:key="chooseNumFist" wx:for-item="item" > | ||||
<p wx:if="{{item=='DEL'}}" data-msg="{{item}}"><image data-msg="{{item}}" src="../../assets/img/shanchu-gray.png"></image></p> | |||||
<p wx:if="{{item=='DEL'}}" data-msg="{{item}}"><image data-msg="{{item}}" src="{{shanchuGrayUrl}}"></image></p> | |||||
<p wx:else data-msg="{{item}}">{{item}}</p> | <p wx:else data-msg="{{item}}">{{item}}</p> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -30,7 +30,7 @@ | |||||
<view class="addpark-choose-line" wx:for="{{chooseNumFir}}" wx:for-item="items" wx:key="chooseNum"> | <view class="addpark-choose-line" wx:for="{{chooseNumFir}}" wx:for-item="items" wx:key="chooseNum"> | ||||
<view style="display:flex;"> | <view style="display:flex;"> | ||||
<view class="addpark-choose-font{{chooseClass==item? ' choose' : ''}}" wx:for="{{items}}" wx:key="chooseNumFist" wx:for-item="item"> | <view class="addpark-choose-font{{chooseClass==item? ' choose' : ''}}" wx:for="{{items}}" wx:key="chooseNumFist" wx:for-item="item"> | ||||
<p wx:if="{{item=='DEL'}}" data-msg="{{item}}"><image data-msg="{{item}}" src="../../assets/img/shanchu.png"></image></p> | |||||
<p wx:if="{{item=='DEL'}}" data-msg="{{item}}"><image data-msg="{{item}}" src="{{shanchuUrl}}"></image></p> | |||||
<p wx:elif="{{item =='I'}}" style="color:#ccc;" data-msg="{{item}}">{{item}}</p> | <p wx:elif="{{item =='I'}}" style="color:#ccc;" data-msg="{{item}}">{{item}}</p> | ||||
<p wx:else data-msg="{{item}}">{{item}}</p> | <p wx:else data-msg="{{item}}">{{item}}</p> | ||||
</view> | </view> | ||||
@@ -41,7 +41,7 @@ | |||||
<view class="addpark-choose-line" wx:for="{{chooseNumSco}}" wx:for-item="items" wx:key="chooseNum"> | <view class="addpark-choose-line" wx:for="{{chooseNumSco}}" wx:for-item="items" wx:key="chooseNum"> | ||||
<view style="display:flex;"> | <view style="display:flex;"> | ||||
<view class="addpark-choose-font{{chooseClass==item? ' choose' : ''}}" wx:for="{{items}}" wx:key="chooseNumFist" wx:for-item="item"> | <view class="addpark-choose-font{{chooseClass==item? ' choose' : ''}}" wx:for="{{items}}" wx:key="chooseNumFist" wx:for-item="item"> | ||||
<p wx:if="{{item=='DEL'}}" data-msg="{{item}}"><image data-msg="{{item}}" src="../../assets/img/shanchu.png"></image></p> | |||||
<p wx:if="{{item=='DEL'}}" data-msg="{{item}}"><image data-msg="{{item}}" src="{{shanchuUrl}}"></image></p> | |||||
<p wx:elif="{{item =='I'}}" style="color:#ccc;" data-msg="{{item}}">{{item}}</p> | <p wx:elif="{{item =='I'}}" style="color:#ccc;" data-msg="{{item}}">{{item}}</p> | ||||
<p wx:else data-msg="{{item}}">{{item}}</p> | <p wx:else data-msg="{{item}}">{{item}}</p> | ||||
</view> | </view> | ||||
@@ -53,7 +53,7 @@ | |||||
<view style="display:flex;"> | <view style="display:flex;"> | ||||
<view class="addpark-choose-font{{chooseClass==item? ' choose' : ''}}" wx:for="{{items}}" wx:key="chooseNumFist" wx:for-item="item"> | <view class="addpark-choose-font{{chooseClass==item? ' choose' : ''}}" wx:for="{{items}}" wx:key="chooseNumFist" wx:for-item="item"> | ||||
<p wx:if="{{item=='DEL'}}" data-msg="{{item}}"><image data-msg="{{item}}" src="../../assets/img/shanchu.png"></image></p> | |||||
<p wx:if="{{item=='DEL'}}" data-msg="{{item}}"><image data-msg="{{item}}" src="{{shanchuUrl}}"></image></p> | |||||
<p wx:elif="{{item =='I'}}" style="color:#ccc;" data-msg="{{item}}">{{item}}</p> | <p wx:elif="{{item =='I'}}" style="color:#ccc;" data-msg="{{item}}">{{item}}</p> | ||||
<p wx:else data-msg="{{item}}">{{item}}</p> | <p wx:else data-msg="{{item}}">{{item}}</p> | ||||
</view> | </view> | ||||
@@ -5,6 +5,9 @@ const util = require("../../utils/util"); | |||||
Page({ | Page({ | ||||
data: { | data: { | ||||
fenxiangUrl: wx.getStorageSync('imgurl').fenxiang.url, | |||||
clockUrl: wx.getStorageSync('imgurl').clock.url, | |||||
teljpgUrl: wx.getStorageSync('imgurl').teljpg.url, | |||||
data: { | data: { | ||||
title: null | title: null | ||||
}, | }, | ||||
@@ -342,56 +345,56 @@ Page({ | |||||
if (err.code == "2011") { | if (err.code == "2011") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "商户信息没找到", | title: "商户信息没找到", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == "2013") { | } else if (err.code == "2013") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "商户信息禁用", | title: "商户信息禁用", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == "3000") { | } else if (err.code == "3000") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "库存不足", | title: "库存不足", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == "3001") { | } else if (err.code == "3001") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "领取达到上限", | title: "领取达到上限", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == "3002") { | } else if (err.code == "3002") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "订单失败", | title: "订单失败", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == "3003") { | } else if (err.code == "3003") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "订单不存在", | title: "订单不存在", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == "3004") { | } else if (err.code == "3004") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "订单不存在", | title: "订单不存在", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == "4003") { | } else if (err.code == "4003") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "卡券已作废", | title: "卡券已作废", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
@@ -7,13 +7,13 @@ | |||||
</view> | </view> | ||||
<view class='coupons_info' style='position:relative;z-index:9'> | <view class='coupons_info' style='position:relative;z-index:9'> | ||||
<view class='fenxiang'> | <view class='fenxiang'> | ||||
<image class="fenxiang" src='./../../../assets/img/fenxiang.png' mode="widthFix"></image> | |||||
<image class="fenxiang" src='{{fenxiangUrl}}' mode="widthFix"></image> | |||||
<button class='share user-motto' data-id='{{data.id}}' data-couponId='{{data.couponId}}' data-title='{{data.title}}' id="shareBtn" open-type="share" hover-class="other-button-hover"></button> | <button class='share user-motto' data-id='{{data.id}}' data-couponId='{{data.couponId}}' data-title='{{data.title}}' id="shareBtn" open-type="share" hover-class="other-button-hover"></button> | ||||
</view> | </view> | ||||
<view> | <view> | ||||
<view class='distance' wx:if="{{data.targetAd==2&&data.endTime!=undefined&&data.type!=5}}"> | <view class='distance' wx:if="{{data.targetAd==2&&data.endTime!=undefined&&data.type!=5}}"> | ||||
<view style='text-align:center;display:inline-block;'> | <view style='text-align:center;display:inline-block;'> | ||||
<image class='clock' src='./../../../assets/img/clock.png' mode='widthFix'></image> | |||||
<image class='clock' src='{{clockUrl}}' mode='widthFix'></image> | |||||
<text class="qiang">距结束还剩 :</text> | <text class="qiang">距结束还剩 :</text> | ||||
</view> | </view> | ||||
<view wx:if="{{clock=='已经截止'||data.remainInventory==0||data.status==1}}" class='times'> | <view wx:if="{{clock=='已经截止'||data.remainInventory==0||data.status==1}}" class='times'> | ||||
@@ -67,7 +67,7 @@ | |||||
<text>{{item.merchantName}}</text> | <text>{{item.merchantName}}</text> | ||||
<text>{{item.addr}}{{item.buildingName}}{{item.floorName}}</text> | <text>{{item.addr}}{{item.buildingName}}{{item.floorName}}</text> | ||||
</view> | </view> | ||||
<image bindtap='phone' data-merchantLinkPhone='{{item.merchantLinkPhone}}' class="tel" src="./../../../assets/img/tel.jpg" mode="widthFix" /> | |||||
<image bindtap='phone' data-merchantLinkPhone='{{item.merchantLinkPhone}}' class="tel" src="{{teljpgUrl}}" mode="widthFix" /> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class='notes'> | <view class='notes'> | ||||
@@ -6,6 +6,12 @@ let app = getApp(); | |||||
Page({ | Page({ | ||||
data: { | data: { | ||||
code: "", | code: "", | ||||
lineUrl: wx.getStorageSync('imgurl').line.url, | |||||
wm01Url: wx.getStorageSync('imgurl').wm01.url, | |||||
wm02Url: wx.getStorageSync('imgurl').wm02.url, | |||||
wm03Url: wx.getStorageSync('imgurl').wm03.url, | |||||
teljpgUrl: wx.getStorageSync('imgurl').teljpg.url, | |||||
newUrl: wx.getStorageSync('imgurl').new.url, | |||||
data: { | data: { | ||||
salePrice: null, | salePrice: null, | ||||
price: null, | price: null, | ||||
@@ -18,11 +18,11 @@ | |||||
<text>有效期至:</text> | <text>有效期至:</text> | ||||
<text>{{expiredTime}}</text> | <text>{{expiredTime}}</text> | ||||
</view> | </view> | ||||
<image class='line' mode="widthFix" src="./../../../assets/img/line.png"></image> | |||||
<image class='line' mode="widthFix" src="{{lineUrl}}"></image> | |||||
<view class="zhuangtai"> | <view class="zhuangtai"> | ||||
<image wx:if="{{data.couponOrderStatus==1}}" src="./../../../assets/img/wm01.jpg" mode='widthFix'></image> | |||||
<image wx:if="{{data.couponOrderStatus==2}}" src="./../../../assets/img/wm02.jpg" mode='widthFix'></image> | |||||
<image wx:if="{{data.couponOrderStatus==3}}" src="./../../../assets/img/wm03.jpg" mode='widthFix'></image> | |||||
<image wx:if="{{data.couponOrderStatus==1}}" src="{{wm01Url}}" mode='widthFix'></image> | |||||
<image wx:if="{{data.couponOrderStatus==2}}" src="{{wm02Url}}" mode='widthFix'></image> | |||||
<image wx:if="{{data.couponOrderStatus==3}}" src="{{wm03Url}}" mode='widthFix'></image> | |||||
<view class="panel" wx:if="{{data.couponOrderStatus==0}}"> | <view class="panel" wx:if="{{data.couponOrderStatus==0}}"> | ||||
<view class="barcode"> | <view class="barcode"> | ||||
<canvas canvas-id="barcode" /> | <canvas canvas-id="barcode" /> | ||||
@@ -49,13 +49,13 @@ | |||||
<text>{{item.addr}}{{item.buildingName}}{{item.floorName}}</text> | <text>{{item.addr}}{{item.buildingName}}{{item.floorName}}</text> | ||||
</view> | </view> | ||||
<view bindtap='phone' data-merchantLinkPhone='{{item.merchantLinkPhone}}'> | <view bindtap='phone' data-merchantLinkPhone='{{item.merchantLinkPhone}}'> | ||||
<image class="tel" src="./../../../assets/img/tel.jpg" mode="widthFix" /> | |||||
<image class="tel" src="{{teljpgUrl}}" mode="widthFix" /> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<image class='line' mode="widthFix" src="./../../../assets/img/line.png"></image> | |||||
<image class='line' mode="widthFix" src="{{linUrl}}"></image> | |||||
<view class='note'> | <view class='note'> | ||||
<view style='height:60rpx;line-height:60rpx;'> | <view style='height:60rpx;line-height:60rpx;'> | ||||
<text class="shiji">实付金额:</text> | <text class="shiji">实付金额:</text> | ||||
@@ -95,6 +95,6 @@ | |||||
</view> | </view> | ||||
<view class='game' bindtap="gotogame" wx-if="{{showIf}}"> | <view class='game' bindtap="gotogame" wx-if="{{showIf}}"> | ||||
<view class='game-entry'> | <view class='game-entry'> | ||||
<image src="./../../../assets/img/new.png" class='gameimg' mode='widthFix'></image> | |||||
<image src="{{newUrl}}" class='gameimg' mode='widthFix'></image> | |||||
</view> | </view> | ||||
</view> | </view> |
@@ -4,6 +4,9 @@ const Http = require("../../../utils/HttpBasics"); | |||||
let app = getApp(); | let app = getApp(); | ||||
Page({ | Page({ | ||||
data: { | data: { | ||||
couponUrl: wx.getStorageSync('imgurl').coupon.url, | |||||
linessUrl: wx.getStorageSync('imgurl').liness.url, | |||||
loadingUrl: wx.getStorageSync('imgurl').loading.url, | |||||
tabs: [{ | tabs: [{ | ||||
key: 4, | key: 4, | ||||
name: "使用中" | name: "使用中" | ||||
@@ -5,7 +5,7 @@ | |||||
</i-tabs> | </i-tabs> | ||||
<view style='padding-top:120rpx;'> | <view style='padding-top:120rpx;'> | ||||
<view class="nocoupon" wx:if="{{list.length==0}}"> | <view class="nocoupon" wx:if="{{list.length==0}}"> | ||||
<image src="./../../../assets/img/coupon.png" mode="widthFix" /> | |||||
<image src="{{couponUrl}}" mode="widthFix" /> | |||||
<text class="txt001">请您敬请期待</text> | <text class="txt001">请您敬请期待</text> | ||||
<text class='txt002'>我们正在筹备一大波优惠活动</text> | <text class='txt002'>我们正在筹备一大波优惠活动</text> | ||||
<navigator class='nav' url="/pages/index/index" open-type="switchTab" hover-class="other-navigator-hover"> | <navigator class='nav' url="/pages/index/index" open-type="switchTab" hover-class="other-navigator-hover"> | ||||
@@ -30,7 +30,7 @@ | |||||
<!-- <view hover-class='active' wx:elif="{{item.couponOrderStatus==1||item.couponOrderStatus==2||item.couponOrderStatus==3}}" class="btns">查看</view> --> | <!-- <view hover-class='active' wx:elif="{{item.couponOrderStatus==1||item.couponOrderStatus==2||item.couponOrderStatus==3}}" class="btns">查看</view> --> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<image class="liness" src='./../../../assets/img/liness.png' mode="widthFix"></image> | |||||
<image class="liness" src='{{linessUrl}}' mode="widthFix"></image> | |||||
<view class='expiretime'> | <view class='expiretime'> | ||||
<text class="txt1">有效期至:</text> | <text class="txt1">有效期至:</text> | ||||
<text class="txt2">{{item.expiredTime}}</text> | <text class="txt2">{{item.expiredTime}}</text> | ||||
@@ -38,7 +38,7 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="loading" wx:if="{{loading}}"> | <view class="loading" wx:if="{{loading}}"> | ||||
<image src="./../../../assets/img/loading.gif" mode="widthFix"></image>{{content}} | |||||
<image src="{{loadingUrl}}" mode="widthFix"></image>{{content}} | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> |
@@ -5,7 +5,7 @@ Page({ | |||||
* 页面的初始数据 | * 页面的初始数据 | ||||
*/ | */ | ||||
data: { | data: { | ||||
qidaiUrl: wx.getStorageSync('imgurl').qidai.url, | |||||
}, | }, | ||||
/** | /** | ||||
@@ -1,5 +1,5 @@ | |||||
<view class="con"> | <view class="con"> | ||||
<image class="img" src="./../../assets/img/qidai.png" mode="widthFix"></image> | |||||
<image class="img" src="{{qidaiUrl}}" mode="widthFix"></image> | |||||
<text class="txt1">智慧停车即将上线</text> | <text class="txt1">智慧停车即将上线</text> | ||||
<text class="txt2">敬请期待</text> | <text class="txt2">敬请期待</text> | ||||
</view> | </view> |
@@ -5,6 +5,13 @@ const util = require("../../../utils/util"); | |||||
Page({ | Page({ | ||||
data: { | data: { | ||||
fenxiangUrl: wx.getStorageSync('imgurl').fenxiang.url, | |||||
clockUrl: wx.getStorageSync('imgurl').clock.url, | |||||
teljpgUrl: wx.getStorageSync('imgurl').teljpg.url, | |||||
closedUrl: wx.getStorageSync('imgurl').closed.url, | |||||
quesGouUrl: wx.getStorageSync('imgurl').ques_gou.url, | |||||
headbgUrl: wx.getStorageSync('imgurl').headbg.url, | |||||
quesBgUrl: wx.getStorageSync('imgurl').ques_bg.url, | |||||
data: { | data: { | ||||
title: null | title: null | ||||
}, | }, | ||||
@@ -347,56 +354,56 @@ Page({ | |||||
if (err.code == "2011") { | if (err.code == "2011") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "商户信息没找到", | title: "商户信息没找到", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == "2013") { | } else if (err.code == "2013") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "商户信息禁用", | title: "商户信息禁用", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == "3000") { | } else if (err.code == "3000") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "库存不足", | title: "库存不足", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == "3001") { | } else if (err.code == "3001") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "领取达到上限", | title: "领取达到上限", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == "3002") { | } else if (err.code == "3002") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "订单失败", | title: "订单失败", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == "3003") { | } else if (err.code == "3003") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "订单不存在", | title: "订单不存在", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == "3004") { | } else if (err.code == "3004") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "订单不存在", | title: "订单不存在", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == "4003") { | } else if (err.code == "4003") { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "卡券已作废", | title: "卡券已作废", | ||||
image: "./../../../assets/img/fail.png", | |||||
image: wx.getStorageSync('imgurl').fail.url, | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
@@ -7,13 +7,13 @@ | |||||
</view> | </view> | ||||
<view class='coupons_info' style='position:relative;z-index:9'> | <view class='coupons_info' style='position:relative;z-index:9'> | ||||
<view class='fenxiang'> | <view class='fenxiang'> | ||||
<image class="fenxiang" src='./../../../assets/img/fenxiang.png' mode="widthFix"></image> | |||||
<image class="fenxiang" src='{{fenxiangUrl}}' mode="widthFix"></image> | |||||
<button class='share user-motto' data-id='{{data.id}}' data-couponId='{{data.couponId}}' data-title='{{data.title}}' id="shareBtn" open-type="share" hover-class="other-button-hover"></button> | <button class='share user-motto' data-id='{{data.id}}' data-couponId='{{data.couponId}}' data-title='{{data.title}}' id="shareBtn" open-type="share" hover-class="other-button-hover"></button> | ||||
</view> | </view> | ||||
<view> | <view> | ||||
<view class='distance' wx:if="{{data.targetAd==2&&data.endTime!=undefined&&data.type!=5}}"> | <view class='distance' wx:if="{{data.targetAd==2&&data.endTime!=undefined&&data.type!=5}}"> | ||||
<view style='text-align:center;display:inline-block;'> | <view style='text-align:center;display:inline-block;'> | ||||
<image class='clock' src='./../../../assets/img/clock.png' mode='widthFix'></image> | |||||
<image class='clock' src='{{clockUrl}}' mode='widthFix'></image> | |||||
<text class="qiang">距结束还剩 :</text> | <text class="qiang">距结束还剩 :</text> | ||||
</view> | </view> | ||||
<view wx:if="{{clock=='已经截止'||data.remainInventory==0||data.status==1}}" class='times'> | <view wx:if="{{clock=='已经截止'||data.remainInventory==0||data.status==1}}" class='times'> | ||||
@@ -67,7 +67,7 @@ | |||||
<text>{{item.merchantName}}</text> | <text>{{item.merchantName}}</text> | ||||
<text>{{item.addr}}{{item.buildingName}}{{item.floorName}}</text> | <text>{{item.addr}}{{item.buildingName}}{{item.floorName}}</text> | ||||
</view> | </view> | ||||
<image bindtap='phone' data-merchantLinkPhone='{{item.merchantLinkPhone}}' class="tel" src="./../../../assets/img/tel.jpg" mode="widthFix" /> | |||||
<image bindtap='phone' data-merchantLinkPhone='{{item.merchantLinkPhone}}' class="tel" src="{{teljpgUrl}}" mode="widthFix" /> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class='notes'> | <view class='notes'> | ||||
@@ -94,10 +94,10 @@ | |||||
<!-- 问卷调查 --> | <!-- 问卷调查 --> | ||||
<view class="b1" style="opacity:{{opacity}};display: {{display}};" animation="{{queueData}}"> | <view class="b1" style="opacity:{{opacity}};display: {{display}};" animation="{{queueData}}"> | ||||
<view id='con' class='con'> | <view id='con' class='con'> | ||||
<image class='close' mode='widthFix' src="./../../../assets/img/closed.png" bindtap="closeQuestion"></image> | |||||
<image class='ques_gou' mode='widthFix' src="./../../../assets/img/ques_gou.png"></image> | |||||
<image class='image' src="./../../../assets/img/headbg.png" mode='widthFix'></image> | |||||
<image class='img image' src="./../../../assets/img/ques_bg.png" mode='widthFix'></image> | |||||
<image class='close' mode='widthFix' src="{{closedUrl}}" bindtap="closeQuestion"></image> | |||||
<image class='ques_gou' mode='widthFix' src="{{quesGouUrl}}"></image> | |||||
<image class='image' src="{{headbgUrl}}" mode='widthFix'></image> | |||||
<image class='img image' src="{{quesBgUrl}}" mode='widthFix'></image> | |||||
<view class='question'> | <view class='question'> | ||||
<text class='titles'>{{questionnaire.title}}</text> | <text class='titles'>{{questionnaire.title}}</text> | ||||
<!-- 单选 --> | <!-- 单选 --> | ||||
@@ -6,6 +6,12 @@ let app = getApp(); | |||||
Page({ | Page({ | ||||
data: { | data: { | ||||
code: "", | code: "", | ||||
lineUrl: wx.getStorageSync('imgurl').line.url, | |||||
wm01Url: wx.getStorageSync('imgurl').wm01.url, | |||||
wm02Url: wx.getStorageSync('imgurl').wm02.url, | |||||
wm03Url: wx.getStorageSync('imgurl').wm03.url, | |||||
teljpgUrl: wx.getStorageSync('imgurl').teljpg.url, | |||||
newUrl: wx.getStorageSync('imgurl').new.url, | |||||
data: { | data: { | ||||
salePrice: null, | salePrice: null, | ||||
price: null, | price: null, | ||||