king
2018-09-29 31573a0912c1971a9043b3f9294f643c7d60a2aa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<template>
  <div class="aftersale">
    <div class="commodity-box">
      <div class="express border-bottom-1">
        <p class="title">头像</p>
        <i class="fa fa-angle-right" @click="edit('photo')"></i>
        <p class="tip">照片</p>
      </div>
      <div class="express border-bottom-1">
        <p class="title">昵称</p>
        <i class="fa fa-angle-right" @click="edit('nickname')"></i>
        <p class="tip">昵称</p>
      </div>
      <div class="express border-bottom-1">
        <p class="title">性别</p>
        <i class="fa fa-angle-right" @click="edit('sex')"></i>
        <p class="tip">女</p>
      </div>
      <div class="express border-bottom-1">
        <p class="title">身高</p>
        <i class="fa fa-angle-right" id="stature"></i>
        <p class="tip">170cm</p>
      </div>
      <div class="express border-bottom-5">
        <p class="title">体重</p>
        <i class="fa fa-angle-right" id="weight"></i>
        <p class="tip">57kg</p>
      </div>
      <div class="express border-bottom-1">
        <p class="title">收货地址</p>
        <i class="fa fa-angle-right" @click="edit('address')"></i>
        <p class="tip"></p>
      </div>
      <div class="express border-bottom-1">
        <p class="title">是否为企业账号</p>
        <i class="fa fa-angle-right" @click="edit('nickname')"></i>
        <p class="tip"></p>
      </div>
    </div>
    <div id="nickname" class="weui-popup__container popup-bottom">
      <div class="weui-popup__overlay"></div>
      <div class="weui-popup__modal">
        <span class="close"><i class="icon-close"></i></span>
        <h4 class="text-center header">编辑</h4>
        <div class="weui-cells">
          <div class="weui-cell">
            <div class="weui-cell__bd">
              <input class="weui-input" type="text" placeholder="昵称">
            </div>
          </div>
        </div>
        <div class="weui-tabbar">
          <a href="javascript:;" class="weui-btn weui-btn_warn">保存</a>
        </div>
      </div>
    </div>
  </div>
</template>
 
<script>
import {dict} from '../store/dictionary'
export default {
  name: 'aftersale',
  components: {},
  data () {
    return {
      dict: dict,
      typeList: [
        {
          name: '全部',
          active: true,
          type: 'all'
        },
        {
          name: '待付款',
          active: false,
          type: 'ap'
        },
        {
          name: '待发货',
          active: false,
          type: 'price'
        },
        {
          name: '待收货',
          active: false,
          type: 'price'
        },
        {
          name: '待评价',
          active: false,
          type: 'price'
        }
      ]
    }
  },
  methods: {
    jumpBack () {
      this.$router.back(-1)
    },
    jumpmenu (type) {
      this.$router.push({name: type})
    },
    confirm () {
      $.toast('收货成功', 3000)
    },
    estimate () {
      this.$router.push({name: 'estimate'})
    },
    openpopup () {
      $('#logistics').popup()
    },
    aftersale () {
      this.$router.push({name: 'aftersale'})
    },
    edit (type) {
      if (type === 'nickname') {
        $('#' + type).popup()
      } else if (type === 'sex') {
        $.actions({
          actions: [
            {
              text: '男',
              onClick () {
                console.log(123)
              }
            },
            {
              text: '女',
              onClick () {
                console.log(123)
              }
            }
          ]
        })
      } else if (type === 'address') {
        this.$router.push({name: 'address'})
      }
    }
  },
  mounted: function () {
    $('#stature').picker({
      title: '请选择您的身高',
      toolbarCloseText: '确定',
      onClose () {
        console.log(1)
      },
      cols: [
        {
          textAlign: 'center',
          values: ['165cm', '170cm', '175cm', '180cm', '185cm']
        }
      ]
    })
    $('#weight').picker({
      title: '请选择您的体重',
      toolbarCloseText: '确定',
      onClose () {
        console.log(1)
      },
      cols: [
        {
          textAlign: 'center',
          values: ['60kg', '65kg', '70kg', '75kg', '80kg']
        }
      ]
    })
  }
}
</script>
 
<style scoped>
.commodity {
  position: relative;
  padding: 10px 10px 10px;
}
.express {
  height: 50px;
  line-height: 50px;
  position: relative;
  padding: 0px 15px;
  background: #ffffff;
}
.express .title {
  float: left;
}
.express .tip {
  float: right;
  font-size: 14px;
  color: #bbbbbb;
  margin-right: 10px;
}
.express .fa {
  font-size: 24px;
  color: #bbbbbb;
  float: right;
  margin-top: 13px;
}
.close {
  display: inline-block;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 10px;
  right: 8px;
  transform:rotate(60deg);
  -moz-transform:rotate(45deg);
  -webkit-transform:rotate(45deg);
  -o-transform:rotate(45deg);
}
.close .icon-close:before {
  content: " ";
  position: absolute;
  top: 50%;
  left: 50%;
  height: 1px;
  width: 16px;
  background-color: #000000;
  margin-left: -7px;
}
.close .icon-close:after {
  content: " ";
  position: absolute;
  top: 50%;
  left: 50%;
  height: 16px;
  width: 1px;
  background-color: #000000;
  margin-top: -7px;
}
#nickname .weui-popup__modal {
  height: 250px;
}
.weui-btn {
  width: 100%;
  border-radius: 0px;
}
.weui-cells {
  margin: 20px 0px;
}
.header {
  line-height: 50px;
}
</style>