Commit a2691718 authored by liujiangnan's avatar liujiangnan

feat: 评语

parent 4882ef2e
......@@ -2771,7 +2771,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "17rjwMETxBmIblj16aCWma"
"_id": "98Alg7UHND+ZraXshemI33"
},
{
"__type__": "cc.Label",
......@@ -2804,7 +2804,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "57JB1p2YpE+5LxCdgEl1gR"
"_id": "9bsRKYG5RMt4Kp/rwIlnWI"
},
{
"__type__": "cc.PrivateNode",
......@@ -2867,7 +2867,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "eaMyPmybNAvZvPW/gebuZV"
"_id": "5dnSUt+vtJCJ2LzJ9hVnsZ"
},
{
"__type__": "cc.Label",
......@@ -2900,7 +2900,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "4aXO7t3ENIlLLZjL2aS9ou"
"_id": "10PSkX6PlNWYuh/gj3rBRR"
},
{
"__type__": "cc.PrivateNode",
......@@ -2963,7 +2963,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "aczE+TqwpEs5VwuRBr6skj"
"_id": "c3u/9aEWdOiZJwzfsecNrK"
},
{
"__type__": "cc.Label",
......@@ -2996,7 +2996,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "f9HkRqzmJCWInVgxt78hWn"
"_id": "a3lMATCrpJV7dpjlr7wUCk"
},
{
"__type__": "cc.PrivateNode",
......@@ -3059,7 +3059,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "04GZc+rjFK2IOn6oiCnryw"
"_id": "95EeTWdGNPV74kobx0ndc6"
},
{
"__type__": "cc.Label",
......@@ -3092,7 +3092,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "83APZ7IJxMYa+sJsPhOA4A"
"_id": "e8ZIYNHE1L2KnsKdge+jrl"
},
{
"__type__": "cc.PrivateNode",
......@@ -3155,7 +3155,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "bbMHdJ6aRNiKEu4OQidPry"
"_id": "0aj/SAEWdPLooHshKzoZTv"
},
{
"__type__": "cc.Label",
......@@ -3188,7 +3188,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "93Fx4Ao29NlpyRWm6TiDJ8"
"_id": "39XZnoYQNMPJrmz1JII6hm"
},
{
"__type__": "cc.RichText",
......@@ -6369,7 +6369,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "b05pQUbaxOXomttpOoFNbE"
"_id": "75tR63IiZEUbXb9rk02BGw"
},
{
"__type__": "cc.Label",
......@@ -6402,7 +6402,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "98uPm21w5L4pMl29KQBqh9"
"_id": "e4AxcFULRGCbK0X0xoX8Nq"
},
{
"__type__": "cc.PrivateNode",
......@@ -6465,7 +6465,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "4f8wd4FW9CoaQALEq0fK/a"
"_id": "92jNdMk1lIFoJDBmGW9vIW"
},
{
"__type__": "cc.Label",
......@@ -6498,7 +6498,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "95c9RRhXxKoa5fOeY1OT8l"
"_id": "d9OQYuz19CubR4zx68FRVy"
},
{
"__type__": "cc.PrivateNode",
......@@ -6561,7 +6561,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "e1RXFUxv9PX73btPFgpxbA"
"_id": "d45jEwnDhEcoJK9MORK/om"
},
{
"__type__": "cc.Label",
......@@ -6594,7 +6594,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "bd3+CA2DhHgZvLcnyNJquR"
"_id": "3f1oiXqoJI5oRgta2qu1jD"
},
{
"__type__": "cc.RichText",
......@@ -7073,7 +7073,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "140nC2polA35Mlc0WIQsy5"
"_id": "fb2fseeG9JLq2phAALlba7"
},
{
"__type__": "cc.Label",
......@@ -7106,7 +7106,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "5d20hZqGlO9bQgqJImPJ66"
"_id": "b6GI1OeIFEwpzazQ9ootwP"
},
{
"__type__": "cc.PrivateNode",
......@@ -7169,7 +7169,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "4b/IcXrAZA6K9JDQ2xgUS5"
"_id": "f1Kl4OXPJIdK0y9EcS7bCU"
},
{
"__type__": "cc.Label",
......@@ -7202,7 +7202,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "5fuxnDagFGW6hViORc7+ey"
"_id": "d60SUmhvJIcZP21lVW3n09"
},
{
"__type__": "cc.PrivateNode",
......@@ -7265,7 +7265,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "4bwhOcCB5O1qEJmNxG/eRw"
"_id": "cffDs3dttCjLgHShCab8ZJ"
},
{
"__type__": "cc.Label",
......@@ -7298,7 +7298,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "33COUEYypH3IDenzgodYX0"
"_id": "7dkjfC815I9716F0AIL/iM"
},
{
"__type__": "cc.RichText",
......@@ -7588,7 +7588,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "d4Bsn4kT9KBJWj698IzQqk"
"_id": "54UrvwgXdHG4n4va55SyBy"
},
{
"__type__": "cc.Label",
......@@ -7621,7 +7621,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "44oS5dLQ1D9oIK5pq6wldy"
"_id": "64p4ew28pG1YFH3a748WeZ"
},
{
"__type__": "cc.PrivateNode",
......@@ -7684,7 +7684,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "a1Dew72ZBCQKRSvX3NPGLm"
"_id": "2eyyopfp9LZrXfHQbPWs7u"
},
{
"__type__": "cc.Label",
......@@ -7717,7 +7717,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "88589SUWdDkYPrH6Zfw/5L"
"_id": "79Tk9PEYBE+45GKjIPuLzr"
},
{
"__type__": "cc.PrivateNode",
......@@ -7780,7 +7780,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "05kp3lyfZI7Y3frnBXvSa2"
"_id": "ee6IhraAdKaLwvcu1U4E+T"
},
{
"__type__": "cc.Label",
......@@ -7813,7 +7813,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "49b/WhGA9AZ6LoyQcjZ4d9"
"_id": "74VYUI9PdJ2JX/f36HX+hv"
},
{
"__type__": "cc.RichText",
......@@ -9238,7 +9238,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "3bQOjQMBRCmalXEPxJbJ7p"
"_id": "daADoEPz1EWaFoeVPDobmJ"
},
{
"__type__": "cc.Label",
......@@ -9271,7 +9271,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "81/gUEeyxOPIRTt5m2jqWv"
"_id": "68FtAYJ3FBA7m6bglHO8SU"
},
{
"__type__": "cc.PrivateNode",
......@@ -9334,7 +9334,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "faHsoSZCRAnZoocj0ZVtWB"
"_id": "f17E7iSlNJF4i5nR2YVgyL"
},
{
"__type__": "cc.Label",
......@@ -9367,7 +9367,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "83jdLMY2JDhZepHcZK0MDB"
"_id": "daeNFCALdN9474BqeOR/bk"
},
{
"__type__": "cc.PrivateNode",
......@@ -9430,7 +9430,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "f7JhsTGHlCNKtJRj6sSYX4"
"_id": "81drs2IHVGEKSOCYSp37i9"
},
{
"__type__": "cc.Label",
......@@ -9463,7 +9463,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "6371vR7v1KBY8sfAejCME5"
"_id": "40Xc2+HUdMAapP7jKdfkDo"
},
{
"__type__": "cc.PrivateNode",
......@@ -9526,7 +9526,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "efkqwNjUNHM71W7cBX9ODE"
"_id": "2b9hfDsyJAU5nS+49s2FdH"
},
{
"__type__": "cc.Label",
......@@ -9559,7 +9559,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "1fRTQ+P65BRLjOougp8fcm"
"_id": "73KyStLBdBPapFy9zwr+bg"
},
{
"__type__": "cc.PrivateNode",
......@@ -9622,7 +9622,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "3dHT3+g85Cca4g9E1caQ+W"
"_id": "992+K8b7xB2pPYvLERkc9y"
},
{
"__type__": "cc.Label",
......@@ -9655,7 +9655,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "b7dMNjSNxGcZtxHtBmG81W"
"_id": "fbP3tsVR5DWb3jGVVS8PkZ"
},
{
"__type__": "cc.PrivateNode",
......@@ -9718,7 +9718,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "fe98KKNh5IKKzBrC8OBspN"
"_id": "92pvLKjfVFDJxYpd7c7b/6"
},
{
"__type__": "cc.Label",
......@@ -9751,7 +9751,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "60KIFToS1ML5aQClkLQBYM"
"_id": "72r2sWQMpP9LniL0GX/gfA"
},
{
"__type__": "cc.PrivateNode",
......@@ -9814,7 +9814,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "ed9kFikmdF/LQy3cpw+PFf"
"_id": "a0/7fzetdJRYJt5e8O2qMq"
},
{
"__type__": "cc.Label",
......@@ -9847,7 +9847,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "76pFFpPqJOpKZK3+X30Bch"
"_id": "86evC/lzRIjItjBDaEAjDV"
},
{
"__type__": "cc.RichText",
......@@ -12593,7 +12593,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "94pzSJ/pdMIYmoCO9UyFAO"
"_id": "8aZGHgnf5HabE9tgrSrF+m"
},
{
"__type__": "cc.Label",
......@@ -12626,7 +12626,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "018UVRVA9DkoZ7mgPSlMq9"
"_id": "45OPBrTu5F6ouKbkUjLHGo"
},
{
"__type__": "cc.PrivateNode",
......@@ -12689,7 +12689,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "bd/2hegxBHko7ZOvzAmB4k"
"_id": "28ex3nwhdMLbGbQg1dxctm"
},
{
"__type__": "cc.Label",
......@@ -12722,7 +12722,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "f9BQ1irgBMh70OVlHXw+2T"
"_id": "3f/49SQa5DyaG1dfXcJ/8+"
},
{
"__type__": "cc.PrivateNode",
......@@ -12785,7 +12785,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "e5Bj1AeUNItppliMltYBtf"
"_id": "caA33+DnxHnYtinVHU8z3s"
},
{
"__type__": "cc.Label",
......@@ -12818,7 +12818,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "d0FOBNHzpM/obWhD/2Y9vy"
"_id": "b39PeCOdBHO7OCBE87UEjB"
},
{
"__type__": "cc.RichText",
......@@ -33355,7 +33355,7 @@
},
{
"__type__": "cc.Node",
"_name": "New Label",
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 707
......@@ -33442,7 +33442,7 @@
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 1,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
......
......@@ -210,6 +210,8 @@ export default class NewClass extends cc.Component {
for (let i = 0; i < 3; i++) {
cc.find(`result_bg/star_${i+1}_light`, qpyNode).active = false;
}
const label = cc.find(`result_bg/textnode/label`, qpyNode).getComponent(cc.Label);
label.string = "";
}
......@@ -342,7 +344,6 @@ export default class NewClass extends cc.Component {
if (OP_06_3) {
const rowData = JSON.parse(OP_06_3);
cc.find(`Canvas/videoContainer`).attr({rowData});
// TODO 星星算法和评语
let lightStarCount = 0;
rowData.item_arr.forEach(row => {
lightStarCount += row.star_count;
......@@ -351,6 +352,14 @@ export default class NewClass extends cc.Component {
for (let i = 0; i < lightStarCount; i++) {
cc.find(`result_bg/star_${i+1}_light`, qpyNode).active = true;
}
const label = cc.find(`result_bg/textnode/label`, qpyNode).getComponent(cc.Label);
if (lightStarCount == 0 || lightStarCount == 1) {
label.string = `再多听听原声,\n大声录音让我听到,\n争取拿到三颗星!`;
} else if (lightStarCount == 2) {
label.string = `宝贝的发音很好哦\n差一点点就完美了~\n多试几次,\n争取拿到三颗星!`;
} else {
label.string = `宝贝的发音太好了!\n再接再厉呀!`;
}
qpyNode.active = true;
} else {
qpyNode.active = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment