| @@ -144,6 +144,7 @@ App({ | |||
| }) | |||
| }, | |||
| globalData: { | |||
| typeLsit: {},//初始哈样式 | |||
| scene: "", | |||
| // token | |||
| token: null, | |||
| @@ -1,5 +1,4 @@ | |||
| /* @import "weui.wxss"; */ | |||
| @font-face { | |||
| font-family: "iconfont"; /* project id 777313 */ | |||
| src: url("//at.alicdn.com/t/font_777313_jq7td4d3uab.eot"); | |||
| @@ -1,10 +1,10 @@ | |||
| .navbar { | |||
| width: 100vw; | |||
| background-color: #F4F5F9; | |||
| position: fixed; | |||
| /* position: fixed; */ | |||
| left: 0; | |||
| top: 0; | |||
| z-index: 400000000; | |||
| /* z-index: 400000000; */ | |||
| } | |||
| .title-container { | |||
| @@ -3,17 +3,17 @@ let weappId = extConfig.weappId; | |||
| let configUrls = extConfig.attr.configUrl; | |||
| let sockUrls = extConfig.attr.socketUrl; | |||
| var config = { | |||
| url: configUrls, | |||
| url: configUrls, | |||
| wsurl: sockUrls, | |||
| api: { | |||
| /* | |||
| *记录微信订阅 | |||
| */ | |||
| wxMsg:'/user/updateMsg', | |||
| *记录微信订阅 | |||
| */ | |||
| wxMsg: '/user/updateMsg', | |||
| /** | |||
| * 微信消息推送获取模板id | |||
| */ | |||
| templateId:"/wxMsg/templateList", | |||
| templateId: "/wxMsg/templateList", | |||
| /** | |||
| * 接口用途:login | |||
| */ | |||
| @@ -39,17 +39,20 @@ var config = { | |||
| /** | |||
| * 商户优惠信息 | |||
| */ | |||
| listByMerchant: "/wxCouponChannel/listByMerchant", | |||
| listByMerchant: "/wxCouponChannel/listByMerchant", | |||
| /** | |||
| * 优惠券详情 | |||
| */ | |||
| couponDetail: "/wxCoupon/detail", | |||
| /** | |||
| /** | |||
| * 优惠券图文混排详情 | |||
| */ | |||
| couponHtmlDetail: "/wxCoupon/html", | |||
| couponHtmlDetailForPkg: "/couponOrder/html", | |||
| /** | |||
| * 获取样式 | |||
| */ | |||
| setType: '/wxMiniappTheme/getOne', | |||
| /** | |||
| * 业态查询 | |||
| * filter | |||
| @@ -62,8 +65,8 @@ var config = { | |||
| */ | |||
| couponChannelList: "/wxCouponChannel/list", | |||
| /** | |||
| * 换一换change | |||
| */ | |||
| * 换一换change | |||
| */ | |||
| change: "/wxCouponChannel/change", | |||
| /** | |||
| * 下订单 | |||
| @@ -175,15 +178,15 @@ var config = { | |||
| * title | |||
| * 描述 | |||
| */ | |||
| getWeapNote:'/mall/getWeapNote', | |||
| getWeapNote: '/mall/getWeapNote', | |||
| /** | |||
| * 商场信息(小程序分享) | |||
| */ | |||
| * 商场信息(小程序分享) | |||
| */ | |||
| getMallInfo: '/mall/mallInfo', | |||
| /** | |||
| * 小程序获取游戏路径 | |||
| */ | |||
| getGame:'/game/getOne', | |||
| getGame: '/game/getOne', | |||
| /** | |||
| * 小程序获取广告路径 | |||
| */ | |||
| @@ -199,20 +202,20 @@ var config = { | |||
| /** | |||
| * 查询问卷 | |||
| */ | |||
| getQuestion:"/wxQuestion/getQuestion", | |||
| getQuestion: "/wxQuestion/getQuestion", | |||
| /** | |||
| * 提交问卷 | |||
| */ | |||
| answerQuestion:"/wxQuestion/answerQuestion", | |||
| answerQuestion: "/wxQuestion/answerQuestion", | |||
| /** | |||
| * | |||
| 获取打折商户列表 | |||
| */ | |||
| discountMerchantList:"/mall/discountMerchantList", | |||
| discountMerchantList: "/mall/discountMerchantList", | |||
| /** | |||
| * 卡包分页列表接口 | |||
| */ | |||
| cardorderList:"/couponOrder/cardList", | |||
| cardorderList: "/couponOrder/cardList", | |||
| /** | |||
| * 卡券详情接口 | |||
| */ | |||
| @@ -220,63 +223,63 @@ var config = { | |||
| /** | |||
| * C端扫B端储值卡支付订单 | |||
| */ | |||
| cardPayOrder:"/cardPay/order_create", | |||
| cardPayOrder: "/cardPay/order_create", | |||
| /** | |||
| * 兑换历史列表 | |||
| */ | |||
| scoreHistory:"/scoreHistory/list", | |||
| scoreHistory: "/scoreHistory/list", | |||
| /** | |||
| * 获取用户折扣率 | |||
| */ | |||
| getDiscountInfo:"/user/getDiscountInfo", | |||
| getDiscountInfo: "/user/getDiscountInfo", | |||
| /** | |||
| * C端扫B端储值卡交易流水列表接口 | |||
| */ | |||
| cardpayList:"/cardPay/list", | |||
| cardpayList: "/cardPay/list", | |||
| /** | |||
| * 根据code查询接口 | |||
| */ | |||
| findByCode:"/merchant/findByCode", | |||
| /** | |||
| findByCode: "/merchant/findByCode", | |||
| /** | |||
| * 参与砍价 | |||
| */ | |||
| pressOrderJoin:"/press/pressOrderJoin", | |||
| pressOrderJoin: "/press/pressOrderJoin", | |||
| /** | |||
| * 我的砍价列表 | |||
| */ | |||
| pressOrderList:"/order/pressOrderList", | |||
| pressOrderList: "/order/pressOrderList", | |||
| /** | |||
| * 砍价订单详情 | |||
| */ | |||
| pressOrderDetail:"/order/pressOrderDetail", | |||
| pressOrderDetail: "/order/pressOrderDetail", | |||
| /** | |||
| * | |||
| */ | |||
| getPressOrderStatus:"/press/getPressOrderStatus", | |||
| getPressOrderStatus: "/press/getPressOrderStatus", | |||
| /** | |||
| * 查询转赠卡状态 | |||
| */ | |||
| queryCardStatus:"/couponOrder/queryCardStatus", | |||
| queryCardStatus: "/couponOrder/queryCardStatus", | |||
| /** | |||
| * 领取转赠卡 | |||
| */ | |||
| cardAccept:'/couponOrder/cardAccept', | |||
| cardAccept: '/couponOrder/cardAccept', | |||
| /** | |||
| * 获取我的拼团列表 | |||
| */ | |||
| getMySepllList:'/orderGroup/queryOrderGroup', | |||
| getMySepllList: '/orderGroup/queryOrderGroup', | |||
| /** | |||
| *查询差1个的团购信息 | |||
| */ | |||
| queryRemainOne:'/orderGroup/queryRemainOne', | |||
| queryRemainOne: '/orderGroup/queryRemainOne', | |||
| /** | |||
| * *分页列表接口 | |||
| */ | |||
| merchantList:"/merchant/list", | |||
| merchantList: "/merchant/list", | |||
| /* | |||
| * 查询拼团状态 | |||
| */ | |||
| queryOrderGroupStatus:'/orderGroup/queryOrderGroupStatus', | |||
| queryOrderGroupStatus: '/orderGroup/queryOrderGroupStatus', | |||
| /** | |||
| * 去拼团 | |||
| */ | |||
| @@ -284,58 +287,58 @@ var config = { | |||
| /** | |||
| * 查询是否已参团 | |||
| */ | |||
| queryAttendStatus:'/orderGroup/queryAttendStatus', | |||
| queryAttendStatus: '/orderGroup/queryAttendStatus', | |||
| /** | |||
| * 专题 | |||
| */ | |||
| topicShow:"/topic/show", | |||
| topicShow: "/topic/show", | |||
| /** | |||
| * 专题详情 | |||
| */ | |||
| topicFindById:"/topic/findById", | |||
| topicFindById: "/topic/findById", | |||
| /** | |||
| * 积分券详情 | |||
| */ | |||
| integralDetail:'/wxCoupon/findById', | |||
| integralDetail: '/wxCoupon/findById', | |||
| /** | |||
| * 会员积分记录 | |||
| */ | |||
| integralList:'/credit/list', | |||
| integralList: '/credit/list', | |||
| /** | |||
| * 用户更新位置信息 | |||
| */ | |||
| updateLBS:"/user/updateLBS", | |||
| updateLBS: "/user/updateLBS", | |||
| /** | |||
| * 用户更新信息 | |||
| */ | |||
| updateUserInfo:"/user/updateUserInfo", | |||
| updateUserInfo: "/user/updateUserInfo", | |||
| /** | |||
| * 用户更新scene | |||
| */ | |||
| updateScene:"/user/updateScene", | |||
| updateScene: "/user/updateScene", | |||
| /** | |||
| * 富文本详情 | |||
| */ | |||
| printHtmlById:"/wxCampaign/printHtmlById", | |||
| acfindById:"/wxActivity/findById", | |||
| acPrintHtmlById:"/wxActivity/printHtmlById", | |||
| printHtmlById: "/wxCampaign/printHtmlById", | |||
| acfindById: "/wxActivity/findById", | |||
| acPrintHtmlById: "/wxActivity/printHtmlById", | |||
| //参与活动 | |||
| activityJoin:"/wxActivityJoin/join", | |||
| activityJoin: "/wxActivityJoin/join", | |||
| //签到 | |||
| activitySign:"/wxActivityJoin/sign", | |||
| activitySign: "/wxActivityJoin/sign", | |||
| activityList: "/wxActivityJoin/list", | |||
| //获取未支付的订单 | |||
| getUnPaidOrder: "/order/getUnPaidOrder", | |||
| getCouponOrderByPassword:'/couponPassword/getCouponOrderByPassword', | |||
| getbuildingfloorlist:'/wxMallBuilding/getbuildingfloorlist', | |||
| getCouponOrderByPassword: '/couponPassword/getCouponOrderByPassword', | |||
| getbuildingfloorlist: '/wxMallBuilding/getbuildingfloorlist', | |||
| //商场信息接口 | |||
| getMallInfo: "/mall/mallInfo", | |||
| // 获取楼层楼座数据 | |||
| getbuildingfloorlist:"/wxMallBuilding/getbuildingfloorlist", | |||
| getbuildingfloorlist: "/wxMallBuilding/getbuildingfloorlist", | |||
| // 获取所有直播间和商品信息 | |||
| getReplayList:"/live/replayList", | |||
| getReplayList: "/live/replayList", | |||
| // 获取直播房间回放数据和商品信息 | |||
| getRoomList: "/live/roomList" | |||
| getRoomList: "/live/roomList" | |||
| }, | |||
| weapp: { | |||
| AppId: weappId | |||
| @@ -34,6 +34,7 @@ Component({ | |||
| ] | |||
| }, | |||
| attached() { | |||
| this.getType() | |||
| if (ifStoreApp == 1) { | |||
| this.setData({ | |||
| list: [{ | |||
| @@ -78,14 +79,61 @@ Component({ | |||
| switchTab(e) { | |||
| const data = e.currentTarget.dataset; | |||
| const url = data.path; | |||
| if(data.index==0||data.index==3){ | |||
| if (data.index == 0 || data.index == 3) { | |||
| this.getTemplateId() | |||
| } | |||
| wx.switchTab({url}); | |||
| wx.switchTab({ | |||
| url | |||
| }); | |||
| this.setData({ | |||
| selected: data.index | |||
| }) | |||
| }, | |||
| /** | |||
| * 获取全局样式 | |||
| */ | |||
| getType() { | |||
| Http.get({ | |||
| url: config.api.setType, | |||
| data: {} | |||
| }).then(res => { | |||
| const { | |||
| code, | |||
| data | |||
| } = res | |||
| if (code == 200) { | |||
| this.setData({ | |||
| list: [{ | |||
| "pagePath": "/index/index", | |||
| "iconPath": `${data.t_in.icon}`, | |||
| "selectedIconPath": `${data.t_in_std.icon}`, | |||
| "text": "首页" | |||
| }, | |||
| { | |||
| "pagePath": "/index/searchbar", | |||
| "iconPath": `${data.t_md.icon}`, | |||
| "selectedIconPath": `${data.t_md_std.icon}`, | |||
| "text": "门店" | |||
| }, | |||
| { | |||
| "pagePath": "/index/passCar", | |||
| "iconPath": `${data.t_tc.icon}`, | |||
| "selectedIconPath": `${data.t_tc_std.icon}`, | |||
| "text": "停车" | |||
| }, | |||
| { | |||
| "pagePath": "/index/user", | |||
| "iconPath": `${data.t_uc.icon}`, | |||
| "selectedIconPath": `${data.t_uc_std.icon}`, | |||
| "text": "我的" | |||
| } | |||
| ], | |||
| selectedColor: `${data.t_uc_std.styleClass}`, | |||
| }) | |||
| } | |||
| }) | |||
| }, | |||
| getTemplateId() { | |||
| Http.get({ | |||
| url: config.api.templateId, | |||
| @@ -118,8 +166,8 @@ Component({ | |||
| tmplIds: tmplIds, | |||
| success(res) { | |||
| let _statue = null | |||
| tmplIds.map((item,index)=>{//判读用户是否点击了确定 | |||
| if(res[item]=="accept"){ | |||
| tmplIds.map((item, index) => { //判读用户是否点击了确定 | |||
| if (res[item] == "accept") { | |||
| _statue = 'ok' | |||
| } | |||
| }) | |||
| @@ -16,14 +16,14 @@ | |||
| } | |||
| ], | |||
| "configUrl": "https://ctest.malls.iformall.com/C/api", | |||
| "etcpAppId": "wx219a81b9c87aa4f7", | |||
| "etcpAppId": "wx192b7d2e8dcbefd0", | |||
| "etcpVersion": "release", | |||
| "etcpCallbackUrl": "https://admintest.malls.iformall.com/api/carCallback/etcpPaidCallback", | |||
| "ifHaveWebSocket": "0", | |||
| "ifHaveCarModular": "1" | |||
| }, | |||
| "name": "富茂光谷测试版", | |||
| "weappId": "wx219a81b9c87aa4f7", | |||
| "name": "金泸商务", | |||
| "weappId": "wx649b3be73c1afe47", | |||
| "appVersion": "C.test.5.2.0" | |||
| }, | |||
| "debug": false, | |||
| @@ -69,7 +69,7 @@ | |||
| "provider": "wx2b03c6e691cd7370" | |||
| } | |||
| }, | |||
| "extAppid": "wx219a81b9c87aa4f7", | |||
| "extAppid": "wx649b3be73c1afe47", | |||
| "extEnable": true, | |||
| "permission": { | |||
| "scope.userLocation": { | |||
| @@ -1,6 +1,6 @@ | |||
| const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {} | |||
| let ifStoreApp = extConfig.attr.ifStoreApp; | |||
| const navigationBarHeight = (getApp().statusBarHeight + 60) + 'px' | |||
| const navigationBarHeight = (getApp().statusBarHeight + 60) + 'rpx' | |||
| const Http = require("../utils/HttpBasics"); | |||
| const imgurl = require("../utils/imgurl"); | |||
| const config = require("../config/config"); | |||
| @@ -10,6 +10,7 @@ const bgColor = require("../utils/bgColor.js") | |||
| let app = getApp(); | |||
| Page({ | |||
| data: { | |||
| typeLsit:{}, | |||
| showLocationIf: true, | |||
| ifStoreApp: ifStoreApp, | |||
| navigationBarTitle: '首页', | |||
| @@ -84,6 +85,7 @@ Page({ | |||
| liveFlag: 0, //直播按钮显隐标志位 | |||
| squareName: "", //当前广场 | |||
| isShowSqare: false, | |||
| }, | |||
| //获取当前广场名 | |||
| @@ -225,12 +227,28 @@ Page({ | |||
| }) | |||
| } | |||
| }, | |||
| /** | |||
| * 获取全局样式 | |||
| */ | |||
| getType() { | |||
| Http.get({ | |||
| url: config.api.setType, | |||
| data:{} | |||
| }).then(res=>{ | |||
| const{code ,data}=res | |||
| if(code==200){ | |||
| this.setData({ | |||
| typeLsit: data | |||
| }) | |||
| } | |||
| console.log(this.data.typeLsit,"???") | |||
| }) | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面初次渲染完成 | |||
| */ | |||
| onLoad: function(options) { | |||
| this.getType() | |||
| this.getLocation(); | |||
| let that = this; | |||
| let optionss; | |||
| @@ -411,7 +429,7 @@ Page({ | |||
| getWeapNote: function(couponChannelId, couponId, orderId) { | |||
| var that = this; | |||
| if (app.globalData.token){ | |||
| if (app.globalData.token) { | |||
| // 登录 | |||
| console.log(app.globalData.token) | |||
| that.getmemberId(app.globalData.token); | |||
| @@ -430,11 +448,11 @@ Page({ | |||
| app.businessListCallback(app.globalData.token); | |||
| } | |||
| Http.get({ | |||
| url: config.api.getWeapNote, | |||
| data: { | |||
| appId: config.weapp.AppId, | |||
| } | |||
| }) | |||
| url: config.api.getWeapNote, | |||
| data: { | |||
| appId: config.weapp.AppId, | |||
| } | |||
| }) | |||
| .then(res => { | |||
| console.log(33333333333) | |||
| console.log(app.globalData.token) | |||
| @@ -460,7 +478,7 @@ Page({ | |||
| }); | |||
| }); | |||
| }else{ | |||
| } else { | |||
| app.tokenCallback = token => { | |||
| // 登录 | |||
| console.log(app.globalData.token) | |||
| @@ -480,11 +498,11 @@ Page({ | |||
| app.businessListCallback(app.globalData.token); | |||
| } | |||
| Http.get({ | |||
| url: config.api.getWeapNote, | |||
| data: { | |||
| appId: config.weapp.AppId, | |||
| } | |||
| }) | |||
| url: config.api.getWeapNote, | |||
| data: { | |||
| appId: config.weapp.AppId, | |||
| } | |||
| }) | |||
| .then(res => { | |||
| console.log(33333333333) | |||
| console.log(app.globalData.token) | |||
| @@ -511,7 +529,7 @@ Page({ | |||
| }); | |||
| } | |||
| } | |||
| }, | |||
| getStaticGame(token) { | |||
| @@ -1,55 +1,56 @@ | |||
| <navbar text="首页"></navbar> | |||
| <view class="container" style="padding-top:{{navigationBarHeight}};"> | |||
| <navbar color="{{typeLsit.sy_top_f.styleClass}}" background="{{typeLsit.sy_top.styleClass}}" text="首页"></navbar> | |||
| <view class="container" > | |||
| <!-- 所属集团 --> | |||
| <view class="underling" bindtap="goSquareList" wx:if="{{isShowSqare}}"> | |||
| <view class="underling" bindtap="goSquareList" wx:if="{{isShowSqare}}"> | |||
| <image class="underlingImg" mode="widthFix" src="https://formall.oss-accelerate.aliyuncs.com/cimg/dingwei.png"></image> | |||
| <view class="underlingName" >{{squareName}} ↓</view> | |||
| <view class="underlingName">{{squareName}} ↓</view> | |||
| </view> | |||
| <!-- 会员信息 --> | |||
| <!-- 会员信息 --> | |||
| <view class="color_box" style="{{typeLsit.sy_bbg.styleClass}}"> | |||
| <view class='userinfo' wx:if="{{ifStoreApp!=1}}"> | |||
| <!-- 头像 --> | |||
| <view class='infoLeft'> | |||
| <view class="user-avatar"> | |||
| <view class='infoLeft' style="{{typeLsit.sy_xxb.styleClass}}"> | |||
| <view class="user-avatar"> | |||
| <open-data class="open" type="userAvatarUrl"></open-data> | |||
| </view> | |||
| <!-- 成长值 --> | |||
| <view class="user-data fl" bindtap='gotoChengzhangzhi'> | |||
| <view class='nameBox'> | |||
| <open-data type="userNickName"></open-data> | |||
| <view class="user-data fl" bindtap='gotoChengzhangzhi' style="{{typeLsit.sy_xxb.styleClass}}"> | |||
| <view class='nameBox'> | |||
| <open-data type="userNickName" style="{{typeLsit.sy_xxb_nf.styleClass}}"></open-data> | |||
| <view class='chengzhangBox' style='background:{{chengzhangBox}}'> | |||
| <text class='chengzhang'>{{levelName}}</text> | |||
| </view> | |||
| </view> | |||
| <view class="view"> | |||
| <progress percent="{{upgradePercent}}" stroke-width="6" activeColor="{{activeColor}}" /> | |||
| <view class='remainchengzhangzhi'>还需{{upgradeScore}}成长值可升级</view> | |||
| <progress percent="{{upgradePercent}}" stroke-width="6" activeColor="{{activeColor}}" /> | |||
| <view class='remainchengzhangzhi' style="{{typeLsit.sy_xxb_cf.styleClass}}">还需{{upgradeScore}}成长值可升级</view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| <!-- 二维码 --> | |||
| <view class='qrcode fr' bindtap='qrcode'> | |||
| <image src="{{barcode}}" class='qrcodeimg' mode='widthFix'></image> | |||
| <view class='qrcode fr' bindtap='qrcode' style="{{typeLsit.sy_qrc.styleClass}}"> | |||
| <image src="{{typeLsit.sy_qrc.icon}}" class='qrcodeimg' mode='widthFix'></image> | |||
| </view> | |||
| </view> | |||
| <!-- banner --> | |||
| <c-banner wx:key="unique" list="{{list}}" /> | |||
| <!-- 频道 --> | |||
| <view class='channelBox' wx:if="{{ifStoreApp!=1}}"> | |||
| <view class='channelBox' wx:if="{{ifStoreApp!=1}}" style="{{typeLsit.sy_mbg.styleClass}}"> | |||
| <view class='kjBox' bindtap='gotoBargain'> | |||
| <image src='{{kanjia}}' mode='aspectFill'></image> | |||
| <image src='{{typeLsit.sy_kj.icon}}' mode='aspectFill'></image> | |||
| <text>砍价</text> | |||
| </view> | |||
| <view class='kjBox' bindtap='gotoSpellGroup'> | |||
| <image src='{{pintuan}}' mode='aspectFill'></image> | |||
| <view class='kjBox' bindtap='gotoSpellGroup'> | |||
| <image src='{{typeLsit.sy_pt.icon}}' mode='aspectFill'></image> | |||
| <text>拼团</text> | |||
| </view> | |||
| <view class='kjBox' bindtap='goLive' wx:if="{{liveFlag}}"> | |||
| <image src='{{live}}' mode='aspectFill'></image> | |||
| <image src='{{typeLsit.sy_zbt.icon}}' mode='aspectFill'></image> | |||
| <text>直播厅</text> | |||
| </view> | |||
| <view class='kjBox' bindtap='gotoCard'> | |||
| <image src='{{xiaofeika}}' mode='aspectFill'></image> | |||
| <image src='{{typeLsit.sy_xfk.icon}}' mode='aspectFill'></image> | |||
| <text>消费卡</text> | |||
| </view> | |||
| <!-- <view class='kjBox' bindtap='gotogame'> | |||
| @@ -57,17 +58,17 @@ | |||
| <text>游戏频道</text> | |||
| </view> --> | |||
| <view class='kjBox' bindtap='gotoJfsc'> | |||
| <image src='{{jfshangcheng}}' mode='aspectFill'></image> | |||
| <image src='{{typeLsit.sy_jfsc.icon}}' mode='aspectFill'></image> | |||
| <text>积分商城</text> | |||
| </view> | |||
| </view> | |||
| <!-- 频道 --> | |||
| <view class='channelBox' wx:if="{{ifStoreApp==1}}" style="width:525rpx;"> | |||
| <view class='kjBox' bindtap='gotoBargain'> | |||
| <image src='{{kanjia}}' mode='aspectFill'></image> | |||
| <image src='{{kanjia}}' mode='aspectFill'></image> | |||
| <text>砍价</text> | |||
| </view> | |||
| <view class='kjBox' bindtap='gotoSpellGroup'> | |||
| <view class='kjBox' bindtap='gotoSpellGroup'> | |||
| <image src='{{pintuan}}' mode='aspectFill'></image> | |||
| <text>拼团</text> | |||
| </view> | |||
| @@ -76,8 +77,13 @@ | |||
| <text>限时抢购</text> | |||
| </view> | |||
| </view> | |||
| <!-- 每日头条 限时抢购 --> | |||
| <!-- <view class='toutiao' bindtap='gotoRushBuy' wx:if="{{showQg&&ifStoreApp!=1}}" > | |||
| </view> | |||
| <!-- 每日头条 限时抢购 --> | |||
| <!-- <view class='toutiao' bindtap='gotoRushBuy' wx:if="{{showQg&&ifStoreApp!=1}}" > | |||
| <view class='imgBox'> | |||
| <image src='{{toutiao}}' mode='aspectFill'></image> | |||
| </view> | |||
| @@ -87,43 +93,43 @@ | |||
| </view> | |||
| <view class='qg' style='border-color:{{qg}}'>抢购</view> | |||
| </view> --> | |||
| <!--限时抢购 --> | |||
| <view class='toutiao1' wx:if="{{showQg&&ifStoreApp!=1}}" > | |||
| <view class='xianshi' bindtap='gotoRushBuy'> | |||
| <text>限时专区</text> | |||
| <text>限时惊爆价 轻松拎回家</text> | |||
| </view> | |||
| <view class='xsCon'> | |||
| <view wx:for="{{xslist}}" wx:key="index"> | |||
| <view class='igBox'data-couponId="{{item.couponId}}" data-couponChannelId="{{item.id}}" data-targetAd="{{item.targetAd}}" bindtap='gotodetail'> | |||
| <image src='{{xslist[index].coverImg}}' mode='widthFix' class='imageH' ></image> | |||
| <view class='imTit'>{{xslist[index].title}}</view> | |||
| </view> | |||
| <!--限时抢购 --> | |||
| <view class='toutiao1' wx:if="{{showQg&&ifStoreApp!=1}}"> | |||
| <view class='xianshi' bindtap='gotoRushBuy'> | |||
| <text>限时专区</text> | |||
| <text>限时惊爆价 轻松拎回家</text> | |||
| </view> | |||
| <view class='xsCon'> | |||
| <view wx:for="{{xslist}}" wx:key="index"> | |||
| <view class='igBox' data-couponId="{{item.couponId}}" data-couponChannelId="{{item.id}}" data-targetAd="{{item.targetAd}}" bindtap='gotodetail'> | |||
| <image src='{{xslist[index].coverImg}}' mode='widthFix' class='imageH'></image> | |||
| <view class='imTit'>{{xslist[index].title}}</view> | |||
| </view> | |||
| <view> | |||
| <view class='igBox' bindtap='gotoRushBuy'> | |||
| <image src='{{more}}' mode='widthFix' class='more' ></image> | |||
| <view class='imTit'>更多...</view> | |||
| </view> | |||
| </view> | |||
| <view> | |||
| <view class='igBox' bindtap='gotoRushBuy'> | |||
| <image src='{{more}}' mode='widthFix' class='more'></image> | |||
| <view class='imTit'>更多...</view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| <view class="game-entry" bindtap='gotogame'> | |||
| <image src="{{usergift}}" mode="widthFix" class="gameimg"></image> | |||
| </view> | |||
| <!-- 爆款专区 --> | |||
| <c-hot id="hot"/> | |||
| <view class='product' wx:if="{{showTopic}}" bindtap='gotoTopic'> | |||
| <image src='{{cover}}' mode='widthFix' ></image> | |||
| </view> | |||
| <c-coupons id="lists" bind:myevent="onGetCode" class="business" loadingtext="{{loadingtext}}" loading="{{loading}}" /> | |||
| <!-- 游戏蒙层 --> | |||
| <g-entry id="listss" wx:if="{{showGame&&!played&&!havePlayEd}}" gamedata="{{gamedata}}" bind:myevent="" /> | |||
| <!-- 广告蒙层 --> | |||
| <c-advertisement id="advertisement" wx:if="{{showGg&&!played&&!havePlayEd1}}" ggdata="{{ggdata}}"/> | |||
| </view> | |||
| <view class="game-entry" bindtap='gotogame'> | |||
| <image src="{{usergift}}" mode="widthFix" class="gameimg"></image> | |||
| </view> | |||
| <!-- 爆款专区 --> | |||
| <c-hot id="hot" /> | |||
| <view class='product' wx:if="{{showTopic}}" bindtap='gotoTopic'> | |||
| <image src='{{cover}}' mode='widthFix'></image> | |||
| </view> | |||
| <c-coupons id="lists" bind:myevent="onGetCode" class="business" loadingtext="{{loadingtext}}" loading="{{loading}}" /> | |||
| <!-- 游戏蒙层 --> | |||
| <g-entry id="listss" wx:if="{{showGame&&!played&&!havePlayEd}}" gamedata="{{gamedata}}" bind:myevent="" /> | |||
| <!-- 广告蒙层 --> | |||
| <c-advertisement id="advertisement" wx:if="{{showGg&&!played&&!havePlayEd1}}" ggdata="{{ggdata}}" /> | |||
| </view> | |||
| <!-- 顶部签到成长值 --> | |||
| <view class='signin' wx:if="{{fistLogin}}" animation="{{alphaData}}"> | |||
| <view class='signin' wx:if="{{fistLogin}}" animation="{{alphaData}}"> | |||
| <open-data class="open" type="userAvatarUrl"></open-data> | |||
| <text class='text'>您今日签到成功,获得{{fistLogin}}成长值</text> | |||
| </view> | |||
| </view> | |||
| @@ -2,6 +2,11 @@ | |||
| page{ | |||
| background: #F4F5F9; | |||
| } | |||
| .color_box{ | |||
| /* padding-top: 20rpx; */ | |||
| /* background-image: linear-gradient(#DC143C, #F4F5F9); */ | |||
| background-color: #F4F5F9; | |||
| } | |||
| .underlingImg{ | |||
| width: 30rpx; | |||
| @@ -1,5 +1,5 @@ | |||
| <navbar text="我的" background='#FD832D' color="white"></navbar> | |||
| <view class="user" style="padding-top:{{navigationBarHeight}};"> | |||
| <view class="user"> | |||
| <view bindlongtap='showVersion' class='version'> | |||
| <view wx:if="{{flag=='show'}}">版本号:{{appVersion}}</view> | |||
| <view wx:if="{{flag=='hidden'}}"></view> | |||
| @@ -4,7 +4,7 @@ | |||
| "ignore": [] | |||
| }, | |||
| "setting": { | |||
| "urlCheck": true, | |||
| "urlCheck": false, | |||
| "es6": true, | |||
| "enhance": false, | |||
| "postcss": true, | |||
| @@ -95,6 +95,13 @@ | |||
| "pathName": "pages/index/index", | |||
| "query": "type=cd&couponChannelId=420885883373359104", | |||
| "scene": null | |||
| }, | |||
| { | |||
| "id": -1, | |||
| "name": "pages/main/index", | |||
| "pathName": "pages/main/index", | |||
| "query": "type=cd&couponChannelId=489599575725629440", | |||
| "scene": null | |||
| } | |||
| ] | |||
| } | |||
| @@ -549,7 +549,7 @@ module.exports = { | |||
| 'url': baseUrl + 'leftarrows.png', | |||
| 'name': '左箭头' | |||
| }, | |||
| 'barcode': { | |||
| 'barcode': {//换肤 | |||
| 'url': baseUrl + 'lqcbarcode.png', | |||
| 'name': '二维码' | |||
| }, | |||