Просмотр исходного кода

[列表][修改]:[增加返回首页按钮]

tags/湖南版5.1.4
meo 6 лет назад
Родитель
Сommit
8853be70c4
32 измененных файлов: 264 добавлений и 22 удалений
  1. +6
    -0
      pages/bargain/bargain.js
  2. +1
    -0
      pages/bargain/bargain.wxml
  3. +23
    -1
      pages/bargain/bargain.wxss
  4. +1
    -0
      pages/bargain/bargainDatail/bargainDatail.json
  5. +7
    -0
      pages/cardorder/index/index.js
  6. +1
    -0
      pages/cardorder/index/index.wxml
  7. +23
    -1
      pages/cardorder/index/index.wxss
  8. +6
    -0
      pages/couponorder/index/index.js
  9. +1
    -0
      pages/couponorder/index/index.wxml
  10. +23
    -0
      pages/couponorder/index/index.wxss
  11. +7
    -1
      pages/discountCardList/discountCardList.js
  12. +1
    -0
      pages/discountCardList/discountCardList.wxml
  13. +23
    -1
      pages/discountCardList/discountCardList.wxss
  14. +1
    -1
      pages/getuserinfo/index.js
  15. +2
    -1
      pages/index/index.js
  16. +1
    -2
      pages/index/searchbar/index.js
  17. +3
    -1
      pages/index/searchbar/index.json
  18. +4
    -1
      pages/index/searchbar/index.wxml
  19. +9
    -5
      pages/index/searchbar/index.wxss
  20. +5
    -5
      pages/main/index.js
  21. +6
    -0
      pages/order/index/index.js
  22. +1
    -0
      pages/order/index/index.wxml
  23. +22
    -0
      pages/order/index/index.wxss
  24. +6
    -0
      pages/rushToBuy/index.js
  25. +1
    -0
      pages/rushToBuy/index.wxml
  26. +22
    -1
      pages/rushToBuy/index.wxss
  27. +6
    -0
      pages/specialcourtesy/specialcourtesy.js
  28. +1
    -0
      pages/specialcourtesy/specialcourtesy.wxml
  29. +21
    -0
      pages/specialcourtesy/specialcourtesy.wxss
  30. +6
    -0
      pages/spellGroup/spellGroup.js
  31. +1
    -0
      pages/spellGroup/spellGroup.wxml
  32. +23
    -1
      pages/spellGroup/spellGroup.wxss

+ 6
- 0
pages/bargain/bargain.js Просмотреть файл

@@ -9,6 +9,7 @@ Page({
bannerUrl: imgurl.banner.url,
loadingUrl: imgurl.loading.url,
bargaincancel: imgurl.bargaincancel.url,
wmhome: imgurl.wmhome.url,
bargainfail: imgurl.bargainfail.url,
bargainsuccess: imgurl.bargainsuccess.url,
bargaingoods: true,
@@ -24,6 +25,11 @@ Page({
loadingUrl: imgurl.loading.url,
flag: 'bargaingoods',
},
goback: function () {
wx.switchTab({
url: '/pages/main/index',
})
},
onLoad: function (options) {
console.log(options)
let that = this;


+ 1
- 0
pages/bargain/bargain.wxml Просмотреть файл

@@ -1,3 +1,4 @@
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button>
<view class="page" hover-class="none" hover-stop-propagation="false">
<view class='top' wx:if="{{bargaingoods&&list.length>0}}">
<view class="banner" wx:if="{{list.length>0}}" hover-class="none" hover-stop-propagation="false">


+ 23
- 1
pages/bargain/bargain.wxss Просмотреть файл

@@ -506,4 +506,26 @@ page{
font-weight:500;
color:rgba(255,253,245,1);
opacity: 1;
}
}
button::after{ border: none; }
.goback{
position: fixed;
right: 50rpx;
bottom: 60rpx;
width:100rpx!important;
height:100rpx;
z-index: 100;
background:rgba(255,255,255,1);
line-height: 95rpx;
border:1rpx solid rgba(227,227,227,1);
border-radius:50%;
}
.goback image{
position: absolute;
width: 60rpx;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
}

+ 1
- 0
pages/bargain/bargainDatail/bargainDatail.json Просмотреть файл

@@ -1,5 +1,6 @@
{
"navigationBarTitleText": "砍价详情",
"navigationBarBackgroundColor":"#FF6F03",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": true
}

+ 7
- 0
pages/cardorder/index/index.js Просмотреть файл

@@ -7,6 +7,8 @@ Page({
data: {
couponUrl: imgurl.coupon.url,
linessUrl: imgurl.liness.url,
wmhome: imgurl.wmhome.url,
wmdiscount: imgurl.wmdiscount.url,
loadingUrl: imgurl.loading.url,
canTransferred: imgurl.canTransferred.url,
weixinTitle: imgurl.weixinTitle.url,
@@ -30,6 +32,11 @@ Page({
mystatus: '',
showPage: false
},
goback: function () {
wx.switchTab({
url: '/pages/main/index',
})
},
onShow: function() {
let that = this;
console.log("onShow")


+ 1
- 0
pages/cardorder/index/index.wxml Просмотреть файл

@@ -1,3 +1,4 @@
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button>
<view class="market" wx:if="{{showPage}}">
<!-- 卡包 我的优惠券 -->
<i-tabs class='tabs' current="{{ current_scroll }}" scroll bindchange="handleChangeScroll">


+ 23
- 1
pages/cardorder/index/index.wxss Просмотреть файл

@@ -276,4 +276,26 @@
width:60rpx;
height:60rpx;
z-index:100;
}
}
button::after{ border: none; }
.goback{
position: fixed;
right: 50rpx;
bottom: 60rpx;
width:100rpx!important;
height:100rpx;
z-index: 100;
background:rgba(255,255,255,1);
line-height: 95rpx;
border:1rpx solid rgba(227,227,227,1);
border-radius:50%;
}
.goback image{
position: absolute;
width: 60rpx;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
}

+ 6
- 0
pages/couponorder/index/index.js Просмотреть файл

@@ -8,6 +8,7 @@ Page({
couponUrl: imgurl.coupon.url,
linessUrl: imgurl.liness.url,
loadingUrl: imgurl.loading.url,
wmhome: imgurl.wmhome.url,
wmgive: imgurl.wmgive.url,
tabs: [{
key: 0,
@@ -49,6 +50,11 @@ Page({
index:2
})
},
goback: function () {
wx.switchTab({
url: '/pages/main/index',
})
},
//点击跳转到券详情页面
gotouse: function (e) {
if (this.data.mystatus == '' || this.data.mystatus == 'undefined') {


+ 1
- 0
pages/couponorder/index/index.wxml Просмотреть файл

@@ -1,3 +1,4 @@
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button>
<view class="market" wx:if="{{showPage}}">
<!-- 券包 我的优惠券 -->
<i-tabs class='tabs' current="{{ current_scroll }}" scroll bindchange="handleChangeScroll">


+ 23
- 0
pages/couponorder/index/index.wxss Просмотреть файл

@@ -4,6 +4,29 @@
/* background: #f5f5f5; */
}

button::after{ border: none; }
.goback{
position: fixed;
right: 50rpx;
bottom: 60rpx;
width:100rpx!important;
height:100rpx;
z-index: 100;
background:rgba(255,255,255,1);
line-height: 95rpx;
border:1rpx solid rgba(227,227,227,1);
border-radius:50%;
}
.goback image{
position: absolute;
width: 60rpx;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
}

.tabs {
width: 100% !important;
height: 88rpx;


+ 7
- 1
pages/discountCardList/discountCardList.js Просмотреть файл

@@ -21,6 +21,7 @@ Page({
],
couponUrl: imgurl.coupon.url,
loadingUrl: imgurl.loading.url,
wmhome: imgurl.wmhome.url,
canTransferred: imgurl.canTransferred.url,
tabs: [],
list: [],
@@ -34,6 +35,11 @@ Page({
showPage: false,
paramData:null
},
goback: function () {
wx.switchTab({
url: '/pages/main/index',
})
},
onLoad(options) {
this.getList(0, 1);
if(options.fromId){
@@ -52,7 +58,7 @@ Page({
console.log(res)
let businessObj = [{ id: 0, title: "全部", type: 1, createDate: 0}];
that.setData({
tabs: res.data.list.concat(businessObj).sort(compare("createDate"))
tabs: res.data.concat(businessObj).sort(compare("createDate"))
});
console.log(that.data.tabs)
})


+ 1
- 0
pages/discountCardList/discountCardList.wxml Просмотреть файл

@@ -1,3 +1,4 @@
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button>
<!-- 折扣卡list页面 -->
<view class='content'>
<view class="market clearfix">


+ 23
- 1
pages/discountCardList/discountCardList.wxss Просмотреть файл

@@ -244,4 +244,26 @@ button::after{ border: none; }
}
.tabss{
padding: 0 30rpx;
}
}
button::after{ border: none; }
.goback{
position: fixed;
right: 50rpx;
bottom: 60rpx;
width:100rpx!important;
height:100rpx;
z-index: 100;
background:rgba(255,255,255,1);
line-height: 95rpx;
border:1rpx solid rgba(227,227,227,1);
border-radius:50%;
}
.goback image{
position: absolute;
width: 60rpx;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
}

+ 1
- 1
pages/getuserinfo/index.js Просмотреть файл

@@ -204,7 +204,7 @@ Page({
// }
else if (app.globalData.type == 'ml') {
// 门店
wx.redirectTo({
wx.switchTab({
url: '/pages/index/searchbar/index'
});
} else {


+ 2
- 1
pages/index/index.js Просмотреть файл

@@ -9,6 +9,7 @@ Page({
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
@@ -216,7 +217,7 @@ Page({
});
} else if (app.globalData.type == 'ml') {
// 门店
wx.redirectTo({
wx.switchTab({
url: '/pages/index/searchbar/index'
});
} else {


+ 1
- 2
pages/index/searchbar/index.js Просмотреть файл

@@ -60,9 +60,8 @@ Page({
console.log(res)
let businessObj = [{ id: 0, title: "全部", type: 1, createDate:0}];
that.setData({
lists: res.data.list.concat(businessObj).sort(compare("createDate"))
lists: res.data.concat(businessObj).sort(compare("createDate"))
});
console.log(that.data.lists);
})
.catch(err => {
wx.showToast({


+ 3
- 1
pages/index/searchbar/index.json Просмотреть файл

@@ -1,3 +1,5 @@
{
"navigationBarTitleText": "品牌门店"
"navigationBarTitleText": "门店",
"navigationBarBackgroundColor": "#b2743d",
"navigationBarTextStyle": "white"
}

+ 4
- 1
pages/index/searchbar/index.wxml Просмотреть файл

@@ -16,7 +16,7 @@
</view>

<view class='lists'>
<view class='posi'>
<view class='posi' wx:if="{{merchantVoList.length>0}}">
<view class='posi_logo' wx:for="{{merchantVoList}}" wx:key="index">
<view>
<image src='{{item.merchantImgUrl}}'></image>
@@ -28,4 +28,7 @@
<image bindtap='phone' data-merchantLinkPhone='{{item.merchantLinkPhone}}' class="tel" src="{{teljpgUrl}}" mode="widthFix" />
</view>
</view>
<view class='position' wx:if="{{merchantVoList.length==0}}">
暂无数据
</view>
</view>

+ 9
- 5
pages/index/searchbar/index.wxss Просмотреть файл

@@ -6,12 +6,12 @@
position: fixed;
left: 0;
top: 0;
border-right: 2rpx solid #efefef;
border-right: 2rpx solid #b2743d;
}
.left {
border-top: 1rpx solid #efefef;
border-right: 1rpx solid #efefef;
border-top: 1rpx solid #b2743d;
border-right: 1rpx solid #b2743d;
}
.text-style {
@@ -25,14 +25,14 @@
}
.active1 {
color: #00c0ff;
color: #b2743d;
}
.active {
display: block;
width: 50rpx;
height: 6rpx;
background: #00c0ff;
background: #b2743d;
position: relative;
left: 43rpx;
bottom: 30rpx;
@@ -71,6 +71,10 @@
margin-bottom: 20rpx;
overflow: hidden;
}
.position{
text-align: center;
margin-top: 100rpx;
}

.posi_logo view:nth-child(1) {
width: 100rpx;


+ 5
- 5
pages/main/index.js Просмотреть файл

@@ -128,11 +128,11 @@ Page({
})
},
//搜索门店
searchbar:function(){
wx.navigateTo({
url: '/pages/index/searchbar/index',
})
},
// searchbar:function(){
// wx.switchTab({
// url: '/pages/index/searchbar/index',
// })
// },
// createQrCode: function(url, canvasId, cavW, cavH) {
// //调用插件中的draw方法,绘制二维码图片


+ 6
- 0
pages/order/index/index.js Просмотреть файл

@@ -7,6 +7,7 @@ Page({
data: {
dingdanUrl: imgurl.dingdan.url,
loadingUrl: imgurl.loading.url,
wmhome: imgurl.wmhome.url,
wmdiscount: imgurl.wmdiscount.url,
wmgive: imgurl.wmgive.url,
tabs: [{
@@ -30,6 +31,11 @@ Page({
page: 1,
content: "",
},
goback: function () {
wx.switchTab({
url: '/pages/main/index',
})
},
onLoad(e) {
this.getList(e.id, 1);
this.setData({


+ 1
- 0
pages/order/index/index.wxml Просмотреть файл

@@ -1,3 +1,4 @@
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button>
<view class="market">
<i-tabs class='tabs' current="{{ current_scroll }}" scroll bindchange="handleChangeScroll">
<i-tab class='i-tab' wx:for="{{tabs}}" wx:key="unique" key="{{item.key}}" title="{{item.name}}"></i-tab>


+ 22
- 0
pages/order/index/index.wxss Просмотреть файл

@@ -249,3 +249,25 @@ text-overflow: ellipsis;
vertical-align: middle;
margin-right: 10rpx;
}
button::after{ border: none; }
.goback{
position: fixed;
right: 50rpx;
bottom: 60rpx;
width:100rpx!important;
height:100rpx;
z-index: 100;
background:rgba(255,255,255,1);
line-height: 95rpx;
border:1rpx solid rgba(227,227,227,1);
border-radius:50%;
}
.goback image{
position: absolute;
width: 60rpx;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
}

+ 6
- 0
pages/rushToBuy/index.js Просмотреть файл

@@ -10,6 +10,7 @@ Page({
data: {
linesUrl: imgurl.lines.url,
loadingUrl: imgurl.loading.url,
wmhome: imgurl.wmhome.url,
wmgift: imgurl.wmgift.url,
list: [],
page: 1,
@@ -21,6 +22,11 @@ Page({
content: "",
showPage:false
},
goback: function () {
wx.switchTab({
url: '/pages/main/index',
})
},
//列表
getList: function (page) {
let that = this;


+ 1
- 0
pages/rushToBuy/index.wxml Просмотреть файл

@@ -1,3 +1,4 @@
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button>
<!-- 限时抢购 查看更多对应的页面 -->
<view wx:if="{{showPage}}">
<view wx:for="{{list}}" wx:if="{{item.targetA!='end'&&list.length>0}}" class='flashSaleItemWrap' wx:key="index">


+ 22
- 1
pages/rushToBuy/index.wxss Просмотреть файл

@@ -15,7 +15,28 @@
font-size: 26rpx;
color: #999;
}
button::after{ border: none; }
.goback{
position: fixed;
right: 50rpx;
bottom: 60rpx;
width:100rpx!important;
height:100rpx;
z-index: 100;
background:rgba(255,255,255,1);
line-height: 95rpx;
border:1rpx solid rgba(227,227,227,1);
border-radius:50%;
}
.goback image{
position: absolute;
width: 60rpx;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
}
.loading image {
width: 60rpx;
height: 60rpx;


+ 6
- 0
pages/specialcourtesy/specialcourtesy.js Просмотреть файл

@@ -12,6 +12,7 @@ Page({
data: {
myspeacialUrl: imgurl.myspeacial.url,
teliconUrl: imgurl.telicon.url,
wmhome: imgurl.wmhome.url,
memberId:"000000"
},
phone: function (e) {
@@ -50,6 +51,11 @@ Page({
})
})
},
goback: function () {
wx.switchTab({
url: '/pages/main/index',
})
},
/**
* 二维码
*/


+ 1
- 0
pages/specialcourtesy/specialcourtesy.wxml Просмотреть файл

@@ -1,3 +1,4 @@
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button>
<view class='code'>
<!-- <text style='margin-bottom:20rpx;'>会员码</text> -->
<!-- <canvas canvas-id="barcode" id='barcode' /> -->


+ 21
- 0
pages/specialcourtesy/specialcourtesy.wxss Просмотреть файл

@@ -106,6 +106,27 @@ Page{
width: 300rpx;
margin: 40rpx auto 20rpx;
}
.goback{
position: fixed;
right: 50rpx;
bottom: 60rpx;
width:100rpx!important;
height:100rpx;
z-index: 100;
background:rgba(255,255,255,1);
line-height: 95rpx;
border:1rpx solid rgba(227,227,227,1);
border-radius:50%;
}
.goback image{
position: absolute;
width: 60rpx;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
}
.code{
width: 684rpx;
background: #fff;


+ 6
- 0
pages/spellGroup/spellGroup.js Просмотреть файл

@@ -10,6 +10,7 @@ Page({
bannerUrl: imgurl.banner.url,
loadingUrl: imgurl.loading.url,
nodata: imgurl.nodata.url,
wmhome: imgurl.wmhome.url,
spellList: true,
myspellList: false,
list: [],
@@ -26,6 +27,11 @@ Page({
flag: 'spellList',
reloadIf:false
},
goback: function () {
wx.switchTab({
url: '/pages/main/index',
})
},
onLoad: function (options) {
let that = this;
that.getBannerlist();


+ 1
- 0
pages/spellGroup/spellGroup.wxml Просмотреть файл

@@ -1,3 +1,4 @@
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button>
<view class='content-box' style='{{"padding-bottom:"+(lists.length>0?"200rpx":"0")}}'>
<view class='top' wx:if='{{flag=="spellList"&&list.length>0}}'>
<view class="banner" wx:if="{{list.length>0}}" hover-class="none" hover-stop-propagation="false">


+ 23
- 1
pages/spellGroup/spellGroup.wxss Просмотреть файл

@@ -290,4 +290,26 @@ image{
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(0,0,0,1);
}
}
button::after{ border: none; }
.goback{
position: fixed;
right: 50rpx;
bottom: 60rpx;
width:100rpx!important;
height:100rpx;
z-index: 100;
background:rgba(255,255,255,1);
line-height: 95rpx;
border:1rpx solid rgba(227,227,227,1);
border-radius:50%;
}
.goback image{
position: absolute;
width: 60rpx;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
}

Загрузка…
Отмена
Сохранить