diff --git a/app.js b/app.js index a2655fc..876d083 100644 --- a/app.js +++ b/app.js @@ -13,7 +13,6 @@ App({ * 小程序版本更新 */ that.autoUpdate(); - /** * 用户登录 */ @@ -22,6 +21,7 @@ App({ }, + //登陆 userLogin(sceneAddress) { let that = this; @@ -41,15 +41,15 @@ App({ }) .then(res => { wx.setStorageSync('openId',res.data.openId) + wx.setStorageSync('subMalls', JSON.parse(res.data.subMalls) ) if (res.data && res.data.score) { if (res.data.score != 0) { that.globalData.score = res.data.score; } } Http.setToken(res.data.token); + console.log(Http.headers.token,"headers.token") that.globalData.token = res.data.token; - console.log(that.globalData.token) - if (that.tokenCallback) { that.tokenCallback(res.data.token); } diff --git a/app.json b/app.json index 9af6c62..33f8405 100644 --- a/app.json +++ b/app.json @@ -1,15 +1,34 @@ { "pages": [ + "pages/users/users", "pages/index/index", - "pages/location/location", - "pages/ces", - "pages/ces/ces" + + "pages/location/location" ], + "tabBar": { + "list": [ + { + "pagePath": "pages/index/index", + "text": "首页", + "iconPath": "assets/images/home.png", + "selectedIconPath": "assets/images/home-a.png" + }, + { + "pagePath": "pages/users/users", + "text": "我的", + "iconPath": "assets/images/park.png", + "selectedIconPath": "assets/images/user-a.png" + } + ], + "color": "#abb1be", + "selectedColor": "#b2743d" + }, "window": { "backgroundTextStyle": "light", "navigationBarBackgroundColor": "#fff", "navigationBarTitleText": "集团版", - "navigationBarTextStyle": "black" + "navigationBarTextStyle": "black", + "navigationStyle": "custom" }, "style": "v2", "sitemapLocation": "sitemap.json" diff --git a/app.wxss b/app.wxss index e69de29..323df65 100644 --- a/app.wxss +++ b/app.wxss @@ -0,0 +1 @@ +page{background-color:#f2f6f9} \ No newline at end of file diff --git a/assets/images/desktop.ini b/assets/images/desktop.ini new file mode 100644 index 0000000..80c9f0a --- /dev/null +++ b/assets/images/desktop.ini @@ -0,0 +1,5 @@ +[LocalizedFileNames] +user-b.png=@user-b,0 +park-b.png=@park-b,0 +mendian-b.png=@mendian-b,0 +home-b.png=@home-b,0 diff --git a/assets/images/fail.png b/assets/images/fail.png new file mode 100644 index 0000000..698614a Binary files /dev/null and b/assets/images/fail.png differ diff --git a/assets/images/home-a.png b/assets/images/home-a.png new file mode 100644 index 0000000..5afa798 Binary files /dev/null and b/assets/images/home-a.png differ diff --git a/assets/images/home.png b/assets/images/home.png new file mode 100644 index 0000000..4384bb0 Binary files /dev/null and b/assets/images/home.png differ diff --git a/assets/images/mendian-a.png b/assets/images/mendian-a.png new file mode 100644 index 0000000..62d22bd Binary files /dev/null and b/assets/images/mendian-a.png differ diff --git a/assets/images/mendian.png b/assets/images/mendian.png new file mode 100644 index 0000000..0585322 Binary files /dev/null and b/assets/images/mendian.png differ diff --git a/assets/images/park-a.png b/assets/images/park-a.png new file mode 100644 index 0000000..dba1a56 Binary files /dev/null and b/assets/images/park-a.png differ diff --git a/assets/images/park.png b/assets/images/park.png new file mode 100644 index 0000000..b487525 Binary files /dev/null and b/assets/images/park.png differ diff --git a/assets/images/picture.png b/assets/images/picture.png new file mode 100644 index 0000000..a25e961 Binary files /dev/null and b/assets/images/picture.png differ diff --git a/assets/images/user-a.png b/assets/images/user-a.png new file mode 100644 index 0000000..8fdd54e Binary files /dev/null and b/assets/images/user-a.png differ diff --git a/assets/images/user.png b/assets/images/user.png new file mode 100644 index 0000000..c094603 Binary files /dev/null and b/assets/images/user.png differ diff --git a/assets/images/wechat.png b/assets/images/wechat.png new file mode 100644 index 0000000..fc4a727 Binary files /dev/null and b/assets/images/wechat.png differ diff --git a/components/navbar/img/back.svg b/components/navbar/img/back.svg new file mode 100644 index 0000000..614c029 --- /dev/null +++ b/components/navbar/img/back.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/components/navbar/img/home.svg b/components/navbar/img/home.svg new file mode 100644 index 0000000..b8fe7ed --- /dev/null +++ b/components/navbar/img/home.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/components/navbar/navbar.js b/components/navbar/navbar.js new file mode 100644 index 0000000..45f28cf --- /dev/null +++ b/components/navbar/navbar.js @@ -0,0 +1,64 @@ +const app = getApp() + +Component({ + + properties: { + background: { + type: String, + value: '#F4F5F9' + }, + color: { + type: String, + value: '#000' + }, + text: { + type: String, + value: 'Wechat' + }, + showLocationIf: { + type: Boolean, + value: false + }, + back: { + type: Boolean, + value: false + }, + home: { + type: Boolean, + value: false + } + }, + + data: { + array: ['A广场', 'B广场-北京西单'], + index: 1, + statusBarHeight: app.statusBarHeight + 'px', + navigationBarHeight: (app.statusBarHeight + 44) + 'px' + }, + methods: { + backHome: function () { + wx.switchTab({ + url: '/index/index', + }) + }, + bindPickerChange: function (e) { + console.log('picker发送选择改变,携带值为', e.detail.value) + this.setData({ + index: e.detail.value + }) + }, + back: function () { + wx.navigateBack({ + delta: 1 + }) + } + }, + attached: function(){ + let pages = getCurrentPages(); + if (pages.length <= 1) { + this.setData({ + back: false + }) + } + } +}) diff --git a/components/navbar/navbar.json b/components/navbar/navbar.json new file mode 100644 index 0000000..32640e0 --- /dev/null +++ b/components/navbar/navbar.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/components/navbar/navbar.wxml b/components/navbar/navbar.wxml new file mode 100644 index 0000000..53a0bdd --- /dev/null +++ b/components/navbar/navbar.wxml @@ -0,0 +1,20 @@ + + + + + + + + + + + + {{text}} + + + + {{array[index]}} + + + + \ No newline at end of file diff --git a/components/navbar/navbar.wxss b/components/navbar/navbar.wxss new file mode 100644 index 0000000..e24434c --- /dev/null +++ b/components/navbar/navbar.wxss @@ -0,0 +1,91 @@ +.navbar { + width: 100vw; + background-color: #F4F5F9; + position: fixed; + left: 0; + top: 0; + z-index: 400000000; + overflow: hidden; +} + +.title-container { + height: 44px; + display: flex; + align-items: center; + position: relative; +} + +.capsule { + margin-left: 10px; + height: 32px; + border: 1px solid #e1e1e3; + border-radius: 60px; + display: flex; + align-items: center; + padding: 0 20rpx; + background: #fff!important; +} + +.capsule > view { + width: 35px; + height: 60%; + position: relative; +} + +.capsule > view:nth-child(2) { + border-left: 1px solid #777; +} + +.capsule image { + width: 70%; + height: 100%; + position: absolute; + left: 50%; + top: 50%; + transform: translate(-50%,-50%); +} + +.title { + color: #000; + position: absolute; + left: 104px; + right: 104px; + font-weight: 600; + font-size: 32rpx; + text-align: center; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +@font-face { + font-family: 'iconfont'; /* project id 1353695 */ + src: url('//at.alicdn.com/t/font_1353695_nyv2ld9xqk8.eot'); + src: url('//at.alicdn.com/t/font_1353695_nyv2ld9xqk8.eot?#iefix') format('embedded-opentype'), + url('//at.alicdn.com/t/font_1353695_nyv2ld9xqk8.woff2') format('woff2'), + url('//at.alicdn.com/t/font_1353695_nyv2ld9xqk8.woff') format('woff'), + url('//at.alicdn.com/t/font_1353695_nyv2ld9xqk8.ttf') format('truetype'), + url('//at.alicdn.com/t/font_1353695_nyv2ld9xqk8.svg#iconfont') format('svg'); +} +.iconfont { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-daohangdizhiweizhi:before { + content: "\e787"; +} +.locations{ + font-size: 28rpx; + display: inline-block; + width: 200rpx; + overflow: hidden; + text-overflow:ellipsis; + white-space: nowrap; +} +.pick-box{ + width: 260rpx; + padding-left: 20rpx; +} \ No newline at end of file diff --git a/config/config.js b/config/config.js index 154a41c..e06c5a3 100644 --- a/config/config.js +++ b/config/config.js @@ -1,6 +1,6 @@ var config = { weapp: { - AppId: "wx649b3be73c1afe47", + AppId: "wx2fe35ba5e341471f", }, url: 'https://ctest.malls.iformall.com/C/api', @@ -10,6 +10,10 @@ var config = { * 接口用途:login */ login: "/user/login", + /** + * banner + */ + bannerlist: "/wxCampaign/list", }, }; diff --git a/pages/ces.json b/pages/ces.json deleted file mode 100644 index 8835af0..0000000 --- a/pages/ces.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "usingComponents": {} -} \ No newline at end of file diff --git a/pages/ces.wxml b/pages/ces.wxml deleted file mode 100644 index e69de29..0000000 diff --git a/pages/ces.wxss b/pages/ces.wxss deleted file mode 100644 index 0ea3e18..0000000 --- a/pages/ces.wxss +++ /dev/null @@ -1 +0,0 @@ -/* pages/ces.wxss */ \ No newline at end of file diff --git a/pages/ces/ces.js b/pages/ces/ces.js deleted file mode 100644 index 02a2c6b..0000000 --- a/pages/ces/ces.js +++ /dev/null @@ -1,66 +0,0 @@ -// pages/ces/ces.js -Page({ - - /** - * 页面的初始数据 - */ - data: { - - }, - - /** - * 生命周期函数--监听页面加载 - */ - onLoad: function (options) { - - }, - - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage: function () { - - } -}) \ No newline at end of file diff --git a/pages/ces/ces.json b/pages/ces/ces.json deleted file mode 100644 index 8835af0..0000000 --- a/pages/ces/ces.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "usingComponents": {} -} \ No newline at end of file diff --git a/pages/ces/ces.wxml b/pages/ces/ces.wxml deleted file mode 100644 index f274d26..0000000 --- a/pages/ces/ces.wxml +++ /dev/null @@ -1,2 +0,0 @@ - -pages/ces/ces.wxml diff --git a/pages/ces/ces.wxss b/pages/ces/ces.wxss deleted file mode 100644 index 1af376b..0000000 --- a/pages/ces/ces.wxss +++ /dev/null @@ -1 +0,0 @@ -/* pages/ces/ces.wxss */ \ No newline at end of file diff --git a/pages/index/index.js b/pages/index/index.js index 3d90968..5ecfdf0 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -1,7 +1,7 @@ // pages/index/index.js const Http = require("../../utils/HttpBasics"); const config = require("../../config/config.js"); - +let app = getApp(); Page({ /** @@ -18,24 +18,66 @@ Page({ }) }, + /** + * banner + */ + getBannerlist: function () { + // Http.setToken(app.globalData.token); + let that = this; + Http.get({ + url: config.api.bannerlist, + data: { + pageNum: 1, + pageSize: 7 + } + + }).then(res => { + // that.getmemberId(app.globalData.token); + // that.checkUserCarStatus(); + that.setData({ + list: res.data.list + }); + }) + .catch(err => { + // that.getmemberId(app.globalData.token); + // that.checkUserCarStatus(); + }); + }, /** * 页面的初始数据 */ data: { - plazaAppid: 'wx8e5cab05e850bc91' + list: [], + subMalls: [], }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { - + setTimeout(() => { //延时300ms 否则 拿不到token%3..x + this.getBannerlist() + console.log(123) + }, 300) + this.gitSquareLis() }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ + /* + 获取集团下面的广场 + */ + gitSquareLis(){ + + const tempData = wx.getStorageSync("subMalls"); + console.log(wx.getStorageSync("subMalls")) + this.setData({ + subMalls: tempData + }) + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ onReady: function () { }, diff --git a/pages/index/index.json b/pages/index/index.json index 8835af0..cedc479 100644 --- a/pages/index/index.json +++ b/pages/index/index.json @@ -1,3 +1,5 @@ { - "usingComponents": {} + "usingComponents": { + "navbar": "../components/navbar/navbar" + } } \ No newline at end of file diff --git a/pages/index/index.wxml b/pages/index/index.wxml index 0c9f788..194896c 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -1,31 +1,18 @@ + - - - - - 用户昵称 - 用户等级 - - - {{'我的成长值'}}| - {{"更多成长值"}} - - - - - 123 456 - + + - + - 欢乐国际购物城 - 广场地址:嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻 - 总面积:6000M² - 车位数:123 + {{item.name}} + {{'广场地址:'+item.addr}} + {{'总面积:'+item.totalArea+'M²'}} + {{'车位数:'+item.parkPlaceNumber}} 距您:233M diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 6b360eb..0ffd98e 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -1,8 +1,12 @@ -/* pages/index/index.wxss */ +page{ + padding-top: 64px; + +} .Box { width: 90%; margin: 0 5%; + } .userinfo { @@ -58,17 +62,19 @@ margin-top: 30rpx; height: 320rpx; border: 1rpx solid #000; + background-color: #fff; border-radius: 10rpx; } .EntranceBox{ margin: 20rpx; - overflow: hidden + overflow: hidden; + } .plazaImg{ float: left; width: 300rpx; height: 270rpx; - background-color: aqua; + /* background-color: aqua; */ } .plazaMessage{ float: left; @@ -77,11 +83,18 @@ .site{ width: 300rpx; font-size: 24rpx; - margin-top: 10rpx ; + margin-top: 20rpx ; height: 40prx; - overflow: hidden + overflow: hidden; + color: #999; + } .area{ - margin-top: 10rpx ; + margin-top: 20rpx ; font-size: 24rpx; + color: #999; +} +.plazaName{ + font-size: 28rpx; + color: #333; } \ No newline at end of file diff --git a/pages/ces.js b/pages/users/users.js similarity index 72% rename from pages/ces.js rename to pages/users/users.js index 5f62c13..2373da3 100644 --- a/pages/ces.js +++ b/pages/users/users.js @@ -1,17 +1,27 @@ -// pages/ces.js +// pages/users/users.js +const imgurl = require("../../utils/imgurl"); +const Http = require("../../utils/HttpBasics"); +var config = require("../../config/config.js"); Page({ /** * 页面的初始数据 */ data: { - + aboutUs: imgurl.aboutUs.url, + banneColor: "linear-gradient(180deg,rgba(253,131,45,1) 0%,rgba(254,74,22,1) 100%)", + // levelName: }, + + + /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { + + }, diff --git a/pages/users/users.json b/pages/users/users.json new file mode 100644 index 0000000..a77ec86 --- /dev/null +++ b/pages/users/users.json @@ -0,0 +1,8 @@ +{ + "usingComponents": { + "navbar": "../components/navbar/navbar" + }, + "navigationBarBackgroundColor": "#FD832D", + "navigationBarTextStyle": "white", + "disableScroll": true +} \ No newline at end of file diff --git a/pages/users/users.wxml b/pages/users/users.wxml new file mode 100644 index 0000000..88cafb4 --- /dev/null +++ b/pages/users/users.wxml @@ -0,0 +1,45 @@ + + + + 版本号:{{appVersion}} + + + + + + 关于我们 + + + + + + + + + + + {{levelName}} + + + + + 我的手机号: + {{curPhone}} + [微信授权手机号] + + + 获取微信授权手机号 + + + + 我的 + 成长值{{score}} + | + + 更多成长值 + + + + + + \ No newline at end of file diff --git a/pages/users/users.wxss b/pages/users/users.wxss new file mode 100644 index 0000000..caca596 --- /dev/null +++ b/pages/users/users.wxss @@ -0,0 +1,436 @@ +page{ + /* overflow-y:visible!important; */ + overflow: auto; + height: 100%!important; + background: #f6f6f6; + padding-top: 64px; + +} +.icons { + display: block; + width: 50rpx; + margin: 0 auto 10rpx; +} + +.navigator-hover { + opacity: 1 !important; + background: #fff; +} + +.couponnum { + display: inline-block; + position: absolute; + top: 18rpx; + bottom: 0; + right: 45px; + width: 16rpx; + height: 16rpx; + border-radius: 50%; + background: red; + font-size: 22rpx; +} + +.user-avatar open-data { + display: block; + width: 100%; + height: 100%; +} +.user-name{ + font-family: PingFangSC-Medium; + height: 42rpx; + margin-top:66rpx; + letter-spacing: 0.64rpx; + line-height: 44rpx; + font-size: 30rpx; + color: #3C3C3C; + font-weight:600; + display: flex; /*设置显示样式**/ + align-items: center; /**子view垂直居中*/ + vertical-align: center; /**垂直居中*/ + justify-content: center; /**内容居中*/ + flex-direction: row; +} +.user-phone { + font-family: PingFangSC-Regular; + letter-spacing: 0.64rpx; + line-height: 44rpx; + font-size: 36rpx; + color: #000; + padding: 0 20rpx 20rpx; + text-align: center; + margin-top:20rpx; +} +.user-avatar { + position: absolute; + width: 128rpx; + height: 128rpx; + border-radius: 50%; + overflow: hidden; + top:-64rpx; + left: 0; + right: 0; + margin: auto; +} + +.chengzhang { + font-size: 24rpx; + font-weight: 400; + color: #FFFFFF; + padding: 0 8rpx; +} + +.view { + font-size: 24rpx; +} + +.view image { + width: 12rpx; + vertical-align: middle; + margin-top: -6rpx; +} + +.bannerbg { + width: 100%; +} + +.bannerbg image { + display: block; + width: 100%; +} + +.open01 { + display: block; + width: 120rpx; + height: 120rpx; +} +.user-btns{ + background: #fff; + display: flex; + text-align: center; + flex-wrap: wrap; +} + .user-btns navigator{ + width: 33.3%; + height: 160rpx; + } + +.user-btns:nth-of-type(3){ + margin-bottom: 0; +} +.user-btns .user-btn { + font-size: 30rpx; + letter-spacing: 1.16rpx; +} +.top-content{ + width: 100%; + height: auto; +} +.user_title{ + position: relative; + width: 94%; + background: #fff; + border-radius: 16rpx; + margin: -100rpx auto 0; + padding: 10rpx 0; + box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.10); +} +.btns_bg{ + width: 94%; + background: #fff; + border-radius: 16rpx; + margin: 30rpx auto 0; + padding: 20rpx 0; + box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.10); +} +.user-btns .user-btn > view { + padding: 20rpx 10px ; + font-size: 28rpx; + color: #888; + letter-spacing: 1.16rpx; + text-align: center; +} + +.iconfont { + position: absolute; + right: 0; + top: 0; + bottom: 0; + width: 30rpx; + height: 30rpx; + line-height: 44rpx; + color: #c7c7cc; + font-size: 44rpx; + margin: auto; +} + +.look { + display: inline-block; + padding-right: 25rpx; +} + +.user{ + position: relative; +} +.user .version{ + position: absolute; + top: 140rpx; + left:30rpx; + width: 307rpx; + height: 50rpx; + text-align: center; + font-size: 30rpx; + color: #999; + z-index: 100; +} +.user-out-btn { + background-color: #fff; + height: 100rpx; + line-height: 100rpx; + font-family: PingFangSC-Semibold; + font-size: 30rpx; + color: #000; + text-align: center; + border-radius: 0; + border: none; +} + +.user-out-btn.button-hover { + background-color: rgba(237, 237, 237, 1); +} + +.user-out-btn::after { + opacity: 0; +} +.gzh button::after { + border: none!important; +} +.gzh { + width: 100%; + height: 170rpx; + z-index: 10; + background: #fff; + border-radius: 16rpx; + overflow: hidden; + box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.15); +} + +.act { + display: none; +} + +.of { + width: 90%; + margin: 30rpx auto; + height: auto; + background: #fff; + border-radius: 16rpx; + overflow: hidden; + box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.15); +} +.of1{ + width: 90%; + margin: auto; + height: 160rpx; + background: #fff; + border-radius: 16rpx; + overflow: hidden; + box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.15); + display: flex; +} +.of1 .img{ + width:100rpx; + height: 100rpx; +} +.activeimg { + width: 200rpx !important; + position: absolute; + bottom: 0; + right: 0; + z-index: 10000; +} + +.edit { + width: 26rpx; + vertical-align: middle; +} +.qrcode{ + display: none; +} +.qrcode image { + width: 70rpx; + margin-right: 20rpx; +} + +.edits { + margin-top: 44rpx; +} + +.showQrcode { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: 1000; + background: rgba(0, 0, 0, 0.6); +} + +.qrcodes { + position: absolute; + width: 400rpx; + height: 440rpx; + top: 0; + left: 0; + right: 0; + bottom: 0; + border-radius: 15rpx; + margin: auto; + background: #fff; + text-align: center; +} + +.qrcodes text { + text-align: center; + font-size: 26rpx; + display: inline-block; + line-height: 40rpx; +} + +.container-box { + width: 100%; + height: 100%; + background: 0 0 0 0.6; + position: relative; +} + +.img-box { + width: 500rpx; + margin: 200rpx auto 0; + background-color: #fff; + border-radius: 16rpx; +} + +.img-box text { + display: block; + text-align: center; + font-size: 28rpx; +} + + + +.img-box image { + display: block; + width: 500rpx; +} + +.input-row { + border-bottom: 1rpx solid #e5e5e5; + border-top: 1rpx solid #e5e5e5; + display: flex; + align-items: center; + height: 100rpx; + padding: 0 32rpx; + background-color: #fff; + font-size: 34rpx; + color: #000; +} + +.input-row input { + margin-left: 100rpx; + flex: 1; +} + +.mybtn { + width: 686rpx; + margin: 60rpx auto; +} + +.mask { + position: fixed; + top: 0; + left: 0; + z-index: 3; + width: 100%; + height: 100%; + opacity: 0; +} + +.canvas-box { + position: fixed; + width: 500rpx; + height: 587rpx; + overflow: hidden; + left: 0; + top: 0; + bottom: 0; + right: 0; + margin: auto; + background: #fff; + border-radius: 16rpx; +} +.showQrcode text{ + display: block; + text-align: center; + font-size: 28rpx; +} +.membercode { + margin-top: 20rpx; +} + +.top{ + width: 100%; + height: 234rpx; + position: relative; +} +.usre_level{ + height:32rpx; + border-radius:9px 9px 9px 0px; + font-family:PingFangSC-Regular; + font-weight:400; + color:rgba(255,255,255,1); + line-height:32rpx; + float: left; + margin-top: 8rpx; +} +.my{ + font-size:24rpx; + font-family:PingFangSC-Regular; + font-weight:400; + color:rgba(166,166,166,1); + line-height:34rpx; +} +.chengzhang_h{ + color: #3C3C3C; + font-size:24rpx; + font-weight: 600; +} +.my_line{ + margin: 0 10rpx; +} +.usre_level{ + font-size:20rpx; +} +.name{ + float: left; +} +.aboutUs{ + border-radius: 12rpx; + background: #fff; + position: absolute; + top: 40rpx; + right: 20rpx; + display: flex; + padding: 10rpx 20rpx; +} +.aboutUs .aboutIcons { + display: block; + width: 50rpx; + height: 40rpx; + line-height: 40rpx; +} +.aboutUs text { + margin-left: 10rpx; + line-height: 55rpx; + font-size: 28rpx; + color: #888; +} \ No newline at end of file diff --git a/project.config.json b/project.config.json index 848a6b2..aef2cb1 100644 --- a/project.config.json +++ b/project.config.json @@ -16,8 +16,8 @@ }, "compileType": "miniprogram", "libVersion": "2.12.0", - "appid": "wx649b3be73c1afe47", - "projectname": "C%E7%AB%AF%E9%9B%86%E5%9B%A2%E7%89%88", + "appid": "wx2fe35ba5e341471f", + "projectname": "%E5%AF%8C%E8%8C%82%E9%9B%86%E5%9B%A2", "debugOptions": { "hidedInDevtools": [] }, diff --git a/utils/imgurl.js b/utils/imgurl.js new file mode 100644 index 0000000..c351b5f --- /dev/null +++ b/utils/imgurl.js @@ -0,0 +1,740 @@ +const baseUrl = 'https://formall.oss-accelerate.aliyuncs.com/cimg/' +module.exports = { + 'act': { + 'url': baseUrl + 'act.png', + 'name': '' + }, + 'active': { + 'url': baseUrl + 'active.gif', + 'name': '' + }, + 'add': { + 'url': baseUrl + 'add.png', + 'name': '' + }, + 'jiaofeiwm':{ + 'url': baseUrl + 'jiaofeiwm.png', + 'name': '缴费规则' + }, + 'addr-white': { + 'url': baseUrl + 'addr-white.png', + 'name': '' + }, + 'guanbi1': { + 'url': baseUrl + 'guanbi1.png', + 'name': '首页游戏的关闭按钮' + }, + 'usergift': { + 'url': baseUrl + 'usergift.gif', + 'name': '首页悬浮游戏入口' + }, + 'addr': { + 'url': baseUrl + 'addr.png', + 'name': '' + }, + 'addresslogo': { + 'url': baseUrl + 'addresslogo.png', + 'name': '' + }, + 'alipay': { + 'url': baseUrl + 'alipay.png', + 'name': '' + }, + 'banner': { + 'url': baseUrl + 'banner.png', + 'name': '' + }, + 'wmclose': { + 'url': baseUrl + 'wmclose.png', + 'name': '余额不足' + }, + 'bg': { + 'url': baseUrl + 'bg.png', + 'name': '' + }, + 'cardicon': { + 'url': baseUrl + 'cardicon2.png', + 'name': '' + }, + 'che': { + 'url': baseUrl + 'che1.png', + 'name': '' + }, + 'choice': { + 'url': baseUrl + 'choice.png', + 'name': '' + }, + 'choiced': { + 'url': baseUrl + 'choiced.png', + 'name': '' + }, + 'clock': { + 'url': baseUrl + 'clock.png', + 'name': '' + }, + 'closed': { + 'url': baseUrl + 'closed.png', + 'name': '' + }, + 'coupon': { + 'url': baseUrl + 'coupon.png', + 'name': '' + }, + 'noCoupon': { + 'url': baseUrl + 'noCoupon.png', + 'name': '' + }, + 'ding': { + 'url': baseUrl + 'ding2.png', + 'name': '' + }, + 'dingdan': { + 'url': baseUrl + 'dingdan.png', + 'name': '' + }, + 'noOrders': { + 'url': baseUrl + 'noOrders.png', + 'name': '' + }, + 'down-white': { + 'url': baseUrl + 'down-white.png', + 'name': '' + }, + 'down': { + 'url': baseUrl + 'down.png', + 'name': '' + }, + 'edit': { + 'url': baseUrl + 'edit.png', + 'name': '' + }, + 'fail': { + 'url': baseUrl + 'fail.png', + 'name': '' + }, + 'fenxiang1': { + 'url': baseUrl + 'fenxiang1.png', + 'name': '' + }, + 'game': { + 'url': baseUrl + 'game.png', + 'name': '' + }, + 'gift': { + 'url': baseUrl + 'gift1.png', + 'name': '' + }, + 'wmgift': { + 'url': baseUrl + 'wmgift.png', + 'name': '' + }, + 'gou': { + 'url': baseUrl + 'gou.png', + 'name': '' + }, + 'gouHr': { + 'url': baseUrl + 'gouHr.png', + 'name': '' + }, + 'grade': { + 'url': baseUrl + 'grade.png', + 'name': '' + }, + 'grade1': { + 'url': baseUrl + 'grade1.png', + 'name': '' + }, + 'grade2': { + 'url': baseUrl + 'grade2.png', + 'name': '' + }, + 'grade3': { + 'url': baseUrl + 'grade3.png', + 'name': '' + }, + 'growthbg': { + 'url': baseUrl + 'growthbg.png', + 'name': '' + }, + 'headbg': { + 'url': baseUrl + 'headbg.png', + 'name': '' + }, + 'home-n': { + 'url': baseUrl + 'home-n.png', + 'name': '' + }, + 'home-y': { + 'url': baseUrl + 'home-y.png', + 'name': '' + }, + 'jian': { + 'url': baseUrl + 'jian.png', + 'name': '' + }, + 'jilu': { + 'url': baseUrl + 'jilu.png', + 'name': '' + }, + 'topLine': { + 'url': baseUrl + 'topLine.png', + 'name': '' + }, + 'btomLine': { + 'url': baseUrl + 'btomLine.png', + 'name': '' + }, + 'line': { + 'url': baseUrl + 'line.png', + 'name': '' + }, + 'lines': { + 'url': baseUrl + 'lines.png', + 'name': '' + }, + 'liness': { + 'url': baseUrl + 'liness.png', + 'name': '' + }, + 'loading': { + 'url': baseUrl + 'loading.gif', + 'name': '' + }, + 'loading1': { + 'url': baseUrl + 'loading1.gif', + 'name': '' + }, + 'location': { + 'url': baseUrl + 'location.png', + 'name': '' + }, + 'logo': { + 'url': baseUrl + 'logo.png', + 'name': '' + }, + 'mine': { + 'url': baseUrl + 'mine.png', + 'name': '' + }, + 'myspeacial': { + 'url': baseUrl + 'myspeacial.jpg', + 'name': '' + }, + 'new1': { + 'url': baseUrl + 'new1.png', + 'name': '游戏' + }, + 'orbg': { + 'url': baseUrl + 'orbg.png', + 'name': '' + }, + 'park': { + 'url': baseUrl + 'park2.png', + 'name': '' + }, + 'parkCoupon': { + 'url': baseUrl + 'parkCoupon.png', + 'name': '' + }, + 'pass0': { + 'url': baseUrl + 'pass0.png', + 'name': '' + }, + 'pass1': { + 'url': baseUrl + 'pass1.png', + 'name': '' + }, + 'phone': { + 'url': baseUrl + 'phone.png', + 'name': '' + }, + 'platebg': { + 'url': baseUrl + 'platebg.png', + 'name': '' + }, + 'qidai': { + 'url': baseUrl + 'qidai.png', + 'name': '' + }, + 'qrcode': { + 'url': baseUrl + 'qrcode.png', + 'name': '' + }, + 'quan': { + 'url': baseUrl + 'quan1.png', + 'name': '' + }, + 'quans': { + 'url': baseUrl + 'quans2.png', + 'name': '' + }, + 'ques_bg': { + 'url': baseUrl + 'ques_bg.png', + 'name': '' + }, + 'ques_gou': { + 'url': baseUrl + 'ques_gou.png', + 'name': '' + }, + 'quesimg01': { + 'url': baseUrl + 'quesimg01.png', + 'name': '' + }, + 'redirect': { + 'url': baseUrl + 'redirect.png', + 'name': '' + }, + 'right': { + 'url': baseUrl + 'right.png', + 'name': '' + }, + 'rule': { + 'url': baseUrl + 'rule1.png', + 'name': '' + }, + 'shanchuGray': { + 'url': baseUrl + 'shanchu-gray.png', + 'name': '' + }, + 'shanchu': { + 'url': baseUrl + 'shanchu.png', + 'name': '' + }, + 'shang': { + 'url': baseUrl + 'shang.png', + 'name': '' + }, + 'share': { + 'url': baseUrl + 'share.png', + 'name': '' + }, + 'share01': { + 'url': baseUrl + 'share02.png', + 'name': '分享' + }, + 'spcode': { + 'url': baseUrl + 'spcode.png', + 'name': '' + }, + 'chevron': { + 'url': baseUrl + 'chevron.png', + 'name': '' + }, + 'spphone': { + 'url': baseUrl + 'spphone.png', + 'name': '' + }, + 'succ': { + 'url': baseUrl + 'succ.png', + 'name': '' + }, + 'success': { + 'url': baseUrl + 'success.png', + 'name': '' + }, + 'teljpg': { + 'url': baseUrl + 'tel1.jpg', + 'name': '' + }, + 'telpng': { + 'url': baseUrl + 'tel.png', + 'name': '' + }, + 'telicon': { + 'url': baseUrl + 'telicon.png', + 'name': '' + }, + 'user-n': { + 'url': baseUrl + 'user-n.png', + 'name': '' + }, + 'user-y': { + 'url': baseUrl + 'user-y.png', + 'name': '' + }, + 'wechat': { + 'url': baseUrl + 'wechat.png', + 'name': '' + }, + 'wenti': { + 'url': baseUrl + 'wenti1.png', + 'name': '' + }, + 'wm01': { + 'url': baseUrl + 'wm01.jpg', + 'name': '' + }, + 'wm02': { + 'url': baseUrl + 'wm02.jpg', + 'name': '' + }, + 'wm03': { + 'url': baseUrl + 'wm03.jpg', + 'name': '' + }, + 'wm04': { + 'url': baseUrl + 'wm04.jpg', + 'name': '' + }, + 'icon0001': { + 'url': baseUrl + 'icon0001.png', + 'name': '' + }, + 'icon0002': { + 'url': baseUrl + 'icon0002.png', + 'name': '' + }, + 'icon0003': { + 'url': baseUrl + 'icon0003.png', + 'name': '' + }, + 'icon0004': { + 'url': baseUrl + 'icon0004.png', + 'name': '' + }, + 'icon0005': { + 'url': baseUrl + 'icon0005.png', + 'name': '' + }, + 'icon0006': { + 'url': baseUrl + 'icon0006.png', + 'name': '' + }, + 'icon0007': { + 'url': baseUrl + 'icon0007.png', + 'name': '' + }, + 'icon0008': { + 'url': baseUrl + 'icon0008.png', + 'name': '' + }, + 'canTransferred': { + 'url': baseUrl + 'can-transferred.png', + 'name': '转赠图标' + }, + 'weixinTitle': { + 'url': baseUrl + 'weixin-title.png', + 'name': '微信图标' + }, + 'close02': { + 'url': baseUrl + 'close02.png', + 'name': '关闭图标' + }, + 'success01': { + 'url': baseUrl + 'success01.png', + 'name': '卡领取成功图标' + }, + 'sapellgroup': { + 'url': baseUrl + 'sapellgroup.png', + 'name': '拼团图标' + }, + 'spellBg': { + 'url': baseUrl + 'spell-bg.png', + 'name': '拼团背景图片' + }, + 'spellDetailBg': { + 'url': baseUrl + 'spelldetail-bg.png', + 'name': '拼团背景图片' + }, + 'tuanzhang': { + 'url': baseUrl + 'tuanzhang.png', + 'name': '团长' + }, + 'position': { + 'url': baseUrl + 'position.png', + 'name': '地理位置图标' + }, + 'close03': { + 'url': baseUrl + 'close03.png', + 'name': '拼团页面关闭图标' + }, + 'home': { + 'url': baseUrl + 'home.png', + 'name': '返回首页图标' + }, + 'nodata': { + 'url': baseUrl + 'nodata.png', + 'name': '拼团暂无数据' + }, + 'orderGroupFail': { + 'url': baseUrl + 'orderGroupFail.png', + 'name': '拼团失败' + }, + 'wmcard': { + 'url': baseUrl + 'wmcard.png', + 'name': '首页优惠卡' + }, + 'rushtobuy': { + 'url': baseUrl + 'rushtobuy.png', + 'name': '首页立即抢购' + }, + 'barginlistbg': { + 'url': baseUrl + 'barginlistbg.jpg', + 'name': '砍价列表背景图' + }, + 'bargindetailbg': { + 'url': baseUrl + 'bargindetailbg.jpg', + 'name': '砍价详情背景图' + }, + 'bargaincancel': { + 'url': baseUrl + 'bargaincancel.png', + 'name': '砍价取消' + }, + 'bargainfail': { + 'url': baseUrl + 'bargainfail.png', + 'name': '砍价失败' + }, + 'bargainsuccess': { + 'url': baseUrl + 'bargainsuccess.png', + 'name': '砍价成功' + }, + 'wmdiscount': { + 'url': baseUrl + 'discount.png', + 'name': '砍价图标' + }, + 'bgg': { + 'url': baseUrl + 'bgg.png', + 'name': 'banner背景' + }, + 'wmgive': { + 'url': baseUrl + 'wmgive.png', + 'name': '赠送' + }, + 'wmyes': { + 'url': baseUrl + 'wmyes.png', + 'name': '成功' + }, + 'wmhome': { + 'url': baseUrl + 'gobackhome.png', + 'name': '首页' + }, + 'wmhelp': { + 'url': baseUrl + 'wmhelp.gif', + 'name': '帮助好友砍价' + }, + 'wmsuccess01': { + 'url': baseUrl + 'wmsuccess01.png', + 'name': '帮好友砍价成功对勾' + }, + 'successHr': { + 'url': baseUrl + 'successHr.png', + 'name': '帮好友砍价成功对勾' + }, + 'pay_success': { + 'url': baseUrl + 'pay-success.png', + 'name': '消费卡付款成功' + }, + 'shixiao': { + 'url': baseUrl + 'shixiao.png', + 'name': '失效' + }, + + 'wmbarginicon': { + 'url': baseUrl + 'wmbarginicon2.png', + 'name': '我的砍价' + }, + 'wmspellgroup': { + 'url': baseUrl + 'wmspellgroup2.png', + 'name': '我的拼团' + }, + 'myactivity': { + 'url': baseUrl + 'myactivity.png', + 'name': '我的活动' + }, + 'myactivitygift': { + 'url': baseUrl + 'myactivitygift.png', + 'name': '我的奖品' + }, + 'leftarrows': { + 'url': baseUrl + 'leftarrows.png', + 'name': '左箭头' + }, + 'barcode': { + 'url': baseUrl + 'lqcbarcode.png', + 'name': '二维码' + }, + 'poterbg': { + 'url': baseUrl + 'canvas.png', + 'name': '海报背景' + }, + 'newgroup': { + 'url': baseUrl + 'newgroup.png', + 'name': '新UI拼团' + }, + 'newbargain': { + 'url': baseUrl + 'newbargain.png', + 'name': '新UI砍价' + }, + 'newseckill': { + 'url': baseUrl + 'newseckill.png', + 'name': '新UI秒杀' + }, + 'newcard': { + 'url': baseUrl + 'newcard.png', + 'name': '新UI消费卡' + }, + 'product': { + 'url': baseUrl + 'product.png', + 'name': '新UI产品栏' + }, + 'barginicon': { + 'url': baseUrl + 'lqcbarginicon.png', + 'name': '砍价小图标' + }, + 'pintuan': { + 'url': baseUrl + 'lqcpintuan.png', + 'name': '拼团小图标' + }, + 'duihuan': { + 'url': baseUrl + 'exchange01.png', + 'name': '兑换小图标' + }, + 'wangmeimeibargin':{ + 'url': baseUrl + 'wangmeimeibargin.jpg', + 'name': '砍价专场的图标' + }, + 'wangmeimeipintuan': { + 'url': baseUrl + 'wangmeimeipintuan.png', + 'name': '拼团专场的图标' + }, + 'wangmeimeijiantou': { + 'url': baseUrl + 'wangmeimeijiantou.png', + 'name': '专场的更多图标' + }, + 'wangmeimeiarrow01': { + 'url': baseUrl + 'wangmeimeiarrow01.png', + 'name': '专场的更多图标' + }, + 'wangmeimeicredit':{ + 'url': baseUrl + "wangmeimeicredit.png", + 'name': '积分背景' + }, + 'wmintegral': { + 'url': baseUrl + "wmintegral1.png", + 'name': '积分商城' + }, + 'orange': { + 'url': baseUrl + "orange.png", + 'name': '积分商城' + }, + 'blue': { + 'url': baseUrl + "blue.png", + 'name': '积分商城' + }, + 'gray': { + 'url': baseUrl + "gray.png", + 'name': '积分商城' + }, + 'kanjia': { + 'url': baseUrl + "kanjia.png", + 'name': '砍价' + }, + 'pintuan': { + 'url': baseUrl + "pintuan.png", + 'name': '拼团' + }, + 'xiaofeika': { + 'url': baseUrl + "xiaofeika.png", + 'name': '消费卡' + }, + 'xingyun': { + 'url': baseUrl + "xingyunkapai.png", + 'name': '幸运卡牌' + }, + 'jfshangcheng': { + 'url': baseUrl + "jifenshangcheng.png", + 'name': '积分商城' + }, + 'toutiao': { + 'url': baseUrl + "toutiao.png", + 'name': '' + }, + 'more': { + 'url': baseUrl + "more.png", + 'name': '' + }, + 'change': { + 'url': baseUrl + "change.png", + 'name': '' + }, + 'None': { + 'url': baseUrl + "None.png", + 'name': '' + }, + 'fenxiang': { + 'url': baseUrl + "fenxiang.png", + 'name': '' + }, + 'homeSelectedO': { + 'url': baseUrl + "homeSelectedO.png", + 'name': '' + }, + 'noMerchant': { + 'url': baseUrl + "noMerchant.png", + 'name': '' + }, + 'rightHr': { + 'url': baseUrl + "rightHr.png", + 'name': '' + }, + 'cancelH': { + 'url': baseUrl + "cancelH.png", + 'name': '' + }, + 'giftHr': { + 'url': baseUrl + "giftHr.png", + 'name': '' + }, + 'next': { + 'url': baseUrl + "next.png", + 'name': '' + }, + 'erweima': { + 'url': baseUrl + "erweima.png", + 'name': '' + }, + 'guanliHr': { + 'url': baseUrl + "guanliHr.png", + 'name': '' + }, + 'tingcheHr': { + 'url': baseUrl + "tingcheHr.png", + 'name': '' + }, + 'wentiHr': { + 'url': baseUrl + "wentiHr.png", + 'name': '' + }, + 'jiaofei': { + 'url': baseUrl + "jiaofei.png", + 'name': '' + }, + 'chenggong': { + 'url': baseUrl + "chenggong.png", + 'name': '' + }, + 'chenghr': { + 'url': baseUrl + "chenghr.png", + 'name': '' + }, + "aboutUs":{ + 'url': baseUrl + "we.png", + 'name': '' + }, + "sort":{ + "url":baseUrl + "noSort.png", + 'name':'' + }, + 'up':{ + 'url' : baseUrl + 'up.png', + 'name':'' + }, + 'down':{ + 'url' : baseUrl + 'down.png', + 'name':'' + }, + 'live': { + 'url': baseUrl + 'live.png', + 'name': '' + } +} \ No newline at end of file