11
This commit is contained in:
parent
8532f7a46d
commit
739f6524a4
|
@ -20,8 +20,8 @@ const install = (Vue, vm) => {
|
|||
// },
|
||||
// });
|
||||
Vue.prototype.$u.http.setConfig({
|
||||
baseUrl: 'http://192.168.2.223:3302',
|
||||
// baseUrl: 'https://kang.chuangtewl.com/prod-api',
|
||||
// baseUrl: 'http://192.168.2.223:3302',
|
||||
baseUrl: 'https://kang.chuangtewl.com/prod-api',
|
||||
loadingText: '努力加载中~',
|
||||
loadingTime: 800,
|
||||
// 设置自定义头部content-type
|
||||
|
|
|
@ -3,18 +3,11 @@
|
|||
<u-navbar title="使用说明" :border-bottom="false" :background="bgc" title-color='#3D3D3D' back-icon-color="#3D3D3D"
|
||||
title-size='36' height='44'></u-navbar>
|
||||
|
||||
<view class="" v-html="cont">
|
||||
<!-- <view class="cont" v-html="cont">
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</view> -->
|
||||
<rich-text class="cont" :nodes="cont"></rich-text>
|
||||
|
||||
|
||||
<view class="" style="position: fixed;top: 0;left: 0;width: 100%;height: 100vh;z-index: -1;">
|
||||
<image style="width: 100%;height: 100vh;"
|
||||
|
@ -72,7 +65,12 @@
|
|||
/deep/ .u-icon__icon {
|
||||
padding-bottom: 15rpx;
|
||||
}
|
||||
|
||||
.cont{
|
||||
width: 100%;
|
||||
height: 89vh;
|
||||
overflow: scroll;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
page {
|
||||
background: #F4F5F7;
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
</view>
|
||||
<view class="jy" v-for="(item,index) in obj.bonusList" :key="index">
|
||||
<view class="one">{{item.arrivalName == undefined ? '--' : item.arrivalName}}(<text v-if="item.arrivalType == 1">平台</text><text v-if="item.arrivalType == 2">公司</text><text v-if="item.arrivalType == 3">合作伙伴商</text><text v-if="item.arrivalType == 4">渠道商</text><text v-if="item.arrivalType == 5">创业者</text><text v-if="item.arrivalType == 6">经营场所</text>){{item.point}}%</view>
|
||||
<view class="two">¥{{item.amount== undefined ? '--' : otem.amount}}</view>
|
||||
<!-- <view class="two">¥{{item.amount== undefined ? '--' : otem.amount}}</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -145,7 +145,7 @@
|
|||
},
|
||||
methods: {
|
||||
getxq(){
|
||||
this.$u.get(`/agent/device/${this.deviceId}`).then(res =>{
|
||||
this.$u.get(`/app/device/${this.deviceId}`).then(res =>{
|
||||
if(res.code == 200){
|
||||
this.obj = res.data
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
</view>
|
||||
<view class="xiaoav">
|
||||
<view class="">所属创业者</view>
|
||||
<view class="" v-if="item.userName">{{item.userName == undefined ? '--' : item.userName}}</view>
|
||||
<view class="" v-if="item.userId">{{item.userName == undefined ? '--' : item.userName}}</view>
|
||||
<view class="wbd" v-else @click.stop="btntz(item.deviceId)">未绑定</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -107,10 +107,7 @@
|
|||
room: '',
|
||||
shows: false,
|
||||
showtz: false,
|
||||
listtz: [{
|
||||
value: '1',
|
||||
label: '张三'
|
||||
}, ],
|
||||
listtz: [],
|
||||
lists: [],
|
||||
list: [{
|
||||
value: '1',
|
||||
|
@ -131,10 +128,12 @@
|
|||
type: 2,
|
||||
keyword: '',
|
||||
statusList: '',
|
||||
deviceId: ''
|
||||
deviceId: '',
|
||||
type:''
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
onLoad(option) {
|
||||
this.type = option.type
|
||||
this.getlist()
|
||||
this.gettzr()
|
||||
this.getchangsuo()
|
||||
|
@ -237,6 +236,8 @@
|
|||
icon: 'success',
|
||||
duration: 1000,
|
||||
})
|
||||
this.wateringList = []
|
||||
this.pagenum = 1
|
||||
this.getlist()
|
||||
} else {
|
||||
uni.showToast({
|
||||
|
@ -265,6 +266,8 @@
|
|||
icon: 'success',
|
||||
duration: 1000,
|
||||
})
|
||||
this.wateringList = []
|
||||
this.pagenum = 1
|
||||
this.getlist()
|
||||
} else {
|
||||
uni.showToast({
|
||||
|
@ -276,21 +279,68 @@
|
|||
})
|
||||
},
|
||||
|
||||
// 获取列表
|
||||
//获取列表
|
||||
getlist() {
|
||||
this.$u.get(
|
||||
`/agent/device/list?pageNum=${this.pagenum}&pageSize=${this.pagesize}&statusList=${this.statusList}&keyword=${this.keyword}`
|
||||
).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.total = res.total
|
||||
if (res.rows.length > 0) {
|
||||
// 有数据,追加到列表
|
||||
this.wateringList = this.wateringList.concat(res.rows)
|
||||
this.pagenum++
|
||||
// 合作伙伴(代理)
|
||||
if(this.type == 2){
|
||||
this.$u.get(
|
||||
`/agent/device/list?pageNum=${this.pagenum}&pageSize=${this.pagesize}&statusList=${this.statusList}&keyword=${this.keyword}`
|
||||
).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.total = res.total
|
||||
if (res.rows.length > 0) {
|
||||
// 有数据,追加到列表
|
||||
this.wateringList = this.wateringList.concat(res.rows)
|
||||
this.pagenum++
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
// 创业者(投资人)
|
||||
}else if(this.type == 4){
|
||||
this.$u.get(
|
||||
`/app/device/list?pageNum=${this.pagenum}&pageSize=${this.pagesize}&statusList=${this.statusList}&keyword=${this.keyword}`
|
||||
).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.total = res.total
|
||||
if (res.rows.length > 0) {
|
||||
// 有数据,追加到列表
|
||||
this.wateringList = this.wateringList.concat(res.rows)
|
||||
this.pagenum++
|
||||
}
|
||||
}
|
||||
})
|
||||
// 渠道商(业务员)
|
||||
}else if(this.type == 3){
|
||||
this.$u.get(
|
||||
`/biz/device/list?pageNum=${this.pagenum}&pageSize=${this.pagesize}&statusList=${this.statusList}&keyword=${this.keyword}`
|
||||
).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.total = res.total
|
||||
if (res.rows.length > 0) {
|
||||
// 有数据,追加到列表
|
||||
this.wateringList = this.wateringList.concat(res.rows)
|
||||
this.pagenum++
|
||||
}
|
||||
}
|
||||
})
|
||||
// 经营场所
|
||||
}else if(this.type == 5){
|
||||
this.$u.get(
|
||||
`store/device/list?pageNum=${this.pagenum}&pageSize=${this.pagesize}&statusList=${this.statusList}&keyword=${this.keyword}`
|
||||
).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.total = res.total
|
||||
if (res.rows.length > 0) {
|
||||
// 有数据,追加到列表
|
||||
this.wateringList = this.wateringList.concat(res.rows)
|
||||
this.pagenum++
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
// 滚动到底部
|
||||
onScrollToLower() {
|
||||
if (this.total > this.wateringList.length) {
|
||||
|
@ -329,22 +379,22 @@
|
|||
})
|
||||
},
|
||||
// 渠道商
|
||||
gettzr() {
|
||||
this.$u.get(`/biz/user/allInvestorList`).then(res => {
|
||||
if (res.code == 200) {
|
||||
res.data.forEach(item => {
|
||||
this.listtz.push({
|
||||
label: item.userName,
|
||||
value: item.userId
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// gettzr() {
|
||||
// this.$u.get(`/biz/user/allInvestorList`).then(res => {
|
||||
// if (res.code == 200) {
|
||||
// res.data.forEach(item => {
|
||||
// this.listtz.push({
|
||||
// label: item.userName,
|
||||
// value: item.userId
|
||||
// })
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
// },
|
||||
|
||||
// 获取所有的经营场所
|
||||
getchangsuo() {
|
||||
this.$u.get(`/agent/user/allInvestorList`).then(res => {
|
||||
this.$u.get(`/agent/store/allList`).then(res => {
|
||||
if (res.code == 200) {
|
||||
res.data.forEach(item => {
|
||||
this.lists.push({
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
</view>
|
||||
<view class="list_val" @click="btnpage(4)">
|
||||
<view class="lt">
|
||||
<image src="https://api.ccttiot.com/smartmeter/img/static/uZTgZyEIQ1NCnGQEboQG" mode=""></image> <text>推广管理</text>
|
||||
<image src="https://api.ccttiot.com/smartmeter/img/static/uZTgZyEIQ1NCnGQEboQG" mode=""></image> <text>{{jytxt}}</text>
|
||||
</view>
|
||||
<view class="rt">
|
||||
<u-icon name="arrow-right" color="#3D3D3D" size="28"></u-icon>
|
||||
|
@ -157,7 +157,9 @@
|
|||
firsTime:'',
|
||||
lasTime:'',
|
||||
infoobj:{},
|
||||
tongobj:{}
|
||||
tongobj:{},
|
||||
jytxt:'',
|
||||
type:''
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
@ -194,6 +196,12 @@
|
|||
this.$u.get(`/app/user/userInfo`).then(res => {
|
||||
if(res.code == 200){
|
||||
this.infoobj = res.data
|
||||
this.type = res.data.type
|
||||
if(res.data.type == 5){
|
||||
this.jytxt = '场所管理'
|
||||
}else{
|
||||
this.jytxt = '推广管理'
|
||||
}
|
||||
this.gettongji()
|
||||
}
|
||||
})
|
||||
|
@ -218,12 +226,18 @@
|
|||
})
|
||||
}else if(num == 3){
|
||||
uni.navigateTo({
|
||||
url:'/page_user/devicelist'
|
||||
url:'/page_user/devicelist?type=' + this.type
|
||||
})
|
||||
}else if(num == 4){
|
||||
uni.navigateTo({
|
||||
url:'/page_user/tuiguang'
|
||||
})
|
||||
if(this.jytxt == '推广管理'){
|
||||
uni.navigateTo({
|
||||
url:'/page_user/tuiguang'
|
||||
})
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url:'/page_user/changsuo'
|
||||
})
|
||||
}
|
||||
}else if(num == 5){
|
||||
uni.navigateTo({
|
||||
url:'/page_fenbao/listtaocan'
|
||||
|
@ -281,7 +295,7 @@
|
|||
let yesterday = new Date()
|
||||
yesterday.setDate(yesterday.getDate() - 1)
|
||||
this.firsTime = this.formatDate(yesterday)
|
||||
this.lasTime = this.formatDate(new Date())
|
||||
this.lasTime = this.formatDate(yesterday)
|
||||
this.gettongji()
|
||||
} else if (num == 3) {
|
||||
let today = new Date()
|
||||
|
|
|
@ -120,8 +120,8 @@
|
|||
canvasId: 'qrcode',
|
||||
componentInstance: this,
|
||||
text: 'https://kang.chuangtewl.com/sc?c=' + text,
|
||||
size: 150,
|
||||
margin: 0,
|
||||
size: 170,
|
||||
margin: 0,
|
||||
backgroundColor: '#ffffff',
|
||||
foregroundColor: '#000000',
|
||||
fileType: 'jpg',
|
||||
|
|
|
@ -34,6 +34,9 @@
|
|||
<view class="button" v-else>
|
||||
马上加盟 立即赚钱
|
||||
</view>
|
||||
<view class="botwz" @click="btnxq">
|
||||
《商家合作角色权益与职责》
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
@ -78,6 +81,11 @@
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
btnxq(){
|
||||
uni.navigateTo({
|
||||
url:'/page_fenbao/sjhzxq'
|
||||
})
|
||||
},
|
||||
confirm(){
|
||||
this.type = ''
|
||||
},
|
||||
|
@ -166,6 +174,13 @@
|
|||
page {
|
||||
background-color: #F7FAFE;
|
||||
}
|
||||
.botwz{
|
||||
margin-top: 20rpx;
|
||||
color: #8883F0;
|
||||
font-size: 28rpx;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
#active{
|
||||
position: fixed;
|
||||
bottom: 300rpx !important;
|
||||
|
|
|
@ -323,6 +323,13 @@
|
|||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},{
|
||||
"path": "sjhzxq",
|
||||
"style": {
|
||||
"navigationBarTitleText": "上传",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user