Commit dac9af66bb28c6cf7234e5ce9e796c5fd287ba21

Authored by wangfan
1 parent c261e162

manager-invitation

@@ -33,7 +33,8 @@ @@ -33,7 +33,8 @@
33 "pages/reserve/detail", 33 "pages/reserve/detail",
34 "pages/me/follow", 34 "pages/me/follow",
35 "pages/manager-invitation/index", 35 "pages/manager-invitation/index",
36 - "pages/manager-invitation/review" 36 + "pages/manager-invitation/review",
  37 + "pages/manager-invitation/editor"
37 ], 38 ],
38 "subpackages": [ 39 "subpackages": [
39 { 40 {
1 // pages/manager-invitation/review.js 1 // pages/manager-invitation/review.js
2 import util from '../../utils/util'; 2 import util from '../../utils/util';
3 import App from '../../utils/api'; 3 import App from '../../utils/api';
  4 +import TP from '../../utils/tpls';
4 const {regeneratorRuntime} = global 5 const {regeneratorRuntime} = global
5 Page({ 6 Page({
6 7
@@ -10,18 +11,7 @@ Page({ @@ -10,18 +11,7 @@ Page({
10 data: { 11 data: {
11 height: 667, 12 height: 667,
12 current: 1, 13 current: 1,
13 - tpls: [  
14 - {  
15 - id: 1,  
16 - code: 1,  
17 - name: '商务',  
18 - },  
19 - {  
20 - id: 2,  
21 - code: 2,  
22 - name: '温馨',  
23 - },  
24 - ], 14 + tpls: TP.tpls(),
25 seller:{ 15 seller:{
26 name:'一键订示例餐厅', 16 name:'一键订示例餐厅',
27 room:'天香阁', 17 room:'天香阁',
@@ -110,5 +100,10 @@ Page({ @@ -110,5 +100,10 @@ Page({
110 this.setData({ 100 this.setData({
111 current:util.attr(e,'current'), 101 current:util.attr(e,'current'),
112 }) 102 })
113 - } 103 + },
  104 + goEditor(){
  105 + wx.navigateTo({
  106 + url:'./editor?tplid='+this.data.tpls[this.data.current].id
  107 + })
  108 + },
114 }) 109 })
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 </block> 24 </block>
25 </view> 25 </view>
26 </view> 26 </view>
27 -<view class="editor flex-vc">修改内容</view> 27 +<view class="editor flex-vc" bindtap="goEditor">修改内容</view>
28 <!--//商务--> 28 <!--//商务-->
29 <template name="tpl-1"> 29 <template name="tpl-1">
30 <view class="flex-vc shangwu"> 30 <view class="flex-vc shangwu">
@@ -118,8 +118,8 @@ image{ @@ -118,8 +118,8 @@ image{
118 height: 468rpx; 118 height: 468rpx;
119 border-radius: 50%; 119 border-radius: 50%;
120 overflow: hidden; 120 overflow: hidden;
121 - background-image: url("http://qn.colorcun.com/manager-invitation/wx/hunshazhao2.png");  
122 - background-size: 100%; 121 + background-image: url("http://qn.colorcun.com/manager-invitation/wx/hunshazhao3.jpg");
  122 + background-size: cover;
123 } 123 }
124 .wenxin-mask-img{ 124 .wenxin-mask-img{
125 position: absolute; 125 position: absolute;
@@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
31 "list": [] 31 "list": []
32 }, 32 },
33 "miniprogram": { 33 "miniprogram": {
34 - "current": 43, 34 + "current": 44,
35 "list": [ 35 "list": [
36 { 36 {
37 "id": 0, 37 "id": 0,
@@ -363,6 +363,13 @@ @@ -363,6 +363,13 @@
363 "pathName": "pages/manager-invitation/review", 363 "pathName": "pages/manager-invitation/review",
364 "query": "id=154", 364 "query": "id=154",
365 "scene": null 365 "scene": null
  366 + },
  367 + {
  368 + "id": -1,
  369 + "name": "pages/manager-invitation/editor",
  370 + "pathName": "pages/manager-invitation/editor",
  371 + "query": "tplid=1",
  372 + "scene": null
366 } 373 }
367 ] 374 ]
368 } 375 }
  1 +module.exports ={
  2 + tpls(){
  3 + return [
  4 + {
  5 + id: 1,
  6 + code: 1,
  7 + name: '商务',
  8 + },
  9 + {
  10 + id: 2,
  11 + code: 2,
  12 + name: '温馨',
  13 + },
  14 + ]
  15 + },
  16 +}