diff --git a/api/api.js b/api/api.js index 5196122..a2610a8 100644 --- a/api/api.js +++ b/api/api.js @@ -447,10 +447,10 @@ const api = { return request('/expertAPI/consultListHis', data, 'post', false); }, listNewInterrogation(data){ - return request('/expertAPI/listNewInterrogation', data, 'post', false); + return request('/expertAPI/listNewInterrogation', data, 'post', true); }, listMyAnsweredInterrogation(data){ - return request('/expertAPI/listMyAnsweredInterrogation', data, 'post', false); + return request('/expertAPI/listMyAnsweredInterrogation', data, 'post', true); }, getInterrogation(data){ return request('/expertAPI/getInterrogation', data, 'post', false); @@ -459,10 +459,10 @@ const api = { return request('/expertAPI/InterrogationPatientInfo', data, 'post', false); }, updateInterrogationAnswer(data){ - return request('/expertAPI/updateInterrogationAnswerU', data, 'post', false); + return request('/expertAPI/updateInterrogationAnswerU', data, 'post', true); }, addInterrogationAnswer(data){ - return request('/expertAPI/addInterrogationAnswerU', data, 'post', false); + return request('/expertAPI/addInterrogationAnswerU', data, 'post', true); }, videoDetail(data){ return request('/expertAPI/videoDetail', data, 'post', false); @@ -665,12 +665,29 @@ const api = { return request('/expertAPI/downloadGanDanFileV2', data, 'post', false); }, feedBack(data){ - return request('/expert/feedBack', data, 'post', false); + return request('/expertAPI/addFeedBack', data, 'post', false); }, getPointUnitPrice(data){ - return request('/expertApp/getPointUnitPrice', data, 'post', false); + return request('/expertAPI/getPointUnitPrice', data, 'post', false); + }, + welfareList(data){ + return request('/expertAPI/welfareList', data, 'post', false); + }, + getUGoods(data){ + return request('/expertApp/getUGoods', data, 'post', false); + }, + getUGoods(data){ + return request('/expertAPI/getGoodsDetailU', data, 'post', false); + }, + createGoodsOrder(data){ + return request('/expertAPI/createGoodsOrder', data, 'post', false); + }, + useWelfareNum(data){ + return request('/expertAPI/useWelfareNum', data, 'post', false); + }, + createBointsOrder(data){ + return request('/expertPay/createBointsOrder', data, 'post', false); }, - } diff --git a/manifest.json b/manifest.json index cf5b387..5e3d0fa 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "肝胆相照专家版", "appid" : "__UNI__89F511F", "description" : "", - "versionName" : "4.1.9", - "versionCode" :419, + "versionName" : "4.2.0", + "versionCode" : 420, "transformPx" : false, "app-plus" : { /* 5+App特有相关 */ @@ -58,12 +58,17 @@ "" ], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], - "minSdkVersion" : 21 + "minSdkVersion" : 21, + "targetSdkVersion" :30 }, "ios" : { "dSYMs" : false, "idfa" : false, - "urlschemewhitelist" : [ "weixin", "wechat" ] + "urlschemewhitelist" : [ "weixin", "wechat" ], + "permission" : { + "NSPhotoLibraryUsageDescription" : "需要访问相册以选择图片", + "NSCameraUsageDescription" : "需要访问相机以拍照" + } }, /* ios打包配置 */ "sdkConfigs" : { diff --git a/pages.json b/pages.json index 4d13562..cae0e47 100644 --- a/pages.json +++ b/pages.json @@ -9,7 +9,16 @@ } }, "pages": [ - + // { + // "path": "pages/upload/upload", + // "style": { + // "navigationBarTitleText": "", + // "navigationStyle": "custom", + // "app": { + // "bounce": "none" + // } + // } + // }, { "path": "pages/loading/loading", "style": { @@ -20,6 +29,7 @@ } } }, + { "path": "pages/index/index", "style": { @@ -489,6 +499,16 @@ } } }, + { + "path": "myCode/myCode", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } + }, { "path": "buyPoint/buyPoint", "style": { @@ -499,6 +519,16 @@ } } }, + { + "path": "myWelfare/welfareDetail", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } + }, { "path": "myWelfare/myWelfare", "style": { @@ -509,6 +539,26 @@ } } }, + { + "path": "buyUpan/buyUpan", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } + }, + { + "path": "buyUpan/address", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } + }, { "path": "myWelfareCard/myWelfareCard", "style": { @@ -519,6 +569,16 @@ } } }, + { + "path": "myWelfareCard/exchange", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } + }, { "path": "myPoint/myPoint", "style": { @@ -931,16 +991,7 @@ // } // } // }, - // { - // "path": "myCode/myCode", - // "style": { - // "navigationStyle": "custom", - // "navigationBarTitleText": "uni-app分页", - // "app": { - // "bounce": "none" - // } - // } - // }, + // { // "path": "myDownLoad/myDownLoad", diff --git a/pages/upload/upload.vue b/pages/upload/upload.vue new file mode 100644 index 0000000..b036a06 --- /dev/null +++ b/pages/upload/upload.vue @@ -0,0 +1,119 @@ + + + + + \ No newline at end of file diff --git a/pages_app/buyPoint/buyPoint.vue b/pages_app/buyPoint/buyPoint.vue index badfe27..4d50187 100644 --- a/pages_app/buyPoint/buyPoint.vue +++ b/pages_app/buyPoint/buyPoint.vue @@ -68,6 +68,19 @@ }; const freeConfirm = () => { freeVisible.value = false; + api.createBointsOrder({ + point: selectedPackageData.value.points + }).then(res => { + if(res.code==200){ + uni.sendNativeEvent('payPonitPage', { + msg: { + "price":res.data.amount, + "order_id":res.data.order_id, + 'jifen':res.data.point, + }, + }); + } + }); }; onLoad(() => { getPointUnitPrice(); @@ -85,7 +98,7 @@ const getPointUnitPrice = () => { api.getPointUnitPrice().then(res => { if(res.code==200){ - pointUnitPrice.value=Number(res.PointUnitPrice); + pointUnitPrice.value=Number(res.data); console.log(pointUnitPrice.value); packages.value.forEach(pkg => { pkg.price = pkg.points * pointUnitPrice.value / 100; diff --git a/pages_app/buyUpan/address.vue b/pages_app/buyUpan/address.vue new file mode 100644 index 0000000..821af8a --- /dev/null +++ b/pages_app/buyUpan/address.vue @@ -0,0 +1,268 @@ + + + + + + diff --git a/pages_app/buyUpan/buyUpan.vue b/pages_app/buyUpan/buyUpan.vue new file mode 100644 index 0000000..4b2c5ca --- /dev/null +++ b/pages_app/buyUpan/buyUpan.vue @@ -0,0 +1,291 @@ + + + + + diff --git a/pages_app/consult/consult.vue b/pages_app/consult/consult.vue index aba37e2..af202fc 100644 --- a/pages_app/consult/consult.vue +++ b/pages_app/consult/consult.vue @@ -57,7 +57,7 @@ diff --git a/pages_app/myAnswer/myAnswer.vue b/pages_app/myAnswer/myAnswer.vue index 3cbb0c9..e8ae15d 100644 --- a/pages_app/myAnswer/myAnswer.vue +++ b/pages_app/myAnswer/myAnswer.vue @@ -1,314 +1,469 @@