瀏覽代碼

更新

master
GL 4 年之前
父節點
當前提交
1d6b04067c
共有 39 個文件被更改,包括 1538 次插入122 次删除
  1. +3
    -3
      app.js
  2. +23
    -4
      app.json
  3. +1
    -0
      app.wxss
  4. +5
    -0
      assets/images/desktop.ini
  5. 二進制
      assets/images/fail.png
  6. 二進制
      assets/images/home-a.png
  7. 二進制
      assets/images/home.png
  8. 二進制
      assets/images/mendian-a.png
  9. 二進制
      assets/images/mendian.png
  10. 二進制
      assets/images/park-a.png
  11. 二進制
      assets/images/park.png
  12. 二進制
      assets/images/picture.png
  13. 二進制
      assets/images/user-a.png
  14. 二進制
      assets/images/user.png
  15. 二進制
      assets/images/wechat.png
  16. +1
    -0
      components/navbar/img/back.svg
  17. +1
    -0
      components/navbar/img/home.svg
  18. +64
    -0
      components/navbar/navbar.js
  19. +3
    -0
      components/navbar/navbar.json
  20. +20
    -0
      components/navbar/navbar.wxml
  21. +91
    -0
      components/navbar/navbar.wxss
  22. +5
    -1
      config/config.js
  23. +0
    -3
      pages/ces.json
  24. +0
    -0
      pages/ces.wxml
  25. +0
    -1
      pages/ces.wxss
  26. +0
    -66
      pages/ces/ces.js
  27. +0
    -3
      pages/ces/ces.json
  28. +0
    -2
      pages/ces/ces.wxml
  29. +0
    -1
      pages/ces/ces.wxss
  30. +48
    -6
      pages/index/index.js
  31. +3
    -1
      pages/index/index.json
  32. +8
    -21
      pages/index/index.wxml
  33. +19
    -6
      pages/index/index.wxss
  34. +12
    -2
      pages/users/users.js
  35. +8
    -0
      pages/users/users.json
  36. +45
    -0
      pages/users/users.wxml
  37. +436
    -0
      pages/users/users.wxss
  38. +2
    -2
      project.config.json
  39. +740
    -0
      utils/imgurl.js

+ 3
- 3
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);
}


+ 23
- 4
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"

+ 1
- 0
app.wxss 查看文件

@@ -0,0 +1 @@
page{background-color:#f2f6f9}

+ 5
- 0
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

二進制
assets/images/fail.png 查看文件

Before After
Width: 200  |  Height: 200  |  Size: 8.3 KiB

二進制
assets/images/home-a.png 查看文件

Before After
Width: 52  |  Height: 52  |  Size: 2.5 KiB

二進制
assets/images/home.png 查看文件

Before After
Width: 52  |  Height: 52  |  Size: 1.0 KiB

二進制
assets/images/mendian-a.png 查看文件

Before After
Width: 52  |  Height: 52  |  Size: 2.8 KiB

二進制
assets/images/mendian.png 查看文件

Before After
Width: 52  |  Height: 52  |  Size: 1006 B

二進制
assets/images/park-a.png 查看文件

Before After
Width: 52  |  Height: 52  |  Size: 3.2 KiB

二進制
assets/images/park.png 查看文件

Before After
Width: 52  |  Height: 52  |  Size: 1.7 KiB

二進制
assets/images/picture.png 查看文件

Before After
Width: 512  |  Height: 512  |  Size: 28 KiB

二進制
assets/images/user-a.png 查看文件

Before After
Width: 52  |  Height: 52  |  Size: 2.6 KiB

二進制
assets/images/user.png 查看文件

Before After
Width: 52  |  Height: 52  |  Size: 1.4 KiB

二進制
assets/images/wechat.png 查看文件

Before After
Width: 200  |  Height: 200  |  Size: 6.7 KiB

+ 1
- 0
components/navbar/img/back.svg 查看文件

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="128px" height="128.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#202020" d="M711.1 928.3c-13.2 0-26.3-5-36.4-15.2L297.8 532.9c-20.1-20.2-20.1-53.1 0-73.3L674.7 79.2c20.1-20.3 52.6-20.3 72.7 0 20.1 20.2 20.1 53.1 0 73.3L406.9 496.2l340.5 343.6c20.1 20.3 20.1 53.1 0 73.3-10 10.1-23.2 15.2-36.3 15.2z" /></svg>

+ 1
- 0
components/navbar/img/home.svg 查看文件

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="128px" height="128.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#202020" d="M962.986667 480.426667l-422.4-379.733334a42.666667 42.666667 0 0 0-57.173334 0l-422.4 379.733334a42.666667 42.666667 0 0 0 57.173334 63.146666l9.813333-8.533333V896a42.666667 42.666667 0 0 0 42.666667 42.666667h682.666666a42.666667 42.666667 0 0 0 42.666667-42.666667v-360.96l9.813333 8.533333a42.666667 42.666667 0 0 0 28.586667 11.093334 42.666667 42.666667 0 0 0 31.573333-14.08 42.666667 42.666667 0 0 0-2.986666-60.16zM469.333333 853.333333v-170.666666h85.333334v170.666666z m341.333334-384v384h-170.666667v-213.333333a42.666667 42.666667 0 0 0-42.666667-42.666667h-170.666666a42.666667 42.666667 0 0 0-42.666667 42.666667v213.333333H213.333333v-384a61.013333 61.013333 0 0 0 0-9.386666l298.666667-270.08 298.666667 270.08a61.013333 61.013333 0 0 0 0 9.386666z" /></svg>

+ 64
- 0
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
})
}
}
})

+ 3
- 0
components/navbar/navbar.json 查看文件

@@ -0,0 +1,3 @@
{
"component": true
}

+ 20
- 0
components/navbar/navbar.wxml 查看文件

@@ -0,0 +1,20 @@
<view class="navbar" style="height:64px;background:{{background}}!important;">
<view style="height:20px "></view>
<view class='title-container'>
<view class='capsule' wx:if="{{ back || home}}">
<view bindtap='back' wx:if="{{back}}">
<image style="left:36%;" src='img/back.svg'></image>
</view>
<view bindtap='backHome' wx:if="{{home}}">
<image src='img/home.svg' style="width:90%;"></image>
</view>
</view>
<view class='title' style="color:{{color}}!important">{{text}}</view>
<picker bindchange="bindPickerChange" wx:if="{{showLocationIf}}" class="pick-box" value="{{index}}" range="{{array}}">
<icon class='iconfont icon-daohangdizhiweizhi'></icon>
<view class="picker locations">
{{array[index]}}
</view>
</picker>
</view>
</view>

+ 91
- 0
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;
}

+ 5
- 1
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",
},
};


+ 0
- 3
pages/ces.json 查看文件

@@ -1,3 +0,0 @@
{
"usingComponents": {}
}

+ 0
- 0
pages/ces.wxml 查看文件


+ 0
- 1
pages/ces.wxss 查看文件

@@ -1 +0,0 @@
/* pages/ces.wxss */

+ 0
- 66
pages/ces/ces.js 查看文件

@@ -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 () {

}
})

+ 0
- 3
pages/ces/ces.json 查看文件

@@ -1,3 +0,0 @@
{
"usingComponents": {}
}

+ 0
- 2
pages/ces/ces.wxml 查看文件

@@ -1,2 +0,0 @@
<!--pages/ces/ces.wxml-->
<text>pages/ces/ces.wxml</text>

+ 0
- 1
pages/ces/ces.wxss 查看文件

@@ -1 +0,0 @@
/* pages/ces/ces.wxss */

+ 48
- 6
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 () {

},


+ 3
- 1
pages/index/index.json 查看文件

@@ -1,3 +1,5 @@
{
"usingComponents": {}
"usingComponents": {
"navbar": "../components/navbar/navbar"
}
}

+ 8
- 21
pages/index/index.wxml 查看文件

@@ -1,31 +1,18 @@
<navbar text="首页" ></navbar>
<view class="Box">
<view class=" top">
<view class='userinfo'>
<view class="textBox">
<view class="nameBox">
<view class="name">用户昵称</view>
<view class="grade">用户等级</view>
</view>
<view class="myGrow nameBox">
<view>{{'我的成长值'}}|</view>
<view class="grow">{{"更多成长值"}}</view>
</view>
</view>
</view>
<view class='userPortrait'></view>
</view>
<swiper autoplay='true' interval='1000' circular='true'>
<swiper-item class="swiperItem">123</swiper-item>
<swiper-item class="swiperItem">456</swiper-item>
</swiper>
<view class="plazaList" bindtap="goPlaza" data-appid="{{plazaAppid}}">

<view class="plazaList" bindtap="goPlaza" data-appid="{{item.appId}}" wx:for="{{subMalls}}" wx:key="index">
<view class="EntranceBox">
<view class="plazaImg"></view>
<image src="{{item.img}}" class="plazaImg"></image>
<view class="plazaMessage">
<view class="plazaName">欢乐国际购物城 </view>
<view class="site">广场地址:嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻</view>
<view class="area">总面积:6000M²</view>
<view class="area stall"> 车位数:123</view>
<view class="plazaName">{{item.name}} </view>
<view class="site">{{'广场地址:'+item.addr}}</view>
<view class="area">{{'总面积:'+item.totalArea+'M²'}}</view>
<view class="area stall"> {{'车位数:'+item.parkPlaceNumber}}</view>
<vide class="area distance">距您:233M</vide>
</view>
</view>


+ 19
- 6
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;
}

pages/ces.js → 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) {


},


+ 8
- 0
pages/users/users.json 查看文件

@@ -0,0 +1,8 @@
{
"usingComponents": {
"navbar": "../components/navbar/navbar"
},
"navigationBarBackgroundColor": "#FD832D",
"navigationBarTextStyle": "white",
"disableScroll": true
}

+ 45
- 0
pages/users/users.wxml 查看文件

@@ -0,0 +1,45 @@
<navbar text="我的" background='#FD832D' color="white"></navbar>
<view class="user" style="padding-top:{{navigationBarHeight}};">
<view bindlongtap='showVersion' class='version'>
<view wx:if="{{flag=='show'}}">版本号:{{appVersion}}</view>
<view wx:if="{{flag=='hidden'}}"></view>
</view>
<view class="top" style='background:{{banneColor}}'>
<view class='aboutUs' bindtap='gomallInfo' >
<image class='aboutIcons' src="{{aboutUs}}" mode='widthFix'></image>
<text>关于我们</text>
</view>
</view>
<view class="top-content" wx:if="{{ifStoreApp!=1}}">
<view class='user_title'>
<view class="user-avatar" >
<open-data class="open" type="userAvatarUrl"></open-data>
</view>
<view class="user-name" >
<open-data class="name" type="userNickName" ></open-data>
<view class=' usre_level'style='background:{{levelBg}}'>
<text class='chengzhang '>{{levelName}}</text>
</view>
</view>
<!-- -->
<view class="user-name" wx:if="{{curPhone}}" style="margin-top:20rpx;" bindtap='gotoPhoneInfo'>
<text class="my">我的手机号:</text>
<text class="chengzhang_h" >{{curPhone}}</text>
<text class="view" style='color:#F64A16'>[微信授权手机号]</text>
</view>
<view class="user-name" wx:if="{{!curPhone}}" style="margin-top:20rpx;" bindtap='gotoPhoneInfo'>
<text class="view" style='color:#F64A16'>获取微信授权手机号</text>
</view>
<!-- -->
<view class="user-phone" bindtap='gotograde'>
<text class="my">我的</text>
<text class="chengzhang_h" >成长值{{score}}</text>
<text class="my my_line">|</text>
<!-- <text class="my">更多成长值</text> -->
<text class="view" style='color:{{view}}'>更多成长值</text>
</view>
</view>
</view>

</view>

+ 436
- 0
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;
}

+ 2
- 2
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": []
},


+ 740
- 0
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': ''
}
}

Loading…
取消
儲存