吉福庄APP,基于若依原版开发
wangzhenxin
2024-04-20 c937bcdecba91450a81fb1371fb94c9713193529
成本测算页面开发未完
2 files modified
27 ■■■■ changed files
config.js 2 ●●● patch | view | raw | blame | history
pages/calc/food/calc.vue 25 ●●●● patch | view | raw | blame | history
config.js
@@ -1,7 +1,7 @@
// 应用全局配置
module.exports = {
  //baseUrl: 'https://vue.ruoyi.vip/prod-api',
  baseUrl: 'http://192.168.0.101:8080',
  baseUrl: 'http://192.168.31.190:8080',
  // 应用信息
  appInfo: {
    // 应用名称
pages/calc/food/calc.vue
@@ -2,14 +2,29 @@
  <view class="container">
    <view class="example">
      <uni-forms ref="form" :model="food" labelWidth="100px">
        <uni-forms-item label="整只鸡腿卷" name="zhengzhitui">
        <uni-forms-item label="整只鸡腿卷饼" name="zhengZhiTui">
          <uni-easyinput type="number" placeholder="请输入一个数量" v-model="food.zhengZhiTui" />
        </uni-forms-item>
        <uni-forms-item label="田园半腿卷" name="banzhitui">
          <uni-easyinput type="number" placeholder="请输入一个数量" v-model="food.banZhiTui" />
        <uni-forms-item label="田园半腿卷饼" name="banZhiTui">
            <uni-easyinput type="number" placeholder="请输入一个数量" v-model="food.banZhiTui" />
        </uni-forms-item>
      </uni-forms>
      <button type="primary" @click="submit">提交</button>
        <uni-forms-item label="厚乳芝士卷饼" name="zhiShi">
            <uni-easyinput type="number" placeholder="请输入一个数量" v-model="food.zhiShi" />
        </uni-forms-item>
        <uni-forms-item label="菠萝鸡腿卷饼" name="boLuo">
            <uni-easyinput type="number" placeholder="请输入一个数量" v-model="food.boLuo" />
        </uni-forms-item>
        <uni-forms-item label="时蔬轻食卷饼" name="qingShi">
            <uni-easyinput type="number" placeholder="请输入一个数量" v-model="food.qingShi" />
        </uni-forms-item>
        <uni-forms-item label="爆辣鸡腿卷饼" name="baoLa">
            <uni-easyinput type="number" placeholder="请输入一个数量" v-model="food.baoLa" />
        </uni-forms-item>
        <uni-forms-item label="藤椒鸡腿卷饼" name="tengJiao">
            <uni-easyinput type="number" placeholder="请输入一个数量" v-model="food.tengJiao" />
        </uni-forms-item>
      </uni-forms>
      <button type="primary" @click="submit">开始测算</button>
    </view>
  </view>
</template>