Commit 76b833dc by honghong

优惠券列表接口对接详情接口修改

parent 2b28a6b6
...@@ -11,6 +11,15 @@ const addUserFeedback = (params) => { ...@@ -11,6 +11,15 @@ const addUserFeedback = (params) => {
const couponListGet = (params) =>{ const couponListGet = (params) =>{
return ApiHttp('/xinrenli/coupon/list',params,'GET') return ApiHttp('/xinrenli/coupon/list',params,'GET')
} }
// 用户优惠卷有效查询接口
const userCouponList = (params) => {
return ApiHttp('/xinrenli/userCoupon/list',params,'GET')
}
// 用户优惠卷无效查询接口
const userCouponListLose = (params) => {
return ApiHttp('/xinrenli/userCoupon/listLose',params,'GET')
}
// 查询邀请列表 // 查询邀请列表
const queryInviteListGet = (params) =>{ const queryInviteListGet = (params) =>{
return ApiHttp('/xinrenli/Inviter/list',params,'GET') return ApiHttp('/xinrenli/Inviter/list',params,'GET')
...@@ -23,5 +32,7 @@ export { ...@@ -23,5 +32,7 @@ export {
addUserFeedback, addUserFeedback,
couponListGet, couponListGet,
queryInviteListGet, queryInviteListGet,
addInviterGet addInviterGet,
userCouponList,
userCouponListLose
} }
\ No newline at end of file
...@@ -10,6 +10,10 @@ const userNeedSquare = (params) => { ...@@ -10,6 +10,10 @@ const userNeedSquare = (params) => {
const orderDetailMsg = (params) => { const orderDetailMsg = (params) => {
return ApiHttp('/xinrenli/order/',params,'GET') return ApiHttp('/xinrenli/order/',params,'GET')
} }
// 获取订单详细信息(最新首页详情)
const orderDetailMsgNew = (params) => {
return ApiHttp('/xinrenli/order/particulars',params,'GET')
}
//我的需求 //我的需求
const myNeedList = (params) => { const myNeedList = (params) => {
...@@ -23,13 +27,20 @@ const addOrderFunction = (params) =>{ ...@@ -23,13 +27,20 @@ const addOrderFunction = (params) =>{
// 修改订单(发布) // 修改订单(发布)
const updateOrderFunction = (params) =>{ const updateOrderFunction = (params) =>{
return ApiHttp('/xinrenli/order',params,'PUT') return ApiHttp('/xinrenli/order/edit',params,'POST')
}
//取消订单
const removeOrderFunction = (params) =>{
return ApiHttp('/xinrenli/order/remove',params,'GET')
} }
export { export {
userNeedSquare, userNeedSquare,
orderDetailMsg, orderDetailMsg,
orderDetailMsgNew,
myNeedList, myNeedList,
addOrderFunction, addOrderFunction,
updateOrderFunction updateOrderFunction,
removeOrderFunction
} }
\ No newline at end of file
import { import {
ApiHttp ApiHttp
} from '@/utils/request.js' } from '@/utils/request.js'
// 程序静默登录
const login = (params) => { const login = (params) => {
return ApiHttp('/system/xcxLogin', params, 'POST') return ApiHttp('/xcxLogin', params, 'GET')
} }
// 获取手机号
const loginPhone = (params) => { const loginPhone = (params) => {
return ApiHttp('/system/getPhone', params, 'POST') return ApiHttp('/xcxPhoneLogin', params, 'POST')
} }
const loginOut = (params) => { const loginOut = (params) => {
......
let hostUrl = 'http://xinrenli.nyinhong.com', // 测试 // let hostUrl = 'http://xinrenli.nyinhong.com', // 测试
// let hostUrl = 'http://192.168.0.109:7001', // UAT let hostUrl = 'http://192.168.0.175:7001', // UAT
// // let hostUrl = 'https://pepsibdp.masterkong.com.cn', // prd // // let hostUrl = 'https://pepsibdp.masterkong.com.cn', // prd
api = '/api', api = '',
// api = '/api',
imgApi = '/admimage/'; imgApi = '/admimage/';
// let hostUrl = '', // let hostUrl = '',
......
...@@ -81,7 +81,9 @@ ...@@ -81,7 +81,9 @@
</template> </template>
<script> <script>
import {orderDetailMsg} from '../../api/system/index.js' import {
orderDetailMsgNew
} from '../../api/system/index.js'
import apiBaseConfig from '@/config/index.js'; import apiBaseConfig from '@/config/index.js';
export default { export default {
data() { data() {
...@@ -89,16 +91,16 @@ ...@@ -89,16 +91,16 @@
imgBgUrl: apiBaseConfig.imgBgUrl, imgBgUrl: apiBaseConfig.imgBgUrl,
globalData: getApp().globalData, globalData: getApp().globalData,
scrollTopHeader: 0, scrollTopHeader: 0,
detailInfo:{},//接收的参数 detailInfo: {}, //接收的参数
subscript: '0', subscript: '0',
subs: '1', subs: '1',
detailData:{} detailData: {}
}; };
}, },
onLoad(option) { onLoad(option) {
if(option.detailInfo){ if (option.detailInfo) {
this.detailInfo = JSON.parse(decodeURIComponent(option.detailInfo)) this.detailInfo = JSON.parse(decodeURIComponent(option.detailInfo))
console.log(this.detailInfo,'结束') console.log(this.detailInfo, '结束')
this.getOrder() this.getOrder()
} }
return return
...@@ -107,14 +109,25 @@ ...@@ -107,14 +109,25 @@
}, },
methods: { methods: {
//获取订单详情列表 //获取订单详情列表
getOrder(){ async getOrder() {
let that = this let that = this
orderDetailMsg({id:that.detailInfo.id}).then(res=>{ const data_back = await orderDetailMsgNew({
console.log('订单详情',res) id: that.detailInfo.id
if(res.code == 200){
that.detailData = res.data
}
}) })
console.log(data_back, '订单详情')
const {
code,
data
} = data_back
if (code === 200) {
that.detailData = data
}
// orderDetailMsgNew({id:that.detailInfo.id}).then(res=>{
// console.log('订单详情',res)
// if(res.code == 200){
// that.detailData = res.data
// }
// })
}, },
} }
...@@ -153,7 +166,8 @@ ...@@ -153,7 +166,8 @@
width: 210rpx; width: 210rpx;
height: 210rpx; height: 210rpx;
} }
&-img:nth-child(3n){
&-img:nth-child(3n) {
margin-right: 0rpx; margin-right: 0rpx;
} }
} }
...@@ -210,5 +224,4 @@ ...@@ -210,5 +224,4 @@
} }
} }
} }
</style> </style>
...@@ -61,7 +61,8 @@ ...@@ -61,7 +61,8 @@
<script> <script>
import { import {
orderDetailMsg orderDetailMsg,
orderDetailMsgNew
} from '../../api/system/index.js' } from '../../api/system/index.js'
import apiBaseConfig from '@/config/index.js'; import apiBaseConfig from '@/config/index.js';
import freeAudio from '../../components/chengpeng-audio/free-audio.vue' import freeAudio from '../../components/chengpeng-audio/free-audio.vue'
...@@ -102,14 +103,18 @@ ...@@ -102,14 +103,18 @@
}) })
}, },
methods: { methods: {
getDetailData(id){ async getDetailData(id){
let that = this let that = this
orderDetailMsg({id:id}).then(res=>{ const data_back = await orderDetailMsgNew({id:id})
console.log(res.data,'详情') console.log(data_back,'返沪')
if(res.code == 200){ const {code,data} = data_back
that.orderDetail = res.data that.orderDetail = data
} // orderDetailMsgNew({id:id}).then(res=>{
}) // console.log(res.data,'详情')
// if(res.code == 200){
// that.orderDetail = res.data
// }
// })
}, },
// 播放 // 播放
doPlay() { doPlay() {
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
<view class="index"> <view class="index">
<com-navbar :title="title" :titleStyle="{ color: '#000000', fontSize: '32rpx' }" /> <com-navbar :title="title" :titleStyle="{ color: '#000000', fontSize: '32rpx' }" />
<view class="index-content"> <view class="index-content">
<view class="index-content-item"> <view class="index-content-item" v-for="(item,index) in useCouponList">
<view class="index-content-item-nav baiyin-flex baiyin-flex-c-b"> <view class="index-content-item-nav baiyin-flex baiyin-flex-c-b">
<text></text> <text></text>
<view>可用优惠券(2)</view> <view>可用优惠券{{cantotal}}</view>
</view> </view>
<view class="index-content-item-qu" @click="optionData.type === 'pay'?jump():null"> <view class="index-content-item-qu" @click="optionData.type === 'pay'?jump():null">
<image class="index-content-item-qu-bg" src="@/static/icon/xy01.png" mode=""></image> <image class="index-content-item-qu-bg" src="@/static/icon/xy01.png" mode=""></image>
...@@ -14,15 +14,15 @@ ...@@ -14,15 +14,15 @@
<view class="index-content-item-qu-bl-lk"> <view class="index-content-item-qu-bl-lk">
<view class="index-content-item-qu-bl-lk-t"> <view class="index-content-item-qu-bl-lk-t">
<text></text> <text></text>
<text>200</text> <text>{{item.fullSubtraction}}</text>
优惠券 优惠券
</view> </view>
<view class="index-content-item-qu-bl-lk-b">有效期:2022.3.1-2022.12.31</view> <view class="index-content-item-qu-bl-lk-b">有效期:{{item.effectiveTime | formatDate}}-{{item.failureTime | formatDate}}</view>
</view> </view>
<template v-if="optionData.type === 'pay'"> <template v-if="optionData.type === 'pay'">
<view class="index-content-item-qu-bl-rk"> <view class="index-content-item-qu-bl-rk">
<view class="index-content-item-qu-bl-rk-a">订单金额满</view> <view class="index-content-item-qu-bl-rk-a">订单金额满</view>
<view class="index-content-item-qu-bl-rk-b">9999</view> <view class="index-content-item-qu-bl-rk-b">{{item.minUsed}}</view>
<view class="index-content-item-qu-bl-rk-c">可使用</view> <view class="index-content-item-qu-bl-rk-c">可使用</view>
<view class="index-content-item-qu-bl-rk-d">当前可使用</view> <view class="index-content-item-qu-bl-rk-d">当前可使用</view>
</view> </view>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<template v-if="optionData.type === 'coupon'"> <template v-if="optionData.type === 'coupon'">
<view class="index-content-item-qu-bl-rk"> <view class="index-content-item-qu-bl-rk">
<view class="index-content-item-qu-bl-rk-a index-content-item-qu-bl-rk-axl">订单金额满</view> <view class="index-content-item-qu-bl-rk-a index-content-item-qu-bl-rk-axl">订单金额满</view>
<view class="index-content-item-qu-bl-rk-b index-content-item-qu-bl-rk-bxl">9999</view> <view class="index-content-item-qu-bl-rk-b index-content-item-qu-bl-rk-bxl">{{item.minUsed}}</view>
<view class="index-content-item-qu-bl-rk-c index-content-item-qu-bl-rk-cxl">可使用</view> <view class="index-content-item-qu-bl-rk-c index-content-item-qu-bl-rk-cxl">可使用</view>
<view class="index-content-item-qu-bl-rk-d index-content-item-qu-bl-rk-dxl">去使用</view> <view class="index-content-item-qu-bl-rk-d index-content-item-qu-bl-rk-dxl">去使用</view>
</view> </view>
...@@ -43,22 +43,22 @@ ...@@ -43,22 +43,22 @@
<text></text> <text></text>
<view>不可用优惠券(2)</view> <view>不可用优惠券(2)</view>
</view> </view>
<view class="index-content-item-qu"> <view class="index-content-item-qu" v-for="(info,ix) in couponLoseList">
<image class="index-content-item-qu-bg" src="@/static/icon/xy02.png" mode=""></image> <image class="index-content-item-qu-bg" src="@/static/icon/xy02.png" mode=""></image>
<view class="index-content-item-qu-bl"> <view class="index-content-item-qu-bl">
<text class="index-content-item-qu-bl-tl index-content-item-qu-bl-tlx">满减优惠券</text> <text class="index-content-item-qu-bl-tl index-content-item-qu-bl-tlx">满减优惠券</text>
<view class="index-content-item-qu-bl-lk"> <view class="index-content-item-qu-bl-lk">
<view class="index-content-item-qu-bl-lk-t index-content-item-qu-bl-lk-tx"> <view class="index-content-item-qu-bl-lk-t index-content-item-qu-bl-lk-tx">
<text></text> <text></text>
<text>200</text> <text>{{info.fullSubtraction}}</text>
优惠券 优惠券
</view> </view>
<view class="index-content-item-qu-bl-lk-b index-content-item-qu-bl-lk-bx"> <view class="index-content-item-qu-bl-lk-b index-content-item-qu-bl-lk-bx">
有效期:2022.3.1-2022.12.31</view> 有效期:{{info.effectiveTime | formatDate}}-{{info.failureTime | formatDate}}</view>
</view> </view>
<view class="index-content-item-qu-bl-rk"> <view class="index-content-item-qu-bl-rk">
<view class="index-content-item-qu-bl-rk-a index-content-item-qu-bl-rk-ax">订单金额满</view> <view class="index-content-item-qu-bl-rk-a index-content-item-qu-bl-rk-ax">订单金额满</view>
<view class="index-content-item-qu-bl-rk-b index-content-item-qu-bl-rk-bx">200</view> <view class="index-content-item-qu-bl-rk-b index-content-item-qu-bl-rk-bx">{{info.minUsed}}</view>
<view class="index-content-item-qu-bl-rk-c index-content-item-qu-bl-rk-cx">可使用</view> <view class="index-content-item-qu-bl-rk-c index-content-item-qu-bl-rk-cx">可使用</view>
<view class="index-content-item-qu-bl-rk-d index-content-item-qu-bl-rk-dx">不可用</view> <view class="index-content-item-qu-bl-rk-d index-content-item-qu-bl-rk-dx">不可用</view>
</view> </view>
...@@ -70,13 +70,29 @@ ...@@ -70,13 +70,29 @@
</template> </template>
<script> <script>
import {couponListGet} from '../../api/my/index.js' import {couponListGet,userCouponList,userCouponListLose} from '../../api/my/index.js'
export default { export default {
data() { data() {
return { return {
scrollTopHeader: 0, scrollTopHeader: 0,
optionData: {}, optionData: {},
title: '' title: '',
queryParams:{
pageNum:1,
pageSize:10,
deleteStatus:0,
useStatus:0
},//优惠券有效参数
useCouponList:[],//可使用的优惠券列表
cantotal:0,
loseParams:{
pageNum:1,
pageSize:10,
deleteStatus:1,
useStatus:1
},
couponLoseList:[],
loseTotal:0
}; };
}, },
onLoad(option) { onLoad(option) {
...@@ -85,13 +101,34 @@ ...@@ -85,13 +101,34 @@
console.log(option) console.log(option)
self.initial(); self.initial();
self.getCoupon() self.getCoupon()
self.getLoseCoupon()
}, },
methods: { methods: {
getCoupon(){ async getCoupon(){
couponListGet().then(res=>{ let that = this
console.log('优惠券',res) const back_data = await userCouponList(that.queryParams)
}) console.log(back_data,'优惠券')
const {code,rows,total} = back_data
that.cantotal = total
if(total > 0){
that.useCouponList =rows
}
}, },
async getLoseCoupon() {
let that = this
const back_data = await userCouponListLose(that.loseParams)
console.log(back_data, '失效优惠券')
const {
code,
rows,
total
} = back_data
that.loseTotal = total
if (total > 0) {
that.couponLoseList = rows
}
},
initial() { initial() {
let self = this; let self = this;
switch (self.optionData.type) { switch (self.optionData.type) {
......
...@@ -14,11 +14,15 @@ ...@@ -14,11 +14,15 @@
</template> </template>
<script> <script>
import {login} from '@/api/user.js'
export default { export default {
data() { data() {
return { return {
height:0 height:0,
loginParams:{
xcxCode:''
}
} }
}, },
onLoad() { onLoad() {
...@@ -29,7 +33,7 @@ ...@@ -29,7 +33,7 @@
that.height = res.windowHeight that.height = res.windowHeight
} }
}) })
// this.getUserInfo() this.getUserInfo()
}, },
methods: { methods: {
// 1.调用微信自带登录方法获取code // 1.调用微信自带登录方法获取code
...@@ -37,29 +41,27 @@ ...@@ -37,29 +41,27 @@
let that = this let that = this
uni.login({ uni.login({
success(res) { success(res) {
that.loginParams.code = res.code console.log(res,'获取code')
that.getSessionkeyAndOpenId() that.getSessionkeyAndOpenId(res.code)
}
})
uni.getUserInfo({
success(info) {
that.signature = info.signature
that.rawData = info.rawData
} }
}) })
}, },
// 2.获取sessionKey,openId // 2.获取sessionKey,openId
async getSessionkeyAndOpenId() { async getSessionkeyAndOpenId(code) {
const res = await this.$myRequest({ const back_data = await login({xcxCode:code})
url:`/xcxLogin?appid=${this.loginParams.appid}&code=${this.loginParams.code}`, console.log(back_data,'静默登录')
})
if(res.data.code == 200){
let dataObj = JSON.parse(res.data.data)
this.sessionKey = dataObj.sessionKey
this.openid = dataObj.openid
}
}, },
// async getSessionkeyAndOpenId() {
// const res = await this.$myRequest({
// url:`/xcxLogin?appid=${this.loginParams.appid}&code=${this.loginParams.code}`,
// })
// if(res.data.code == 200){
// let dataObj = JSON.parse(res.data.data)
// this.sessionKey = dataObj.sessionKey
// this.openid = dataObj.openid
// }
// },
// 3.授权手机号登录拿到encryptedData和iv // 3.授权手机号登录拿到encryptedData和iv
getPhoneNumber(e) { getPhoneNumber(e) {
// 同意登录 // 同意登录
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<!-- // 已发布 --> <!-- // 已发布 -->
<view class="buttoncolor" v-if="subscript == '0'"> <view class="buttoncolor" v-if="subscript == '0'">
<button class="buttoncl" @click.stop="handleAgainAdd(item)">修改</button> <button class="buttoncl" @click.stop="handleAgainAdd(item)">修改</button>
<button class="buttonclde" @click.stop="abolish(1)">取消订单</button> <button class="buttonclde" @click.stop="abolish(1,item)">取消订单</button>
</view> </view>
<!-- // 已驳回 --> <!-- // 已驳回 -->
<view class="d-flex a-end j-sb" v-if="subscript == '1'"> <view class="d-flex a-end j-sb" v-if="subscript == '1'">
...@@ -81,7 +81,8 @@ ...@@ -81,7 +81,8 @@
globalData: getApp().globalData, globalData: getApp().globalData,
show: false, show: false,
title: '确认取消订单吗', title: '确认取消订单吗',
titbut: '取消订单' titbut: '取消订单',
currentId:'',//当前的id
} }
}, },
...@@ -119,7 +120,9 @@ ...@@ -119,7 +120,9 @@
}); });
}, },
// 取消订单1 立即退款2 // 取消订单1 立即退款2
abolish(val) { abolish(val,data) {
console.log(data.id,'数控')
this.currentId = data.id
if (val == 1) { if (val == 1) {
this.title = '确认取消订单吗' this.title = '确认取消订单吗'
this.titbut = '1' this.titbut = '1'
...@@ -151,7 +154,7 @@ ...@@ -151,7 +154,7 @@
}, },
// 取消订单2 立即退款3 // 取消订单2 立即退款3
aindexst(val) { aindexst(val) {
// console.log(val) this.$emit('getVal',val,this.currentId)
this.show = false this.show = false
} }
} }
......
<template> <template>
<view class="content"> <view class="content">
<com-navbar :leftIcon="false" bgColor="#fff" title="需求" :titleStyle="{ color: '#000000', fontSize: '34rpx' }" /> <com-navbar :leftIcon="false" bgColor="#fff" title="需求" :titleStyle="{ color: '#000000', fontSize: '34rpx' }" />
<view ></view> <view></view>
<view class="content-tabs" :style="{ top: `calc(${globalData.statusBarHeight}rpx + 122rpx)` }"> <view class="content-tabs" :style="{ top: `calc(${globalData.statusBarHeight}rpx + 122rpx)` }">
<view class="content-tabs-text" v-for="(v,index) in list" @click="jump(index)" :key="index"> <view class="content-tabs-text" v-for="(v,index) in list" @click="jump(index)" :key="index">
<view class="" :style="subscript == index?'color: #000000;' : 'color: #444444;'"> <view class="" :style="subscript == index?'color: #000000;' : 'color: #444444;'">
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</view> </view>
</view> </view>
<template v-if="statusNeedList && statusNeedList.length"> <template v-if="statusNeedList && statusNeedList.length">
<comindex :list="statusNeedList" class="content-mindex" :subscript='subscript'></comindex> <comindex :list="statusNeedList" class="content-mindex" :subscript='subscript' @getVal="handleStatus"></comindex>
</template> </template>
<view v-else class="diagram"> <view v-else class="diagram">
<image src="@/static/icon/qst.png" mode=""></image> <image src="@/static/icon/qst.png" mode=""></image>
...@@ -54,7 +54,10 @@ ...@@ -54,7 +54,10 @@
</template> </template>
<script> <script>
import {myNeedList} from '../../api/system/index.js' import {
myNeedList,
removeOrderFunction
} from '../../api/system/index.js'
import apiBaseConfig from '@/config/index.js'; import apiBaseConfig from '@/config/index.js';
import uniGo from '@/utils/unIGO.js'; import uniGo from '@/utils/unIGO.js';
import comindex from '@/pages/demand/components/index.vue' import comindex from '@/pages/demand/components/index.vue'
...@@ -64,7 +67,7 @@ ...@@ -64,7 +67,7 @@
imgBgUrl: apiBaseConfig.imgBgUrl, imgBgUrl: apiBaseConfig.imgBgUrl,
globalData: getApp().globalData, globalData: getApp().globalData,
title: 'Hello', title: 'Hello',
arr:[], arr: [],
list: [{ list: [{
name: '已发布' name: '已发布'
}, { }, {
...@@ -74,13 +77,14 @@ ...@@ -74,13 +77,14 @@
}, { }, {
name: '已接单' name: '已接单'
}], }],
subscript: '0', subscript: '0',//状态
needInfo:{ needInfo: {
pageSize:1, pageSize: 1,
pageNum:10, pageNum: 10,
status:0 status: 0,
deleteStatus:0
}, },
statusNeedList:[] statusNeedList: []
} }
}, },
components: { components: {
...@@ -88,21 +92,21 @@ ...@@ -88,21 +92,21 @@
}, },
onLoad(option) { onLoad(option) {
// console.log(option, 'pppppp') // console.log(option, 'pppppp')
if(option.id){ if (option.id) {
this.subscript = option.id this.subscript = option.id
} }
this.getMyNeedList() this.getMyNeedList()
}, },
methods: { methods: {
getMyNeedList(){ getMyNeedList() {
let that = this let that = this
that.needInfo.status = that.subscript that.needInfo.status = that.subscript
myNeedList(that.needInfo).then(res=>{ myNeedList(that.needInfo).then(res => {
console.log(res,'我的需求') console.log(res, '我的需求')
if(res.code == 200){ if (res.code == 200) {
if(res.total > 0){ if (res.total > 0) {
that.statusNeedList = res.rows that.statusNeedList = res.rows
}else{ } else {
that.statusNeedList = [] that.statusNeedList = []
} }
} }
...@@ -112,6 +116,33 @@ ...@@ -112,6 +116,33 @@
let that = this let that = this
this.subscript = ind this.subscript = ind
that.getMyNeedList() that.getMyNeedList()
},
// 取消订单接口
async handleCancle(id){
let that = this
const back_data = await removeOrderFunction({id:id})
console.log(back_data,'取消')
const {code} = back_data
if(code == 200){
uni.showToast({
title:'取消成功!',
icon:'none',
duration:2000,
success() {
setTimeout(()=>{
that.getMyNeedList()
},1000)
}
})
}
},
// 取消订单2 立即退款3
handleStatus(val,id){
console.log(val,id,'装订好')
let that = this
if(val == 2){
that.handleCancle(id)
}
} }
} }
} }
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
暂无数据 暂无数据
</view> </view>
</view> </view>
<u-loadmore iconSize="50px" @loadmore="loadMore" color="#6A6C6F" fontSize="24rpx" :nomore-text="nomoreText" :loading-text="loadingText" line :status="loadStatus" /> <u-loadmore v-if="userNeedList && userNeedList.length" iconSize="50px" @loadmore="loadMore" color="#6A6C6F" fontSize="24rpx" :nomore-text="nomoreText" :loading-text="loadingText" line :status="loadStatus" />
</view> </view>
<com-navbar :leftIcon="false" :homeShow="false" bgColor="transparent" title="首页" <com-navbar :leftIcon="false" :homeShow="false" bgColor="transparent" title="首页"
:titleStyle="{ color: '#FFFFFF', fontSize: '32rpx',scrollTopHeader: scrollTopHeader }" /> :titleStyle="{ color: '#FFFFFF', fontSize: '32rpx',scrollTopHeader: scrollTopHeader }" />
......
...@@ -85,6 +85,7 @@ export default { ...@@ -85,6 +85,7 @@ export default {
} }
}, },
actions: { actions: {
async phoneLogin({ async phoneLogin({
commit commit
}, userInfo) { }, userInfo) {
...@@ -172,29 +173,6 @@ export default { ...@@ -172,29 +173,6 @@ export default {
} }
} }
commit('upDateLoginUserMount', obj.userInfo) commit('upDateLoginUserMount', obj.userInfo)
// login(params).then(back => {
// const {
// data: dataFrom
// } = back
// // headOrNot 1团长 2消费
// const {
// headOrNot
// } = dataFrom
// let role;
// headOrNot == 1 ? role = 'head' : role = 'consumer'
// let objForm = {
// token: dataFrom.token,
// userInfo: dataFrom,
// role,
// }
// commit("login", objForm);
// })
// console.log({
// code: rev.code,
// encryptedData: obj.encryptedData,
// iv: obj.iv,
// })
// return
dealerPhoneLogin({ dealerPhoneLogin({
code: rev.code, code: rev.code,
encryptedData: obj.encryptedData, encryptedData: obj.encryptedData,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment