From d681994982d2aba61a39f57434d4fcf6c3f49991 Mon Sep 17 00:00:00 2001 From: ltlzx <942659938@qq.com> Date: Wed, 20 Jul 2022 13:46:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 4 +- app.json | 15 +- project.config.json | 160 +- qf_happyvote/pages/index/index.js | 1849 ++++++++++++++++---- qf_happyvote/pages/index/index.wxml | 35 +- qf_happyvote/pages/index/index.wxss | 1806 ++++++++++++++++--- qf_happyvote/pages/templates/detail.wxml | 240 ++- qf_happyvote/pages/templates/footer.wxml | 37 +- qf_happyvote/pages/templates/index.wxml | 162 +- qf_happyvote/pages/templates/index.wxss | 3 + qf_happyvote/pages/templates/join.wxml | 181 +- qf_happyvote/pages/templates/joinok.wxml | 2 +- qf_happyvote/pages/templates/mall.wxml | 306 ++-- qf_happyvote/pages/templates/mall.wxss | 2 +- qf_happyvote/pages/templates/ranking.wxml | 92 +- qf_happyvote/pages/templates/rule.wxml | 8 +- qf_happyvote/pages/web-view/index.js | 1 + qf_happyvote/resource/js/function.js | 115 +- qf_happyvote/resource/wxParse/wxParse.wxss | 15 +- we7/resource/js/util.js | 500 +++--- 20 files changed, 4311 insertions(+), 1222 deletions(-) diff --git a/app.js b/app.js index 6c42378..2f68947 100644 --- a/app.js +++ b/app.js @@ -1,5 +1,7 @@ App({ - onLaunch: function() {}, + onLaunch: function() { + + }, onShow: function() {}, onHide: function() {}, onError: function(e) {}, diff --git a/app.json b/app.json index 1cac31b..a1128b3 100644 --- a/app.json +++ b/app.json @@ -3,14 +3,21 @@ "qf_happyvote/pages/index/index", "we7/pages/index/index", "we7/pages/user/index/index", - "qf_happyvote/pages/web-view/index" + "qf_happyvote/pages/web-view/index", + "qf_happyvote/pages/templates/personal", + "qf_happyvote/pages/success/success" ], "window": { "navigationBarTextStyle": "white", - "navigationBarTitleText": "", - "navigationBarBackgroundColor": "#000", - "backgroundColor": "#f5f5f5", + "navigationBarTitleText": "中国深圳店长节评选", + "navigationBarBackgroundColor": "#F7694E", + "backgroundColor": "#f2f2f2", "enablePullDownRefresh": true }, + "permission": { + "scope.userLocation": { + "desc": "你的位置信息将用于小程序位置接口的效果展示" + } + }, "sitemapLocation": "sitemap.json" } \ No newline at end of file diff --git a/project.config.json b/project.config.json index c5360f8..0f43423 100644 --- a/project.config.json +++ b/project.config.json @@ -1,82 +1,82 @@ { - "description": "项目配置文件", - "packOptions": { - "ignore": [] - }, - "setting": { - "urlCheck": true, - "es6": true, - "enhance": false, - "postcss": true, - "preloadBackgroundData": false, - "minified": true, - "newFeature": false, - "coverView": true, - "nodeModules": false, - "autoAudits": false, - "showShadowRootInWxmlPanel": true, - "scopeDataCheck": false, - "uglifyFileName": false, - "checkInvalidKey": true, - "checkSiteMap": true, - "uploadWithSourceMap": true, - "compileHotReLoad": false, - "babelSetting": { - "ignore": [], - "disablePlugins": [], - "outputPath": "" - }, - "useIsolateContext": true, - "useCompilerModule": false, - "userConfirmedUseCompilerModuleSwitch": false, - "lazyloadPlaceholderEnable": false, - "useMultiFrameRuntime": true, - "useApiHook": true, - "useApiHostProcess": true, - "enableEngineNative": false, - "userConfirmedBundleSwitch": false, - "packNpmManually": false, - "packNpmRelationList": [], - "minifyWXSS": true, - "showES6CompileOption": false - }, - "compileType": "miniprogram", - "libVersion": "2.14.0", - "appid": "wxec9f98ac8b875086", - "projectname": "miniprogram-1", - "debugOptions": { - "hidedInDevtools": [] - }, - "scripts": {}, - "isGameTourist": false, - "simulatorType": "wechat", - "simulatorPluginLibVersion": {}, - "condition": { - "search": { - "list": [] - }, - "conversation": { - "list": [] - }, - "plugin": { - "list": [] - }, - "game": { - "list": [] - }, - "gamePlugin": { - "list": [] - }, - "miniprogram": { - "list": [ - { - "id": 0, - "name": "qf_happyvote/pages/index/index", - "pathName": "qf_happyvote/pages/index/index", - "query": "voteid=20&joinid=92", - "scene": null - } - ] - } - } + "description": "项目配置文件", + "packOptions": { + "ignore": [] + }, + "setting": { + "urlCheck": false, + "es6": true, + "enhance": false, + "postcss": true, + "preloadBackgroundData": false, + "minified": true, + "newFeature": false, + "coverView": true, + "nodeModules": false, + "autoAudits": false, + "showShadowRootInWxmlPanel": true, + "scopeDataCheck": false, + "uglifyFileName": false, + "checkInvalidKey": true, + "checkSiteMap": true, + "uploadWithSourceMap": true, + "compileHotReLoad": false, + "useMultiFrameRuntime": true, + "useApiHook": true, + "useApiHostProcess": true, + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + }, + "enableEngineNative": false, + "useIsolateContext": false, + "userConfirmedBundleSwitch": false, + "packNpmManually": false, + "packNpmRelationList": [], + "minifyWXSS": true, + "disableUseStrict": false, + "minifyWXML": true, + "showES6CompileOption": false, + "useCompilerPlugins": false + }, + "compileType": "miniprogram", + "libVersion": "2.15.0", + "appid": "wxec9f98ac8b875086", + "projectname": "wxapp", + "debugOptions": { + "hidedInDevtools": [] + }, + "scripts": {}, + "isGameTourist": false, + "simulatorType": "wechat", + "simulatorPluginLibVersion": {}, + "condition": { + "search": { + "list": [] + }, + "conversation": { + "list": [] + }, + "plugin": { + "list": [] + }, + "game": { + "list": [] + }, + "gamePlugin": { + "list": [] + }, + "miniprogram": { + "list": [ + { + "id": 0, + "name": "qf_happyvote/pages/index/index", + "pathName": "qf_happyvote/pages/index/index", + "query": "voteid=20&joinid=92", + "scene": null + } + ] + } + } } \ No newline at end of file diff --git a/qf_happyvote/pages/index/index.js b/qf_happyvote/pages/index/index.js index 791719d..0b0e063 100644 --- a/qf_happyvote/pages/index/index.js +++ b/qf_happyvote/pages/index/index.js @@ -1,8 +1,12 @@ -var a = getApp(), i = wx.getRecorderManager(), t = (wx.getBackgroundAudioManager(), -require("../../resource/js/function.js")); -let goodsList = [ - {actEndTime: '2021/08/08 10:00:43'} - ] +const { join } = require("../../resource/js/function.js"); + +var a = getApp(), + i = wx.getRecorderManager(), + t = (wx.getBackgroundAudioManager(), + require("../../resource/js/function.js")); +let goodsList = [{ + actEndTime: '2021/9/08 10:00:43' +}] Page({ data: { countDownList: [], @@ -21,7 +25,10 @@ Page({ buttoncolor: "", isvotegiftpop: !1, isgift: !1, - userlogin: "1" + // isgift:true, + userlogin: "1", + isIphoneX: false, + open: false }, //搜索显示 search: { @@ -48,31 +55,36 @@ Page({ }, // 资源控制 join: { - images: [ { - isadd: !1, - src: "../../resource/image/iconfont-tianjia.png" - }, { - isadd: !1, - src: "../../resource/image/iconfont-tianjia.png" - }, { - isadd: !1, - src: "../../resource/image/iconfont-tianjia.png" - }, { - isadd: !1, - src: "../../resource/image/iconfont-tianjia.png" - } ], - video: [ { + images: [{ + isadd: !1, + src: "../../resource/image/iconfont-tianjia.png" + }, { + isadd: !1, + src: "../../resource/image/iconfont-tianjia.png" + }, { + isadd: !1, + src: "../../resource/image/iconfont-tianjia.png" + }, { + isadd: !1, + src: "../../resource/image/iconfont-tianjia.png" + }, + { + isadd: !1, + src: "../../resource/image/iconfont-tianjia.png" + } + ], + video: [{ isadd: !1, src: "", name: "点击选择上传视频:未选择", url: "" - } ], - music: [ { + }], + music: [{ isadd: !1, src: "", name: "点我开始录音", url: "" - } ], + }], subbtn: { isdisabled: !0, text: "确认提交" @@ -89,9 +101,11 @@ Page({ area: '', typesId: '', typesName: '', - region:[], + region: [], }, joinok: {}, + personal:{}, + mallId:[0,1], checking: {}, detail: { swiperheight: 60, @@ -123,13 +137,15 @@ Page({ ispulluploading: !1, nowType: 'renqi', tabs: 'shangcheng', - mall_list: [] + mall_list: [], + rankIndex: '0', + rankArea: ['全部','罗湖区', '南山区', '福田区', '宝安区', '龙华区', '龙岗区', '光明区', '盐田区','大鹏新区','前海新区'] }, mall: { nowNav: 1, areaIndex: '' }, - area:{ + area: { region: ['广东省', '深圳市', '罗湖区'] }, rule: {}, @@ -141,28 +157,619 @@ Page({ content: "", length: "" }, - memberinfo:{ + memberinfo: { id: 0 }, + CheckItem: [{ + value: '1', + name: '承诺48小时无条件退换', + checked: false + }, + { + value: '2', + name: '承若公示制度,无欺诈行为、无假冒伪劣、“三无”过期商品', + checked: false + }, + { + value: '3', + name: '营业场所需挂牌上岗、主动热情提供售前、售中、售后服务', + checked: false + }, + { + value: '4', + name: '建立高效消费者投诉处理,投诉有专人负责并有处理结果', + checked: false + }, + { + value: '5', + name: '年度内在工商、税务、质检、物价、卫生、劳动、安监、消协、银行等部门或机构没有被处罚记录或不良记录', + checked: false + } + ], + checkNum: 0, + giftList: [], + isArea: '罗湖区', + Addresslist:[], + hairCurl:{ + activeIndex:1 , + update:{ + type:1, + name:'', + img:'../../resource/image/iconfont-tianjia.png', + count:'', + content:'', + discounts:'', + money:'', + start_time:'', + end_time:'', + isadd: !1, + address:'', + id:'' + } + + + }, + hairCurlDate:{}, + myjoin:{}, + luckDraw:{ + opoUpShow:false, + winsShow:false, + timesNoShow:false, + awardsList: {}, + awardIndex:0, + list: [], + statusBarHeight: getApp().globalData.statusBarHeight, + scrollHeight: 200, + windowWidth:0, + windowHeight:0, + size: 600, + awardsConfig: { + slicePrizes: [ + // { text: "猪脚饭", img: "../../resource/image/l0g0.png", title: "积分券x1", num: "20", x: "1" }, + // { text: "鸡排饭", img: "../../resource/image/l0g0.png", title: "积分券x1", num: "20", x: "2" }, + // { text: "卤肉饭", img: "../../resource/image/l0g0.png", title: "积分券x1", num: "20", x: "1" }, + // { text: "香肠饭", img: "../../resource/image/l0g0.png", title: "积分券x3", num: "20", x: "2" }, + // { text: "酸菜鱼", img: "../../resource/image/l0g0.png", title: "积分券x1", num: "20", x: "1" }, + // { text: "水煮肉片", img: "../../resource/image/l0g0.png", title: "积分券x1", num: "20", x: "2" }, + // { text: "梅菜扣肉", img: "../../resource/image/l0g0.png", title: "积分券x1", num: "20", x: "1" }, + // { text: "鸡丁饭", img: "../../resource/image/l0g0.png", title: "积分券x1", num: "20", x: "1" } + ], + }, + }, + luckDrawDates:{}, + luckDrawRinkDates:[], + myLottery:{ + status:0, + page:1, + activeIndex:0, + list:{}, + showDialog: false, + qrcode:'' + }, + destroyInfo:{}, + destroyList:{ + status:0, + page:1, + activeIndex:0, + list:{}, + }, + showDialog:false, + giftData:{ + activeIndex:0, + list:{}, + } + }, - bindPickerChange: function(e) { - var _this = this; - _this.setData({ - 'join.typesId': _this.data.join.joinInfo.types[e.detail.value].id, - 'join.typesName': _this.data.join.joinInfo.types[e.detail.value].name + addCancel(e){ + console.info(e) + var t=this; + a.util.request({ + url: "entry/wxapp/addCancel", + data: e, + success: function (a) { + console.log(a.data); + t.setData({ + showpage: "destroy", + 'destroyInfo.id':a.data.data + }); + console.info(t.data.destroyInfo) + + } }) - if( _this.data.join.region.length != 0 && _this.data.join.typesName != null){ - _this.getshangquan() + }, + cancel(e){ + console.info(e) + a.util.request({ + url: "entry/wxapp/cancel", + data: { + id:e.currentTarget.dataset.id, + user_id: e.currentTarget.dataset.user, + }, + success: function (res) { + console.info(res) + wx.showToast({ + title: '核销成功!' + }) + this.setData({ + 'destroyInfo.ishexiao': true + }) + } + }); + }, + saoma(){ + // 只允许从相机扫码 + var i=this; + wx.scanCode({ + onlyFromCamera: true, + success (res) { + console.log(res) + + i.testhexiao(res); + } + }) + }, + getQueryString(name,url) { + var reg = new RegExp('(^|&|/?)' + name + '=([^&|/?]*)(&|/?|$)', 'i') + var r = url.substr(1).match(reg) + if (r != null) { + // console.log("r = " + r) + // console.log("r[2] = " + r[2]) + return r[2] + } + return null; + + }, + testhexiao(i){ + + var path=this.getQueryString('scene',i.path), + // type=this.getQueryString('path'), + d = decodeURIComponent(path).split(","); + console.info(path) + console.info(d) + var user=wx.getStorageSync('userInfo').memberInfo + var e=this, + c = d[2], + id=d[0], + r = d[1]; + // console.info(d) + a.util.request({ + url: "entry/wxapp/getawardinfo", + data: { + user_id: r, + award_id: c, + id:id + }, + success: function (a) { + console.log(a.data); + var data={ + id:id, + user_id:r, + award_id:c, + source:a.data.data.source, + shop_user_id:user.id + } + e.setData({ + showpage: "destroy", + destroyInfo:a.data.data.info, + 'destroyInfo.user_id':r + }); + e.addCancel(data) + } + }) + }, + /** + * 控制 pop 的打开关闭 + * 该方法作用有2: + * 1:点击弹窗以外的位置可消失弹窗 + * 2:用到弹出或者关闭弹窗的业务逻辑时都可调用 + */ + toggleDialog(e) { + + this.setData({ + 'myLottery.showDialog': !this.data.myLottery.showDialog + }) + + if(this.data.myLottery.showDialog){ + this.setData({ + 'myLottery.qrcode':'https://xcx.zgzmdz.com/addons/qf_happyvote/hb/'+ e.currentTarget.dataset.qrcode, + }) + } + }, + LucktoggleDialog(e) { + this.setData({ + showDialog: !this.data.showDialog + }) + if(this.data.showDialog){ + this.lotteryranking() + } + + }, + lotteryranking(){ + var i=this + a.util.request({ + url: "entry/wxapp/lotteryranking", + data: { + }, + success: function (a) { + console.log(a.data); + i.setData({ + luckDrawRinkDates: a.data.data.list + }) + console.info(a.data.data.list) + + } + }) + }, + tabNavdestroyList(e){ + var i=this; + i.setData({ + 'destroyList.activeIndex': e.currentTarget.dataset.types, + 'destroyList.status': e.currentTarget.dataset.types + }); + i.getdestroyList() + }, + tabNavmyLottery(e){ + console.info(e) + var i=this; + i.setData({ + 'myLottery.activeIndex': e.currentTarget.dataset.types, + 'myLottery.status': e.currentTarget.dataset.types + }); + i.getmyLottery() + }, + tabNavGift(e){ + console.info(e) + var i=this; + i.setData({ + 'giftData.activeIndex': e.currentTarget.dataset.types, + }); + }, + luckDrawLoad(){ + var that = this; + that.initAdards(true) + wx.getSystemInfo({ + success: function (res) { + that.setData({ + 'luckDraw.windowWidth': res.windowWidth, + 'luckDraw.contentHeight': res.windowHeight, + 'luckDraw.windowHeight': res.windowHeight, + 'luckDraw.scrollHeight': res.windowHeight - res.windowWidth / 750 * (getApp().globalData.statusBarHeight * 2 + 98) + }); + }, + }) + let list = that.data.luckDraw.awardsConfig.slicePrizes + //外框灯 + that.setData({ + 'luckDraw.list': list.concat(list) + }); + }, + //初始化奖品数据 计算角度 + initAdards(type) { + var that = this; + var user=wx.getStorageSync('userInfo').memberInfo + a.util.request({ + url: "entry/wxapp/getlottery", + data: { + user_id: user.id, + }, + showLoading:type, + success: function (res) { + console.info(res) + that.setData({ + luckDrawDates:res.data.data, + 'luckDraw.awardsConfig.slicePrizes': res.data.data.award, + 'luckDrawDates.avatar': user.avatar, + }) + var awardsConfig = that.data.luckDraw.awardsConfig; + var t = awardsConfig.slicePrizes.length; // 选项长度 + var e = 1 / t, + i = 360 / t, + r = i - 90; + for (var g = 0; g < t; g++) { + awardsConfig.slicePrizes[g].item2Deg = g * i + 90 - i / 2 + "deg"; //当前下标 * 360/长度 + 90 - 360/长度/2 + awardsConfig.slicePrizes[g].afterDeg = r + "deg"; + awardsConfig.slicePrizes[g].opacity = '1'; + } + console.info(awardsConfig) + that.setData({ + 'luckDraw.turnNum': e, // 页面的单位是turn + 'luckDraw.awardsConfig': awardsConfig, + }) + } + }); + + + }, + /** + * 抽奖处理函数: + */ + getLottery: function () { + let that = this; + + + var user=wx.getStorageSync('userInfo').memberInfo + a.util.request({ + url: "entry/wxapp/lottery", + data: { + user_id: user.id, + lottery_id:that.data.luckDrawDates.lottery_id + }, + showLoading:false, + success: function (res) { + console.info(res) + // 获取奖品配置 + + let awardsConfig = that.data.luckDraw.awardsConfig, + runNum = 10, + len = awardsConfig.slicePrizes.length, + awardIndex; + for(var i=0;i item.name); + this.setData({ + 'join.joinInfo.mall_list': multiArray + }) + } + }, + bindPickerChange: function (e) { + var _this = this; + console.log(e); + this.setData({ + 'join.mallId': this.data.Addresslist[e.detail.value[0]].list[e.detail.value[1]].id, + 'join.mallName':this.data.Addresslist[e.detail.value[0]].list[e.detail.value[1]].name + }) + // if (_this.data.join.region.length != 0 && _this.data.join.typesName != null) { + // _this.getshangquan() + // } + + }, + bindPickerChange4(e) { var _this = this; _this.setData({ 'join.mallId': _this.data.join.joinInfo.mall_list[e.detail.value].id, 'join.mallName': _this.data.join.joinInfo.mall_list[e.detail.value].name }) }, - getshangquan(){ + getshangquan() { var _this = this; a.util.request({ url: "entry/wxapp/Getmalls", @@ -171,65 +778,198 @@ Page({ type: _this.data.join.typesId, area: _this.data.join.region }, - success: function(res) { - _this.setData({ - 'join.joinInfo.mall_list': res.data.data.mall_list - }) + success: function (res) { + _this.setData({ + 'join.joinInfo.mall_list': res.data.data.mall_list + }) } }) }, - bindPickerChange2: function(e) { + bindPickerChange2: function (e) { var _this = this; _this.setData({ 'join.storeId': _this.data.join.joinInfo.store_types[e.detail.value].id, 'join.storeName': _this.data.join.joinInfo.store_types[e.detail.value].name }) }, - bindPickerChange3(e){ + bindPickerChange3(e) { var _this = this; this.setData({ 'join.region': e.detail.value }) - if( _this.data.join.region.length != 0 && _this.data.join.typesName != null){ + if (_this.data.join.region.length != 0 && _this.data.join.typesName != null) { _this.getshangquan() } }, - tab1(e){ + rnakAreaChange(e) { + var i = this; + let index = e.detail.value; + let area = this.data.ranking.rankArea[index] == '全部' ? '' : this.data.ranking.rankArea[index]; + a.util.request({ + url: 'entry/wxapp/RankingsLevel', + data: { + area: area, + rankings_type: i.data.ranking.tabs, + start: 0, + type: i.data.ranking.nowType || 'renqi', + limit: i.data.ranking.limit + }, + success: function (res) { + if (res.errno == 1) { + return; + } + i.setData({ + 'ranking.mall_list': res.data.data, + 'ranking.rankIndex': index + }) + } + }) + }, + tab1(e) { + let area = this.data.ranking.rankArea[this.data.ranking.rankIndex] == '全部' ? '' : this.data.ranking.rankArea[this.data.ranking.rankIndex]; var status = e.currentTarget.dataset.status - var _this = this; - _this.setData({ + var i = this; + i.setData({ 'ranking.tabs': status }) + + a.util.request({ + url: 'entry/wxapp/RankingsLevel', + data: { + area: area, + rankings_type: i.data.ranking.tabs, + start: 0, + type: i.data.ranking.nowType || 'renqi', + limit: i.data.ranking.limit + }, + success: function (res) { + console.log(res); + i.setData({ + 'ranking.mall_list': res.data.data + }) + } + }) }, - tab(e){ - var _this = this; + tab(e) { + let area = this.data.ranking.rankArea[this.data.ranking.rankIndex] == '全部' ? '' : this.data.ranking.rankArea[this.data.ranking.rankIndex]; + var i = this; var type = e.currentTarget.dataset.type - _this.setData({ + i.setData({ 'ranking.nowType': type }) - // if( _this.data.ranking.tabs == 'dianzhang' ){ - t.getrankings(_this,type) - // } else { - _this.getMall() - // } + // // if( _this.data.ranking.tabs == 'dianzhang' ){ + // t.getrankings(_this, type) + // // } else { + // _this.getMall() + // // } + a.util.request({ + url: 'entry/wxapp/RankingsLevel', + data: { + area: area, + rankings_type: i.data.ranking.tabs, + start: 0, + type: i.data.ranking.nowType || 'renqi', + limit: i.data.ranking.limit + }, + success: function (res) { + i.setData({ + 'ranking.mall_list': res.data.data + }) + } + }) }, + bindRegionChange: function (e) { console.log('picker发送选择改变,携带值为', e.detail.value) this.setData({ - 'area.region': e.detail.value + 'area.region': e.detail.value + }) + this.mall(this.data.voteid, this.data.uid) + }, + mapchooseLocation() { + let _this=this; + wx.chooseLocation({ + success: res => { + let area = res.address.slice(6, 9); + // this.getshop(area); + this.setData({ + 'join.joinInfo.store_Address': res.name + }) + }, + fail:function(){ + wx.getSetting({ + success: res => { + console.log(res); + if (!res.authSetting['scope.userLocation']) { + wx.showModal({ + title: '是否授权当前位置', + content: '需要获取您的地理位置,请确认授权,否则地图功能将无法使用', + success: function (tip) { + if (tip.confirm) { + wx.openSetting({ + success: function (data) { + if (data.authSetting["scope.userLocation"] === true) { + wx.showToast({ + title: '授权成功', + icon: 'success', + duration: 1000 + }) + //授权成功之后,再调用chooseLocation选择地方 + wx.chooseLocation({ + success: function(res) { + _this.setData({ + 'join.joinInfo.store_Address': res.name + }) + }, + }) + } else { + wx.showToast({ + title: '授权失败', + icon: 'success', + duration: 1000 + }) + } + } + }) + } + } + }) + } + } + }) + } + }) + }, + changeTab(e) { + let area = e.target.dataset.area; + if (area == this.data.isArea) { + return; + } + this.data.area.region[2] = area; + this.setData({ + isArea: area }) - this.mall(this.data.voteid,this.data.uid) + this.mall(this.data.voteid, this.data.uid); }, - onLoad: function(i) { + onLoad: function (i) { // 倒计时 - let endTimeList = []; - // 将活动的结束时间参数提成一个单独的数组,方便操作 - goodsList.forEach(o => {endTimeList.push(o.actEndTime)}) - this.setData({ actEndTimeList: endTimeList}); - // 执行倒计时函数 - this.countDown(); + // let endTimeList = []; + // // 将活动的结束时间参数提成一个单独的数组,方便操作 + // goodsList.forEach(o => { + // endTimeList.push(o.actEndTime) + // }) + // this.setData({ + // actEndTimeList: endTimeList + // }); + // - var e = this, o = wx.getStorageSync("userInfo"); + if (this.isIphoneX()) { + this.setData({ + ['config.isIphoneX']: true + }) + } + var e = this, + o = wx.getStorageSync("userInfo"); if ("" != o.memberInfo && void 0 !== o.memberInfo) { var n = e.data.config; n.userlogin = 0, e.setData({ @@ -239,57 +979,132 @@ Page({ console.log(s), e.setData({ memberinfo: s }); + }else{ + e.bindGetUserInfo() } t.initpage(e); - if (i.scene) var d = decodeURIComponent(i.scene).split(","), c = d[0], r = d[1]; else var c = i.voteid, r = i.joinid; - "" != c && c > 0 && (e.setData({ - voteid: c - }), "" != r && r > 0 && setTimeout(function(){ + if(i.type!=1){ + if (i.scene) var d = decodeURIComponent(i.scene).split(","), + c = d[0], + r = d[1]; + else var c = i.voteid, + r = i.joinid; + "" != c && c > 0 && (e.setData({ + voteid: c + }), "" != r && r > 0 && setTimeout(function () { + a.util.request({ + url: "entry/wxapp/joininfo", + data: { + voteid: e.data.voteid, + joinid: r + }, + success: function (a) { + console.log(a.data); + var i = a.data.data, + t = e.data.detail; + + t.id = i.id, t.username = i.username, t.images = i.images, t.resume = i.resume, + t.telephone = i.telephone, t.pollcount = i.pollcount, t.gifts = i.gifts, t.giftrecords = i.giftrecords, + t.ranking = i.ranking, t.haibao = !1, t.video = i.video, t.music = i.music, t.reply = i.reply, + t.isreply = !1, t.imgurl = "", t.imgbg = "0", e.setData({ + detail: t, + showpage: "detail" + }); + } + }) + }, 100)) + }else{ + var d = decodeURIComponent(i.scene).split(","), + c = d[2], + id=d[0], + + r = d[1]; a.util.request({ - url: "entry/wxapp/joininfo", + url: "entry/wxapp/getawardinfo", data: { - voteid: e.data.voteid, - joinid: r + user_id: r, + award_id: c, + id:id }, - success: function(a) { + success: function (a) { console.log(a.data); - var i = a.data.data, t = e.data.detail; - t.id = i.id, t.username = i.username, t.images = i.images, t.resume = i.resume, - t.telephone = i.telephone, t.pollcount = i.pollcount, t.gifts = i.gifts, t.giftrecords = i.giftrecords, - t.ranking = i.ranking, t.haibao = !1, t.video = i.video, t.music = i.music, t.reply = i.reply, - t.isreply = !1, t.imgurl = "", t.imgbg = "0", e.setData({ - detail: t, - showpage: "detail" + var data={ + id:id, + user_id:r, + award_id:c, + source:a.data.data.source, + shop_user_id:o.memberInfo.id + } + e.setData({ + showpage: "destroy", + destroyInfo:a.data.data.info }); + e.addCancel(data) } }) - },100)) + + } + + }, + + getshop(area) { + var _this = this; + let area1 = area || ''; + a.util.request({ + url: 'entry/wxapp/shop', + data: { + // area: area1, + voteid: this.data.voteid + }, + success: function (res) { + let mall=[]; + mall[0] = res.data.data.map(item => item.area); + mall[1] = res.data.data[0].list.map(item => item.name); + _this.setData({ + Addresslist:res.data.data, + 'join.joinInfo.mall_list': mall + }) + } + }) }, - close(){ + getstoretype() { + var _this = this; + a.util.request({ + url: 'entry/wxapp/storetype', + success: function (res) { + _this.setData({ + 'join.joinInfo.store_types': res.data.data + }) + } + }) + }, + close() { var _this = this; _this.setData({ - 'config.userlogin':0, + 'config.userlogin': 0, footerindex: 1 }) t.initpage(_this) }, - tabNav(e){ + tabNav(e) { this.setData({ - 'mall.nowNav':e.currentTarget.dataset.types + 'mall.nowNav': e.currentTarget.dataset.types }) - this.mall(this.data.voteid,this.data.uid) + this.mall(this.data.voteid, this.data.uid) }, - mall(e,uid){ + mall(e, uid) { var _this = this; a.util.request({ - url: 'entry/wxapp/voteinfo', + url: 'entry/wxapp/index', data: { + state:'aa', area: _this.data.area.region, - voteid: e, + // voteid: e, uid, - type: _this.data.mall.nowNav + type: _this.data.mall.nowNav, + position: 1 }, - success: function(res){ + success: function (res) { _this.setData({ mall: res.data.data, 'index.is_join': res.data.data.is_join, @@ -299,34 +1114,40 @@ Page({ } }) }, - onReady: function() {}, - onShow: function() {}, - onHide: function() {}, - onUnload: function() {}, - onShareAppMessage: function(i) { - var t = this, e = t.data.detail; + onReady: function () {}, + onShow: function () {}, + onHide: function () {}, + onUnload: function () {}, + onShareAppMessage: function (i) { + var t = this, + e = t.data.detail; return "" != e.id ? (console.log(t.data.voteid), console.log(e.id), { title: t.data.config.wxappdetailsharetitle.replace("{username}", e.username), path: "/qf_happyvote/pages/index/index?voteid=" + t.data.voteid + "&joinid=" + e.id, imageUrl: e.images[0], - success: function(i) { + success: function (i) { a.util.message("转发成功", "", "success"); } }) : { - title: t.data.config.wxappsharetitle, + // title: t.data.config.wxappsharetitle, + title:'深圳店长节评选', path: "/qf_happyvote/pages/index/index?voteid=" + t.data.voteid, - imageUrl: t.data.config.wxappshareimage, - success: function(i) { + // imageUrl: t.data.config.wxappshareimage, + success: function (i) { a.util.message("转发成功", "", "success"); } }; }, - bindGetUserInfo: function(i) { + bindGetUserInfo: function (i) { console.log(i.detail.userInfo); - var e = this, o = e.data.config; + var e = this, + o = e.data.config; o.userlogin = 0, e.setData({ config: o - }), a.util.showLoading(), a.util.getUserInfo(function(a) { + }), + a.util.showLoading(), + a.util.getUserInfo(function (a) { + console.info(a) var i = wx.getStorageSync("userInfo").memberInfo; e.setData({ memberinfo: i, @@ -334,38 +1155,186 @@ Page({ }), t.initpage(e), wx.hideLoading(); }); }, - getMall(){ + getgift() { var i = this; a.util.request({ - url: "entry/wxapp/MallRankings", + url: "entry/wxapp/gift", data: { - start: i.data.ranking.start, + start: 0, voteid: i.data.voteid, + limit: 10 + }, + success: function (res) { + console.log(res) + i.setData({ + giftList: res.data.data + }) + } + }); + }, + getMall() { + var i = this; + a.util.request({ + url: "entry/wxapp/RankingsLevel", + data: { + rankings_type: i.data.ranking.tabs, + start: 0, type: i.data.ranking.nowType || 'renqi', limit: i.data.ranking.limit }, - success: function(res) { + success: function (res) { i.setData({ 'ranking.mall_list': res.data.data }) } }); }, - viewjump: function(a) { - var i = this, e = a.currentTarget.dataset.topage; - console.log(e) - console.log("------------------") - if( e == 'mall' ){ + // 优惠卷列表 + myticket(){ + var i = this; + var user=wx.getStorageSync('userInfo').memberInfo + a.util.request({ + url: "entry/wxapp/myticket", + data: { + user_id: user.id, + page: 1, + limit: 10 + }, + success: function (res) { + console.info(res) + i.setData({ + 'hairCurlDate': res.data.data + }) + } + }); + }, + //个人中心 + myjoin(){ + var i = this; + var user=wx.getStorageSync('userInfo').memberInfo + a.util.request({ + url: "entry/wxapp/myjoin", + data: { + user_id: user.id + }, + success: function (res) { + console.info(res) + i.setData({ + 'myjoin': res.data.data, + 'myjoin.avatar':user.avatar + }) + } + }); + }, + //获取我的奖券列表 + getmyLottery(){ + var i = this; + var user=wx.getStorageSync('userInfo').memberInfo + a.util.request({ + url: "entry/wxapp/myticketlist", + data: { + user_id: user.id, + status:i.data.myLottery.status, + page:i.data.myLottery.page, + limit:10 + }, + success: function (res) { + console.info(res) + i.setData({ + 'myLottery.list': res.data.data.list, + }) + } + }); + }, + //核销列表 + getdestroyList(){ + var i = this; + var user=wx.getStorageSync('userInfo').memberInfo + a.util.request({ + url: "entry/wxapp/cancellist", + data: { + user_id: user.id, + status:i.data.destroyList.status, + page:i.data.destroyList.page, + limit:10 + }, + success: function (res) { + console.info(res) + i.setData({ + 'destroyList.list': res.data.data.list, + }) + } + }); + }, + viewjump: function (a) { + var i = this, + e = a.currentTarget.dataset.topage; + console.info(e) + if (e == 'mall') { + i.setData({ + showpage: e, + footerindex: 1 + }) + } + if (e == 'destroyList') { + i.setData({ + showpage: e, + footerindex: 2 + }) + i.getdestroyList() + } + if(e== 'personal' ){ + i.setData({ + showpage: e, + // showpage: 'luckDraw', + // showpage: 'destroy', + footerindex: 2 + }) + // var path1="qf_happyvote/pages/index/index?scene=4,68471,1&type=1"; + // var path=i.getQueryString('scene',path1), + // d = decodeURIComponent(path).split(","); + // console.info(path) + // console.info(d) + i.myjoin() + + } + if(e== 'myLottery' ){ + i.setData({ + showpage: e, + footerindex: 2 + }) + i.getmyLottery() + } + if(e== 'luckDraw' ){ i.setData({ showpage: e, footerindex: 1 }) + i.luckDrawLoad() } - if( e == 'ranking' ){ + if(e== 'hairCurl' ){ + i.setData({ + showpage: e, + footerindex: 2 + }) + i.myticket() + } + + if (e == 'ranking') { i.getMall() } - if( e == 'myjoin' ){ - if(!wx.getStorageSync('userInfo')){ + if (e == 'gift') { + i.setData({ + showpage: e, + footerindex: 2 + }) + i.votereply() + } + if (e == 'myjoin') { + this.getshop(); + this.getstoretype(); + + if (!wx.getStorageSync('userInfo')) { i.setData({ 'config.userlogin': 1 }) @@ -378,41 +1347,151 @@ Page({ detail: o, footerindex: 1 }); - } else "join" == e || "joinok" == e || "checking" == e ? t.tojoinpage(i) : "ranking" == e ? (t.getrankings(i), - i.setData({ - showpage: e, - footerindex: 3 - })) : "rule" == e ? i.setData({ + } else "join" == e || "joinok" == e || "checking" == e ? t.tojoinpage(i) : "ranking" == e ? (t.getrankings(i), + i.setData({ + showpage: e, + footerindex: 3 + })) : "rule" == e ? (i.setData({ showpage: e, footerindex: 4 - }) : "myjoin" == e && (i.data.config.isupdate ? t.mytojoinpage(i) : t.tojoinpage(i)); + }), i.notice()): "myjoin" == e && (i.data.config.isupdate ? t.mytojoinpage(i) : t.tojoinpage(i)); }, - showsearch: function(a) { - var i = this, t = i.data.search; + votereply(){ + var i=this + var user=wx.getStorageSync('userInfo').memberInfo + a.util.request({ + url: 'entry/wxapp/votereply', + data: { + user_id:user.id + }, + success: function (res) { + console.info(res) + + i.setData({ + 'giftData.list': res.data.data + }) + } + }) + }, + notice(){ + var i=this + a.util.request({ + url: 'entry/wxapp/notice', + data: { + + }, + success: function (res) { + console.info(res) + var content=res.data.data.list[0].message + console.info(content.message) + var article_content = content.replace(//g, '\div>'); + + console.info(article_content) + res.data.data.list[0].message=article_content + i.setData({ + rule: res.data.data.list[0] + }) + console.info(i.data.rule.message) + } + }) + }, + showsearch: function (a) { + var i = this, + t = i.data.search; t.show = !0, i.setData({ search: t }); }, - search: function(a) { - var i = this, e = a.detail.value; - t.search(i, e); + singletab(e) { + var i = this; + var type = e.currentTarget.dataset.type + i.setData({ + 'ranking.nowType': type + }) + a.util.request({ + url: 'entry/wxapp/RankingsLevel', + data: { + rankings_type: 'dianzhang', + start: 0, + voteid: i.data.voteid, + type: i.data.ranking.nowType || 'renqi', + limit: i.data.ranking.limit + }, + success: function (res) { + i.setData({ + 'ranking.mall_list': res.data.data + }) + } + }) + }, + singleBtn(){ + let i=this; + a.util.request({ + url: 'entry/wxapp/RankingsLevel', + data: { + rankings_type: 'dianzhang', + start: 0, + voteid: i.data.voteid, + type: i.data.ranking.nowType || 'renqi', + limit: i.data.ranking.limit + }, + success: function (res) { + if (res.errno == 1) { + return; + } + i.setData({ + 'ranking.mall_list': res.data.data, + showpage:'single' + }) + } + }) }, - jumpwxapp: function(a) { + search: function (a) { + var i = this, + e = a.detail.value; + if (e instanceof Object) { + e = e.joinid; + } + var value = { + joinid: e + } + t.search(i, value); + }, + jumpwxapp: function (a) { var i = this; wx.navigateToMiniProgram({ appId: i.data.config.wxapptoappid, path: i.data.config.wxapptopath, - success: function(a) {} + success: function (a) {} }); }, - imgjumpwxapp: function(a) { - var i = this, t = a.target.dataset.img; + imgjumpwxapp: function (a) { + var i = this, + t = a.target.dataset.img, + {appid,url} = a.target.dataset; + if(url){ + wx.navigateTo({ + url: '/qf_happyvote/pages/web-view/index', + events: { + // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据 + acceptDataFromOpenedPage: function (data) {} + }, + success: function (res) { + // 通过eventChannel向被打开页面传送数据 + res.eventChannel.emit('acceptDataFromOpenerPage', { + url: url + }) + } + }) + } if (console.log(i.data.config.appid1), "1" == t) { if ("" == i.data.config.appid1) return !1; wx.navigateToMiniProgram({ appId: i.data.config.appid1, path: i.data.config.path1, - success: function(a) { + success: function (a) { console.log(1); } }); @@ -422,7 +1501,7 @@ Page({ wx.navigateToMiniProgram({ appId: i.data.config.appid2, path: i.data.config.path2, - success: function(a) {} + success: function (a) {} }); } if ("3" == t) { @@ -430,7 +1509,7 @@ Page({ wx.navigateToMiniProgram({ appId: i.data.config.appid3, path: i.data.config.path3, - success: function(a) {} + success: function (a) {} }); } if ("8" == t) { @@ -438,7 +1517,7 @@ Page({ wx.navigateToMiniProgram({ appId: i.data.config.appid4, path: i.data.config.path4, - success: function(a) {} + success: function (a) {} }); } if ("9" == t) { @@ -446,144 +1525,191 @@ Page({ wx.navigateToMiniProgram({ appId: i.data.config.appid5, path: i.data.config.path5, - success: function(a) {} - }); - } - if ("4" == t) if (i.data.index.adfixed == i.data.index.advote || "" == i.data.config.adfixedappid) { - if ("" == i.data.config.advoteappid) return !1; - wx.navigateToMiniProgram({ - appId: i.data.config.advoteappid, - path: i.data.config.advotepath, - success: function(a) {} - }); - } else { - if ("" == i.data.config.adfixedappid) return !1; - wx.navigateToMiniProgram({ - appId: i.data.config.adfixedappid, - path: i.data.config.adfixedpath, - success: function(a) {} + success: function (a) {} }); } + if ("4" == t) + if (i.data.index.adfixed == i.data.index.advote || "" == i.data.config.adfixedappid) { + if ("" == i.data.config.advoteappid) return !1; + wx.navigateToMiniProgram({ + appId: i.data.config.advoteappid, + path: i.data.config.advotepath, + success: function (a) {} + }); + } else { + if ("" == i.data.config.adfixedappid) return !1; + wx.navigateToMiniProgram({ + appId: i.data.config.adfixedappid, + path: i.data.config.adfixedpath, + success: function (a) {} + }); + } if ("6" == t) { if ("" == i.data.config.adjoinappid) return !1; wx.navigateToMiniProgram({ appId: i.data.config.adjoinappid, path: i.data.config.adjoinpath, - success: function(a) {} + success: function (a) {} }); } - if( "10" == t ) { + if ("10" == t) { wx.navigateTo({ url: '/qf_happyvote/pages/web-view/index', events: { - // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据 - acceptDataFromOpenedPage: function(data) {} + // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据 + acceptDataFromOpenedPage: function (data) {} }, - success: function(res) { - // 通过eventChannel向被打开页面传送数据 - res.eventChannel.emit('acceptDataFromOpenerPage', { - url: 'https://xcx.zgzmdz.com/app/index.php?i=11&c=entry&actid=20&do=index&m=hxq_lottery' - }) + success: function (res) { + // 通过eventChannel向被打开页面传送数据 + res.eventChannel.emit('acceptDataFromOpenerPage', { + url: 'https://xcx.zgzmdz.com/app/index.php?i=11&c=entry&actid=20&do=index&m=hxq_lottery' + }) } }) } }, - closesearch: function(a) { - var i = this, t = i.data.search; + closesearch: function (a) { + var i = this, + t = i.data.search; t.show = !1, i.setData({ search: t }); }, - indextabchange: function(a) { - var i = this, t = a.currentTarget.dataset.totab, e = i.data.index; + indextabchange: function (a) { + var i = this, + t = a.currentTarget.dataset.totab, + e = i.data.index; e.showlist = t, i.setData({ index: e }); }, - loadlist: function(a) { - var i = this, e = i.data.index, o = i.data.ranking; - if(i.data.showpage == 'index'){ + loadlist: function (a) { + var i = this, + e = i.data.index, + o = i.data.ranking; + if (i.data.showpage == 'index') { i.setData({ page: i.data.page + 1 }) t.getlistmore(i) } - e.ispulluploading || o.ispulluploading || (i.data.index.pulluploading && "index" == i.data.showpage && (e.ispulluploading = !0, - i.setData({ - index: e - })), "ranking" == i.data.showpage && (o.ispulluploading = !0, i.setData({ + e.ispulluploading || o.ispulluploading || (i.data.index.pulluploading && "index" == i.data.showpage && (e.ispulluploading = !0, + i.setData({ + index: e + })), "ranking" == i.data.showpage && (o.ispulluploading = !0, i.setData({ ranking: o - }), t.getranking(i,i.data.ranking.nowType))); + }), t.getranking(i, i.data.ranking.nowType))); }, - delimage: function(a) { - var i = this, t = a.currentTarget.dataset.index, e = i.data.join; - e.images[t].isadd = !1, e.images[t].src = "../../resource/image/iconfont-tianjia.png", - i.setData({ - 'join.images': e.images - }); + delimage: function (a) { + var i = this, + t = a.currentTarget.dataset.index, + p=a.currentTarget.dataset.type, + e = i.data.join; + if(p==1){ + i.setData({ + 'hairCurl.update.isadd': !1, + 'hairCurl.update.img': "../../resource/image/iconfont-tianjia.png" + }); + }else{ + e.images[t].isadd = !1, e.images[t].src = "../../resource/image/iconfont-tianjia.png", + i.setData({ + 'join.images': e.images + }); + } + }, - selimage: function(a) { - var i = this, t = a.currentTarget.dataset.index, e = i.data.join; + selimage: function (a) { + var i = this, + t = a.currentTarget.dataset.index, + p=a.currentTarget.dataset.type, + e = i.data.join; wx.chooseImage({ count: 1, - sizeType: [ "original", "compressed" ], - sourceType: [ "album", "camera" ], - success: function(a) { - e.images[t].isadd = !0, e.images[t].src = a.tempFilePaths[0], i.setData({ - 'join.images': e.images - }); + sizeType: ["original", "compressed"], + sourceType: ["album", "camera"], + success: function (a) { + if(p==1){ + i.setData({ + 'hairCurl.update.img': a.tempFilePaths[0], + 'hairCurl.update.isadd': !0, + }); + }else{ + e.images[t].isadd = !0, e.images[t].src = a.tempFilePaths[0], i.setData({ + 'join.images': e.images + }); + } + } }); }, - goback(){ + goback() { var _this = this; _this.setData({ showpage: 'mall' }) }, - dianzhang(e){ + dianzhang(e) { var _this = this; - var mall_id = e.currentTarget.dataset.mall_id + var mall_id = e.currentTarget.dataset.mall_id; + let voteid = e.currentTarget.dataset.voteid; + let time = e.currentTarget.dataset.time; + this.setData({ + actEndTimeList: time + }) + // 执行倒计时函数 + this.countDown(); a.util.request({ url: 'entry/wxapp/MallJoinList', data: { - voteid: _this.data.voteid, + voteid: voteid, mallid: mall_id }, - success:function(res){ + success: function (res) { + console.info(res) _this.setData({ + voteid: voteid, showpage: 'index', nowMallId: mall_id, page: 1, 'index.dianzhang': res.data.data.dianzhang, 'index.jiaoyi': res.data.data.jiaoyi, 'index.liulan': res.data.data.liulan, - 'index.piaoshu':res.data.data.piaoshu, + 'index.piaoshu': res.data.data.piaoshu, 'index.newslist': res.data.data.newlist, - 'index.hotlist': res.data.data.hotlist - }) + 'index.hotlist': res.data.data.hotlist, + 'index.endtime':res.data.data.end_time, + + // 'index.picture': res.data.data.picture, + 'index.picture2': res.data.data.picture2, + 'index.picture3': res.data.data.picture3, + 'index.picture4': res.data.data.picture4, + 'index.picture5':res.data.data.picture5 + }); + } }) }, - selvideo: function(a) { - var i = this, t = i.data.join; + selvideo: function (a) { + var i = this, + t = i.data.join; console.log(t) wx.chooseVideo({ - sourceType: [ "album", "camera" ], + sourceType: ["album", "camera"], maxDuration: 60, - success: function(a) { - t.video[0].isadd = !0, t.video[0].src = a.tempFilePath, t.video[0].name = "已选择视频", - t.validates.video = !1, i.setData({ - 'join.video': t.video - }), console.log(t); + success: function (a) { + t.video[0].isadd = !0, t.video[0].src = a.tempFilePath, t.video[0].name = "已选择视频", + t.validates.video = !1, i.setData({ + 'join.video': t.video + }), console.log(t); } }); }, - selmusic: function(a) { - var t = this, e = t.data.join; - if ("正在录音:请说话 (再次点击保存)" == e.music[0].name) return i.stop(), void i.onStop(function(a) { - e.music[0].isadd = !0, e.music[0].src = a.tempFilePath, e.music[0].name = "录音已完成", - e.validates.music = !1; + selmusic: function (a) { + var t = this, + e = t.data.join; + if ("正在录音:请说话 (再次点击保存)" == e.music[0].name) return i.stop(), void i.onStop(function (a) { + e.music[0].isadd = !0, e.music[0].src = a.tempFilePath, e.music[0].name = "录音已完成", + e.validates.music = !1; a.tempFilePath; t.setData({ 'join.music': e.music @@ -599,178 +1725,235 @@ Page({ encodeBitRate: 96e3, format: "mp3" }; - i.start(o), i.onStart(function() { + i.start(o), i.onStart(function () { console.log("recorder start"); }); }, - join: function(a) { - var i = this, e = a.detail.value; + join: function (a) { + console.log(a.detail.value) + var i = this, + e = a.detail.value; + let trustList = ['trust_one', 'trust_two', 'trust_three', 'trust_four', 'trust_five'] e.mall_id = i.data.join.mallId e.store_type = i.data.join.storeId e.mall_type = i.data.join.typesId e.mall_area = i.data.join.region - if( e.username == "" ){ + e.size=e.store_area + e.resume=e.resume + e.checkGroup.forEach(item => { + e[trustList[parseInt(item) - 1]] = 1; + }) + if (e.username == "") { wx.showToast({ title: '请输入您的姓名', icon: 'none' }) return; - } else if ( e.telephone == "" ) { + } else if (e.telephone == "") { wx.showToast({ title: '请输入您的手机号码', icon: 'none' }) return; - } else if( i.data.join.region.length == 0 || i.data.join.region == null ){ + } else if (e.telephone.length < 11) { wx.showToast({ - title: '请选所在区域', - icon: 'none' + title: '手机号码有误,请重填', + icon: 'none' }) - return; - } else if ( i.data.join.typesName == null ) { + return false; + } + // else if( i.data.join.region.length == 0 || i.data.join.region == null ){ + // wx.showToast({ + // title: '请选所在区域', + // icon: 'none' + // }) + // return; + // } + else if (e.store_name == "") { wx.showToast({ - title: '请选择商圈/商场', - icon: 'none' + title: '请填写店铺名称', + icon: 'none' }) return; - } else if ( i.data.join.mallName == null ) { + } + else if (e.store_Address == null) { wx.showToast({ - title: i.data.join.typesId==1?'请选择商圈/商场':i.data.join.typesId==2?'请选择连锁品牌':'请选择特约商户', - icon: 'none' + title: '请填写商户地址', + icon: 'none' }) return; - } else if ( e.store_name == "" ) { + } else if (i.data.join.mallName == null) { wx.showToast({ - title: '请填写店铺名称', + title: '请选择商圈/商场', icon: 'none' }) return; - } else if ( !i.data.join.images[0].isadd ) { + } + // else if ( i.data.join.mallName == null ) { + // wx.showToast({ + // title: i.data.join.typesId==1?'请选择商圈/商场':i.data.join.typesId==2?'请选择连锁品牌':'请选择特约商户', + // icon: 'none' + // }) + // return; + // } + else if (!i.data.join.images[0].isadd) { wx.showToast({ title: '请上传图片', icon: 'none' }) return; - } else if ( e.resume == "" ) { + }else if (e.MerchantCode == "") { wx.showToast({ - title: '请发表您的诚信宣言', + title: '商户编码不能为空!', icon: 'none' }) return; - } - if( e.telephone.length < 11 ){ + } else if (e.MerchantNumber == "") { wx.showToast({ - title: '手机号码有误,请重填', + title: '商户终端号不能为空!', icon: 'none' }) - return false; - } - console.log(e) + return; + } else if (!i.data.join.images[4].isadd) { + wx.showToast({ + title: '请上营业执照!', + icon: 'none' + }) + return; + }else if (e.resume == "") { + wx.showToast({ + title: '请发表您的诚信宣言', + icon: 'none' + }) + return; + } t.join(i, e); }, - detail: function(a) { - var i = this, e = a.currentTarget.dataset.joinid; + detail: function (a) { + var i = this, + e = a.currentTarget.dataset.joinid, + {voteid}=a.currentTarget.dataset; + this.setData({voteid}) t.getjoininfo(i, e); }, - sendgift: function(a) { - var i = this, e = a.currentTarget.dataset.joinid, o = a.currentTarget.dataset.giftid; + sendgift: function (a) { + var i = this, + e = a.currentTarget.dataset.joinid, + o = a.currentTarget.dataset.giftid; t.sendgift(i, e, o); }, - replybut: function(a) { - var i = this, t = i.data.detail, e = i.data.reply; - 1 == a.currentTarget.dataset.data ? (t.isreply = !0, e.length = 0) : t.isreply = !1, - i.setData({ - detail: t, - reply: e - }); + replybut: function (a) { + var i = this, + t = i.data.detail, + e = i.data.reply; + 1 == a.currentTarget.dataset.data ? (t.isreply = !0, e.length = 0) : t.isreply = !1, + i.setData({ + detail: t, + reply: e + }); }, - replycontent: function(a) { - var i = this, t = i.data.reply; + replycontent: function (a) { + var i = this, + t = i.data.reply; t.content = a.detail.value, t.length = a.detail.value.length, i.setData({ reply: t }); }, - reply: function(a) { - var i = this, e = a.currentTarget.dataset.joinid, o = i.data.reply.content; + reply: function (a) { + var i = this, + e = a.currentTarget.dataset.joinid, + o = i.data.reply.content; i.data.reply.length < 1 || t.reply(i, e, o); }, - giftbox: function() { + giftbox: function () { var a = this; t.giftbox(a); }, - vote: function(a) { - var i = this, e = i.data.config.isgiftjoin; - if ("修改信息" != i.data.detail.font && 1 == e) { - var o = i.data.index; - return o.giftid = a.currentTarget.dataset.joinid, i.setData({ - index: o - }), void t.giftbox(i); - } + vote: function (a) { + var i = this, + e = i.data.config.isgiftjoin; + // if ("修改信息" != i.data.detail.font && 1 == e) { + // console.log(2); + // var o = i.data.index; + // console.log(o); + // return o.giftid = a.currentTarget.dataset.joinid, i.setData({ + // index: o + // }), void t.giftbox(i); + // } var n = a.currentTarget.dataset.joinid; - if (1 == a.currentTarget.dataset.topage) t.vote(i, n); else { + if (1 == a.currentTarget.dataset.topage) { + t.vote(i, n); + } + else { i.data.showpage; "join", i.setData({ showpage: "join" }); } + }, - haibao: function(a) { - var i = this, e = a.currentTarget.dataset.joinid; + haibao: function (a) { + var i = this, + e = a.currentTarget.dataset.joinid; t.haibao(i, e); }, - saveImg: function() { + saveImg: function () { wx.downloadFile({ url: this.data.detail.imgurl, - success: function(a) { + success: function (a) { var i = a.tempFilePath; wx.saveImageToPhotosAlbum({ filePath: i, - success: function(a) { + success: function (a) { console.log(a); }, - fail: function(a) { + fail: function (a) { console.log(a); }, - complete: function(a) { + complete: function (a) { console.log(a); } }); }, - fail: function(a) { + fail: function (a) { console.log(a); } }); }, - onSlideChangeEnd: function(a) { - var i = this, t = i.data.detail; + onSlideChangeEnd: function (a) { + var i = this, + t = i.data.detail; t.imgbg = a.detail.current, i.setData({ detail: t }) }, - modalcnt: function() { + modalcnt: function () { wx.showModal({ title: "分享", content: "点击右上角的 ··· 转发给朋友哦~", - success: function(a) { + success: function (a) { a.confirm ? console.log("用户点击确定") : a.cancel && console.log("用户点击取消"); } }); }, - maximg: function(a) { + maximg: function (a) { console.log(a.target.dataset.img); - var i = this, t = i.data.detail; + var i = this, + t = i.data.detail; t.maximg = a.target.dataset.img, t.maxpic = !0, i.setData({ detail: t }); }, - maxpic: function(a) { - var i = this, t = i.data.detail; + maxpic: function (a) { + var i = this, + t = i.data.detail; t.maxpic = !1, i.setData({ detail: t }); }, - videoshow: function(a) { - var i = this, t = i.data.detail; + videoshow: function (a) { + var i = this, + t = i.data.detail; "flex" == t.videoshow ? t.videoshow = "none" : "" == t.video ? wx.showToast({ title: "没有上传视频", icon: "succes", @@ -780,17 +1963,18 @@ Page({ detail: t }); }, - musicshow: function(a) { - var i = this, t = i.data.detail; - "music_off" != t.musicshow ? (wx.stopBackgroundAudio(), t.musicshow = "music_off", - console.log(t.music)) : "" == t.music ? wx.showToast({ + musicshow: function (a) { + var i = this, + t = i.data.detail; + "music_off" != t.musicshow ? (wx.stopBackgroundAudio(), t.musicshow = "music_off", + console.log(t.music)) : "" == t.music ? wx.showToast({ title: "没有上传音频", icon: "succes", duration: 1e3, mask: !0 }) : (t.musicshow = "music", console.log(t.music), wx.playBackgroundAudio({ dataUrl: t.music - }), wx.onBackgroundAudioStop(function() { + }), wx.onBackgroundAudioStop(function () { t.musicshow = "music_off", i.setData({ detail: t }); @@ -798,54 +1982,77 @@ Page({ detail: t }); }, - adindex: function(a) { - var i = this, t = i.data.index; - t.isadindex = !1, "0" != t.advote && t.adfixed != t.advote && (t.adfixed = t.advote), - i.setData({ - index: t - }); + adindex: function (a) { + var i = this, + t = i.data.index; + t.isadindex = !1, "0" != t.advote && t.adfixed != t.advote && (t.adfixed = t.advote), + i.setData({ + index: t + }); }, - timeFormat(param){ + timeFormat(param) { //小于10的格式化函数 - return param < 10 ? '0' + param : param; - }, - countDown(){ - //倒计时函数 + return param < 10 ? '0' + param : param; + }, + countDown() { + //倒计时函数 // 获取当前时间,同时得到活动结束时间数组 let newTime = new Date().getTime(); - let endTimeList = this.data.actEndTimeList; + let endTimeList = [this.data.actEndTimeList]; let countDownArr = []; - + // 对结束时间进行处理渲染到页面 endTimeList.forEach(o => { - let endTime = new Date(o).getTime(); - let obj = null; - // 如果活动未结束,对时间进行处理 - if (endTime - newTime > 0){ - let time = (endTime - newTime) / 1000; - // 获取天、时、分、秒 - let day = parseInt(time / (60 * 60 * 24)); - let hou = parseInt(time % (60 * 60 * 24) / 3600); - let min = parseInt(time % (60 * 60 * 24) % 3600 / 60); - let sec = parseInt(time % (60 * 60 * 24) % 3600 % 60); - obj = { - day: this.timeFormat(day), - hou: this.timeFormat(hou), - min: this.timeFormat(min), - sec: this.timeFormat(sec) - } - }else{//活动已结束,全部设置为'00' - obj = { - day: '00', - hou: '00', - min: '00', - sec: '00' - } - } - countDownArr.push(obj); + let endTime = new Date(o).getTime(); + let obj = null; + // 如果活动未结束,对时间进行处理 + if (endTime - newTime > 0) { + let time = (endTime - newTime) / 1000; + // 获取天、时、分、秒 + let day = parseInt(time / (60 * 60 * 24)); + let hou = parseInt(time % (60 * 60 * 24) / 3600); + let min = parseInt(time % (60 * 60 * 24) % 3600 / 60); + let sec = parseInt(time % (60 * 60 * 24) % 3600 % 60); + obj = { + day: this.timeFormat(day), + hou: this.timeFormat(hou), + min: this.timeFormat(min), + sec: this.timeFormat(sec) + } + } else { //活动已结束,全部设置为'00' + obj = { + day: '00', + hou: '00', + min: '00', + sec: '00' + } + } + countDownArr.push(obj); }) // 渲染,然后每隔一秒执行一次倒计时函数 - this.setData({ countDownList: countDownArr}) - setTimeout(this.countDown,1000); - } + this.setData({ + countDownList: countDownArr + }) + setTimeout(this.countDown, 1000); + }, + isIphoneX() { + let info = wx.getSystemInfoSync(); + console.log(/iPhone X/i.test(info.model)) + if (/iPhone X/i.test(info.model)) { + return true; + } else { + return false; + } + }, + open() { + this.setData({ + ["config.open"]: true + }) + }, + close() { + this.setData({ + ["config.open"]: false + }) + } + }); \ No newline at end of file diff --git a/qf_happyvote/pages/index/index.wxml b/qf_happyvote/pages/index/index.wxml index e67e1bf..8fe61cc 100644 --- a/qf_happyvote/pages/index/index.wxml +++ b/qf_happyvote/pages/index/index.wxml @@ -7,6 +7,14 @@ + + + + + + + + @@ -19,22 +27,39 @@ + + - + + - + + + + + + + + + + + + + + + - + - + - + diff --git a/qf_happyvote/pages/index/index.wxss b/qf_happyvote/pages/index/index.wxss index 59bdbcf..dea3c5a 100644 --- a/qf_happyvote/pages/index/index.wxss +++ b/qf_happyvote/pages/index/index.wxss @@ -4,6 +4,13 @@ font-family:"iconfont";src:url(iconfont.eot?t=1513143346020-do-not-use-local-path-./qf_happyvote/resource/font/iconfont.wxss&3&7);src:url(iconfont.eot?t=1513143346020#iefix-do-not-use-local-path-./qf_happyvote/resource/font/iconfont.wxss&7&7) format('embedded-opentype'),url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAu8AAsAAAAAEQQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8A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HYAtgD0ATABfgGcAdoCFAM6A3ADsgPYBFQEknicY2BkYGDgZzjMwMYAAkxAzAWEDAz/wXwGAB10Ae8AeJxlj01OwzAQhV/6B6QSqqhgh+QFYgEo/RGrblhUavdddN+mTpsqiSPHrdQDcB6OwAk4AtyAO/BIJ5s2lsffvHljTwDc4Acejt8t95E9XDI7cg0XuBeuU38QbpBfhJto41W4Rf1N2MczpsJtdGF5g9e4YvaEd2EPHXwI13CNT+E69S/hBvlbuIk7/Aq30PHqwj7mXle4jUcv9sdWL5xeqeVBxaHJIpM5v4KZXu+Sha3S6pxrW8QmU4OgX0lTnWlb3VPs10PnIhVZk6oJqzpJjMqt2erQBRvn8lGvF4kehCblWGP+tsYCjnEFhSUOjDFCGGSIyujoO1Vm9K+xQ8Jee1Y9zed0WxTU/3OFAQL0z1xTurLSeTpPgT1fG1J1dCtuy56UNJFezUkSskJe1rZUQuoBNmVXjhF6XNGJPyhnSP8ACVpuyAAAAHicbY1LDoJAEAXnIQ7IR4j3YOGRRhzpNmaaZOgInF6CGxfWqt6mnknMl8L8p0GCA1IcYZEhxwkFSlSocUaD1mCuSOUuYRiUV1//jmsWiZ/sQs69hIeEqRodzxyGrpdxKSOJLn53e2MnE9tIPpC3UTSqXFbS3k9bYIuQk0XUzkzqQvrit9r9pDPmAzgjMXYAAA==) format('woff'),url(iconfont.ttf?t=1513143346020-do-not-use-local-path-./qf_happyvote/resource/font/iconfont.wxss&7&7) format('truetype'),url(iconfont.svg?t=1513143346020#iconfont-do-not-use-local-path-./qf_happyvote/resource/font/iconfont.wxss&7&7) format('svg'); } +@font-face { + font-family: 'iconfont'; + src: url('data:font/ttf;charset=utf-8;base64,AAEAAAANAIAAAwBQRkZUTZAJEgUAABNUAAAAHEdERUYAKQAVAAATNAAAAB5PUy8yPJRLAAAAAVgAAABgY21hcH/0bAoAAAHgAAABkmdhc3D//wADAAATLAAAAAhnbHlmJmPg3gAAA5QAAAx4aGVhZB2ELvkAAADcAAAANmhoZWEHggOFA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AAAAABAAgATgABAAAAAAACAAcAZwABAAAAAAADAAgAgQABAAAAAAAEAAgAnAABAAAAAAAFAAsAvQABAAAAAAAGAAgA2wABAAAAAAAKACsBPAABAAAAAAALABMBkAADAAEECQAAACYAAAADAAEECQABABAAPAADAAEECQACAA4AVwADAAEECQADABAAbwADAAEECQAEABAAigADAAEECQAFABYApQADAAEECQAGABAAyQADAAEECQAKAFYA5AADAAEECQALACYBaABDAHIAZQBhAHQAZQBkACAAYgB5ACAAaQBjAG8AbgBmAG8AbgB0AABDcmVhdGVkIGJ5IGljb25mb250AABpAGMAbwBuAGYAbwBuAHQAAGljb25mb250AABSAGUAZwB1AGwAYQByAABSZWd1bGFyAABpAGMAbwBuAGYAbwBuAHQAAGljb25mb250AABpAGMAbwBuAGYAbwBuAHQAAGljb25mb250AABWAGUAcgBzAGkAbwBuACAAMQAuADAAAFZlcnNpb24gMS4wAABpAGMAbwBuAGYAbwBuAHQAAGljb25mb250AABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAABHZW5lcmF0ZWQgYnkgc3ZnMnR0ZiBmcm9tIEZvbnRlbGxvIHByb2plY3QuAABoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAABodHRwOi8vZm9udGVsbG8uY29tAAAAAAIAAAAAAAAACgAAAAAAAQAAAAAAAAAAAAAAAAAAAAAADwAAAAEAAgECAQMBBAEFAQYBBwEIAQkBCgELAQwBDQdwaW5nbHVuB3lhbmppbmcGc291c3VvCWNvdW50RG93bgRjaGF0B3NoaWppYW4HdHVhbmR1aQd6aGFpeWFvBXhpYWxhBndlaXpoaQVsaXd1LQh5dWFuaHVhbgAAAAAAAf//AAIAAQAAAAwAAAAWAAAAAgABAAMADgABAAQAAAACAAAAAAAAAAEAAAAA1aQnCAAAAADdMnV+AAAAAN0ydX4=') format('truetype'); + font-weight: normal; + font-style: normal; + font-display: swap; +} .iconfont { font-family: "iconfont"!important; font-style: normal; @@ -62,6 +69,54 @@ .icon-guize-:before { content: "\e88d"; } +/* 新增 */ +.icon-tuandui:before { +content: "\e62f"; +} + +.icon-shijian:before { +content: "\e62a"; +} + +.icon-zhaiyao:before { +content: "\e65f"; +} + +.icon-yanjing:before { +content: "\e611"; +} + +.icon-chat:before { +content: "\e626"; +} + +.icon-liwu-:before { +content: "\e6ae"; +} + +.icon-pinglun:before { +content: "\e603"; +} + +.icon-yuanhuan:before { +content: "\e831"; +} + +.icon-sousuo:before { +content: "\e615"; +} + +.icon-countDown:before { +content: "\e625"; +} + +.icon-weizhi:before { +content: "\e6ac"; +} + +.icon-xiala:before { +content: "\e682"; +} .list { overflow: visible; @@ -75,8 +130,7 @@ font-size: 24rpx; background-color: #FFF; width: 100%; - background-image: url('https://xcx.zgzmdz.com/attachment/images/baseImages/shopownerbak.png'); - background-size: 100% calc(100% + 70px); + background: linear-gradient(180deg, #FF564F 0%, #FEA271 100%); } @@ -115,14 +169,14 @@ } .container .follow .text { - line-height: 30px; + line-height: 30rpx; background: #ed969e; width: 300rpx; - height: 30px; + height: 30rpx; margin-top: 30rpx; margin-left: 76rpx; color: #fff; - border-radius: 30px; + border-radius: 60rpx; } .container .searchback { @@ -176,8 +230,9 @@ } .index_datetime { color: #555; - padding: 10px 0; + height: 80rpx; display: flex; + background-color: #E41944; } .index_datetime button { position: absolute; @@ -195,10 +250,15 @@ button::after { border: none; } .address { - width:50%; + width:100%; + padding-left: 42rpx; + background-color: #E41944; + color: white; display:flex; align-items:center; position:relative; + margin: 0rpx auto; + margin-bottom: 20rpx; } .container .search input { @@ -224,12 +284,20 @@ button::after { .container .search button::after { border: 0; } - -.tabtitle { +.tabtitle{ text-align: center; - font-size: 32rpx; + font-size: 60rpx; + height: 80rpx; + line-height: 80rpx; + display: flex; + justify-content: space-around; +} +.rule .tabtitle { + text-align: center; + font-size: 60rpx; height: 80rpx; line-height: 80rpx; + display: none; } .footer { @@ -240,10 +308,11 @@ button::after { width: 100%; text-align: center; overflow-y: hidden; + z-index: 99; } .footer .item { - width: 20%; + width: 25%; float: left; font-size: 24rpx; padding-bottom: 10rpx; @@ -315,7 +384,7 @@ button::after { .index .index_datetime { position: relative; - font-size: 30rpx + font-size: 30rpx; } .index_btn2 { @@ -425,29 +494,27 @@ button::after { float: left; } -.index .list .item { +.list .item { position: relative; - width: 336rpx; - border-radius: 7rpx; - box-shadow: 0rpx 0rpx 2rpx rgba(170,170,170,0.54); + width: 316rpx; + border-radius: 10px; overflow: hidden; margin-top: 10rpx; display: block; - border: 1px solid #e5e5e5; - border-top-left-radius: 20rpx; - border-top-right-radius: 20rpx; + background-color:#fff; + margin-bottom: 40rpx; } -.index .list .img { +.list .img { width: 340rpx; - height: 340rpx; + height: 310rpx; max-height: 640rpx; display: block; border-top-left-radius: 20rpx; border-top-right-radius: 20rpx; } -.index .list .btn6 { +.list .btn6 { width: 120rpx; height: 70rpx; line-height: 70rpx; @@ -459,7 +526,7 @@ button::after { float: left; } -.index .list .list_data { +.list .list_data { width: 220rpx; height: 70rpx; line-height: 70rpx; @@ -469,21 +536,35 @@ button::after { float: right; } -.index .list .top { +.list .top { + height: 27px; +padding: 0rpx 22rpx 0rpx 15rpx; +line-height: 27px; +color: #ffffff; +position: absolute; +top: 254rpx; +left: -2rpx; +background: #333333; +font-size: 12px; +font-weight: 400; +box-shadow: 0 0 10rpx rgba(170,170,170,0.57); +width: 100%; +text-align: center; + +} + +.list .top2 { height: 50rpx; - padding: 0rpx 22rpx 0rpx 15rpx; + padding: 0rpx 22rpx 0rpx 22rpx; line-height: 50rpx; color: #ffffff; position: absolute; - top: 50rpx; + top: 10rpx; left: -2rpx; z-index: 1000; - background: #fd4731; - font-size: 20rpx; + font-size: 24rpx; text-align: left; - font-weight: 600; - border-radius: 0rpx 50rpx 50rpx 0rpx; - box-shadow: 0 0 10rpx rgba(170,170,170,0.57); + font-weight: 400; } .index .loadlist { @@ -500,24 +581,44 @@ button::after { position: absolute; top: 0; bottom: 0; - background-color: #EEEEEE; + /* background-color: #EEEEEE; */ + background:#FF564F; +} +.join .form{ + background-color: #fff; + width: 668rpx; + border-radius: 40rpx; + margin: 0 auto; + padding-top: 20rpx; } - .join .formgroup { - margin: 0rpx 20rpx 30rpx 20rpx; + margin: 0rpx 20rpx 0rpx 20rpx; overflow: visible; + padding-bottom: 20rpx; + border-bottom: 2rpx solid #EEEEEE; + margin-bottom: 20rpx; +} +.join .formgroup:not(.imageform) { + display: flex; + justify-content: space-between; +} +.join .formgroup .formgroupTitle { + font-size: 28rpx; + background-color: #FFF; + border-radius: 6rpx; + padding-top: 20rpx; + padding-bottom: 20rpx; } - .join .formgroup input { font-size: 28rpx; background-color: #FFF; border-radius: 6rpx; - padding: 20rpx; + padding-top: 20rpx; + padding-bottom: 20rpx; + text-align: right; } - .join .imageform { border-radius: 6rpx; - padding: 20rpx; background-color: #FFF; color: #808080; } @@ -539,8 +640,8 @@ button::after { } .join .imageitem image { - width: 152rpx; - height: 152rpx; + width: 126rpx; + height: 126rpx; border-radius: 10rpx; } @@ -573,8 +674,15 @@ button::after { } .join .submitbtn { - margin: 0 20rpx 10rpx 20rpx; - border: 0; + width: 276rpx; + height: 72rpx; + background: #FF564F; + box-shadow: 0px 20rpx 20rpx rgba(255, 86, 79, 0.28); + opacity: 1; + border-radius: 36rpx; + font-size: 28rpx; + font-weight: bold; + line-height: 72rpx; } .join .returnbtn { @@ -818,9 +926,10 @@ button::after { margin-right: 10rpx; } -.giftbox { - width: 710rpx; - background: rgba(0,0,0,0); +.giftbox,.replybox { + width: 596rpx; + margin: 0 auto; + background: #fff; border-radius: 20rpx; overflow-y: scroll; position: relative; @@ -829,55 +938,93 @@ button::after { } .giftline { - width: 710rpx; + width: 596rpx; float: left; - padding-bottom: 10px; - border-bottom: 1rpx solid rgba(0,0,0,0.04); - background: #eee; + height: 140rpx; + padding-bottom: 10rpx; + background: #fff; + margin: 0 atuo; +} + +.linec{ + width: 590rpx; + height: 0px; + border: 2rpx solid #EEEEEE; + opacity: 1; + margin: 0 auto; } .giftline .a { - width: 150rpx; + width: 80rpx; float: left; } -.giftline image { +.giftline .a image { width: 80rpx; height: 80rpx; float: left; border-radius: 80rpx; - margin: 28rpx 0rpx 0rpx 40rpx; + margin-top: 22rpx; } .giftline .image1 { - width: 80rpx; - height: 80rpx; + width: 118rpx; + height: 112rpx; float: left; border-radius: 0rpx; - margin: 28rpx 0rpx 0rpx 0rpx; + display: block; } .giftline .b { - width: 450rpx; + width: 160rpx; + float: left; + text-align: left; + margin-left: 16rpx; +} + +.giftline .content { + width: 340rpx; float: left; text-align: left; + margin-left: 16rpx; } .giftline .b .name { - font-size: 30rpx; - margin-top: 16rpx; - font-weight: 900; + font-size: 24rpx; + font-weight: 400; + color: #333333; + line-height: 34px; + overflow: hidden; + text-overflow:ellipsis; + white-space: nowrap; +} + +.giftline .content .name { + font-size: 24rpx; + font-weight: 400; + color: #333333; + line-height: 34px; } .giftline .b .content1 { color: rgba(78,71,69,0.61); - font-size: 26rpx; - margin-top: 10rpx; - word-wrap: break-word; + font-size: 20rpx; + line-height: 56rpx; + color: #888888; + overflow: hidden; + text-overflow:ellipsis; + white-space: nowrap; +} + +.giftline .content .content1 { + color: rgba(78,71,69,0.61); + font-size: 20rpx; + line-height: 20rpx; + color: #888888; } .giftline .c { - width: 100rpx; + width: 118rpx; float: left; } @@ -885,10 +1032,35 @@ button::after { width: 80rpx; height: 100rpx; color: #e28d61; - margin: 32rpx 0rpx 0rpx 10rpx; text-align: left; } +.giftline .d{ + float: right; +} +.giftline .createTimeBox{ + margin-right: 20rpx; + float: right; +} + +.giftline .createTimeBox .content2{ + margin-top: 20rpx; + font-size: 24rpx; + font-weight: 400; + line-height: 34rpx; + color: #888888; + opacity: 1; +} +.giftline .d .content2{ + margin-right: 20rpx; + font-size: 24rpx; + font-weight: 400; + line-height: 34rpx; + margin-top: 44rpx; + color: #888888; + opacity: 1; +} + .gift-title { text-align: center; height: 60rpx; @@ -900,32 +1072,28 @@ button::after { .gift { position: absolute; - right: 22rpx; - top: 650rpx; - width: 80rpx; - height: 80rpx; - line-height: 80rpx; + top: 220rpx; + width: 60rpx; + left: 90rpx; + height: 60rpx; + line-height: 60rpx; text-align: center; - border-radius: 80rpx; + border-radius: 60rpx; background: #ff8300; color: #fff; - font-size: 35rpx; - box-shadow: 0 0 10rpx #888; + font-size: 32rpx; } .gifts { - position: fixed; - right: 22rpx; - bottom: 250rpx; - width: 80rpx; - height: 80rpx; - line-height: 80rpx; - text-align: center; - border-radius: 80rpx; - background: #ff8300; - color: #fff; - font-size: 35rpx; - box-shadow: 0 0 10rpx #888; - z-index: 999; + position: absolute; + top: 220rpx; + right: 90rpx; + width: 60rpx; + height: 60rpx; + border-radius: 60rpx; + z-index: 99; + display: flex; + align-items: center; + justify-content: center; } .gift-FIX { @@ -999,7 +1167,7 @@ button::after { line-height: 60rpx; color: #999; font-size: 20rpx; - height: 27px; + height: 54rpx; overflow: visible; } @@ -1022,6 +1190,7 @@ button::after { justify-content: flex-start; align-items: center; border-bottom: 1px solid #F9F9F9; + background-color: #fff; } .ranking .tr view { @@ -1089,11 +1258,20 @@ button::after { padding: 16rpx; } +#detail{ + width: 668rpx; + background: #FFFFFF; + margin: 0 auto; + border-radius: 40rpx; + padding-top: 32rpx; + margin-top: 60rpx; + margin-bottom: 48rpx; +} #detail .top { position: absolute; top: 20rpx; left: 20rpx; - width: 100px; + width: 200rpx; height: 50rpx; line-height: 50rpx; border-radius: 50rpx; @@ -1110,8 +1288,8 @@ button::after { top: 15rpx; right: 15rpx; z-index: 111; - width: 45px; - height: 45px; + width: 90rpx; + height: 90rpx; border-radius: 50rpx; background: rgba(0,0,0,0.2); } @@ -1121,10 +1299,30 @@ button::after { } #detail .content .left { - width: 750rpx; + width: 900rpx; + display: inline-block; +} + +#detail .head{ + margin: 0 auto; + width: 588rpx; + display: flex; + flex-flow: row; + margin-bottom: 46rpx; +} +#detail .head .left{ + width: 500rpx; display: inline-block; } +#detail .head .right{ + width: 400rpx; + text-align: right; + display: inline-block; +} + + + #detail .content .right { position: absolute; right: 15rpx; @@ -1140,11 +1338,23 @@ button::after { color: #333; } +#detail .head .left .subtitle { + margin-top: 32rpx; + font-size: 24rpx; + font-family: PingFang SC; + font-weight: 400; + line-height: 34rpx; + color: #000000; + opacity: 1; +} #detail .content .left .subtitle { - padding: 15rpx; - padding-top: 0rpx; - font-size: 28rpx; - color: #666; + margin-top: 16rpx; + font-size: 24rpx; + font-family: PingFang SC; + font-weight: 400; + line-height: 34rpx; + color: #000000; + opacity: 1; } #detail .content .right .but { @@ -1185,24 +1395,40 @@ button::after { } #detail .content .ok { - width: 460rpx; - height: 90rpx; - line-height: 90rpx; - border-radius: 90rpx; + border: 2rpx solid #FF564F; + height: 72rpx; + box-shadow: 0rpx 20rpx 20rpx rgba(255, 86, 79, 0.28); + opacity: 1; + border-radius: 36rpx; + font-size: 28rpx; + color: #FF564F; + font-weight: bold; + line-height: 72rpx; text-align: center; - font-size: 34rpx; - color: #fff; - margin: 50rpx 145rpx 15rpx 145rpx; - background: #FD4731; - box-shadow: -2rpx 2rpx 3rpx #FD4731; + width: 276rpx; + display: inline-block; + margin-left: 32rpx; + margin-top: 96rpx; } #detail .content .tips { text-align: center; - color: #FD4731; - margin-bottom: 50rpx; + color: #FF564F; + text-decoration:underline; + line-height: 34rpx; + font-size: 24rpx; + font-weight: 400; + margin-bottom: 52rpx; + margin-top: 64rpx; } +#detail .content .giftImg{ + width: 144rpx; + height: 34rpx; + display: block; + margin: 0 auto; + margin-bottom: 32rpx; +} #haibao { position: fixed; top: 0; @@ -1253,65 +1479,16 @@ button::after { } .reply { - width: 710rpx; + width: 596rpx; background: rgba(0,0,0,0); border-radius: 30rpx; position: relative; - left: 22rpx; border-radius: 30rpx; margin-bottom: 30rpx; } -.reply .line { - width: 710rpx; - border-bottom: 1rpx solid rgba(0,0,0,0.04); - background: #eee; - overflow: visible; -} - -.reply .img { - width: 150rpx; - position: relative; - top: 30rpx; - float: left; -} - -.reply .img image { - width: 80rpx; - height: 80rpx; - border-radius: 80rpx; - margin: 0rpx 0rpx 0rpx 40rpx; -} - -.reply .content { - width: 530rpx; - display: inline-block; - text-align: left; -} - -.reply .content .name { - font-size: 30rpx; - margin-top: 16rpx; - font-weight: 900; -} - -.reply .content .content { - color: rgba(78,71,69,0.61); - font-size: 26rpx; -} - -.reply .content .time { - color: rgba(78,71,69,0.41); - font-size: 23rpx; -} - #reply { - position: fixed; - top: 0; - left: 0; - z-index: 1001; width: 100%; - height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; @@ -1319,11 +1496,15 @@ button::after { } #reply .box { + position: fixed; + top: 360rpx; + left: 120rpx; width: 550rpx; height: 350rpx; background: #fff; border-radius: 10rpx; margin: 0 auto; + z-index: 100; } #reply .box .name { @@ -1375,32 +1556,32 @@ button::after { background: #FF7979; text-align: center; color: #fff; - padding: 7px; - margin: 10px 25px; + padding: 14rpx; + margin: 20rpx 50rpx; display: block; - border-radius: 5px; + border-radius: 10rpx; } .orderfooter-info-item { - margin: 0px 40px; - color: #FF7979; - font-weight: bold; - font-size: 14px; + margin: 0px 40rpx; + color: #333333; + font-weight: 400; + font-size: 28rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .orderfooter-info { - margin-bottom: 10px; + margin-top: 40rpx; + margin-bottom: 20rpx; } .topThree { position: relative; - padding: 10px; overflow: hidden; } .huangguan { position: absolute; - width: 100px; - height: 105px; + width: 200rpx; + height: 210rpx; left: 50%; transform: translate(-50%, 0); overflow: hidden; @@ -1415,39 +1596,42 @@ button::after { height: 70%; border-radius: 50%; position: absolute; - top: 25px; - right: 7px; + top: 50rpx; + right: 14rpx; } .yin { position: absolute; left: 7%; top: 15%; - width: 90px; - height: 95px; + width: 180rpx; + height: 190rpx; overflow: hidden; } .tong { position: absolute; right: 8%; top: 24%; - width: 80px; - height: 85px; + width: 160rpx; + height: 170rpx; overflow: hidden; } -.tabtitle { +.join .tabtitle { display: flex; - color: #999 !important; + padding-top: 0; justify-content: space-around; + font-size: 40rpx; + margin: 20rpx auto; + color: #fff; } .tabtitle-item { - color: rgb(153, 153, 153); + color: #fff; font-weight: 800; border-bottom: none; - font-size: 16px; + font-size: 32rpx; overflow: hidden; } .tabtitle-item.tabtitle-active { - border-bottom: 2px solid rgb(255, 121, 121); + border-bottom: 2px solid #fff; font-weight: 800; } .tab { @@ -1456,108 +1640,1300 @@ button::after { } .tab-item { width: 50%; - padding: 10px; + padding: 20rpx; display: flex; justify-content: center; align-items: center; font-size: 32rpx; + color: #fff; } .tab-item.active { - border-bottom: 1px solid #ff7979; - color: #ff7979; + border-bottom: 1px solid #fff; + color: #fff; font-weight: 800; - font-size: 18px; + font-size: 36rpx; } .mallbtn{ - background: #FF7979; + background: #fff; text-align: center; color: #fff; - padding: 7px; - margin: 10px 25px; + padding: 14rpx; + margin: 20rpx 50rpx; display: block; - border-radius: 5px; - font-size: 14px; + border-radius: 10rpx; + font-size: 28rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mall_list { - display: flex; - padding: 0 10px; - margin-top: 8px; justify-content: space-between; flex-wrap: wrap; + overflow: hidden; +} +.mall_list2 { + padding: 0 40rpx; + margin-top: 16rpx; + justify-content: space-between; + flex-wrap: wrap; + display: flex; } .goback { position: absolute; - top: 25px; + top: 50rpx; z-index: 999; - width: 30px; - height: 30px; - left: 20px; + width: 60rpx; + height: 60rpx; + left: 40rpx; +} +.gobackContainer{ + width: 56rpx; + flex-shrink: 0; + height: 56rpx; + margin-top: 24rpx; + margin-right: 40rpx; + display: inline-block; } .nav { display:flex; - margin: 0 10px; + background: #fff; } .nav-item { width: 33%; - color: #FF7979; - padding: 8px 0; + padding: 16rpx 0; text-align: center; font-size: 28rpx; + font-weight: 400; + color: #333; } .nav-item.active { - color: #fff; + color: #333; + font-size: 32rpx; font-weight: bold; - background: #FF7979; + overflow: visible; +} + +.nav-item-after { + height: 6rpx; + width: 120rpx; + margin: 0 auto; + background-color: #FF564F; + line-height: -32rpx; + position: relative; + top: 0rpx; + border-radius: 4rpx; } .timebox { background-color: #fff; - margin: 20pt; justify-content: space-between; flex-wrap: wrap; - border-radius: 23px; text-align: center; padding: 20rpx; + padding-bottom: 0rpx; } .selectform{ width: 100%; + height: 76rpx; + box-shadow: 0px 0px 40rpx rgba(0, 0, 0, 0.12); border-bottom: 1px solid #EEEDF0; + border-radius: 40rpx; + margin-top: 10rpx; +} +.selectform input{ + text-align: left; + height:72rpx; + width:504rpx; + border-radius: 32rpx; + flex: 1 1 70%; +} +.box_time{ + display: flex; + height: 50rpx; + text-align: center; + align-items: center; + margin-top: 40rpx; + justify-content: center; +} +.box_time .iconfont{ + margin-left: 30rpx; } .timetitle{ color: #333333; - font-size: 14px; - line-height: 20px; - margin-top: 40rpx; + font-size: 26rpx; font-weight: 400; + align-items: center; } .tui-conutdown-box{ - font-size:30px; + font-size: 40rpx; font-weight: 400; - line-height: 42px; color: #333333; opacity: 1; + } .tui-countdown-content{ - margin-top: 20rpx; + align-items: center; + margin-left: 20rpx; } .newbtn{ - background: #6E02C7; + background: #FF564F; text-align: center; color: #fff; - line-height: 20px; - padding: 7px; - margin: 15px 25px; + width: 276rpx; + line-height: 72rpx; + text-align: center; + margin: 30rpx auto 50rpx auto; display: block; - border-radius: 5px; - font-size: 14px; + font-size: 28rpx; + font-weight: bold; + border-radius: 36rpx; + box-shadow: 0px 20rpx 20rpx rgba(255, 86, 79, 0.28); +} +.formInner{ + width: 100%; + display: flex; + align-content: center; +} +.formInner > text{ + margin-left: 15rpx; +} +.searchBtn{ + text-align: center; + width: 152rpx; + height: 62rpx; + line-height: 58rpx; + text-align: center; + display: inline-block; + font-size: 28rpx; font-weight: bold; + color: #FF564F !important; + border-radius: 36rpx; + border: 2rpx solid #FF564F; + flex: 1 1 20%; + margin-top: 8rpx; + margin-right:8rpx; +} +.newbtn2{ + background: #FF564F; + text-align: center; + color: #fff; + width: 172rpx; + line-height: 32rpx; + padding: 14rpx; + margin: 42rpx auto; + display: block; + font-size: 28rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - border-radius: 18px; - box-shadow: 0px 8px 10px rgba(110, 2, 199, 0.45); -} \ No newline at end of file + border-radius: 36rpx; + box-shadow: 0px 20rpx 20rpx rgba(255, 86, 79, 0.28); +} +.infoBox{ + background-color: #fff; + justify-content: space-between; + flex-wrap: wrap; + text-align: center; + position: relative; +overflow: visible; + +} +.info-title{ + width: 100%; + display: flex; +} +.info-title-item { + width: 100%; + margin: 20rpx 20rpx 0 20rpx; + font-size:26rx; + font-weight: 400; + line-height: 52rpx; + color: #333; + height: 52rpx; +} +.info-content{ + display: flex; +} + +.info-content-item { + width: 25%; + /* margin-top: 20rpx; */ + font-size: 40rpx; + font-family: PingFang SC; + font-weight: 400; + line-height: 66rpx; + color: #333333; +} + +.info-content-item-i { + width: 25%; + font-size: 24rpx; + font-family: PingFang SC; + font-weight: 400; + line-height: 34rpx; + color: #333333; + display: none; +} +.bg_linepot{ + display: none; +} +.kh-item{ + width: 100%; + display: flex; + padding-top: 30rpx; + padding-bottom: 50rpx; +} + +.kh-item-left{ + width: 40%; + padding: 20rpx; + margin-left: 24rpx; +} + +.kh-item-right{ + width: 60%; + padding: 40rpx 20rpx; + +} +.kh-item-left-box{ + position: absolute; + overflow: visible; +} +.kh-item-left-box-img{ + height: 220rpx; + width: 220rpx; + border-radius: 20rpx; + box-shadow: 0px 6rpx 20rpx rgba(0, 0, 0, 0.16); +} +.kh-item-left-box-ps{ + width: 198rpx; + height: 70rpx; + background: #FF564F; + opacity: 1; + border-radius: 20rpx; + position: absolute; + top: 180rpx; + left: 10rpx; + font-size: 28rpx; + font-family: PingFang SC; + font-weight: 400; + color: #FFFFFF; + text-align: center; + line-height: 70rpx; +} +/* .order-info{ + +} */ +.order-info-name{ + font-size: 32rpx; + font-family: PingFang SC; + font-weight: bold; + line-height: 44rpx; + color: #333333; + margin-bottom: 20rpx; +} +.order-info-id{ + font-size: 32rpx; + display: inline-block; + padding: 3rpx 20rpx; + border-radius: 36rpx; + font-weight: normal; + margin-right: 10rpx; + background-color: #fff; + height: 32rpx; + line-height: 32rpx; + overflow: visible; +} + +.redBg{ + background-color: #FF564F; +} + +.redBg .kh-item-left-box-ps{ + background-color: #FF564F !important; +} + +.whiteBg{ + background-color: #EEEDF0; +} + +.redBg .order-info-name{ + color: #fff !important; +} +.redBg .order-info-id{ + color: #FF564F !important; +} + +.redBg .order-info-item{ + color: #fff !important; +} +.listBak{ + width: 750rpx; + height: 50px; + background-image: url('https://xcx.zgzmdz.com/attachment/images/baseImages/listBak1.png'); + background-size: 100% 100%; +} + +.listBak2{ + width: 750rpx; + height: 50px; + background-image: url('https://xcx.zgzmdz.com/attachment/images/baseImages/listBak2.png'); + background-size: 100% 100%; + +} +.nav-tip{ + width: 30%; + display: flex; + padding: 0 20rpx; + +} +.nav-tip-i{ + font-size: 32rpx; + font-family: PingFang SC; + font-weight: 400; + line-height: 60rpx; + color: #707070; +} +.circle_box{ + display: inline; +} + +.nav-tip-b{ + font-size:22rpx; + font-family: PingFang SC; + font-weight: 400; + line-height: 72rpx; + color: #FFFFFF; + margin-left: 10rpx; + opacity: 0.6; +} +.iconAddone{ + position: absolute; + top: 50rpx; + left: 500rpx; + line-height: 58rpx; + font-size: 24rpx; + text-align: center; + vertical-align: auto; + color: #FFFFFF; + width:58rpx; + height: 58rpx; + background: #E73826; + border-radius:50%; +} + +.floatBoxRight{ + position: absolute; + top: 220rpx; + right: 0rpx; + width: 140rpx; + height: 60rpx; + background: rgba(255, 86, 79, 0.59); + opacity: 1; + border-radius: 120rpx 0px 0px 120rpx; + font-size: 24rpx; + font-weight: 400; + line-height: 60rpx; + color: #fff; + text-align: right; + padding-right: 10rpx; +} + +.floatBoxLeft{ + position: absolute; + top: 220rpx; + left: 0rpx; + width: 140rpx; + height: 60rpx; + background: rgba(255, 86, 79, 0.59); + opacity: 1; + border-radius: 0px 120rpx 120rpx 0px; + font-size: 24rpx; + font-weight: 400; + line-height: 60rpx; + color: #fff; + text-align: left; + padding-left: 10rpx; +} +.bg_in{ + background:#FEA271; +} +.in_top{ + position: relative; + z-index: 11; + overflow: visible; + display: none; +} +.in_top .in_top1{ + background-color: #fff; + border-radius: 40rpx 40rpx 0 0; + height: 40rpx; + margin-top: -40rpx; + +} +.swiperBox { + justify-content: space-between; + flex-wrap: wrap; + text-align: center; + position: relative; + z-index: 10; +} +.swiper_detail image{ + border-radius: 40rpx; +} + +.wx-swiper-dots { + position: relative; + left: unset !important; + right: -40rpx; + color: white; +} + +.wx-swiper-dots.wx-swiper-dots-horizontal { +margin-bottom: -5rpx; +} + +.wx-swiper-dot { + background-color: #fff !important; + height: 15rpx !important; + width: 15rpx !important; +} +.wx-swiper-dot-active { + height: 15rpx !important; + border-radius: 23rpx !important; + width: 60rpx !important; + color: #fff !important; +} + +.mask{ + position:absolute; + top:0; + left:0; + background:rgba(0,0,0,0.5); + z-index:999; + width:100%; + height:100%; +} +.model_box{ + width:80%; + position:fixed; + top:50%; + left:50%; + transform: translate(-50%,-50%); + z-index:1000; + background:#fff; + height:75%; + border-radius:15rpx; +} +.model_box .submitbtn { + width: 276rpx; + height: 72rpx; + background: #FF564F; + opacity: 1; + border-radius: 36rpx; + text-align: center; + font-size: 28rpx; + font-weight: bold; + line-height: 72rpx; + color: white; + margin: 0 auto; +} + + + +.fromCheck{ + display: flex; + flex-direction: column; + margin: 20rpx; + border-bottom: 2rpx solid #EEEEEE; +} +.fromCheck .labelCheck{ + display: flex; + flex-direction: row; + margin: 20rpx 0; + align-items: center; +} + + .brand{ + position: absolute; + right: 0; + top: 20rpx; + width: 160rpx; + height: 90rpx; + border-top-left-radius: 10rpx; + border-bottom-left-radius: 10rpx; + background-color: #F94F73; + color: white; + display: flex; + align-items: center; + flex-direction: column; + justify-content: center; + z-index: 9; +} + .brand .brandImg{ + display: flex; + flex-direction: row; + align-items: center; +} + +.areaContent{ + width: 100%; + box-sizing: border-box; + padding: 24rpx 10rpx; + font-size: 26rpx; + background: linear-gradient(145deg, #F7694E 0%, #FF564F 100%); +} +.areaContent view{ + display: inline-block; + padding: 0 25rpx; + margin-right:10rpx ; + color: #fff; +} +.areaContent .active{ + border: 1rpx solid #fff; + border-radius: 50rpx; +} +.dian_bg{ + background-color: #f2f2f2; + padding-bottom: 100rpx; +} +.bt_piao{ + padding-bottom: 0 !important; +} +.nav_dian{ + background: none; + color: #707070; + +} +.nav_dian .nav-item{ + color: #707070; +} +.nav_dian .nav-item.active{ + color: #707070; +} +.bt_1{ + display: flex; + align-items: center; + padding: 0 40rpx; + padding-right: 0; + margin-top: 20rpx; +} +.nav_dian .nav-item-after{ + background-color: #FF564F; +} +.btn_pai{ + width: 190rpx; + height: 68rpx; + line-height: 68rpx; + background-image: url('https://xcx.zgzmdz.com/attachment/images/baseImages/paim.png'); + background-size: 100% 100%; + color: #fff; +} +.gift_item{ + width: 100%; + margin-top: 30rpx; + display: flex; + align-items: center; + padding: 0 50rpx; + box-sizing: border-box; +} +.gift_item_user{ + width: 100rpx; + height: 100rpx; + border-radius: 50%; +} +.gift_item_gift{ + width: 350rpx; + height: 350rpx; + margin-left: 40rpx; +} +.gift_item_pl{ + display: flex; + flex-direction: column; + /* justify-content: center; */ + align-items: center; + margin-right: 30rpx; + width: 200rpx; +} +.gift_item_pl image{ + margin-bottom: 20rpx; +} +.personal_bg{ + background-color: white; + height: 100%; + /* overflow: auto; */ + /* padding-bottom: 50rpx; */ +} + +.personal_info{ + width: 100%; + height: 300rpx; + background-color: #F2F2F2; + display: flex; + align-items: center; + padding: 0 40rpx; + box-sizing: border-box; + margin-bottom: 40rpx; + } + .head_portrait{ + height: 200rpx; + width: 200rpx; + border-radius: 50%; + } + .personal_info_right{ + margin-left: 30rpx; + /* color: white; */ + font-size: 26rpx; + height: 200rpx; + display: flex; + flex-direction: column; + justify-content: center; + } + .personal_info_right view{ + margin-bottom: 15rpx; + } + .personal_info_right view:last-child{ + margin-bottom: 0; + } + .personal_item{ + background-color: white; + padding-left: 20rpx; + height: 60rpx; + line-height: 60rpx; + font-size: 26rpx; + } + .hairCurl_item{ + width: 90%; + height: 300rpx; + border: 1px solid black; + border-radius: 5px; + margin: 0 auto; + margin-top: 30rpx; + padding: 0 20rpx; + box-sizing: border-box; + display: flex; + align-items: center; + } + .hairCurl_item_img{ + height: 200rpx; + width: 250rpx; + border: 5px; + margin-right: 30rpx; + } + .hairCurl_item_right{ + height: 200rpx; + width: 350rpx; + display: flex; + flex-direction: column; + justify-content: space-around; + } + .hairCurl_item_right_p{ + display: flex; + width: 100%; + justify-content: space-between; + font-size: 26rpx; + } + .hairCurl_item_right_p1{ + font-size: 24rpx; + } + .hairCurl_item_right_p_function{ + width: 130rpx; + display: flex; + justify-content: space-between; + color: #1B63CF; + } + .hairCurl_picker{ + display: flex; + align-items: center; + font-size: 28rpx; + } + .luckDraw_bg{ + background-color: #F3D35A; + height: 100%; + overflow: auto; + padding-bottom: 110rpx; + } + .luckDraw_bg view{ + overflow: none ; +} + .luckDraw_banner{ + width: 100%; + height: 300rpx; + } + .luckDraw_banner image{ + width: 100%; + height: 100%; + } + .luckDraw_body{ + width: 100%; + padding: 0 30rpx; + box-sizing: border-box; + margin-top: 30rpx; + } + .luckDraw_info{ + width: 100%; + background-color: #EAEBEA; + border-radius: 5px; + height: 120rpx; + margin-bottom: 20rpx; + display: flex; + align-items: center; + + } + .luckDraw_info_item{ + height: 70%; + width: 25%; + display: flex; + align-items: center; + justify-content: center; + border-right: 1px solid #D1D0D1; + font-size: 28rpx; + color: #C8382E; + font-weight: bold; + + } + .luckDraw_info_item:nth-child(4){ + border-right: none; + } + .luckDraw_info_item image{ + width: 70rpx; + height: 70rpx; + border-radius: 50%; + } + .luckDraw_info_item1{ + font-size: 26rpx; + flex-direction: column; + justify-content: space-between; + + } + .luckDraw_foot{ + position: fixed; + bottom: 110rpx; + width: 100%; + height: 100rpx; + display: flex; + align-items: center; + justify-content: space-around; + z-index: 998; + } + .luckDraw_foot_item{ + height: 80%; + width: 35%; + background-color: #D7261D; + color: white; + font-size: 26rpx; + display: flex; + align-items: center; + justify-content: center; + border-radius: 5px; + } + .luckList{ + height: 100rpx; + width: 100%; + padding: 0 5%; + box-sizing: border-box; + display: flex; + align-items: center; + justify-content: space-between; + font-size: 24rpx; + + } + .luckList view,.luckRankheader view{ + width: 33%; + /* text-align: center; */ + } + .luckRankheader{ + height: 100rpx; + width: 100%; + padding: 0 5%; + box-sizing: border-box; + display: flex; + align-items: center; + justify-content: space-between; + font-size: 26rpx; + background-color: #D7261D; + color: white; + } + /**抽奖.wxss**/ + + + + + + /* pages/main/main.wxss */ + +page { + height: 100%; + /* background: #e3f8f1; */ + background: #fff; + } + + .views { + background: #cdb193; + color: #fff; + padding: 20rpx; + margin-top: -20rpx; + } + + .head { + /* background: url("http://tdf-crm-production.oss-cn-shenzhen.aliyuncs.com/icon_turn_back120200430/20200430150300_ul1s.png") no-repeat; */ + background-size: 100% 100%; + height: 400rpx; + width: 100%; + } + + .canvasl { + /* background: url("http://tdf-crm-production.oss-cn-shenzhen.aliyuncs.com/icon_turn_back220200430/20200430150300_ic8b.png") no-repeat; */ + background-size: 100% 100%; + background-position-y: 50%; + width: 100%; + margin-bottom: 40rpx; + } + + .content { + text-align: center; + position: relative; + padding-bottom: 20rpx; + width: 700rpx; + margin: auto; + } + + .content-num { + position: absolute; + top: 20rpx; + left: 0; + color: #fff; + width: 100%; + text-align: center; + font-size: 24rpx; + } + + .content-image { + margin-top: -20rpx; + width: 700rpx; + } + + .content-list { + position: absolute; + left: 60rpx; + top: 150rpx; + height: 240rpx; + width: 600rpx; + overflow: auto; + font-size: 28rpx; + } + + .content-activity { + position: absolute; + left: 40rpx; + top: 566rpx; + height: 80rpx; + line-height: 80rpx; + width: 614rpx; + overflow: auto; + font-size: 28rpx; + color: rgba(111, 89, 66, 1); + } + + .canvas-litem-text-name { + padding-top: 20rpx; + color: #816a52; + font-size: 30rpx; + } + + .navigation-view { + width: 100%; + height: 80rpx; + line-height: 80rpx; + display: flex; + align-items: center; + } + + .navigation-back { + width: 30%; + text-align: left; + } + + .navigation-title { + width: 40%; + text-align: center; + } + + .navigation-btn { + width: 30%; + text-align: right; + } + + /* 转盘 */ + + .wrapper { + position: relative; + width: 100%; + } + + .wrapper-content { + background: #e0cfbc; + border-radius: 50%; + width: 720rpx; + height: 720rpx; + padding: 40rpx; + position: relative; + box-sizing: border-box; + z-index: 101; + + /* overflow: inherit; */ + } + + .canvas-container ul, .canvas-container li { + margin: 0; + padding: 0; + list-style: none; + } + + .canvas-container { + margin: 0 auto; + position: absolute; + left: 40rpx; + top: 40rpx; + width: 640rpx; + height: 640rpx; + border-radius: 50%; + /* overflow: inherit; */ + + } + + .canvas-container-quiu { + width: 20rpx; + height: 20rpx; + border-radius: 50%; + position: absolute; + left: 10rpx; + top: 50%; + margin-top: -8rpx; + -webkit-transform-origin: 330rpx 50%; + transform-origin: 350rpx 50%; + z-index: 1001; + } + + .canvas-content { + overflow: hidden; + box-sizing: content-box; + border: 20rpx solid #cdb193; + position: absolute; + left: 0; + top: 0; + z-index: 1; + display: block; + width: 600rpx; + height: 600rpx; + border-radius: inherit; + background-clip: padding-box; + } + + /* 分隔线 */ + + .canvas-litem-text { + position: absolute; + top: -26rpx; + left: 80rpx; + width: 340rpx; + text-align: center; + height: 60rpx; + font-size: 24rpx; + z-index: 10000; + transform: rotate(90deg); + color: #aa8b6b; + } + + .canvas-litem-text-image { + position: relative; + } + + .canvas-litem-text-image-num { + position: absolute; + top: 50%; + left: 50%; + margin-top: -14rpx; + margin-left: -40rpx; + width: 80rpx; + } + + .canvas-btn { + display: flex; + flex-direction: column; + justify-content: space-around; + position: absolute; + left: 50%; + top: 50%; + margin-left: -110rpx; + margin-top: -110rpx; + width: 220rpx; + height: 220rpx; + border-radius: 50%; + color: #f4e9cc; + border: 10px solid #cdb193; + text-align: center; + font-size: 40rpx; + text-decoration: none; + box-sizing: border-box; + z-index: 10001; + overflow: initial; + } + + .canvas-btn .canvas-btn-text { + position: absolute; + top: 7%; + left: 7%; + width: 86%; + height: 86%; + border-radius: 50%; + box-sizing: border-box; + padding: 22rpx 20rpx 0; + background: rgba(205, 177, 147, 1); + background: linear-gradient(134deg, rgba(232, 219, 197, 1) 0%, rgba(205, 177, 147, 1) 100%); + /* box-shadow:0px 5px 7px 0px rgba(255,255,255,1); */ + margin: auto; + z-index: 102; + } + + .canvas-btn::after { + position: absolute; + display: block; + content: ' '; + left: 39%; + top: -78%; + width: 0; + height: 0; + overflow: hidden; + border-width: 80rpx 20rpx 80rpx 20rpx; + border-style: solid; + border-color: transparent; + border-bottom-color: #ffab52; + } + + /* //css扇形 */ + + .canvas-item2 { + position: absolute; + left: 0px; + top: 0; + width: 620rpx; + height: 328rpx; + color: #e4370e; + font-weight: bold; + transform-origin: 330rpx 330rpx; + overflow: hidden; + } + + .canvas-item2-after { + position: absolute; + top: 0; + left: 0; + width: 330rpx; + height: 330rpx; + transform-origin: 330rpx 330rpx; + opacity: 1; + } + + .gb-wheel-list { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + z-index: 9; + } + + .gb-wheel-item { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + color: #fff; + text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6); + overflow: hidden; + } + + .gb-wheel-icontent { + position: relative; + display: block; + padding-top: 50rpx; + margin: 0 auto; + text-align: center; + transform-origin: 50% 328rpx; + color: #aa8b6b; + } + + .opoUp-son { + position: fixed; + width: 90%; + left: 5%; + box-sizing: border-box; + top: 10%; + border-radius: 5px; + z-index: 10004; + padding: 30rpx; + /* background: url("http://tdf-crm-production.oss-cn-shenzhen.aliyuncs.com/bg_up/20200511/20200511165829_flij.png") no-repeat; */ + background-size: 102% 66%; + background-position-y: 65rpx; + } + .bg_up{ + position: absolute; + top: 70rpx; + left: 0; + width: 100%; + } + + .opoUp-son-info { + font-size: 80rpx; + font-weight: 600; + color: rgba(255, 255, 255, 1); + letter-spacing: 2px; + text-align: center; + } + .opoUp-son-title{ + color:#fff; + font-size: 28rpx; + padding: 30rpx 0 50rpx; + text-align: center; + } + + .ticket-item{ + margin-bottom: 20rpx; + padding: 30rpx; + color: #fff; + background: url("http://tdf-crm-production.oss-cn-shenzhen.aliyuncs.com/image/20200429/20200429155048_pxu6.png") no-repeat; + background-size: 100% 100%; + } + .ticket-title{ + font-size: 24rpx; + padding: 20rpx; + padding-bottom: 10rpx; + border-top: 1px dashed #fff; + margin-top: 16rpx; + } + .ticket-title-date{ + color:#ECD274; + } + .ticket-title-dates{ + display:none; + } + .font72{ + margin-top:30rpx; + } + .colorFF{ + font-size: 32rpx; + } + .news{ + background: #ECD274; + border-radius:0px 12px 0px 12px; + padding:2rpx 14rpx; + color: #6F5942; + font-size: 20rpx; + margin-right: 10rpx; + } + + .past{ + color:#828282; + background: url("http://tdf-crm-production.oss-cn-shenzhen.aliyuncs.com/image/20200430/20200430093820_rcj3.png") no-repeat; + background-size: 100% 100%; + } + .past .font72{ + color: #3D3E3E; + margin-top:45rpx; + } + .past .ticket-title-date{ + color:#828282; + } + .past .ticket-title{ + border-top: 1px dashed #D5D5D5; + padding-bottom: 0; + } + .past .colorFF{ + color:#FF9E1B; + } + .past .ticket-title-dates{ + color:#FF9E1B; + display: block; + } + + .opoUp-son-btn{ + background: #D0AF8E; + color: #fff; + width: 520rpx; + font-size: 32rpx; + margin-top: 100rpx; + } + .recur{ + text-align: center; + color: #fff; + padding: 32rpx; + font-size: 28rpx; + } + .opoUp-timesNo{ + background: #fff; + text-align: center; + color: #ABACAC; + } + .opoUp-timesNo .opoUp-son-btn { + background: #0a655a; + width: 300rpx; + } + .header{ + padding: 30rpx; + } + .header-input input{ + border-radius: 5px; + border: 1px solid #666; + margin-right: 40rpx; + } + .header-btn{ + background: #56B1FC; + font-size: 28rpx; + color: #fff; + } + + .zan-dialog__mask { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: 10; + background: rgba(0, 0, 0, 0); /*设置阴影半透明背景如: background: rgba(0, 0, 0, 0.4);*/ + display: none; + } + + .zan-dialog__container { + position: fixed; + bottom: 400rpx; + /* top: -700rpx; */ + width: 650rpx; /*弹窗布局宽*/ + height: 650rpx; /*弹窗布局高,与下面弹出距离transform有关*/ + margin-left: 50rpx; + background: #f8f8f8; + transform: translateY(300%); /*弹框弹出距离,与弹框布局高度有关,如300%表示弹起距离为3倍弹窗高度 */ + transition: all 0.4s ease; + z-index: 12; + border-radius: 20rpx; + z-index: 999; + box-shadow: 0px 3px 3px 2px gainsboro; /*弹框的悬浮阴影效果,如不需要可注释该行*/ + } + + .zan-dialog--show .zan-dialog__container { + transform: translateY(0); + } + + .zan-dialog--show .zan-dialog__mask { + display: block; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: black; + opacity: 0.5; + z-index: 998; + } \ No newline at end of file diff --git a/qf_happyvote/pages/templates/detail.wxml b/qf_happyvote/pages/templates/detail.wxml index 808f06f..7141c92 100644 --- a/qf_happyvote/pages/templates/detail.wxml +++ b/qf_happyvote/pages/templates/detail.wxml @@ -1,102 +1,170 @@ -