|
- <template>
- <view class="main">
- <view class="scroll-view">
- <text class="view-title">{{title}}</text>
- <text class="view-title">{{item.PKID}}</text>
- <a-cell-group>
- <a-field :label="this.data.label" readonly />
- <textarea onblur="onTextareaBlur" class="textarea" placeholder="输入限制为50" maxlength="50" style="width:95%;margin:auto;height:100px;">
-
- </textarea>
- </a-cell-group>
- <view class="buttonsBox">
- <a-button class="buttonsBox-cell" type="primary" @click="submit()" >提交</a-button>
- <a-button class="buttonsBox-cell" type="warning" @click="closeDialog()">返回</a-button>
- </view>
- </view>
- </view>
- </template>
- <script>
- import ACellGroup from "../../components/act/a-cell-group";
- import AButton from "../../components/act/a-button";
- import ACell from "../../components/act/a-cell";
- import AIcon from "../../components/act/a-icon";
- import AField from "../../components/act/a-field";
- import $util from "../../utils/util.js";
- import {wash} from '../../api/wash.js';
- export default {
- name: 'wash_deliver',
- data() {
- var session_member=$util.getPrefs('member');
- return {
- item:{},
- remark:'',
- title:'确认',
- label:'说明',
- member:session_member
- }
- },
-
- methods: {
- apiready() {
- this.item=api.pageParam;
- console.log(JSON.stringify(this.item));
- if(this.item.state=='0')
- {
- this.title='确认订单';
- }
- if(this.item.state=='1')
- {
- this.title='完成订单';
- }
- },
复制代码 为什么我的title值,在代码中修改了,界面中还是不变呢?我绑定有问题吗?
|
|