1263428893@qq.com 3 months ago
parent
commit
bea52580f5
7 changed files with 93 additions and 44 deletions
  1. +6
    -1
      pages/home/index.vue
  2. +5
    -1
      pages_subpack/category/index.vue
  3. +37
    -21
      pages_subpack/enterprise/index.vue
  4. +1
    -1
      pages_subpack/order-detail/index.vue
  5. +37
    -19
      pages_subpack/person/index.vue
  6. +3
    -0
      pages_subpack/wallet/component/recharge.vue
  7. +4
    -1
      pages_subpack/wallet/component/withdrawal.vue

+ 6
- 1
pages/home/index.vue View File

@ -12,7 +12,7 @@
企业/个人端 企业/个人端
</view> --> </view> -->
</view> </view>
<view class="se-px-20 se-pt-10 se-zi-s">
<view class="se-px-20 se-pt-10 se-zi-s" @click="onCategory()">
<u-search height="40" placeholder="搜索" :showAction="false" v-model="keyword"></u-search> <u-search height="40" placeholder="搜索" :showAction="false" v-model="keyword"></u-search>
</view> </view>
<view class="se-pb-20 se-pt-40 se-zi-s"> <view class="se-pb-20 se-pt-40 se-zi-s">
@ -242,6 +242,11 @@
url:"/pages_subpack/release/index?status="+event url:"/pages_subpack/release/index?status="+event
}) })
}, },
onCategory(){
uni.navigateTo({
url:"/pages_subpack/category/index"
})
}
} }
} }


+ 5
- 1
pages_subpack/category/index.vue View File

@ -1,5 +1,8 @@
<template> <template>
<view class="se-mt-10">
<view class="se-m-10">
<view class="se-px-20 se-pt-10 se-zi-s">
<u-search height="40" placeholder="搜索" :showAction="true" v-model="keyword"></u-search>
</view>
<view class="se-m-20 se-br-20 se-bs-b se-bgc-white se-py-20 se-px-30" v-for="(items,indexs) in tList" :key="indexs" @click="onMasterDetail(items)"> <view class="se-m-20 se-br-20 se-bs-b se-bgc-white se-py-20 se-px-30" v-for="(items,indexs) in tList" :key="indexs" @click="onMasterDetail(items)">
<view class="se-flex se-flex-h-sb"> <view class="se-flex se-flex-h-sb">
<view class="se-flex"> <view class="se-flex">
@ -48,6 +51,7 @@
tpageSize:20, tpageSize:20,
tList:[], tList:[],
id:null, id:null,
keyword:""
} }
}, },
onLoad(options) { onLoad(options) {


+ 37
- 21
pages_subpack/enterprise/index.vue View File

@ -67,21 +67,17 @@
show:false, show:false,
indList: [], indList: [],
form: { form: {
id:"",
role:1, role:1,
name: 'jerryxiao',
name: '',
password: '', password: '',
mobile: '13189698114',
company:'小小公司',
mobile: '',
company:'',
idCard:'', idCard:'',
address:'湖南长沙岳麓区',
industryId:'1865294357074157570',
industryName:'建筑',
businessLicense: '',
businessLicenseFile:[
{
url:"https://tennis-oss.xzaiyp.top/2024-12-22/cf84422d-dcf7-4efa-82e7-371454eafbee.png"
}
]
address:'',
industryId:'',
industryName:'',
businessLicenseFile:[]
}, },
rules: { rules: {
name: [{ name: [{
@ -146,24 +142,44 @@
}, },
watch: { watch: {
fileList(newValue, oldValue) {
if (newValue.length > 0) {
this.form.file = '有'
} else {
this.form.file = ''
}
}
}, },
onReady() { onReady() {
this.onIndustryList() this.onIndustryList()
this.$refs.uForm.setRules(this.rules) this.$refs.uForm.setRules(this.rules)
}, },
mounted() {
let company = uni.getStorageSync("company")
if(company){
this.form.id = company.id
this.form.name = company.userName
this.form.mobile = company.phone
this.form.company = company.companyName
this.form.address = company.companyAddress
this.form.industryId = company.industryId
this.form.industryName = company.industryName
this.form.businessLicenseFile = this.stringToKeyValueArray(company.businessLicense)
}
},
methods: { methods: {
stringToKeyValueArray(str, delimiter1 = ',') {
if(str){
let arro = str.split(delimiter1);
let arr = [];
arro.forEach(items=>{
let obj = {};
obj["url"] = items
arr.push(obj)
})
console.info(arr)
return arr
}else{
return []
}
},
handleIndChange(){ handleIndChange(){
this.show = true this.show = true
}, },
selectIndClick(event){ selectIndClick(event){
console.info("selectIndClick",event)
this.form.industryId = event.id this.form.industryId = event.id
this.form.industryName = event.name this.form.industryName = event.name
this.show = false this.show = false
@ -183,7 +199,7 @@
role:that.form.role, role:that.form.role,
phone:that.form.mobile, phone:that.form.mobile,
companyName:that.form.company, companyName:that.form.company,
companyAddress:that.form.companyAddress,
companyAddress:that.form.address,
industryId:that.form.industryId, industryId:that.form.industryId,
industryName:that.form.industryName, industryName:that.form.industryName,
businessLicense:that.form.businessLicenseFile.map(item => item.url).join(','), businessLicense:that.form.businessLicenseFile.map(item => item.url).join(','),


+ 1
- 1
pages_subpack/order-detail/index.vue View File

@ -142,7 +142,7 @@
</view> </view>
<view class="se-flex se-pt-30 se-flex-h-sb"> <view class="se-flex se-pt-30 se-flex-h-sb">
<view class="se-fs-24 se-display-ib">支付方式</view> <view class="se-fs-24 se-display-ib">支付方式</view>
<view class="se-fs-24 se-display-ib">试用以后支付</view>
<view class="se-fs-24 se-display-ib"></view>
</view> </view>
<view class="se-flex se-pt-30 se-flex-h-sb"> <view class="se-flex se-pt-30 se-flex-h-sb">
<view class="se-fs-24 se-display-ib">工作时间</view> <view class="se-fs-24 se-display-ib">工作时间</view>


+ 37
- 19
pages_subpack/person/index.vue View File

@ -64,19 +64,15 @@
indList: [], indList: [],
fileList: [], fileList: [],
form: { form: {
id:'',
role:0, role:0,
name: 'jerryxiao',
name: '',
password: '', password: '',
mobile: '13189698114',
address:'湖南长沙岳麓区',
industryId:'1865294357074157570',
industryName:'建筑',
idCard:'',
idCardFile:[
{
url:"https://tennis-oss.xzaiyp.top/2024-12-22/cf84422d-dcf7-4efa-82e7-371454eafbee.png"
}
]
mobile: '',
address:'',
industryId:'',
industryName:'',
idCardFile:[]
}, },
rules: { rules: {
name: [{ name: [{
@ -108,7 +104,7 @@
address: [{ address: [{
type: 'string', type: 'string',
required: true, required: true,
message: '请输入公司地址',
message: '请输入居住地址',
trigger: ['blur', 'change'] trigger: ['blur', 'change']
}], }],
industryId: [{ industryId: [{
@ -133,19 +129,40 @@
} }
}, },
watch: { watch: {
fileList(newValue, oldValue) {
if (newValue.length > 0) {
this.form.file = '有'
} else {
this.form.file = ''
}
}
}, },
onReady() { onReady() {
this.onIndustryList() this.onIndustryList()
this.$refs.uForm.setRules(this.rules) this.$refs.uForm.setRules(this.rules)
}, },
mounted() {
let worker = uni.getStorageSync("worker")
if(worker){
this.form.id = worker.id
this.form.name = worker.userName
this.form.mobile = worker.phone
this.form.industryId = worker.industryId
this.form.industryName = worker.industryName
this.form.idCardFile = this.stringToKeyValueArray(worker.idCard)
}
},
methods: { methods: {
stringToKeyValueArray(str, delimiter1 = ',') {
if(str){
let arro = str.split(delimiter1);
let arr = [];
arro.forEach(items=>{
let obj = {};
obj["url"] = items
arr.push(obj)
})
console.info(arr)
return arr
}else{
return []
}
},
handleIndChange(){ handleIndChange(){
this.show = true this.show = true
}, },
@ -168,6 +185,7 @@
that.$refs.uForm.validate().then(res => { that.$refs.uForm.validate().then(res => {
that.onRoleBoss() that.onRoleBoss()
}).catch(errors => { }).catch(errors => {
console.info(errors)
uni.$u.toast('校验失败') uni.$u.toast('校验失败')
}) })
}, },


+ 3
- 0
pages_subpack/wallet/component/recharge.vue View File

@ -53,6 +53,9 @@
id:that.userId, id:that.userId,
price:that.money price:that.money
} }
if(!that.money){
return that.$u.toast("请填写金额!")
}
payRecharge(params).then(response=>{ payRecharge(params).then(response=>{
uni.requestPayment({ uni.requestPayment({
provider: "wxpay", provider: "wxpay",


+ 4
- 1
pages_subpack/wallet/component/withdrawal.vue View File

@ -49,7 +49,10 @@
onWithdrawal(){ onWithdrawal(){
let that = this let that = this
let params = { let params = {
money:this.money
money:that.money
}
if(!that.money){
return that.$u.toast("请填写金额!")
} }
withdrawal(params).then(response=>{ withdrawal(params).then(response=>{
console.info("response",response) console.info("response",response)


Loading…
Cancel
Save