diff --git a/api/http.js b/api/http.js
index 4b23e51..108cd10 100644
--- a/api/http.js
+++ b/api/http.js
@@ -20,7 +20,7 @@ function http(uri, data, callback, method = 'GET', showLoading, title) {
'Content-Type' : 'application/x-www-form-urlencoded'
},
success: (res) => {
- console.log(res,'res')
+ // console.log(res,'res')
if(showLoading){
uni.hideLoading();
}
diff --git a/api/model/index.js b/api/model/index.js
index c7539fc..ad4da44 100644
--- a/api/model/index.js
+++ b/api/model/index.js
@@ -13,6 +13,11 @@ const api = {
url: '/index_common/getActivityPageList',
method: 'GET',
},
+ // 获取首页地区
+ getArea: {
+ url: '/index_common/getArea',
+ method: 'GET',
+ },
// 活动详情
activityInfo: {
url: '/index_common/getActivityInfo',
@@ -38,11 +43,6 @@ const api = {
url: '/index_common/getYueDong',
method: 'GET',
},
- // 悦动时刻信息
- getArea: {
- url: '/index_common/getArea',
- method: 'GET',
- },
//我主理的信息
getTwoPageList: {
url: '/index_common/getTwoPageList',
diff --git a/api/model/order.js b/api/model/order.js
index 110899b..7de9a72 100644
--- a/api/model/order.js
+++ b/api/model/order.js
@@ -50,13 +50,20 @@ const api = {
showLoading : true,
},
// 创建订单
- createOrder: {
+ createOrder : {
url: '/order_common/createOrder',
method: 'POST',
auth : true,
showLoading : true,
limit : 1000,
},
+ createOrderPay : {
+ url: '/order_common/createOrderPay',
+ method: 'POST',
+ auth : true,
+ showLoading : true,
+ limit : 1000,
+ },
// 收藏
collect: {
url: '/order_common/collect',
diff --git a/components/base/tabbar.vue b/components/base/tabbar.vue
index 37d5a9f..5880be7 100644
--- a/components/base/tabbar.vue
+++ b/components/base/tabbar.vue
@@ -90,7 +90,7 @@
flex-direction: row;
height: 120rpx;
padding-bottom: env(safe-area-inset-bottom);
- z-index: 999999;
+ z-index: 9999;
bottom: 0;
left: 0;
color: #4C4C4C;
diff --git a/components/cart/CardList.vue b/components/cart/CardList.vue
index 1a212e8..8731d31 100644
--- a/components/cart/CardList.vue
+++ b/components/cart/CardList.vue
@@ -20,13 +20,15 @@
-
+
-
-
+
@@ -32,7 +33,10 @@
主理人
-
+
@@ -42,23 +46,26 @@
-
-
\ No newline at end of file
diff --git a/components/user/productList.vue b/components/user/productList.vue
deleted file mode 100644
index ad16f79..0000000
--- a/components/user/productList.vue
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
-
-
-
-
- 桌布租赁
-
-
- ¥58元/起
-
-
-
- 限时优惠
-
-
- ¥48
-
-
-
- 已售卖5000+件
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/components/zhaomu/zhaomu-item.vue b/components/zhaomu/zhaomu-item.vue
index b9374f0..7171486 100644
--- a/components/zhaomu/zhaomu-item.vue
+++ b/components/zhaomu/zhaomu-item.vue
@@ -77,6 +77,7 @@
recruitId:item.id,
}
this.$api('shopUserAuth',params,res=>{
+ this.$emit('getData')
if(res.code == 200) {
this.$Toast('参与成功')
}
diff --git a/components/zhaomu/zlx-item.vue b/components/zhaomu/zlx-item.vue
index 895a688..7f2c4f2 100644
--- a/components/zhaomu/zlx-item.vue
+++ b/components/zhaomu/zlx-item.vue
@@ -11,7 +11,7 @@
{{item.address}}
- {{ item.num }}/{{ item.sum }}
+ {{ item.doNum }}/{{ item.num }}
开始签到
diff --git a/config.js b/config.js
index a3a87a7..af2b79e 100644
--- a/config.js
+++ b/config.js
@@ -7,14 +7,14 @@ import uvUI from '@/uni_modules/uv-ui-tools'
Vue.use(uvUI);
// 当前环境
-const type = 'prod'
+const type = 'dev'
// 环境配置
const config = {
dev : {
- // baseUrl : 'http://test-lzx.natapp1.cc/popularize-admin',
- baseUrl : 'https://popularize-admin.hhlm1688.com/popularize-admin',
+ baseUrl : 'http://test-lzx.natapp1.cc/popularize-admin',
+ // baseUrl : 'https://popularize-admin.hhlm1688.com/popularize-admin',
// baseUrl : 'http://h5.xzaiyp.top/popularize-admin',
},
prod : {
diff --git a/static/image/cart/bgIcon.png b/doc/bgIcon.png
similarity index 100%
rename from static/image/cart/bgIcon.png
rename to doc/bgIcon.png
diff --git a/static/image/home/hd-img.png b/doc/hd-img.png
similarity index 100%
rename from static/image/home/hd-img.png
rename to doc/hd-img.png
diff --git a/static/image/home/hdqd-img.png b/doc/hdqd-img.png
similarity index 100%
rename from static/image/home/hdqd-img.png
rename to doc/hdqd-img.png
diff --git a/static/image/home/lx-img.png b/doc/lx-img.png
similarity index 100%
rename from static/image/home/lx-img.png
rename to doc/lx-img.png
diff --git a/mixins/configList.js b/mixins/configList.js
index f621471..cb5be5e 100644
--- a/mixins/configList.js
+++ b/mixins/configList.js
@@ -13,7 +13,7 @@ export default {
}
},
computed: {
- ...mapState(['configList', 'userInfo']),
+ ...mapState(['configList', 'userInfo', 'selectArea']),
},
// 定义全局分享
// 1.发送给朋友
diff --git a/pages.json b/pages.json
index 25558b9..288b178 100644
--- a/pages.json
+++ b/pages.json
@@ -14,13 +14,6 @@
"enablePullDownRefresh": true
}
},
- {
- "path": "pages/index/category",
- "style": {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": true
- }
- },
{
"path": "pages/index/center",
"style": {
diff --git a/pages/index/cart.vue b/pages/index/cart.vue
index 33a18fb..d850d34 100644
--- a/pages/index/cart.vue
+++ b/pages/index/cart.vue
@@ -13,7 +13,11 @@
-
+
@@ -52,10 +56,10 @@
id: '',
name: '全部'
},
- {
- id: 0,
- name: '未付款'
- },
+ // {
+ // id: 0,
+ // name: '未付款'
+ // },
{
id: 1,
name: '待参加'
@@ -128,10 +132,19 @@
this.orderId = item.id;
if (type == 0) {
- this.$refs.modal.open();
+ // this.$refs.modal.open();
+ uni.showModal({
+ title: '是否取消订单?',
+ success : res => {
+ if(res.confirm){
+ this.confirm()
+ }
+ }
+ })
}
if (type == 1) {
- this.$refs.signInQrcodePopup.open(item.id)
+ this.$refs.signInQrcodePopup.open(this.orderId)
+
// this.$api('signIn', {
// orderId: item.id
// }, res => {
@@ -166,6 +179,7 @@
orderId: this.orderId
}, res => {
if (res.code == 200) {
+ this.params.pageNo = 1
this.cardListData = [];
this.getOrderPageList();
}
diff --git a/pages/index/category.vue b/pages/index/category.vue
deleted file mode 100644
index 7c065a1..0000000
--- a/pages/index/category.vue
+++ /dev/null
@@ -1,109 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/index/center.vue b/pages/index/center.vue
index 495e3bb..8947ccc 100644
--- a/pages/index/center.vue
+++ b/pages/index/center.vue
@@ -30,17 +30,17 @@
+ @click="orderJump(1)">
待参加
+ @click="orderJump(2)">
已完成
+ @click="orderJump(3)">
已取消
@@ -52,7 +52,10 @@
-
+
{{item.name}}
@@ -119,7 +122,8 @@
{
src:require('@/static/image/center/line-7.png'),
name:'主理人签到',
- url:'/pages_my/zlx-qiandao'
+ url:'/pages_my/zlx-qiandao',
+ // role : true,
}
],
vipType : ['普通会员', '黄金会员', '渠道商'],
diff --git a/pages/index/index.vue b/pages/index/index.vue
index d1b481f..f270cbb 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -4,9 +4,10 @@
-
+
- {{ city }}
+ {{ selectArea.city }}
@@ -28,7 +29,8 @@
立即查看
-
+
+
@@ -38,7 +40,8 @@
立即查看
-
+
+
@@ -47,7 +50,7 @@
立即查看
-
+
@@ -77,15 +80,49 @@
+
+
+
@@ -206,8 +267,11 @@
width: 100%;
height: 534rpx;
position: absolute;
+ top: 0;
+ z-index: -1;
}
.content {
+ margin-top: 40rpx;
color: #fff;
padding: 0 30rpx;
padding-top: calc(var(--status-bar-height) + 110rpx);
@@ -220,6 +284,7 @@
display: flex;
align-items: center;
margin-right: 30rpx;
+ position: relative;
view {
font-weight: 400;
font-size: 27rpx;
@@ -341,6 +406,7 @@
right: 22rpx;
top: 25rpx;
width: 123rpx;
+ height: 100rpx;
}
}
.lx-box {
@@ -379,11 +445,60 @@
right: 22rpx;
top: 25rpx;
width: 123rpx;
+ height: 100rpx;
}
}
}
}
}
}
+
+ .popup-cont {
+ width: 95%;
+ margin: 0 auto;
+ background-image: linear-gradient(to top, #000000, #331212);
+ height:662rpx;
+ border-radius: 33rpx 33rpx 0 0;
+ .popup-title {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 54rpx 52rpx;
+ font-weight: 500;
+ font-size: 29rpx;
+ color: #999999;
+ }
+ .popup-list {
+ padding: 0 50rpx;
+ height: 400rpx;
+ .list-item {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ height: 110rpx;
+ border-bottom: 1px solid #3F3535;
+ .item-l {
+ font-weight: 500;
+ font-size: 29rpx;
+ color: #CCCCCC;
+ display: flex;
+ align-items: center;
+ .item-l-val {
+ margin-left: 40rpx;
+ }
+ }
+ .chooose-class {
+ color: #FF5858;
+ }
+ }
+ }
+ .confirm-box {
+ padding: 0 50rpx;
+ margin-top: 30rpx;
+ .confirm-btn-box {
+
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/pages/index/member.vue b/pages/index/member.vue
index 98439dc..b69e4c7 100644
--- a/pages/index/member.vue
+++ b/pages/index/member.vue
@@ -13,7 +13,12 @@
{{isLogin ? userInfo.nickName : '请点击登录'}}
-
+ 主理人
+
+ 普通用户
+
{{isLogin ? 'ID:' + userInfo.id : ''}}
@@ -38,7 +43,10 @@
-
+
@@ -77,15 +85,18 @@
onLoad() {
this.getList()
this.getBanner()
+ if(this.isLogin) {
+ this.$store.commit('getUserInfo')
+ }
},
onShow() {
},
onPageScroll(e) {
if(e.scrollTop > 50) {
- this.bgColor ='#49070c'
+ this.bgColor ='#49070c'
}else{
- this.bgColor ='transparent'
+ this.bgColor ='transparent'
}
},
onReachBottom() {
diff --git a/pages_login/fuwutiaokuan.vue b/pages_login/fuwutiaokuan.vue
index 195b6b3..44d8f71 100644
--- a/pages_login/fuwutiaokuan.vue
+++ b/pages_login/fuwutiaokuan.vue
@@ -43,6 +43,7 @@
height: 534rpx;
position: absolute;
z-index: -1;
+ top: 0;
}
.content {
padding: 0 30rpx;
diff --git a/pages_login/wxUserInfo.vue b/pages_login/wxUserInfo.vue
index b7dc18e..c1d9ee4 100644
--- a/pages_login/wxUserInfo.vue
+++ b/pages_login/wxUserInfo.vue
@@ -1,10 +1,10 @@
-
+
- vtrip
+ {{ configList.logo_name }}
申请获取你的头像、昵称
diff --git a/pages_login/yinsixieyi.vue b/pages_login/yinsixieyi.vue
index c081b50..93e4691 100644
--- a/pages_login/yinsixieyi.vue
+++ b/pages_login/yinsixieyi.vue
@@ -53,6 +53,7 @@
width: 100%;
height: 534rpx;
position: absolute;
+ top: 0;
z-index: -1;
}
.content {
diff --git a/pages_my/activeList.vue b/pages_my/activeList.vue
index 74b61ec..4b8f4eb 100644
--- a/pages_my/activeList.vue
+++ b/pages_my/activeList.vue
@@ -11,10 +11,10 @@
-
+
-
+
@@ -101,29 +101,35 @@
status:"loading",
bgColor:'transparent',
// 表示value等于这些值,就属于默认值
- defaultValue: ['-1', 'all', 'allAddress'],
+ defaultValue: ['all', 'allAddress'],
// 筛选结果
- result: [],
+ result: [
+ {
+ label: '报名中',
+ value: '0',
+ name : 'state',
+ }
+ ],
// { name: 'order', label: '最新发布', value: 'new' }
activeName: 'state',
state: {
- label: '全部',
- value: '-1',
+ label: '报名中',
+ value: '0',
activeIndex: 0,
color: '#999',
activeColor: '#FF4546',
- child: [{
- label: '全部',
- value: '-1'
- },{
- label: '报名中',
- value: '0'
- }, {
- label: '已结束',
- value: '1'
- }]
+ child: [
+ {
+ label: '报名中',
+ value: '0'
+ },
+ {
+ label: '已结束',
+ value: '1'
+ },
+ ]
},
- date: {
+ timeStr: {
label: '时间',
value: 'all',
activeIndex: 0,
@@ -133,10 +139,10 @@
{
label: '时间',
value: 'all'
- },
+ }
]
},
- address: {
+ cityId: {
label: '全部地区',
value: 'allAddress',
activeIndex: 0,
@@ -196,7 +202,7 @@
this.$api('getArea', res => {
if(res.code == 200){
res.result.forEach(n => {
- this.address.child.push({
+ this.cityId.child.push({
label: n.city,
value: n.id
})
@@ -262,7 +268,7 @@
confirmCalendars(e){
this.isC = true
this.clickItem({
- name: 'date',
+ name: 'timeStr',
label: e.fulldate,
value: e.fulldate
});
@@ -270,7 +276,7 @@
closeCalendars(){
if(this.isC) return this.isC = false
this.clickItem({
- name: 'date',
+ name: 'timeStr',
label: 'all',
value: 'all'
});
diff --git a/pages_my/collection.vue b/pages_my/collection.vue
index 002ce34..9a05bfe 100644
--- a/pages_my/collection.vue
+++ b/pages_my/collection.vue
@@ -11,22 +11,27 @@
:inactiveStyle="{color: '#999', transform: 'scale(1)'}"
itemStyle="padding-left: 15px; padding-right: 15px; height: 44px;">
-
+
-
+
- {{item.title}}
- {{item.startTime}}
- {{item.address}}
+ {{item[typeKey[item.type]].title}}
+ {{item[typeKey[item.type]].startTime}}
+ {{item[typeKey[item.type]].address}}
- 12/30
-
+ {{item[typeKey[item.type]].num}}/{{item[typeKey[item.type]].sum}}
+ 立即报名
+ 已结束
-
+
+
+ 立即报名
+
+ 已结束
@@ -105,13 +126,12 @@
diff --git a/pages_order/orderEvaluation.vue b/pages_order/orderEvaluation.vue
index ad80ae1..0c016d1 100644
--- a/pages_order/orderEvaluation.vue
+++ b/pages_order/orderEvaluation.vue
@@ -108,18 +108,23 @@ export default {
}
this.$api('evaluate', params, res => {
if (res.code == 200) {
- const params = {
- type: 'success',
- message: res.result
- }
- this.$refs.toast.show({
- ...params,
- complete() {
- uni.switchTab({
- url:'/pages/index/cart'
- })
- }
- })
+ // const params = {
+ // type: 'success',
+ // message: res.result
+ // }
+ // this.$refs.toast.show({
+ // ...params,
+ // complete() {
+ // uni.switchTab({
+ // url:'/pages/index/cart'
+ // })
+ // }
+ // })
+ uni.showToast({
+ icon: 'none',
+ title: res.result
+ })
+ setTimeout(uni.navigateBack, 800, -1)
}
})
}
diff --git a/pages_order/payOrder.vue b/pages_order/payOrder.vue
new file mode 100644
index 0000000..75b7794
--- /dev/null
+++ b/pages_order/payOrder.vue
@@ -0,0 +1,235 @@
+
+
+
+
+
+
+
+ 待支付
+
+
+
+
+
+
+
+ {{dataInfo.title}}
+ {{dataInfo.startTime}}
+ {{dataInfo.address}}
+
+ 总计¥{{dataInfo.payPrice}}
+
+
+
+
+ 订单信息
+
+
+
+
+
+
+
+
+
+ 支付须知
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/static/image/home/shoucang-icon.png b/pages_order/static/shoucang-icon.png
similarity index 100%
rename from static/image/home/shoucang-icon.png
rename to pages_order/static/shoucang-icon.png
diff --git a/static/image/home/zhuanfa-icon.png b/pages_order/static/zhuanfa-icon.png
similarity index 100%
rename from static/image/home/zhuanfa-icon.png
rename to pages_order/static/zhuanfa-icon.png
diff --git a/pages_zlx/static/choose-icon.png b/pages_zlx/static/choose-icon.png
new file mode 100644
index 0000000..ad2d1f8
Binary files /dev/null and b/pages_zlx/static/choose-icon.png differ
diff --git a/pages_zlx/zlx-form.vue b/pages_zlx/zlx-form.vue
index c30822f..a1b1fb4 100644
--- a/pages_zlx/zlx-form.vue
+++ b/pages_zlx/zlx-form.vue
@@ -1,7 +1,12 @@
-
+
-
+
@@ -42,7 +47,17 @@
简历附件
-
+
+
+
+
+ {{ info.image || '' }}
+
+
上传简历
@@ -59,16 +74,33 @@
+
+ 个人生活照片
+
+
+
+
+
+
阅读并同意协议
我已经阅读并同意
- 《主理人协议》
+ 《主理人协议》
-
+
@@ -81,7 +113,6 @@
@@ -207,6 +282,8 @@
}
\ No newline at end of file
diff --git a/static/image/product/favorable.png b/static/image/product/favorable.png
deleted file mode 100644
index edae056..0000000
Binary files a/static/image/product/favorable.png and /dev/null differ
diff --git a/static/logo.png b/static/logo.png
deleted file mode 100644
index b5771e2..0000000
Binary files a/static/logo.png and /dev/null differ
diff --git a/store/store.js b/store/store.js
index 2f1f7bd..df20e95 100644
--- a/store/store.js
+++ b/store/store.js
@@ -11,9 +11,9 @@ const store = new Vuex.Store({
token:uni.getStorageSync('token') || '',
configList: {}, //配置列表
userInfo : uni.getStorageSync('userInfo') ? JSON.parse(uni.getStorageSync('userInfo')) : {}, //用户信息
- riceInfo : {},//用户相关信息
- category : [],//分类信息
- payOrderProduct : [],//支付订单中的商品
+ // riceInfo : {},//用户相关信息
+ areaList : [],//地区列表信息
+ selectArea : {},//当前选择的地区
},
getters: {
userInfo:state => state.userInfo,
@@ -89,15 +89,15 @@ const store = new Vuex.Store({
}
})
},
- getRiceInfo(state){
- api('getRiceInfo', {
- token : uni.getStorageSync('token') || ''
- },res => {
- if(res.code == 200){
- state.riceInfo = res.result
- }
- })
- },
+ // getRiceInfo(state){
+ // api('getRiceInfo', {
+ // token : uni.getStorageSync('token') || ''
+ // },res => {
+ // if(res.code == 200){
+ // state.riceInfo = res.result
+ // }
+ // })
+ // },
// 退出登录
logout(state){
state.userInfo = {}
@@ -105,17 +105,17 @@ const store = new Vuex.Store({
state.token = ""
uni.removeStorageSync('token')
},
- // 查询分类接口
- getCategoryList(state){
- api('getCategoryList', res => {
+ // 查询地区
+ getArea(state, fn){
+ api('getArea', res => {
if(res.code == 200){
- state.category = res.result
+ state.areaList = res.result
+ fn && fn(res.result)
}
})
},
- // 设置支付订单中的商品
- setPayOrderProduct(state, data){
- state.payOrderProduct = data
+ setArea(state, index){
+ state.selectArea = state.areaList[index]
},
},
actions: {},
diff --git a/uni.scss b/uni.scss
index 20cf941..ecb68f2 100644
--- a/uni.scss
+++ b/uni.scss
@@ -12,7 +12,7 @@
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
-$uni-color: #A3D250;
+$uni-color: #000;
$uni-color-background: #060504;
$uni-color-card-background: #1B1713;
$uni--bg-color-btn: #381615;
diff --git a/uni_modules/uv-upload/components/uv-upload/uv-upload.vue b/uni_modules/uv-upload/components/uv-upload/uv-upload.vue
index 213be0f..9039f61 100644
--- a/uni_modules/uv-upload/components/uv-upload/uv-upload.vue
+++ b/uni_modules/uv-upload/components/uv-upload/uv-upload.vue
@@ -466,7 +466,8 @@
justify-content: center;
width: $uv-upload-button-width;
height: $uv-upload-button-height;
- background-color: $uv-upload-button-bgColor;
+ // background-color: $uv-upload-button-bgColor;
+ border: 1rpx solid #999;
border-radius: $uv-upload-button-border-radius;
margin: $uv-upload-botton-margin;
/* #ifndef APP-NVUE */
@@ -478,7 +479,7 @@
margin-top: $uv-upload-text-margin-top;
}
&--hover {
- background-color: $uv-upload-hover-bgColor;
+ // background-color: $uv-upload-hover-bgColor;
}
&--disabled {
opacity: $uv-upload-disabled-opacity;