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. 19
      pages/sign/sign.vue

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

@ -26,7 +26,7 @@
data() { data() {
return { 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: { methods: {
bindChangeEnd(value){ bindChangeEnd(value){
console.log('抵达时间',value) // console.log('',value)
this.valueEnd = value; this.valueEnd = value;
this.$emit('change', this.valueEnd); this.$emit('change', this.valueEnd);
}, },

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

@ -26,7 +26,7 @@
data() { data() {
return { 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: { methods: {
bindChangeStart(value){ bindChangeStart(value){
console.log('抵达时间',value) // console.log('',value)
this.valueStart = value; this.valueStart = value;
this.$emit('change', this.valueStart); this.$emit('change', this.valueStart);
}, },

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

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

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

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

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

@ -96,7 +96,7 @@
formatDate1(time) { formatDate1(time) {
var data = new Date(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>
<view class="cu-form-group flex flex-direction padding-tb"> <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> <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> </view>
</form> </form>
<user-agreement @changeIntentions="changeIntentions"></user-agreement> <user-agreement @changeIntentions="changeIntentions"></user-agreement>

19
pages/sign/sign.vue

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

Loading…
Cancel
Save