Browse Source

细节调整

remotes/origin/HEAD
wally 5 years ago
parent
commit
1f8ec84881
  1. 4
      pages/add-stroke/components/end-date-selector.vue
  2. 4
      pages/add-stroke/components/start-date-selector.vue
  3. 2
      pages/apply-code/apply-code.vue
  4. 2
      pages/basic-info/basic-info.vue
  5. 2
      pages/my-trips/my-trips.vue
  6. 2
      pages/punch-the-clock/punch-the-clock.vue
  7. 21
      pages/sign/sign.vue

4
pages/add-stroke/components/end-date-selector.vue

@ -26,7 +26,7 @@
data() {
return {
valueEnd: this.$moment(new Date()).format('YYYY-MM-DD hh:mm')
valueEnd: this.$moment(new Date()).format('YYYY-MM-DD HH:mm')
};
},
@ -41,7 +41,7 @@
methods: {
bindChangeEnd(value){
console.log('抵达时间',value)
// console.log('',value)
this.valueEnd = value;
this.$emit('change', this.valueEnd);
},

4
pages/add-stroke/components/start-date-selector.vue

@ -26,7 +26,7 @@
data() {
return {
valueStart: this.$moment(new Date()).format('YYYY-MM-DD hh:mm')
valueStart: this.$moment(new Date()).format('YYYY-MM-DD HH:mm')
};
},
@ -41,7 +41,7 @@
methods: {
bindChangeStart(value){
console.log('抵达时间',value)
// console.log('',value)
this.valueStart = value;
this.$emit('change', this.valueStart);
},

2
pages/apply-code/apply-code.vue

@ -85,7 +85,7 @@
<view class="title padding-bottom-sm">
<span class="text-red padding-right-xs">*</span>当前体温
</view>
<input name="input" placeholder="请输入当前真实体温" type="text" v-model="animalHeat" />
<input name="input" placeholder="请输入当前真实体温" type="digit" v-model="animalHeat" />
</view>
</form>
<user-agreement @changeIntentions="changeIntentions"></user-agreement>

2
pages/basic-info/basic-info.vue

@ -21,7 +21,7 @@
:disabled="userInfo && userInfo.id ? true : false"
name="input"
placeholder="请输入身份证号"
type="text"
type="idcard"
v-model="idCard"
/>
</view>

2
pages/my-trips/my-trips.vue

@ -96,7 +96,7 @@
formatDate1(time) {
var data = new Date(time);
return formatDate(data, 'MM月dd日 hh:mm');
return formatDate(data, 'MM月dd日 HH:mm');
},
},

2
pages/punch-the-clock/punch-the-clock.vue

@ -59,7 +59,7 @@
</view>
<view class="cu-form-group flex flex-direction padding-tb">
<view class="title padding-bottom-sm"><span class="text-red padding-right-xs">*</span>当前体温</view>
<input placeholder="请输入当前真实体温" name="input" type="text" v-model="animalHeat"/>
<input placeholder="请输入当前真实体温" name="input" type="digit" v-model="animalHeat"/>
</view>
</form>
<user-agreement @changeIntentions="changeIntentions"></user-agreement>

21
pages/sign/sign.vue

@ -27,7 +27,9 @@ export default {
siteName: '',
success: false,
type: 0, // 0 / 1
timer: null,
timer: null,
longitude: 37.80079,
latitude: 112.58679,
};
},
@ -42,6 +44,7 @@ export default {
onLoad(options) {
console.log('options: ', options);
this.init(options);
this.getLocation();
},
methods: {
@ -81,6 +84,20 @@ export default {
this.getSiteByQrId(params);
}
},
//
// mapgcj02
getLocation() {
uni.getLocation({
type: 'gcj02',
success: res => {
this.longitude = res.longitude;
this.latitude = res.latitude;
console.log('当前位置的经度:' + res.longitude);
console.log('当前位置的纬度:' + res.latitude);
},
});
},
/**
* 扫码打卡
@ -88,7 +105,7 @@ export default {
*/
async handleSign(siteId) {
try {
const params = { param: { siteId } };
const params = { param: { siteId, locationLatitude: this.latitude, locationLongitude: this.longitude } };
await this.sign(params);
this.success = true;
} catch (error) {

Loading…
Cancel
Save