作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

视频详情

... ... @@ -61,8 +61,8 @@
<file leaf-file-name="content_detail.html" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/application/home/view/goods/content_detail.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="373">
<caret line="163" column="11" selection-start-line="163" selection-start-column="11" selection-end-line="163" selection-end-column="11" />
<state relative-caret-position="475">
<caret line="190" column="36" selection-start-line="190" selection-start-column="36" selection-end-line="190" selection-end-column="36" />
<folding>
<element signature="n#style#0;n#div#0;n#div#2;n#body#0;n#html#0;n#!!top" expanded="true" />
<element signature="n#style#0;n#div#0;n#div#1;n#div#2;n#body#0;n#html#0;n#!!top" expanded="true" />
... ... @@ -99,7 +99,7 @@
<entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="674">
<caret line="120" column="59" selection-start-line="120" selection-start-column="59" selection-end-line="120" selection-end-column="59" />
<caret line="120" column="60" selection-start-line="120" selection-start-column="60" selection-end-line="120" selection-end-column="60" />
</state>
</provider>
</entry>
... ... @@ -417,21 +417,7 @@
<workItem from="1572483209367" duration="35426000" />
<workItem from="1572568391799" duration="24440000" />
<workItem from="1572668245063" duration="699000" />
<workItem from="1572827640492" duration="23741000" />
</task>
<task id="LOCAL-00046" summary="调试授权登录">
<created>1572503340201</created>
<option name="number" value="00046" />
<option name="presentableId" value="LOCAL-00046" />
<option name="project" value="LOCAL" />
<updated>1572503340201</updated>
</task>
<task id="LOCAL-00047" summary="调试授权登录">
<created>1572503449879</created>
<option name="number" value="00047" />
<option name="presentableId" value="LOCAL-00047" />
<option name="project" value="LOCAL" />
<updated>1572503449879</updated>
<workItem from="1572827640492" duration="23942000" />
</task>
<task id="LOCAL-00048" summary="调试授权登录">
<created>1572504815693</created>
... ... @@ -762,11 +748,25 @@
<option name="project" value="LOCAL" />
<updated>1572860384007</updated>
</task>
<option name="localTasksCounter" value="95" />
<task id="LOCAL-00095" summary="视频详情">
<created>1572860445483</created>
<option name="number" value="00095" />
<option name="presentableId" value="LOCAL-00095" />
<option name="project" value="LOCAL" />
<updated>1572860445483</updated>
</task>
<task id="LOCAL-00096" summary="视频详情">
<created>1572860543038</created>
<option name="number" value="00096" />
<option name="presentableId" value="LOCAL-00096" />
<option name="project" value="LOCAL" />
<updated>1572860543038</updated>
</task>
<option name="localTasksCounter" value="97" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="297844000" />
<option name="totallyTimeSpent" value="298045000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
... ... @@ -1136,13 +1136,6 @@
<state relative-caret-position="-4732" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/home/controller/Index.php">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret line="41" selection-start-line="41" selection-end-line="42" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/home/view/public/nav.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="85">
... ... @@ -1176,17 +1169,24 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/home/controller/Index.php">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret line="41" selection-start-line="41" selection-end-line="42" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="674">
<caret line="120" column="59" selection-start-line="120" selection-start-column="59" selection-end-line="120" selection-end-column="59" />
<caret line="120" column="60" selection-start-line="120" selection-start-column="60" selection-end-line="120" selection-end-column="60" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/home/view/goods/content_detail.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="373">
<caret line="163" column="11" selection-start-line="163" selection-start-column="11" selection-end-line="163" selection-end-column="11" />
<state relative-caret-position="475">
<caret line="190" column="36" selection-start-line="190" selection-start-column="36" selection-end-line="190" selection-end-column="36" />
<folding>
<element signature="n#style#0;n#div#0;n#div#2;n#body#0;n#html#0;n#!!top" expanded="true" />
<element signature="n#style#0;n#div#0;n#div#1;n#div#2;n#body#0;n#html#0;n#!!top" expanded="true" />
... ...
... ... @@ -168,7 +168,7 @@
wx.ready(function () {
wx.getLocation({
success: function (res) {
alert(JSON.stringify(res));
success(res);
},
cancel: function (res) {
alert('必须同意授权获取地理位置才能获得奖励哦');
... ... @@ -187,10 +187,8 @@
// alert("获取失败");
// }
function success(data) {
var position = data.position;
city = position.city; //城市
lat = position.lat; //经度
lng = position.lng; //纬度
lat = data.latitude; //经度
lng = data.longitude; //纬度
//保存到用户表
$.ajax({
url:"{:url('home/user/location')}",
... ...