diff --git a/api/model/order.js b/api/model/order.js
index ee198f9..110899b 100644
--- a/api/model/order.js
+++ b/api/model/order.js
@@ -50,13 +50,21 @@ const api = {
showLoading : true,
},
// 创建订单
- createOrder: {
+ createOrder: {
url: '/order_common/createOrder',
method: 'POST',
auth : true,
showLoading : true,
limit : 1000,
},
+ // 收藏
+ collect: {
+ url: '/order_common/collect',
+ method: 'POST',
+ auth : true,
+ showLoading : true,
+ limit : 1000,
+ },
}
export default api
\ No newline at end of file
diff --git a/components/cart/signInQrcodePopup.vue b/components/cart/signInQrcodePopup.vue
index 6f41b21..17f9330 100644
--- a/components/cart/signInQrcodePopup.vue
+++ b/components/cart/signInQrcodePopup.vue
@@ -32,7 +32,7 @@
主理人
-
+
diff --git a/pages_order/huodong-detail.vue b/pages_order/huodong-detail.vue
index ed80022..578d565 100644
--- a/pages_order/huodong-detail.vue
+++ b/pages_order/huodong-detail.vue
@@ -58,7 +58,8 @@
报名费用
-
+
收藏
@@ -191,15 +192,15 @@ import { error } from '../uni_modules/uv-ui-tools/libs/function'
methods:{
daohang() {
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) {
this.$api('activityInfo',{activityId},res=> {
@@ -220,6 +221,19 @@ import { error } from '../uni_modules/uv-ui-tools/libs/function'
chooseClick(item,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) {
this.$api('createOrder',{id:this.activityId,typePrice:typePrice,type:0},res=>{
if(res.code === 200) {
diff --git a/pages_zlx/zlx-form.vue b/pages_zlx/zlx-form.vue
index 8f35768..c30822f 100644
--- a/pages_zlx/zlx-form.vue
+++ b/pages_zlx/zlx-form.vue
@@ -43,7 +43,8 @@
简历附件
- 上传简历
+ 上传简历
@@ -109,6 +110,27 @@
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() {
uni.chooseImage({
count: 1, // 默认9, 设置图片的选择数量