Browse Source

修复bug

master
前端-胡立永 1 month ago
parent
commit
bb1e69a6aa
4 changed files with 57 additions and 13 deletions
  1. +9
    -1
      api/model/order.js
  2. +1
    -1
      components/cart/signInQrcodePopup.vue
  3. +24
    -10
      pages_order/huodong-detail.vue
  4. +23
    -1
      pages_zlx/zlx-form.vue

+ 9
- 1
api/model/order.js View File

@ -50,13 +50,21 @@ const api = {
showLoading : true, showLoading : true,
}, },
// 创建订单 // 创建订单
createOrder: {
createOrder: {
url: '/order_common/createOrder', url: '/order_common/createOrder',
method: 'POST', method: 'POST',
auth : true, auth : true,
showLoading : true, showLoading : true,
limit : 1000, limit : 1000,
}, },
// 收藏
collect: {
url: '/order_common/collect',
method: 'POST',
auth : true,
showLoading : true,
limit : 1000,
},
} }
export default api export default api

+ 1
- 1
components/cart/signInQrcodePopup.vue View File

@ -32,7 +32,7 @@
<view class="name-tip">主理人</view> <view class="name-tip">主理人</view>
</view> </view>
<view> <view>
<uv-rate :count="count" v-model="numValue" size="23" activeColor="#FFA200"></uv-rate>
<uv-rate :count="count" v-model="adminUserInfo.num" size="23" activeColor="#FFA200"></uv-rate>
</view> </view>
</view> </view>
</view> </view>


+ 24
- 10
pages_order/huodong-detail.vue View File

@ -58,7 +58,8 @@
<view>报名费用</view> <view>报名费用</view>
</view> </view>
<view class="caozuo-box"> <view class="caozuo-box">
<view class="caozuo-item border-r">
<view class="caozuo-item border-r"
@click="collect">
<image src="@/static/image/home/shoucang-icon.png" mode=""></image> <image src="@/static/image/home/shoucang-icon.png" mode=""></image>
<text>收藏</text> <text>收藏</text>
</view> </view>
@ -191,15 +192,15 @@ import { error } from '../uni_modules/uv-ui-tools/libs/function'
methods:{ methods:{
daohang() { daohang() {
uni.openLocation({ uni.openLocation({
latitude: Number(this.activityDetails.latitude),
longitude: Number(this.activityDetails.longitude),
success: function () {
console.log('success');
},
fail:(error)=> {
console.log('error',error);
}
});
latitude: Number(this.activityDetails.latitude),
longitude: Number(this.activityDetails.longitude),
success: function () {
console.log('success');
},
fail:(error)=> {
console.log('error',error);
}
});
}, },
activityInfo(activityId) { activityInfo(activityId) {
this.$api('activityInfo',{activityId},res=> { this.$api('activityInfo',{activityId},res=> {
@ -220,6 +221,19 @@ import { error } from '../uni_modules/uv-ui-tools/libs/function'
chooseClick(item,i) { chooseClick(item,i) {
this.chooseIndex = i this.chooseIndex = i
}, },
collect(){
this.$api('collect', {
id : this.activityId
}, res => {
this.activityInfo(this.activityId)
if(res.code == 200){
uni.showToast({
title: res.message,
icon: 'none'
})
}
})
},
confirmClick(typePrice) { confirmClick(typePrice) {
this.$api('createOrder',{id:this.activityId,typePrice:typePrice,type:0},res=>{ this.$api('createOrder',{id:this.activityId,typePrice:typePrice,type:0},res=>{
if(res.code === 200) { if(res.code === 200) {


+ 23
- 1
pages_zlx/zlx-form.vue View File

@ -43,7 +43,8 @@
<view class="label-box">简历附件</view> <view class="label-box">简历附件</view>
<view class="value-box"> <view class="value-box">
<uv-input placeholder=" " v-model="info.image" border="none" color="#fff"></uv-input> <uv-input placeholder=" " v-model="info.image" border="none" color="#fff"></uv-input>
<view class="upload-btn">上传简历</view>
<view class="upload-btn"
@click="uploadFile">上传简历</view>
</view> </view>
</view> </view>
<view class="form-box-line"> <view class="form-box-line">
@ -109,6 +110,27 @@
current:0 current:0
}) })
}, },
uploadFile() {
let that = this
uni.chooseMessageFile({
count: 1, //
type: 'file',
extension: ['.doc', '.pdf', '.docx'], //
success(res) {
console.log(res);
that.$Oss.ossUpload(res.tempFiles[0].path)
.then(url => {
console.log(url);
uni.showModal({
title: url
})
})
},
fail: (err) => {
console.log(err, 'err');
}
});
},
upImg() { upImg() {
uni.chooseImage({ uni.chooseImage({
count: 1, // 9, count: 1, // 9,


Loading…
Cancel
Save