|
@@ -1,6 +1,7 @@
|
|
|
const $ = require("jquery");
|
|
|
const {get, post, config, getUrlArgObject, openNewWin, titleConfig} = require('./promise.js');
|
|
|
const targetUrl = 'http://114.55.109.16:81/lantone/index';
|
|
|
+let treatUrl = targetUrl;
|
|
|
$(function () {
|
|
|
let mrId = getUrlArgObject('mrId')
|
|
|
$(".knowledge .a-link").click(function () {
|
|
@@ -32,9 +33,10 @@ function getTcmData(param, num) {
|
|
|
$("#jibing").text(tcmDiag + "-" + tcmSyndrome);
|
|
|
$('#bingming').text(tcmDiag);
|
|
|
$('#zhenghou').text(tcmSyndrome);
|
|
|
- $("#goTreat").on("click", function () {
|
|
|
+ treatUrl = targetUrl + '?jibing=' + tcmDiag + "&zhengxing=" + tcmSyndrome;
|
|
|
+ /*$("#goTreat").on("click", function () {
|
|
|
openNewWin(targetUrl + '?jibing=' + tcmDiag + "&zhengxing=" + tcmSyndrome, true);
|
|
|
- });
|
|
|
+ });*/
|
|
|
//处方推荐
|
|
|
get('/lantone/private/zycftj?jibing=' + tcmDiag + "&zhengxing=" + tcmSyndrome).then((res) => {
|
|
|
//console.log(res)
|
|
@@ -83,7 +85,7 @@ function renderTcm(data, num = 3) {
|
|
|
$('.detail ul').html(str);
|
|
|
//更多治法
|
|
|
$("#goTreat").on('click', function () {
|
|
|
- openNewWin(targetUrl, true);
|
|
|
+ openNewWin(treatUrl, true);
|
|
|
});
|
|
|
}
|
|
|
|